/* =========================================================
   省钱豹 · 购物返利站  样式表
   ========================================================= */

:root {
  --ink: #16150f;
  --ink-2: #3a382e;
  --ink-3: #6f6b5c;
  --paper: #fbf7f0;
  --paper-2: #fffdf9;
  --brand: #ff4d2e;
  --brand-d: #e63a1c;
  --gold: #ffb020;
  --mint: #0b9b6a;
  --mint-bg: #e6f7f0;
  --line: rgba(22, 21, 15, 0.1);
  --line-2: rgba(22, 21, 15, 0.06);
  --shadow: 0 18px 40px -22px rgba(22, 21, 15, 0.35);
  --shadow-lg: 0 40px 80px -40px rgba(22, 21, 15, 0.45);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --max: 1180px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand), #ff8a3d);
  color: #fff; font-size: 18px; box-shadow: 0 8px 18px -8px rgba(255, 77, 46, 0.8);
}
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 1.4px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { background: rgba(255, 77, 46, 0.09); color: var(--brand-d); }
.nav-links a.on { background: var(--ink); color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-ghost { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 8px 6px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), #ff7a3c); color: #fff; box-shadow: 0 14px 28px -14px rgba(255, 77, 46, 0.85); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(255, 77, 46, 0.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- 通用区块 ---------- */
section { padding: 78px 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--brand-d);
  background: rgba(255, 77, 46, 0.1); padding: 6px 12px; border-radius: 999px;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.8px; line-height: 1.22; font-weight: 800; }
