:root {
  --ink: #172521;
  --ink-2: #34443f;
  --muted: #6b7b75;
  --faint: #93a19b;
  --paper: #f7f5ef;
  --paper-2: #efeee6;
  --surface: #ffffff;
  --surface-soft: #fbfaf6;
  --line: #e3e4dc;
  --line-strong: #d2d8cf;
  --teal: #0f766e;
  --teal-deep: #0a5c55;
  --teal-ink: #0a3e39;
  --mint: #e6f4ef;
  --mint-strong: #c9e9dd;
  --amber: #b7791f;
  --amber-bg: #fdf3df;
  --amber-line: #f0dfb9;
  --danger: #a63d2d;
  --danger-bg: #fdf0ec;
  --shadow-sm: 0 1px 2px rgba(23, 37, 33, 0.05), 0 8px 24px -12px rgba(23, 37, 33, 0.14);
  --shadow-lg: 0 24px 60px -30px rgba(23, 37, 33, 0.32);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(15, 118, 110, 0.06), transparent 70%),
    radial-gradient(700px 420px at -10% 20%, rgba(242, 181, 68, 0.07), transparent 70%);
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 19px; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

code, .mono { font-family: var(--mono); font-size: 0.92em; }

code {
  background: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

hr { border: 0; border-top: 1px solid var(--line); }

::selection { background: var(--mint-strong); color: var(--teal-ink); }

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.center-note { text-align: center; margin-top: 24px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 228, 220, 0.9);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
}
.brand-text small {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--faint);
  font-weight: 500;
  margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: rgba(15, 118, 110, 0.07); color: var(--teal-deep); }
.main-nav a.is-active { color: var(--teal-deep); font-weight: 600; background: var(--mint); }
.main-nav .nav-admin { color: var(--muted); border: 1px solid transparent; }
.main-nav .nav-admin:hover { border-color: var(--line-strong); background: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(15, 118, 110, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(15, 118, 110, 0.8); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

.btn-light { background: #fff; color: var(--teal-ink); }
.btn-light:hover { background: var(--mint); }

.btn-alipay { background: #1677ff; color: #fff; box-shadow: 0 12px 26px -14px rgba(22, 119, 255, 0.8); }
.btn-alipay:hover { background: #0d68e8; }

.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--danger); }

.copy-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.copy-btn:hover { color: var(--teal-deep); border-color: var(--teal); }

.text-link {
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: 48px;
  padding: 72px 28px 60px;
}

.hero-copy { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  text-transform: none;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}
.eyebrow-light { color: var(--mint-strong); }

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 5.4vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.14;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-deep);
  background: linear-gradient(transparent 70%, var(--mint-strong) 70%);
  padding: 0 4px;
}

.lead {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
}

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

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
}
.trust-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 700;
}

.hero-art { animation: rise 0.8s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-art img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(23, 37, 33, 0.14));
  animation: float 7s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Sections ---------- */
.section { padding: 68px 28px; }
.section-muted {
  background: linear-gradient(180deg, rgba(230, 244, 239, 0.55), rgba(230, 244, 239, 0.25));
  border-top: 1px solid rgba(15, 118, 110, 0.07);
  border-bottom: 1px solid rgba(15, 118, 110, 0.07);
}
.section-muted .container { padding: 0 28px; }
.section-muted { padding-left: 0; padding-right: 0; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}
.section-heading h2 { margin-top: 10px; }
.section-heading > p {
  max-width: 420px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 118, 110, 0.28);
}

.product-cover { display: block; position: relative; overflow: hidden; background: var(--paper-2); }
.product-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-cover img { transform: scale(1.025); }

