

:root {
  --brand: #1f4d3a;
  --brand-600: #2c6650;
  --brand-700: #163a2c;
  --brand-50: #edf3ef;
  --clay: #c4703a;
  --clay-50: #fbefe6;
  --sand: #f3ebdd;
  --paper: #fbf9f5;
  --card: #ffffff;
  --ink: #182420;
  --ink-2: #4a5751;
  --ink-3: #7b877f;
  --line: #e4ded2;
  --ok: #2f7a4f;
  --warn: #b4802a;
  --danger: #b8443a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(24, 36, 32, .06);
  --shadow: 0 8px 24px -12px rgba(24, 36, 32, .18);
  --shadow-lg: 0 24px 60px -28px rgba(24, 36, 32, .3);
  --wrap: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.75 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-feature-settings: "tnum";
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.6vw, 40px); }
h2 { font-size: clamp(20px, 2.4vw, 27px); }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
small { font-size: 12.5px; color: var(--ink-3); }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topbar {
  background: var(--brand-700);
  color: #d8e5dd;
  font-size: 12.5px;
  letter-spacing: .01em;
}
.topbar .wrap { display: flex; gap: 18px; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #eef5f0; }
.topbar .sep { opacity: .45; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; }
.brand b { font-size: 17px; letter-spacing: .06em; color: var(--brand); }
.brand span { font-size: 11px; color: var(--ink-3); letter-spacing: .18em; display: block; margin-top: -3px; }

.nav { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; }
.nav > a, .nav .drop > button {
  padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.nav > a:hover, .nav .drop > button:hover, .nav a.on, .nav .drop > button.on {
  background: var(--brand-50); color: var(--brand);
}
.drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 6px; display: none;
}
.drop:hover .drop-panel, .drop:focus-within .drop-panel { display: block; }
.drop-panel a { display: block; padding: 8px 11px; border-radius: 6px; color: var(--ink-2); font-size: 14px; }
.drop-panel a:hover { background: var(--brand-50); color: var(--brand); }

.drop-panel.drop-wide { min-width: 330px; }
.drop-panel .drop-grp {
  margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line);
  border-radius: 0; font-weight: 600; color: var(--ink);
}
.drop-panel .drop-grp:hover { background: transparent; color: var(--brand); }
.drop-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2px; }
.drop-panel .drop-sub { padding-left: 20px; font-size: 13px; }
.drop-panel .drop-more { padding-left: 20px; font-size: 12.5px; color: var(--ink-3); }
.drop-n { color: var(--ink-3); font-size: 12px; font-weight: 400; }

.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink-2); font-size: 13.5px; cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn .badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--clay); color: #fff; font-size: 11px; line-height: 18px; text-align: center;
}
.icon-btn .badge:empty { display: none; }

