/* ============================================================
   样式表：暖白纸张质感 + 砖红强调色
   改品牌色只需改 :root 里的 --accent / --accent-dark
   ============================================================ */

:root {
  color-scheme: light;
  --paper: #fcfaf7;
  --ink: #1f1e1c;
  --muted: #5a554f;
  --line: #e6e0d9;
  --soft: #f3efea;
  --accent: #b13a1d;
  --accent-dark: #8b2b13;
  --accent-soft: #f8e7de;
  --wrap: 1200px;
  --bar-h: calc(104px + env(safe-area-inset-bottom, 0px));
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.035em; text-wrap: balance; }
b, strong { font-weight: 700; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #ffcdbb; color: var(--ink); }

.wrap { width: min(var(--wrap), calc(100% - clamp(32px, 8vw, 96px))); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.fine { color: var(--muted); font-size: 14px; }

/* ---------- 顶栏 ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px; padding-block: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 750; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 16px; flex: none;
  background: #ee5426;
  clip-path: polygon(20% 20%, 44% 20%, 28% 100%, 0 100%, 18% 28%, 100% 0, 72% 100%, 72% 20%);
}
.site-nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 30px); font-size: 14px; }
.site-nav a, .site-nav button {
  display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
}
.site-nav button { border: 0; padding: 0; background: none; color: var(--accent); font-weight: 650; }
.site-nav button:hover, .site-nav a:hover { text-decoration: underline; text-underline-offset: 0.24em; }

/* ---------- 首页：主视觉 ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.74fr);
  align-items: center; gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 52px);
}
.hero h1 { font-size: clamp(34px, 4.3vw, 58px); letter-spacing: -0.045em; }
.hero-sub { max-width: 34em; margin-top: 14px; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
.text-link { color: var(--accent-dark); font-size: 14px; font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 0.24em; }

.wechat-inline {
  display: inline-flex; align-items: center; gap: 10px;
  padding-left: 18px; border-left: 1px solid var(--line);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.wechat-inline b { color: var(--ink); font-weight: 650; letter-spacing: 0.01em; }
.copy-btn {
  border: 0; background: none; padding: 0 2px; min-height: 40px;
  color: var(--accent-dark); font-weight: 650; font-size: 13px;
}
.copy-btn:hover { text-decoration: underline; text-underline-offset: 0.24em; }

/* 精选商品卡 */
.featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center; gap: 16px;
  padding: 13px; border: 1px solid #ecd9c9; border-radius: 16px;
  background: #f8efe6;
  transition: border-color 160ms ease, transform 160ms ease;
}
.featured:hover { border-color: #c8967f; text-decoration: none; transform: translateY(-2px); }
.featured-cover { border-radius: 11px; overflow: hidden; aspect-ratio: 4 / 3; }
.featured-cover .cover { aspect-ratio: auto; height: 100%; }
.featured-copy h2 { font-size: clamp(20px, 1.9vw, 27px); }
.featured-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; margin-top: 6px; color: #63463c; font-size: 12px; }
.featured-meta .price { color: var(--accent-dark); font-size: 21px; font-weight: 750; letter-spacing: -0.02em; }
.featured-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 14px; font-weight: 650; color: var(--accent-dark); }

/* ---------- 商品目录 ---------- */
.catalog { padding-top: clamp(24px, 3vw, 40px); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 6px;
}
.section-head h2 { font-size: clamp(26px, 2.8vw, 36px); }
.search-box { flex: 0 1 250px; }
.search-box input {
  width: 100%; min-height: 44px; padding: 8px 13px;
  font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #bfb8af; border-radius: 9px;
}
.search-box input::placeholder { color: #6b645d; }
.catalog-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-block: 14px 20px;
}
.filters { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.filters button {
  min-height: 42px; padding: 6px 13px; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--ink); font-size: 15px; font-weight: 600;
}
.filters button:hover { background: var(--soft); }
.filters button[aria-pressed="true"] { background: #efe7dd; border-color: #ded1c2; color: #64271a; }
.result-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
.tile {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.tile:hover { border-color: #c5947f; transform: translateY(-3px); box-shadow: 0 10px 24px -18px rgba(40, 24, 16, 0.45); text-decoration: none; }
.tile:hover h3 { color: var(--accent-dark); }
.tile-body { flex: 1; padding: 14px 16px 6px; }
.tile-cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8a8078; }
.tile h3 { margin-top: 3px; font-size: 17px; letter-spacing: -0.02em; }
.tile-meta {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  padding: 8px 16px 15px; font-size: 12px; color: var(--muted);
}
.tile-meta .price { color: var(--accent-dark); font-size: 19px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile-meta .service { margin-left: auto; }

/* 封面（纯 CSS 生成，不依赖图片，可随时换成真实商品图） */
.cover {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 4 / 3; overflow: hidden; text-align: center;
  background: linear-gradient(150deg, #eceae5 0%, #d8d4cc 100%);
  color: #2a2927;
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, 0.55), transparent 58%);
  pointer-events: none;
}
.cover-kicker { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.5; }
.cover-plan { font-size: clamp(21px, 2.3vw, 27px); font-weight: 750; letter-spacing: -0.04em; }
.cover[data-cat="grok"] { background: linear-gradient(150deg, #efeeee 0%, #d4d3d3 100%); }
.cover[data-cat="gmail"] { background: linear-gradient(150deg, #f7efe4 0%, #e8d4bb 100%); color: #4a3527; }
.cover[data-cat="claude"] { background: linear-gradient(150deg, #f8eee5 0%, #ead9c8 100%); color: #4a3428; }
.cover[data-cat="chatgpt"] { background: linear-gradient(150deg, #eceae5 0%, #d3cfc6 100%); }
.cover.has-img { display: block; background: #f9f4ea; }
.cover.has-img::after { display: none; }
.cover.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.empty {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px;
  padding: 56px 20px; border: 1px dashed var(--line); border-radius: 14px; text-align: center;
}
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); font-size: 14px; }
.empty .reset {
  margin-top: 8px; min-height: 44px; padding: 8px 18px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-weight: 650;
}
.empty .reset:hover { border-color: #c5947f; }

/* ---------- 服务说明条 ---------- */
.service-band {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(18px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 76px); padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.service-band h2 { font-size: clamp(23px, 2.4vw, 30px); }
.service-band p { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 44em; }
.service-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.help h3 { font-size: 16px; }
.help ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.help li a { color: var(--accent-dark); font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-block: 26px; font-size: 13px; color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); }
.footer-note { width: 100%; padding-bottom: 26px; font-size: 12px; color: #8a817a; line-height: 1.7; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 9px;
  font-size: 15px; font-weight: 650; text-align: center;
  border: 1px solid transparent; text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 100ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfc7bd; }
.btn-ghost:hover { border-color: #a89a8c; background: #fbf8f4; }

/* ---------- 商品详情 ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; padding-block: 18px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 54px); align-items: start;
}
.detail-cover { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.detail-cover .cover { aspect-ratio: 4 / 3; }
.detail-cover .cover-plan { font-size: clamp(30px, 4vw, 46px); }
.detail-cover .cover-kicker { font-size: 12px; }
.detail-eyebrow { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a8078; }
.detail-title { margin-top: 6px; font-size: clamp(27px, 3.2vw, 38px); }
.detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; }
.detail-price .label { font-size: 13px; color: var(--muted); }
.detail-price strong { font-size: clamp(30px, 3.4vw, 38px); font-weight: 750; color: var(--accent-dark); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.detail-price .sales { font-size: 13px; color: var(--muted); }
.detail-support { margin-top: 8px; font-size: 13px; color: #6d4a3a; }
.assist-box { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--soft); }
.assist-box h2 { font-size: 15px; }
.assist-box p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.buy-actions { display: grid; gap: 12px; margin-top: 18px; }
.buy-row { display: grid; gap: 6px; }
.buy-row .btn { width: 100%; }
.buy-row .hint { font-size: 12px; color: var(--muted); text-align: center; }
.buy-row .hint.strong { color: var(--accent-dark); font-weight: 600; }
.terms-jump { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--accent-dark); font-weight: 650; }

.detail-sections { margin-top: clamp(34px, 5vw, 58px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(22px, 4vw, 48px); }
.block h2 { font-size: 21px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; padding-left: 38px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12.5px; font-weight: 700;
}
.steps strong { display: block; font-size: 15px; }
.steps p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.notices { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 6px; }
.notices summary {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px; font-size: 15px; font-weight: 650; cursor: pointer; list-style: none;
}
.notices summary::-webkit-details-marker { display: none; }
.notices summary::after { content: "+"; font-size: 18px; color: var(--accent); font-weight: 500; }
.notices[open] summary::after { content: "−"; }
.notices ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.aftercare-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.aftercare-card h2 { font-size: 18px; }
.aftercare-card dl { margin: 14px 0 0; display: grid; gap: 12px; }
.aftercare-card dt { font-size: 14px; font-weight: 650; }
.aftercare-card dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.aftercare-card .btn { width: 100%; margin-top: 18px; }

/* 移动端底部购买条 */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: none; align-items: center; gap: 12px;
  padding: 10px clamp(16px, 4vw, 28px) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(252, 250, 247, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.mobile-bar .price { display: flex; flex-direction: column; line-height: 1.25; }
.mobile-bar .price span { font-size: 11px; color: var(--muted); }
.mobile-bar .price strong { font-size: 21px; color: var(--accent-dark); font-weight: 750; }
.mobile-bar .actions { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-bar .btn { min-height: 44px; padding: 6px 10px; font-size: 14px; }

/* ---------- 弹窗 ---------- */
dialog.contact-dialog {
  width: min(430px, calc(100vw - 32px));
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--paper); color: var(--ink);
}
dialog.contact-dialog::backdrop { background: rgba(28, 22, 18, 0.42); }
dialog.contact-dialog h2 { font-size: 20px; }
dialog.contact-dialog p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.dialog-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: none; color: var(--muted); font-size: 20px; line-height: 1;
}
.dialog-close:hover { background: var(--soft); }
.dialog-wechat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.dialog-wechat span { font-size: 13px; color: var(--muted); }
.dialog-wechat b { display: block; font-size: 16px; color: var(--ink); letter-spacing: 0.02em; }
.qr-slot { margin-top: 14px; display: grid; place-items: center; gap: 6px; }
.qr-slot img { width: 168px; height: 168px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.qr-slot span { font-size: 12px; color: var(--muted); }
.dialog-actions { margin-top: 14px; display: grid; gap: 8px; }
.dialog-actions .btn { width: 100%; }

/* ---------- 提示条 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
  z-index: 60; max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: 10px;
  background: #2b2622; color: #fff; font-size: 13px; line-height: 1.5;
  opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 政策页 ---------- */
.policy-head { padding-block: 26px 8px; }
.policy-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.policy-head p { margin-top: 10px; max-width: 48em; color: var(--muted); }
.policy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 26px; }
.policy-article section { padding-block: 20px; border-bottom: 1px solid var(--line); }
.policy-article section:first-child { padding-top: 0; }
.policy-article section:last-child { border-bottom: 0; }
.policy-article h2 { font-size: 20px; }
.policy-article p { margin-top: 8px; color: #3c3833; font-size: 15px; }
.policy-article ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.policy-article ol strong { display: block; }
.policy-article ol p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.faq details { margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 0 16px; background: #fff; }
.faq summary { padding-block: 14px; font-size: 15px; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.policy-side {
  position: sticky; top: 24px;
  padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.policy-side h2 { font-size: 17px; }
.policy-side .wechat-inline { border: 0; padding-left: 0; margin-top: 12px; }
.policy-side .btn { width: 100%; margin-top: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .detail-sections, .service-band, .policy-grid { grid-template-columns: 1fr; }
  .policy-side { position: static; }
  .mobile-bar { display: flex; }
  .detail-cover .cover { aspect-ratio: 4 / 3; }
  body.has-mobile-bar { padding-bottom: calc(var(--bar-h) + 4px); }
}
@media (max-width: 620px) {
  .site-nav { gap: 12px; font-size: 13px; }
  .site-nav a:first-child { display: none; }
  .header-inner { min-height: 60px; }
  .hero { padding-block: 22px 26px; }
  .hero h1 { font-size: 32px; }
  .wechat-inline { border-left: 0; padding-left: 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .search-box { flex: 1 1 100%; }
  .featured { grid-template-columns: 1fr; }
  .featured-cover { aspect-ratio: 4 / 3; }
  .grid { gap: 16px 12px; }
  .tile h3 { font-size: 15px; }
  .tile-body { padding: 12px 12px 4px; }
  .tile-meta { padding: 6px 12px 12px; }
  .tile-meta .service { display: none; }
  .cover-plan { font-size: 18px; }
  .cover-kicker { display: none; }
  .detail-title { font-size: 25px; }
  .detail-price strong { font-size: 30px; }
  .footer-inner { font-size: 12px; }
}