.cover-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(23, 37, 33, 0.78);
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.product-body { display: flex; flex-direction: column; padding: 22px 22px 20px; flex: 1; }
.product-body h3 { font-size: 19px; }
.product-body h3 a:hover { color: var(--teal-deep); }
.product-summary {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.price { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.price-symbol { font-size: 0.68em; color: var(--teal-deep); margin-right: 2px; }
.price-xl { font-size: 42px; }
.price-note { font-size: 13px; color: var(--muted); margin-left: 12px; }

/* ---------- Flow & value ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
}
.flow-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.flow-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal-deep);
  background: var(--mint);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 16px;
}
.flow-card h3 { font-size: 18px; margin-bottom: 8px; }
.flow-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.value-card {
  padding: 30px 28px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-icon {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.value-card h3 { margin: 14px 0 8px; font-size: 18px; }
.value-card p { font-size: 14px; color: var(--muted); line-height: 1.75; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(201, 233, 221, 0.18), transparent 70%),
    linear-gradient(120deg, #123c35, #0a2723);
  color: #fff;
  border-radius: 26px;
  padding: 46px 48px;
  margin: 20px 0 80px;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 10px 0 8px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.7); font-size: 14.5px; max-width: 520px; }

/* ---------- Notices ---------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--amber-line);
  background: var(--amber-bg);
  font-size: 14px;
  line-height: 1.7;
}
.notice strong { display: block; color: #7a4f10; margin-bottom: 2px; }
.notice p { color: #6d5a35; }
.notice-wide { margin-top: 28px; }
.notice-lg { padding: 22px; margin: 22px 0; }
.notice-green { background: var(--mint); border-color: var(--mint-strong); }
.notice-green strong { color: var(--teal-deep); }
.notice-green p { color: var(--teal-ink); }
.notice-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
}
.notice-green .notice-icon { background: var(--teal); }
.env-list { margin: 10px 0; padding-left: 18px; color: #6d5a35; }
.env-list li { margin: 4px 0; }

.alert {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-error { background: var(--danger-bg); border-color: #f1d3ca; color: #8f3526; }
.alert-success { background: var(--mint); border-color: var(--mint-strong); color: var(--teal-deep); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 26px;
  background: #10201c;
  color: rgba(255, 255, 255, 0.72);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1.1fr;
  gap: 38px;
  padding-top: 56px;
  padding-bottom: 40px;
}
.footer-brand .brand-text { color: #f2fbf7; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, 0.38); }
.footer-brand p { margin-top: 16px; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.55); max-width: 300px; }
.footer-col h3 { font-size: 13px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.9); margin-bottom: 14px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.58); margin-bottom: 8px; }
.footer-col a:hover { color: var(--mint-strong); }
.footer-mini { font-size: 12px !important; color: rgba(255, 255, 255, 0.4) !important; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--mono);
}

/* ---------- Page basics ---------- */
.page { padding-top: 40px; padding-bottom: 70px; min-height: 55vh; }
.page-narrow { max-width: 900px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 26px;
}
.breadcrumb a:hover { color: var(--teal-deep); }
.breadcrumb span[aria-current] { color: var(--muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.panel-head h1 { margin-top: 10px; font-size: clamp(26px, 3.4vw, 36px); }
.panel-head h2 { font-size: 22px; }
.panel-sub { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.panel-head-compact { align-items: center; margin-bottom: 18px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--mint); color: var(--teal-deep); }
.badge-warn { background: var(--amber-bg); color: #8a5a13; }
.badge-muted { background: #f0f1ec; color: var(--muted); }

/* ---------- Product detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 62px;
}
.detail-cover {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}
.detail-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.file-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.file-type {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.file-strip strong { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.file-strip span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.detail-copy { padding-top: 8px; }
.detail-copy h1 { margin: 12px 0 14px; font-size: clamp(30px, 3.8vw, 42px); }
.detail-summary { font-size: 16px; color: var(--muted); line-height: 1.8; }
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 26px 0 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-list { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.feature-list li::before {
  content: "✓";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 700;
}

.buy-form { margin-bottom: 10px; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; }

.facts { margin: 26px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.facts div { display: grid; grid-template-columns: 84px 1fr; gap: 14px; font-size: 13.5px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: var(--ink-2); }

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 54px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}
.content-main h2, .content-aside h2 { font-size: 22px; margin-bottom: 18px; }
.content-main p { font-size: 15px; color: var(--ink-2); line-height: 1.9; margin-bottom: 16px; }
.content-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  align-self: start;
}
.notes-list { padding-left: 20px; display: grid; gap: 10px; }
.notes-list li { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

.related { padding-left: 0; padding-right: 0; }
.product-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  font-size: 13.5px;
  color: var(--faint);
}
.steps li::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); margin-left: 6px; }
.steps li:last-child { flex: 0 0 auto; }
.steps li:last-child::after { display: none; }
.step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.steps li.is-active { color: var(--ink); font-weight: 600; }
.steps li.is-active .step-num { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12); }
.steps li.is-done { color: var(--teal-deep); }
.steps li.is-done .step-num { background: var(--mint); border-color: var(--mint-strong); color: var(--teal-deep); }

/* ---------- Order ---------- */
.order-panel { padding: 34px; }
.order-number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.order-number code { color: var(--ink); font-weight: 600; font-size: 13.5px; background: none; border: 0; padding: 0; }
.order-number .copy-btn { margin-left: auto; }

.order-product {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}
.order-product img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.order-product-copy { flex: 1; min-width: 0; }
.order-product-copy h2 { font-size: 18px; }
.order-product-copy p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.order-amount { font-size: 24px; font-weight: 700; white-space: nowrap; letter-spacing: -0.02em; }

.order-facts { margin: 22px 0 0; display: grid; gap: 0; }
.order-facts div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(227, 228, 220, 0.65);
  font-size: 14px;
}
.order-facts div:last-child { border-bottom: 0; }
.order-facts dt { color: var(--muted); flex: 0 0 auto; }
.order-facts dd { margin: 0; text-align: right; color: var(--ink-2); overflow-wrap: anywhere; }

.success-strip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--mint);
  border: 1px solid var(--mint-strong);
  border-radius: 14px;
  padding: 15px 18px;
  margin-top: 22px;
}
.success-strip strong { display: block; color: var(--teal-deep); font-size: 14.5px; }
.success-strip p { font-size: 13px; color: var(--teal-ink); margin-top: 2px; }

.status-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}
.status-icon-sm { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 1px; }
.status-icon svg { width: 15px; height: 15px; }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.action-row-center { justify-content: center; }

.page-footnote {
  margin-top: 24px;
  padding: 0 4px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
  display: grid;
  gap: 6px;
}

/* ---------- Payment ---------- */
.pay-amount { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.alipay-card {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface-soft);
}
.alipay-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.alipay-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1677ff;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.alipay-brand strong { display: block; font-size: 16px; }
.alipay-brand span { display: block; font-size: 12px; color: var(--muted); }
.alipay-card > p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }

/* ---------- Result ---------- */
.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 42px 36px;
  text-align: center;
}
.result-card .steps { text-align: left; margin-bottom: 30px; }
.result-icon {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 22px;
}
.result-icon svg { width: 40px; height: 40px; }
.result-icon-ok { background: var(--mint); color: var(--teal-deep); }
.result-icon-warn { background: var(--amber-bg); color: var(--amber); }
.result-icon-muted { background: #f0f1ec; color: var(--muted); }
.result-card h1 { font-size: clamp(26px, 3.6vw, 34px); }
.result-card > p { max-width: 560px; margin: 12px auto 0; font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.result-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 520px;
  margin: 26px auto 0;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 13.5px;
  text-align: left;
}
.result-product .mono { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.result-note { font-size: 12.5px !important; color: var(--faint) !important; margin-top: 18px !important; }
.result-card .action-row { margin-top: 28px; }

/* ---------- Query ---------- */
.query-panel h1 { margin: 10px 0 6px; }
.query-form { margin-top: 24px; }
.query-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.query-row { display: flex; gap: 10px; }
.query-row input { flex: 1; }
.query-result { margin-top: 22px; }

/* ---------- Forms ---------- */
input[type="text"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 11px 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
input::placeholder, textarea::placeholder { color: #a8b2ad; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
textarea { line-height: 1.7; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type="file"] { font-size: 13px; padding: 10px; background: var(--surface-soft); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-file { margin-top: 18px; margin-bottom: 0; }

.login-form { margin-top: 24px; }
.login-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.login-form input { margin-bottom: 16px; }

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.checkbox-line input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); }

/* ---------- Error ---------- */
.error-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 48px 36px;
  text-align: center;
}
.error-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  background: var(--mint);
  border-radius: 999px;
  padding: 5px 14px;
}
.error-card h1 { margin: 18px 0 10px; }
.error-message { color: var(--muted); font-size: 15px; }
.error-detail { margin-top: 12px; font-size: 13px; color: var(--faint); }
.request-id { margin-top: 26px; font-size: 11.5px; color: var(--faint); }

/* ---------- Admin ---------- */
.admin-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.admin-bar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.admin-title { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.admin-chip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--mint);
  padding: 4px 8px;
  border-radius: 5px;
}
.admin-tabs { display: flex; gap: 2px; flex: 1; }
.admin-tabs a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.admin-tabs a:hover { background: var(--surface-soft); color: var(--ink); }
.admin-tabs a.is-active { background: var(--mint); color: var(--teal-deep); font-weight: 600; }
.admin-logout { margin-left: auto; }