.hamb { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s;
  min-width: 0;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: #b3642f; color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* 分页：窗口式（首末页 + 当前 ±2 + 省略号） */
.pager {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 32px;
}
.pager .btn { min-width: 34px; justify-content: center; }
.pager .pager-off {
  background: transparent; border-color: var(--line); color: var(--ink-3);
  cursor: default; opacity: .5;
}
.pager .pager-off:hover { border-color: var(--line); color: var(--ink-3); }
.pager .pager-gap {
  min-width: 20px; text-align: center; color: var(--ink-3);
  font-size: 13.5px; user-select: none;
}
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 380px at 78% -12%, #e7efe8 0%, transparent 62%),
    linear-gradient(180deg, #f7f4ec 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px;
  padding: 64px 0 56px; align-items: center;
}
.hero h1 { margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-facts { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-facts div { min-width: 0; }
.hero-facts b { display: block; font-size: 22px; color: var(--brand); line-height: 1.2; }
.hero-facts span { font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 720px) {
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 22px; }
  .hero-facts b { font-size: 18px; }
}
.hero-art { position: relative; }
.hero-art img { border-radius: 20px; box-shadow: var(--shadow-lg); }

.section { padding: 58px 0; }
.section.tight { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 46em; }
.section-head .more { font-size: 14px; white-space: nowrap; }
.band { background: #fff; border-block: 1px solid var(--line); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card {
  position: relative; display: flex; gap: 14px; align-items: center;
  padding: 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); transition: border-color .16s, transform .16s, box-shadow .16s;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card img { width: 62px; height: 62px; flex: 0 0 62px; }
.cat-card b { display: block; font-size: 16px; color: var(--ink); }
.cat-card span { font-size: 12.5px; color: var(--ink-3); }
.cat-card .n { position: absolute; right: 16px; top: 16px; font-size: 12px; color: var(--ink-3); }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .16s, box-shadow .16s, transform .16s;
}
.prod-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-card .thumb { aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.prod-card .cat { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
.prod-card h3 { font-size: 15.5px; margin: 0; min-width: 0; }
.prod-card h3 a { color: var(--ink); }
.prod-card h3 a:hover { color: var(--brand); }
.prod-card .sub { font-size: 12.5px; color: var(--ink-3); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card .foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-top: 8px; }
.prod-card .p { font-size: 19px; font-weight: 700; color: var(--clay); }
.prod-card .p small { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.prod-card .tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }

.crumb { padding: 18px 0 0; font-size: 13px; color: var(--ink-3); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumb li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 26px 0 52px; align-items: start; }
.detail .gallery { background: var(--sand); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.detail .gallery-main { position: relative; }
.detail .gallery-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; }
.detail .gallery-main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; display: block; }
.detail .gal-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid rgba(24, 36, 32, .16); border-radius: 50%; background: rgba(255, 255, 255, .96); box-shadow: 0 2px 10px rgba(24, 36, 32, .2); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; opacity: .88; transition: opacity .18s, background .18s, box-shadow .18s; }
.detail .gal-nav:hover, .detail .gal-nav:focus-visible { opacity: 1; background: #fff; outline: 2px solid var(--brand); outline-offset: 2px; }
.detail .gal-prev { left: 12px; }
.detail .gal-next { right: 12px; }
.detail .gal-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(24, 36, 32, .64); color: #fff; font-size: 12px; letter-spacing: .04em; }
.detail .gallery-strip { display: flex; align-items: center; gap: 2px; padding: 0 4px; }
.detail .gal-strip-btn { flex: 0 0 26px; width: 26px; height: 58px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.detail .gal-strip-btn:hover:not(:disabled) { background: rgba(31, 77, 58, .1); color: var(--brand); }
.detail .gal-strip-btn:disabled { opacity: .3; cursor: default; }
.detail .gallery-thumbs { position: relative; flex: 1 1 auto; min-width: 0; display: flex; gap: 8px; padding: 10px 6px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; cursor: grab; }
.detail .gallery-thumbs::-webkit-scrollbar { display: none; }
.detail .gallery-thumbs.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.detail .gallery-thumbs.is-dragging img { pointer-events: none; }
.detail .gallery-thumb { flex: 0 0 auto; width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.detail .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail .gallery-thumb.is-on { border-color: var(--brand); }
.color-state { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.color-state b { color: var(--brand); font-weight: 600; }
.color-state em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; }
@media (max-width: 560px) {
  .detail .gal-nav { width: 34px; height: 34px; font-size: 23px; }
  .detail .gal-prev { left: 8px; }
  .detail .gal-next { right: 8px; }
  .detail .gallery-thumb { width: 62px; height: 62px; }
  .detail .gal-strip-btn { flex-basis: 22px; width: 22px; height: 50px; }
}
.detail h1 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.detail .subtitle { color: var(--ink-2); margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .now { font-size: 32px; font-weight: 700; color: var(--clay); letter-spacing: -.02em; }
.price .was { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }
.price .unit { color: var(--ink-3); font-size: 13px; }
.dealer-hint { font-size: 13px; color: var(--ink-3); margin: 8px 0 18px; }
.dealer-hint a { color: var(--brand); border-bottom: 1px dashed var(--brand); }

.price-pair { gap: 6px 10px; }
.price .tag-member { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.price-market { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; }
.price-market s { color: var(--ink-3); }
.p-was { color: var(--ink-3); font-size: 12.5px; margin-left: 6px; }

.bundle-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 26px; background: var(--card); }
.bundle-box h2 { font-size: 18px; margin: 0 0 6px; }
.bundle-lead { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.bundle-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 0; }
.bundle-list li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.bundle-list li:last-child { border-bottom: 0; }
.bundle-list a { color: var(--ink); border-bottom: 1px solid var(--line); }
.bundle-list .qty { color: var(--ink-3); font-size: 13px; flex: 0 0 auto; }
.bundle-list .bp { margin-left: auto; font-weight: 600; color: var(--clay); flex: 0 0 auto; }
.bundle-sum { font-size: 13.5px; color: var(--ink-2); margin: 0; background: var(--brand-50); padding: 10px 12px; border-radius: var(--radius-sm); }

.brand-hero { background: var(--brand-50); border-bottom: 1px solid var(--line); }
.brand-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 40px 0 44px; }
.brand-hero-txt h1 { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 6px; }
.brand-full { color: var(--ink-3); font-size: 13px; margin: 0 0 12px; }
.brand-hero-txt .lead { font-size: 16px; color: var(--ink-2); margin: 0 0 16px; }
.tag-auth, .tag-own { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.tag-auth { background: #fdf1e7; color: #8a4b1e; border: 1px solid #f0d6bf; }
.tag-own { background: var(--brand-50); color: var(--brand); border: 1px solid #cfe0d5; }
.auth-box { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--clay); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 18px; }
.auth-main { font-size: 14.5px; margin: 0; line-height: 1.7; }
.auth-meta { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-3); }
.brand-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-hero-img img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.brand-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 26px; margin: 0; }
.brand-facts div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.brand-facts dt { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.brand-facts dd { margin: 0; font-size: 14.5px; }
.brand-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.brand-cat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); }
.brand-cat:hover { border-color: var(--brand); color: var(--brand); }
.brand-cat span { font-size: 12.5px; color: var(--ink-3); }
.brand-cards { display: grid; gap: 18px; }
.brand-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand-card-body { padding: 22px 24px; min-width: 0; }
.brand-card-body h2 { font-size: 24px; margin: 10px 0 4px; }
.brand-intro { font-size: 14.5px; color: var(--ink-2); margin: 10px 0 8px; }
.brand-role { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.brand-card-foot { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-top: 14px; }
.brand-card-foot .count { font-size: 13px; color: var(--ink-3); }
.brand-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.note-box { margin-top: 26px; padding: 20px 22px; background: var(--brand-50); border-radius: var(--radius); }
.note-box h2 { font-size: 18px; margin: 0 0 10px; }
.note-box p { font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
@media (max-width: 860px) {
  .brand-hero-in { grid-template-columns: 1fr; padding: 28px 0 32px; }
  .brand-card { grid-template-columns: 1fr; }
  .brand-card-img { order: -1; max-height: 220px; }
  .brand-card-img img { max-height: 220px; }
}

.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0 0 22px; padding: 16px 0; border-block: 1px solid var(--line); }
.meta-list div { display: flex; gap: 8px; font-size: 13.5px; min-width: 0; }
.meta-list dt { color: var(--ink-3); flex: 0 0 auto; }
.meta-list dd { margin: 0; color: var(--ink); min-width: 0; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 42px; border: 0; background: none; font-size: 18px; color: var(--ink-2); cursor: pointer; }
.qty button:hover { background: var(--brand-50); color: var(--brand); }
.qty input { width: 52px; height: 42px; border: 0; text-align: center; font: inherit; background: transparent; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 34%; color: var(--ink-2); font-weight: 500; background: #fcfaf5; }
.prose .spec-table { margin: 14px 0 22px; }
.prose .desc-imgs { display: grid; gap: 12px; margin: 14px 0 26px; }
.prose .desc-fig { margin: 0; }
.prose .desc-fig img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.prose .desc-fig figcaption { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--ink-3); padding-left: 2px; }
.prose h2 { margin-top: 34px; font-size: 20px; }
.prose h2:first-child { margin-top: 0; }

.faq { display: grid; gap: 10px; margin: 8px 0 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { background: #fcfaf5; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; color: var(--ink-2); }
.field .req::after { content: " *"; color: var(--danger); }
.input, .textarea, .select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: inherit; font-size: 14.5px; color: var(--ink);
}
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--brand-50); border-color: var(--brand); }
.textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .err { font-size: 12.5px; color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid; }
.alert-ok { background: #eef7f1; border-color: #cfe6d8; color: #23603f; }
.alert-err { background: #fbefee; border-color: #f0d3d0; color: #8d332b; }
.alert-info { background: var(--brand-50); border-color: #d6e4da; color: var(--brand); }

.auth-shell { max-width: 420px; margin: 48px auto 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.auth-shell h1 { font-size: 22px; margin-bottom: 4px; }
.auth-shell .lede { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.auth-alt { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.member-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.member-stats { display: flex; gap: 26px; }
.member-stats div b { display: block; font-size: 20px; color: var(--brand); }
.member-stats div span { font-size: 12.5px; color: var(--ink-3); }

.status { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand); white-space: nowrap; }
.status.pending { background: #fdf3e3; color: var(--warn); }
.status.cancelled { background: #f4f2ee; color: var(--ink-3); }
.status.paid, .status.shipped, .status.done { background: #eef7f1; color: var(--ok); }

.pay-shell { max-width: 520px; margin: 44px auto 72px; }
.qr-box { display: grid; place-items: center; gap: 14px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pay-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 18px auto 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.pay-tab { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; padding: 7px 22px; border-radius: 999px; cursor: pointer; }
.pay-tab.is-on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.qr-box img, .qr-box canvas { width: 220px; height: 220px; border-radius: 8px; background: #fff; }
.qr-url { font-size: 12px; word-break: break-all; color: var(--ink-3); text-align: center; max-width: 100%; }
.pay-amount { font-size: 34px; font-weight: 700; color: var(--clay); text-align: center; }
.pay-state { text-align: center; font-size: 14px; color: var(--ink-2); }
.wx-tip { margin: 16px 0 0; padding: 10px 14px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: 13px; line-height: 1.6; }
.pay-steps { text-align: left; margin: 18px auto 0; padding-left: 20px; max-width: 390px; color: var(--ink-2); font-size: 13.5px; line-height: 1.85; }
.pay-steps li { margin-bottom: 6px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.pay-note { font-size: 12.5px; color: var(--ink-3); margin: 14px 0 0; }

.site-footer { margin-top: 60px; background: var(--brand-700); color: #cfdcd4; padding: 46px 0 26px; font-size: 13.5px; }
.site-footer a { color: #dfeae3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #a9bcb1; }

.empty { text-align: center; padding: 64px 20px; color: var(--ink-3); }
.empty b { display: block; font-size: 17px; color: var(--ink-2); margin-bottom: 6px; }
.center-page { max-width: 560px; margin: 80px auto; text-align: center; }
.center-page h1 { font-size: 64px; color: var(--brand); margin-bottom: 4px; }

@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px; box-shadow: var(--shadow);
  }
  .nav.open .drop-panel { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .hamb { display: inline-flex; }
  .detail { grid-template-columns: 1fr; gap: 26px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .member-hero { grid-template-columns: auto 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
  .prod-grid, .prod-grid.cols-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .meta-list { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero .wrap { padding: 40px 0 34px; }
  .header-tools .txt { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 9px 10px; }
}

.custom-strip {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  margin: 10px 0 16px; padding: 10px 12px;
  border: 1px solid #d8e4dc; border-left: 3px solid var(--brand);
  background: var(--brand-50); border-radius: 6px;
  font-size: 13.5px; line-height: 1.55;
}
.custom-strip b { color: var(--brand-700); font-weight: 600; white-space: nowrap; }
.custom-strip span { color: var(--ink-2); }
.custom-strip:hover { border-color: var(--brand); }

.wechat-card { display: flex; gap: 18px; align-items: center; }
.wechat-card img { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@media (max-width: 560px) {
  .wechat-card { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
}

.grid-2up { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4up { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.auto-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--auto-min, 240px), 100%), 1fr));
}
.grid-auto-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-aside { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.lead-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 34px; }

.grid-2up > .panel + .panel,
.grid-4up > .panel + .panel,
.lead-panel > .panel + .panel { margin-top: 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 620px; }

.cart-list { display: grid; gap: 12px; }
.cart-row {
  display: grid; grid-template-columns: 56px 1fr 132px 92px 44px;
  grid-template-areas: "img name qty sub del";
  gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px;
}
.cart-row .ci { grid-area: img; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.cart-row .cn { grid-area: name; min-width: 0; }
.cart-row .cn a { color: var(--ink); font-size: 14.5px; }
.cart-row .cn a:hover { color: var(--brand); }
.cart-row .cn small { display: block; font-size: 12.5px; }
.cart-row .qty { grid-area: qty; justify-self: start; }
.cart-row .cs { grid-area: sub; text-align: right; font-weight: 700; color: var(--clay); }
.cart-row .cd { grid-area: del; text-align: right; color: var(--ink-3); font-size: 13px; }
.cart-row .cd:hover { color: var(--danger); }

@media (max-width: 700px) {
  .cart-row {
    grid-template-columns: 52px 1fr auto;
    grid-template-areas: "img name del" "img qty sub";
    gap: 8px 10px; padding: 12px 14px;
  }
  .cart-row .ci { width: 52px; height: 52px; }
  .cart-row .cs { font-size: 15px; }
}

@media (max-width: 1024px) {
  .grid-aside { gap: 28px; }
}
@media (max-width: 900px) {
  .grid-aside { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 860px) {
  .grid-split { grid-template-columns: 1fr; gap: 26px; }
  .grid-4up { grid-template-columns: 1fr 1fr; }
  .lead-panel { grid-template-columns: 1fr; align-items: start; gap: 22px; padding: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head .more { white-space: normal; }
  .member-hero { grid-template-columns: auto 1fr; gap: 14px; }
  .member-stats { grid-column: 1 / -1; gap: 22px; }
}
@media (max-width: 560px) {
  .grid-2up, .grid-4up { grid-template-columns: 1fr; }
  .lead-panel { padding: 18px; gap: 18px; }
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 9px 10px; }
  .spec-table th { width: 36%; }
  .prose h2 { font-size: 18px; }
  .price .now { font-size: 27px; }
  .buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .buy-row .qty { grid-column: 1 / -1; justify-content: space-between; width: 100%; }
  .buy-row .qty input { flex: 1 1 auto; width: auto; }
  .buy-row .btn { width: 100%; padding: 0 10px; }
}

.search-form { display: flex; flex: 1 1 0; min-width: 0; }
.header-tools { min-width: 0; flex-shrink: 1; }
.search-form .input {
  width: 100%; min-width: 0; height: 38px; border-radius: 999px; padding-left: 14px;
}
.header-tools .txt { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.header-tools .ico { display: none; }

@media (max-width: 860px) {
  .site-header .wrap { gap: 10px; }
  .search-form { flex: 1 1 120px; max-width: 220px; }
  .header-tools { gap: 8px; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; }
  .brand span { display: none; }
  .search-form { flex: 1 1 0; max-width: none; }
  .search-form .input { font-size: 13.5px; padding-left: 12px; }
  .header-tools .txt { display: none; }
  .header-tools .ico { display: block; width: 20px; height: 20px; }
  .icon-btn { width: 38px; padding: 0; justify-content: center; gap: 0; position: relative; }
  .icon-btn .badge { position: absolute; top: -5px; right: -4px; }
}

.tel-btn {
  display: inline;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed currentColor;
  background: none;
  font: inherit;
  color: var(--brand-600);
  cursor: pointer;
}
.tel-btn:hover { color: var(--clay); }
.tel-btn .tel-hint {
  margin-left: 5px;
  font-size: 11.5px;
  opacity: .6;
  white-space: nowrap;
}
.topbar .tel-btn { color: #eef5f0; }
.topbar .tel-btn:hover { color: #fff; }
a.tel-live {
  color: var(--brand-600);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
a.tel-live:hover { color: var(--clay); }
.topbar a.tel-live { color: #eef5f0; }
