:root {
  --ink: #17212b;
  --muted: #65727e;
  --line: #d8e0e4;
  --paper: #fbf9f4;
  --panel: #ffffff;
  --teal: #0f8a7c;
  --navy: #144c63;
  --coral: #f06b4f;
  --gold: #f4c95d;
  --sage: #e7f1ec;
  --shadow: 0 24px 60px rgba(21, 47, 58, 0.14);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 138, 124, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(20, 76, 99, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topline {
  background: #102f3c;
  color: #dce8e9;
  font-size: 13px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
}

.topbar-actions {
  display: flex;
  gap: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-grid {
  display: grid;
  grid-template-columns: 300px 1fr 210px;
  align-items: center;
  gap: 22px;
  padding: 17px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(15, 138, 124, 0.18));
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.header-search {
  display: grid;
  grid-template-columns: 138px 1fr 44px;
  border: 2px solid var(--teal);
  background: #fff;
  min-height: 48px;
}

.header-search select,
.header-search input {
  border: 0;
  min-width: 0;
  outline: none;
  padding: 0 14px;
  background: transparent;
}

.header-search select {
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
}

.icon-button {
  border: 0;
  background: var(--teal);
  color: white;
  font-size: 24px;
  line-height: 1;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 5px 4px 12px;
  border: 1px solid rgba(15, 138, 124, 0.24);
  background: #edf5f2;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.auth-chip[hidden] {
  display: none;
}

.primary-button,
.ghost-button,
.outline-button {
  border: 0;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 20px rgba(240, 107, 79, 0.22);
}

.ghost-button {
  background: #edf5f2;
  color: var(--teal);
}

.ghost-button.compact {
  min-height: 32px;
  padding: 0 11px;
  background: #fff;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.full {
  width: 100%;
}

.channel-row {
  border-top: 1px solid #edf1f3;
}

.channel-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.channel-list a {
  padding: 13px 18px;
  color: #27414b;
  font-weight: 800;
  white-space: nowrap;
}

.channel-list a:hover {
  color: var(--coral);
}

.hero {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(8, 38, 48, 0.92), rgba(8, 38, 48, 0.78)),
    url("../images/items/item-001.jpg") center / cover;
}

.hero-layout {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
}

.eyebrow,
.section-head span,
.listing-toolbar span,
.membership span,
.about-grid span,
.contact-grid span {
  display: inline-flex;
  color: var(--coral);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: 46px;
  line-height: 1.13;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #d8e7e6;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.hero-metric {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-metric b {
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
}

.hero-ticket {
  background: #fff;
  color: var(--ink);
  padding: 18px;
}

.hero-ticket span {
  color: var(--teal);
  font-weight: 800;
}

.hero-ticket strong {
  display: block;
  margin-top: 7px;
  line-height: 1.55;
}

section {
  padding: 74px 0;
}

.section-head,
.listing-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-card,
.item-card,
.shop-card,
.plan-card,
.side-panel,
.profile-box {
  background: var(--panel);
  border: 1px solid rgba(20, 76, 99, 0.1);
  box-shadow: 0 16px 38px rgba(23, 33, 43, 0.08);
}

.category-card {
  padding: 22px;
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 5px solid var(--teal);
}

.category-card b {
  font-size: 19px;
}

.category-card p,
.item-card p,
.shop-card p,
.plan-card li,
.about-grid p,
.contact-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.listing-surface {
  background: #fff;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.search-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.filter-pills button,
.region {
  padding: 9px 14px;
  font-weight: 700;
}

.filter-pills button {
  border: 1px solid var(--line);
  background: #fff;
}

.filter-pills .active {
  border-color: var(--teal);
  background: var(--sage);
  color: var(--teal);
}

.region.active {
  background: linear-gradient(90deg, var(--gold), #fff1bf);
  color: #173543;
}

.region.active b {
  background: rgba(20, 76, 99, 0.12);
  color: var(--navy);
}

.content-grid {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 22px;
}

.side-panel {
  padding: 0;
  align-self: start;
  position: sticky;
  top: 130px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 47, 60, 0.96), rgba(20, 76, 99, 0.86)),
    radial-gradient(circle at 20% 20%, rgba(244, 201, 93, 0.24), transparent 32%);
  color: #fff;
  border: 0;
}

.area-panel-head {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.area-panel-head span {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.side-panel h3 {
  margin: 0;
  font-size: 22px;
}

.region {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  color: #edf7f5;
  min-height: 54px;
  padding: 0 18px;
}

.region b {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
  font-size: 12px;
}

.member-note {
  margin: 18px;
  padding: 18px;
  background: #fff;
  color: var(--ink);
  border: 0;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

.member-note span {
  display: inline-flex;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.member-note strong {
  display: block;
  line-height: 1.45;
}

.member-note p {
  color: var(--muted);
  line-height: 1.65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 220px;
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 10px;
  background: #f7faf8;
  border: 1px dashed rgba(20, 76, 99, 0.24);
}

.empty-state h3 {
  margin: 0;
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.item-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 198px;
  overflow: hidden;
}

.item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 198px;
}

.item-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  background: #eef4f6;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.item-card h3,
.shop-card h3,
.plan-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.meta-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--coral);
  font-weight: 900;
}

.shop-strip {
  background: linear-gradient(180deg, #f7faf8 0, #fff 100%);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shop-card {
  padding: 18px;
}

.shop-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 4px solid #edf5f2;
}

.shop-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.membership {
  background: #123c4b;
  color: #fff;
}

.membership p {
  color: #d4e3e3;
}

.member-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 28px;
  align-items: start;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.plan-card {
  padding: 22px;
  color: var(--ink);
}

.price {
  margin: 14px 0;
  font-size: 34px;
  font-weight: 900;
  color: var(--coral);
}

.plan-card ul {
  padding-left: 18px;
  margin: 0 0 18px;
}

.about-band {
  background: #fff;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 40px;
}

.about-grid dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.about-grid dl div {
  padding: 16px;
  background: #f3f7f8;
}

.about-grid dt {
  color: var(--teal);
  font-weight: 900;
}

.about-grid dd {
  margin: 7px 0 0;
  line-height: 1.6;
}

.contact-lead {
  background: var(--sage);
}

form {
  display: grid;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 14px;
  outline: none;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.footer {
  background: #102f3c;
  color: #dce7e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.8fr;
  gap: 34px;
  padding: 42px 0;
}

.footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer a {
  display: block;
  margin: 9px 0;
  color: #dce7e7;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #a9bec3;
  font-size: 13px;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 26, 33, 0.68);
}

.modal-layer.show {
  display: flex;
}

.modal-layer.profile-open .modal-card {
  width: min(1040px, 100%);
}

.modal-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: #eef4f6;
  font-size: 24px;
  z-index: 2;
}

.modal-inner {
  padding: 34px;
}

.modal-inner h2 {
  margin-bottom: 16px;
}

.auth-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-switch button {
  flex: 1;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.machine-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  padding: 12px 14px;
  background: #f4f9f7;
  border: 1px solid rgba(15, 138, 124, 0.18);
  color: var(--navy);
  font-weight: 900;
}

.publish-gate {
  display: grid;
  gap: 14px;
}

.publish-gate .gate-note {
  padding: 14px;
  background: #fff6eb;
  color: var(--navy);
  border-left: 4px solid var(--coral);
  line-height: 1.65;
}

.quota-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  background: var(--sage);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.checkline input {
  width: auto;
  margin-top: 4px;
}

.hint {
  color: var(--teal);
  font-size: 13px;
  margin: -4px 0 4px;
}

.payment-qr {
  width: 190px;
  max-width: 100%;
  display: block;
  margin: 12px auto 18px;
  border: 8px solid #f3f7f8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 20px;
}

.detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.detail-side {
  background: #f3f7f8;
  padding: 18px;
}

.profile-box {
  padding: 18px;
  margin-top: 16px;
}

.profile-workspace {
  padding: 0;
  background: #f6f4ee;
}

.profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 34px;
  background:
    linear-gradient(135deg, rgba(16, 47, 60, 0.98), rgba(15, 138, 124, 0.78)),
    radial-gradient(circle at 85% 20%, rgba(244, 201, 93, 0.38), transparent 30%);
  color: #fff;
}

.profile-hero span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.profile-hero h2 {
  margin: 4px 0 8px;
}

.profile-hero p {
  margin: 0;
  color: #d8e7e6;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  padding: 18px;
}

.profile-identity,
.profile-panel,
.profile-records,
.profile-stats > div {
  background: #fff;
  border: 1px solid rgba(20, 76, 99, 0.1);
  box-shadow: 0 16px 34px rgba(23, 33, 43, 0.08);
}

.profile-identity {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  border-top: 6px solid var(--gold);
}

.identity-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
}