.admin-page { padding-top: 34px; }
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 28px;
}
.page-title-row h1 { margin-top: 9px; }
.page-sub { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.page-title-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card-accent { background: linear-gradient(160deg, #0f3a33, #0a2723); border-color: #0f3a33; }
.stat-card-accent .stat-label, .stat-card-accent .stat-foot { color: rgba(255, 255, 255, 0.55); }
.stat-card-accent .stat-value { color: #fff; }
.stat-label { display: block; font-size: 12.5px; color: var(--muted); }
.stat-value { display: block; font-size: 28px; letter-spacing: -0.03em; margin: 7px 0 4px; }
.stat-foot { font-size: 11.5px; color: var(--faint); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.admin-panel { padding: 24px; box-shadow: none; }
.admin-panel .panel-head { margin-bottom: 16px; }
.admin-muted { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.config-block { margin-top: 16px; }
.config-block h3 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.error-list { padding-left: 18px; font-size: 13px; color: var(--danger); display: grid; gap: 4px; }

.config-list { margin: 0; }
.config-list div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(227, 228, 220, 0.7);
  font-size: 13px;
}
.config-list div:last-child { border-bottom: 0; }
.config-list dt { color: var(--faint); }
.config-list dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }

.inline-warning {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-line);
  font-size: 12.5px;
  color: #7a5518;
  line-height: 1.65;
}

.security-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  background: rgba(230, 244, 239, 0.5);
  border-radius: 0 12px 12px 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}
.security-note strong { display: block; color: var(--teal-deep); margin-bottom: 3px; }

.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--faint);
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid rgba(227, 228, 220, 0.65); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(230, 244, 239, 0.25); }
.data-table .mono { font-size: 12px; }
.data-table-compact td { padding: 10px 12px; }

