:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f6f8fb;
  --panel: rgba(255, 255, 255, .88);
  --primary: #0f766e;
  --primary-strong: #0f4f4a;
  --accent: #b45309;
  --blue: #1d4ed8;
  --shadow: 0 18px 45px rgba(15, 23, 42, .10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .10), transparent 30rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, .72);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 168px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-strong);
}

.brand-logo {
  max-width: 170px;
  max-height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  color: #243042;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-item {
  position: relative;
}

.chevron {
  font-size: 13px;
  color: var(--muted);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 18px);
  width: 230px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: .18s ease;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #334155;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}

.dropdown-menu em {
  font-style: normal;
  color: var(--muted);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
}

.search-bar {
  padding: 0 0 16px;
}

.search-bar form,
.footer-search {
  display: flex;
  gap: 8px;
}

.search-bar input,
.footer-search input,
.query-panel input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 15px;
  background: #fff;
}

button,
.primary-btn,
.secondary-btn,
.support-button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn,
.buy-button,
.search-bar button,
.footer-search button,
.query-panel button {
  background: var(--primary);
  color: #fff;
}

.primary-btn:hover,
.buy-button:hover,
.search-bar button:hover,
.footer-search button:hover,
.query-panel button:hover {
  background: var(--primary-strong);
}

.secondary-btn,
.support-button {
  border: 1px solid var(--line);
  background: #fff;
  color: #243042;
}

.hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, .96), rgba(15, 118, 110, .84)),
    linear-gradient(135deg, #0f172a, #0f766e);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
}

.hero-copy p,
.page-title span,
.section-head span,
.eyebrow {
  margin: 0 0 12px;
  color: #99f6e4;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .secondary-btn {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}

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

.hero-stats div {
  min-height: 118px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px);
}

.hero-stats strong {
  display: block;
  font-size: 32px;
}

.hero-stats span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .78);
}

.category-strip {
  display: flex;
  gap: 12px;
  padding: 28px 0 8px;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 800;
  font-size: 14px;
}

.category-strip a.active,
.category-strip a:hover {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .12);
  color: var(--primary);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

.category-strip a.active .count,
.category-strip a:hover .count {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 18px;
}

.section-head.compact {
  padding-top: 0;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: 30px;
}

.section-head a {
  color: var(--primary);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 48px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-body {
  padding: 18px;
}

.product-body h3 {
  min-height: 52px;
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.product-body p {
  min-height: 46px;
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.price-row strong {
  color: #dc2626;
  font-size: 20px;
}

.price-row span {
  color: var(--muted);
  font-size: 13px;
}

.page-title {
  padding: 56px 0 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(241, 245, 249, .72));
  border-bottom: 1px solid var(--line);
}

.page-title p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.pager {
  display: flex;
  gap: 8px;
  padding-bottom: 46px;
}

.pager a {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.pager a.active {
  background: var(--primary);
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  padding: 44px 0;
  align-items: start;
}

.gallery,
.product-info-card,
.description,
.query-panel,
.payment-panel,
.info-card,
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, .06);
}

.gallery {
  overflow: hidden;
}

.main-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-summary {
  padding: 20px 24px 24px;
}

.detail-summary span {
  color: var(--primary);
  font-weight: 800;
}

.detail-summary p {
  color: var(--muted);
  line-height: 1.75;
}

.product-info-card {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.product-info-card h1 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.38;
}

.original-price {
  color: #dc2626;
  font-size: 22px;
  font-weight: 800;
  margin: 12px 0 18px;
}

.member-prices {
  margin: 0 0 22px;
}

.member-prices div,
.order-meta div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.member-prices dt,
.order-meta dt {
  color: var(--muted);
}

.member-prices dd,
.order-meta dd {
  margin: 0;
  text-align: right;
}

.buy-button,
.support-button {
  width: 100%;
  margin-top: 10px;
}

.description {
  padding: 28px;
  margin-bottom: 48px;
}

.description-body {
  line-height: 1.8;
  color: #334155;
}

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

.ai-product-detail section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.ai-product-detail h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ai-product-detail p {
  margin: 0;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 0 56px;
}

.info-card {
  padding: 24px;
}

.info-card.full {
  grid-column: 1 / -1;
}

.info-card h2 {
  margin: 0 0 12px;
}

.info-card p {
  color: var(--muted);
  line-height: 1.75;
}

.info-card a {
  color: var(--primary);
  font-weight: 800;
}

.agreement-content h2 {
  margin-top: 28px;
}

.query-panel {
  padding: 24px;
  margin: 34px auto 56px;
}

.query-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.empty-state {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
}

.order-card {
  margin-top: 20px;
  padding: 22px;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.order-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.order-head strong {
  display: block;
  margin-top: 6px;
}

.order-head em {
  font-style: normal;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.order-head em.paid {
  background: #dcfce7;
  color: #166534;
}

.order-head em.pending {
  background: #fef3c7;
  color: #92400e;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 18px 0;
}

.order-items {
  display: grid;
  gap: 12px;
}

.order-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.order-item img {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.order-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.payment-panel {
  padding: 34px;
  margin: 44px auto 56px;
}

.payment-card,
.payment-error {
  max-width: 760px;
}

.payment-card dl {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.payment-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.payment-card dt {
  color: var(--muted);
}

.payment-card dd {
  margin: 0;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-code {
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(2, minmax(120px, .6fr)) minmax(260px, .9fr);
  gap: 38px;
  padding: 46px 0 32px;
}

.footer-logo {
  max-width: 170px;
  max-height: 58px;
  object-fit: contain;
}

.footer-brand h2,
.footer-column h2,
.footer-search-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-brand p,
.footer-column a {
  color: var(--muted);
  line-height: 1.8;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-search button {
  width: 48px;
  padding: 0;
}

.footer-bottom {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px 0 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.footer-records {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .detail-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 460px;
    padding: 44px 0;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .info-grid,
  .ai-product-detail,
  .order-meta {
    grid-template-columns: 1fr;
  }

  .product-info-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-actions,
  .query-panel form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .query-panel form {
    display: grid;
  }

  .section-head,
  .order-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