h1 { font-size: clamp(30px, 3.9vw, 46px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; letter-spacing: -0.4px; }
.lead { font-size: 17px; color: var(--ink-2); margin: 16px 0 0; }
.muted { color: var(--ink-3); }
.tiny { font-size: 13px; line-height: 1.65; color: var(--ink-3); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 30px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -140px 0 auto; height: 520px; z-index: -1;
  background: radial-gradient(60% 60% at 20% 20%, rgba(255, 176, 32, 0.28), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(255, 77, 46, 0.2), transparent 70%);
  filter: blur(6px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr); gap: 46px; align-items: start; }
.hero h1 span {
  background: linear-gradient(120deg, var(--brand), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tag {
  font-size: 13.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2);
}
.tag b { color: var(--mint); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 42px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.hero-stats div { background: var(--paper-2); padding: 18px 16px; }
.hero-stats b { display: block; font-size: 24px; letter-spacing: -1px; }
.hero-stats span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* ---------- 计算器卡片 ---------- */
.calc {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-lg); position: relative;
}
.calc::after {
  content: "实时试算"; position: absolute; top: 18px; right: 20px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--mint);
  background: var(--mint-bg); padding: 4px 9px; border-radius: 999px;
}
.calc h3 { font-size: 17px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.field input[type="number"], .field select {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px; font-family: inherit;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); color: var(--ink);
  outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.range-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(255, 77, 46, 0.5); cursor: pointer;
}

.calc-out {
  margin-top: 20px; padding: 18px; border-radius: var(--r);
  background: linear-gradient(160deg, #0f2e24, #123c2e); color: #eafff6;
}
.calc-out .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: #9fd6c0; }
.calc-out .row > span:first-child { white-space: nowrap; }
.calc-out .row + .row { margin-top: 8px; }
.calc-out .big { font-size: 40px; font-weight: 800; letter-spacing: -1.6px; color: #fff; line-height: 1.15; }
.calc-out .big small { font-size: 16px; font-weight: 700; margin-right: 2px; }
.calc-out .pay { color: #ffd479; font-size: 19px; font-weight: 800; letter-spacing: -0.6px; }
.calc-note { margin-top: 14px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  position: relative; overflow: hidden;
}
.step b.num {
  font-size: 13px; font-weight: 800; color: var(--brand-d); letter-spacing: 1px;
}
.step h3 { margin: 8px 0 8px; font-size: 18px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.step::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, 0.22), transparent 70%);
}

/* ---------- 商品卡 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.chip {
  height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper-2); font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer;
  transition: all 0.16s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-bar .spacer { flex: 1; }
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); font-weight: 700; }
.sort-box select {
  height: 38px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-2);
  padding: 0 12px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
}

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }
.pcard {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255, 77, 46, 0.35); }
.pthumb {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 46px;
  background: linear-gradient(150deg, #f6efe3, #ece3d3); position: relative;
}
.pthumb .plat {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800;
  background: rgba(22, 21, 15, 0.82); color: #fff; padding: 3px 9px; border-radius: 999px;
  letter-spacing: 0.5px;
}
.pthumb .rate {
  position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), #ff8a3d); color: #fff;
  padding: 4px 9px; border-radius: 8px; box-shadow: 0 6px 14px -8px rgba(255, 77, 46, 0.9);
}
.pbody { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pbody .title { font-size: 15px; font-weight: 700; line-height: 1.45; min-height: 43px; }
.pbody .cat { font-size: 12px; color: var(--ink-3); font-weight: 700; letter-spacing: 0.4px; }
.prices { display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
.price-now small { font-size: 13px; margin-right: 1px; }
.price-old { font-size: 13px; color: var(--ink-3); text-decoration: line-through; }
.rebate-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  background: var(--mint-bg); color: #075c3f; border-radius: 10px; padding: 8px 11px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.rebate-line b { font-size: 17px; letter-spacing: -0.5px; margin-left: 2px; }
.rebate-line .arr { font-size: 11.5px; font-weight: 700; opacity: 0.72; }
.pline { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.pfoot { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.pfoot .btn { flex: 1; }

/* ---------- 规则表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14.5px; }
thead th {
  text-align: left; padding: 14px 18px; background: #f4ede1; font-size: 13px; letter-spacing: 0.6px;
  color: var(--ink-2); font-weight: 800; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 176, 32, 0.06); }
td b.money { color: var(--mint); font-weight: 800; }

/* ---------- 规则说明卡（含时间轴） ---------- */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.rule-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.rule-card h3 { font-size: 17px; display: flex; align-items: center; gap: 9px; }
.rule-card h3 i {
  width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 77, 46, 0.12);
  color: var(--brand-d); display: grid; place-items: center; font-style: normal; font-size: 14px;
}
.rule-card ul { margin: 12px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.rule-card li + li { margin-top: 7px; }
.rule-card li b { color: var(--ink); }
.rule-card .field input { max-width: 220px; }

.timeline { display: grid; gap: 0; margin-top: 8px; }
.tl-item { display: grid; grid-template-columns: 116px 1fr; gap: 18px; padding: 16px 0; border-top: 1px dashed var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-item dt { font-size: 13px; font-weight: 800; color: var(--brand-d); letter-spacing: 0.3px; }
.tl-item dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- 强调条 ---------- */
.notice {
  border-left: 4px solid var(--brand); background: rgba(255, 77, 46, 0.06);
  border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 15px 18px; font-size: 14.5px; color: var(--ink-2);
}
.notice b { color: var(--brand-d); }
.notice.mint { border-color: var(--mint); background: var(--mint-bg); color: #08492f; }
.notice.mint b { color: #075c3f; }

/* ---------- 数据条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.metrics div { background: var(--paper-2); padding: 24px 20px; }
.metrics b { display: block; font-size: 30px; letter-spacing: -1.4px; line-height: 1.1; }
.metrics b em { font-style: normal; font-size: 16px; margin-left: 2px; color: var(--ink-3); }
.metrics span { font-size: 13px; color: var(--ink-3); font-weight: 700; }

/* ---------- 深色 CTA ---------- */
.cta-dark {
  background: linear-gradient(150deg, #14130e, #232118); color: #fff; border-radius: var(--r-lg);
  padding: 46px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-dark::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.45), transparent 68%);
}
.cta-dark h2 { color: #fff; }
.cta-dark p { color: rgba(255, 255, 255, 0.72); margin: 14px 0 0; font-size: 15.5px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.cta-dark .btn-ghost:hover { border-color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
details.qa {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 4px 20px; transition: border-color 0.18s;
}
details.qa[open] { border-color: rgba(255, 77, 46, 0.4); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-3); line-height: 1;
  transition: transform 0.2s;
}
details.qa[open] summary::after { transform: rotate(45deg); color: var(--brand); }
details.qa .ans { padding: 0 0 18px; font-size: 14.5px; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 14px; }
details.qa .ans p { margin: 0 0 8px; }
details.qa .ans p:last-child { margin: 0; }

/* ---------- 页脚 ---------- */
footer { background: #14130e; color: rgba(255, 255, 255, 0.66); padding: 56px 0 34px; margin-top: 40px; font-size: 14px; }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.5px; margin-bottom: 12px; }
footer a:hover { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }
footer .brand-line { color: rgba(255, 255, 255, 0.5); font-size: 13px; margin-top: 14px; max-width: 300px; }
.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.f-bottom a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.f-bottom a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- 页面头部（内页） ---------- */
.page-head { padding: 52px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 176, 32, 0.1), transparent); }
.breadcrumb { font-size: 13px; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand-d); }

/* ---------- 会员等级卡片 ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; }
.tier.hot { border-color: var(--brand); box-shadow: var(--shadow); }
.tier .badge {
  position: absolute; top: -11px; left: 24px; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--brand), #ff8a3d); color: #fff; padding: 4px 11px; border-radius: 999px;
}
.tier h3 { font-size: 17px; }
.tier .big-rate { font-size: 42px; font-weight: 800; letter-spacing: -2px; margin: 6px 0 2px; }
.tier .big-rate small { font-size: 16px; font-weight: 700; }
.tier ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.tier ul li::before { content: "✓"; color: var(--mint); font-weight: 800; margin-right: 8px; }

/* ---------- 提现进度条 ---------- */
.progress { height: 9px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), #34d399); transition: width 0.4s; }

/* ---------- 表格小徽标 ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.pill.g { background: var(--mint-bg); color: #075c3f; }
.pill.r { background: rgba(255, 77, 46, 0.12); color: var(--brand-d); }
.pill.n { background: rgba(22, 21, 15, 0.08); color: var(--ink-2); }

/* ---------- 账户页宽卡 ---------- */
.account-wide { grid-column: span 2; }
@media (max-width: 980px) { .account-wide { grid-column: auto; } }

/* ---------- 动画 ----------
   默认可见（无 JS / 打印 / 爬虫都能看到内容）；
   只有被 JS 判定为「视口下方」的元素才加 .pre 隐藏，进入视口后移除。 */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid, .cta-dark, #rules-two-col { grid-template-columns: 1fr; }
  .cta-dark { padding: 32px; }
  .steps, .tiers { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .hero-stats { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-right .btn { display: none; }
  .hero-stats b, .metrics b { font-size: 22px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .f-grid { grid-template-columns: 1fr; }
  .calc { padding: 20px; }
  .cta-dark { padding: 26px; }
  .hero { padding-top: 40px; }
}