.profile-identity h3,
.profile-panel h3,
.profile-records h3 {
  margin: 0;
}

.profile-identity p,
.profile-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  background: var(--sage);
  color: var(--teal);
  font-weight: 900;
}

.profile-main {
  display: grid;
  gap: 16px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-stats > div {
  padding: 18px;
  border-left: 5px solid var(--coral);
}

.profile-stats span,
.profile-stats small {
  display: block;
  color: var(--muted);
}

.profile-stats strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
  line-height: 1.1;
}

.profile-panels {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.profile-panel,
.profile-records {
  padding: 18px;
}

.profile-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.profile-actions {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.profile-records ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.profile-records li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #f7faf8;
  color: var(--muted);
}

.profile-records strong {
  color: var(--ink);
}

.profile-records b {
  color: var(--coral);
}

.doc-page {
  background: #f7faf8;
}

.legal-doc {
  max-width: 900px;
  padding: 54px 0 80px;
}

.legal-doc h1 {
  font-size: 34px;
  margin: 20px 0;
}

.legal-doc h2 {
  margin-top: 28px;
  font-size: 22px;
}

.legal-doc p {
  color: #40515b;
  line-height: 1.9;
}

.back-link {
  color: var(--teal);
  font-weight: 900;
}

.legal-date {
  margin-top: 32px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-grid,
  .hero-layout,
  .content-grid,
  .member-layout,
  .about-grid,
  .contact-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-layout {
    min-height: auto;
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .category-grid,
  .cards,
  .shop-grid,
  .plan-grid,
  .footer-grid,
  .profile-dashboard,
  .profile-panels,
  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar,
  .section-head,
  .listing-toolbar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-search {
    grid-template-columns: 1fr 44px;
  }

  .header-search select {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 40px;
  }

  .category-grid,
  .cards,
  .shop-grid,
  .plan-grid,
  .footer-grid,
  .profile-dashboard,
  .profile-panels,
  .profile-stats,
  .item-card {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    flex-direction: column;
  }

  .profile-records li {
    grid-template-columns: 1fr;
  }

  .item-card img {
    min-height: 210px;
  }

  section {
    padding: 52px 0;
  }
}