.empty-state {
  text-align: center;
  padding: 34px 16px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.filter-bar select, .filter-bar input { width: auto; min-width: 190px; }
.filter-bar input { flex: 1; max-width: 360px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.product-table td { vertical-align: middle; }
.admin-product-cell { display: flex; align-items: center; gap: 12px; }
.admin-product-cell img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.admin-product-cell strong { display: block; font-size: 13.5px; }
.admin-product-cell .mono { display: block; font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.text-warn { color: var(--amber); font-weight: 600; }

.audit-result { font-size: 12.5px; }
.audit-ok { color: var(--teal-deep); }
.audit-warn { color: var(--danger); }
.audit-muted { color: var(--muted); }
.audit-trade { font-size: 10.5px; color: var(--faint); margin-top: 2px; }

.login-panel { max-width: 480px; margin: 30px auto 0; }
.login-panel h1 { margin-top: 10px; }

.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
  gap: 20px;
  align-items: start;
}
.edit-main { padding: 28px; }
.edit-side { display: grid; gap: 20px; }
.current-file {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  margin-bottom: 12px;
}
.current-file strong { display: block; font-size: 12.5px; overflow-wrap: anywhere; }
.current-file span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 54px; }
  .hero-copy { max-width: 680px; }
  .hero-art { max-width: 620px; margin: 0 auto; width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; gap: 34px; }
  .detail-media { max-width: 720px; }
  .content-section { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .admin-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .hero { padding: 44px 18px 40px; }
  .section { padding: 48px 18px; }
  .section-muted { padding-left: 0; padding-right: 0; }
  .section-muted .container { padding: 0 18px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-heading > p { max-width: none; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-grid-small { grid-template-columns: 1fr; }
  .flow-grid, .value-grid { grid-template-columns: 1fr; }
  .header-inner { height: auto; padding: 10px 0 6px; flex-wrap: wrap; gap: 6px 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { font-size: 17px; }
  .brand-text small { display: none; }
  .main-nav { width: 100%; justify-content: space-between; gap: 0; }
  .main-nav a { padding: 8px 10px; font-size: 13px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 15.5px; }
  .hero-actions .btn { flex: 1; }
  .trust-list { gap: 8px 16px; }
  .trust-list li { font-size: 12.5px; }
  .cta-band { padding: 30px 24px; border-radius: 20px; margin-bottom: 56px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .page { padding-top: 28px; padding-bottom: 50px; }
  .panel, .order-panel, .result-card, .error-card { padding: 24px 20px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
  .pay-amount { font-size: 28px; }
  .order-number { font-size: 12px; }
  .order-number .copy-btn { margin-left: 0; }
  .order-product { flex-wrap: wrap; }
  .order-product img { width: 80px; height: 60px; }
  .order-amount { width: 100%; text-align: right; }
  .order-facts div { flex-direction: column; gap: 3px; }
  .order-facts dd { text-align: left; }
  .detail-cover { border-radius: 18px; }
  .detail-copy h1 { font-size: 32px; }
  .price-xl { font-size: 36px; }
  .steps { gap: 4px; }
  .steps li { font-size: 12px; gap: 6px; }
  .steps li::after { margin-left: 2px; }
  .step-num { width: 24px; height: 24px; font-size: 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 23px; }
  .page-title-row { flex-direction: column; }
  .page-title-actions { width: 100%; }
  .page-title-actions .btn { flex: 1; }
  .admin-bar-inner { gap: 10px; }
  .admin-tabs { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .admin-logout { margin-left: 0; }
  .admin-title { flex: 1; }
  .filter-bar select, .filter-bar input { width: 100%; max-width: none; }
  .filter-bar .btn { flex: 1; }
  .query-row { flex-direction: column; }
  .query-row .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .result-product { flex-direction: column; align-items: flex-start; gap: 4px; }
  .result-card { padding: 30px 20px; }
  .result-icon { width: 64px; height: 64px; }
  .result-icon svg { width: 34px; height: 34px; }
  .data-table { min-width: 640px; }
  .config-list div { grid-template-columns: 88px minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 31px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-list { gap: 6px 12px; }
  .main-nav a { padding: 7px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
