/* ============================================================
   打卡存钱局 · 宣传站样式
   视觉延续小程序配色：橙金主色 + 奶油底色 + 深棕文字
   ============================================================ */

:root {
  --primary: #ff9f1c;
  --primary-light: #ffbf69;
  --primary-dark: #e8871a;
  --accent: #2ec4b6;
  --gold: #ffb800;
  --bg: #fff8ee;
  --bg-soft: #fff3e2;
  --card: #ffffff;
  --ink: #33261a;
  --ink-2: #6b5d4f;
  --ink-3: #a89888;
  --line: #f0e6d8;
  --shadow-sm: 0 4px 14px rgba(120, 80, 30, 0.07);
  --shadow-md: 0 14px 40px rgba(120, 80, 30, 0.1);
  --shadow-lg: 0 30px 70px rgba(120, 80, 30, 0.16);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
em { font-style: normal; }

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

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #ffb03a, var(--primary));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 159, 28, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 159, 28, 0.42); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #e8d8c2; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 238, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(120, 80, 30, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1d8, #ffe0b0);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 159, 28, 0.18);
}
.brand-name { font-size: 18px; letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; transition: color 0.2s ease; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 10px 22px; font-size: 15px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob-1 { width: 460px; height: 460px; background: #ffd9a0; top: -160px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: #ffe9c9; top: 180px; left: -140px; }
.blob-3 { width: 300px; height: 300px; background: #c8f2ee; bottom: -160px; right: 30%; opacity: 0.4; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 em {
  background: linear-gradient(100deg, var(--primary-dark), var(--primary) 45%, #ffc65c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 22px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 30em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-3);
}
.hero-points span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(46, 196, 182, 0.14);
  color: #1f9e93;
  font-size: 11px;
  margin-right: 6px;
}

/* ---------------- 手机模型 ---------------- */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 316px;
  height: 636px;
  border-radius: 44px;
  background: #2b2118;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-2.5deg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-2.5deg) translateY(-12px); }
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  background: #2b2118;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #fff9ef 0%, #fff8ee 42%, #fffdf9 100%);
  padding: 40px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; }
.app-hi { font-size: 14.5px; font-weight: 700; }
.app-sub { font-size: 11.5px; color: var(--ink-3); }
.app-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  font-size: 17px;
  box-shadow: var(--shadow-sm);
}

.ring-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff3df, #ffe6bf);
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
}
.ring { width: 88px; height: 88px; flex: none; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 10; }
.ring-fg {
  fill: none;
  stroke: url(#g) var(--primary);
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 105;
  filter: drop-shadow(0 2px 6px rgba(255, 159, 28, 0.4));
}
.ring-center {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.ring-center strong { font-size: 17px; line-height: 1.1; }
.ring-center span { font-size: 9.5px; color: var(--ink-2); }
.ring-side { flex: 1; min-width: 0; }
.ring-label { font-size: 10.5px; color: var(--ink-3); }
.ring-value { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.ring-value i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--ink-3); }
.ring-days { font-size: 10.5px; color: #e2681f; margin-top: 4px; }

.app-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.app-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.app-card-head p { font-size: 12px; font-weight: 700; }
.app-card-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.app-tag {
  margin-left: auto;
  font-size: 10px;
  color: var(--primary-dark);
  background: #fff3df;
  padding: 2px 8px;
  border-radius: 999px;
}
.app-row { display: flex; align-items: center; gap: 10px; }
.app-icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: #fff6e8;
  display: grid; place-items: center;
  font-size: 17px;
}
.app-row-text { flex: 1; min-width: 0; }
.app-row-text p { font-size: 12.5px; font-weight: 600; }
.app-row-text span { font-size: 10px; color: var(--ink-3); }
.app-btn {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ffb03a, var(--primary));
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255, 159, 28, 0.32);
}
.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 6px;
  box-shadow: var(--shadow-sm);
}
.app-stats div { text-align: center; }
.app-stats strong { display: block; font-size: 13px; }
.app-stats span { font-size: 9.5px; color: var(--ink-3); }

.float-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.float-a { top: 84px; left: -6px; animation: floaty2 6s ease-in-out infinite; }
.float-b { bottom: 106px; right: -10px; color: #1f9e93; animation: floaty2 6s ease-in-out infinite 1.2s; }
@keyframes floaty2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------------- 数字条 ---------------- */
.strip { padding: 18px 0 8px; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 10px;
}
.strip-item { text-align: center; position: relative; }
.strip-item + .strip-item::before {
  content: "";
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: var(--line);
}
.strip-item strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-dark); }
.strip-item .unit { font-size: 15px; font-weight: 700; margin: 0 2px; }
.strip-item span { font-size: 13px; color: var(--ink-3); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, #fff3e2 0%, #fff8ee 100%); }
.section-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  background: rgba(255, 159, 28, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 800;
}
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------------- 功能卡 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 191, 105, 0.22), transparent 70%);
  transition: transform 0.4s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ecdcc6; }
.feature:hover::after { transform: scale(1.25); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.i-1 { background: #fff1d8; }
.i-2 { background: #e2f7f3; }
.i-3 { background: #fff4d6; }
.i-4 { background: #ffeae0; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 15px; }

/* ---------------- 步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #ffb03a, var(--primary));
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.step-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-body p { font-size: 14.5px; color: var(--ink-2); }

/* ---------------- 徽章墙 ---------------- */
.badge-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bcard .bicon {
  width: 46px; height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.bcard p { font-size: 13.5px; font-weight: 700; }
.bcard small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.bcard .series {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
}

/* ---------------- CTA ---------------- */
.cta { padding: 20px 0 84px; }
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  background: linear-gradient(120deg, #ffb84d 0%, var(--primary) 55%, #f28c0f 100%);
  border-radius: 30px;
  padding: 46px 48px;
  color: #fff;
  box-shadow: 0 26px 60px rgba(242, 140, 15, 0.32);
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  top: -160px; right: 120px;
}
.cta-copy { position: relative; }
.cta-copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.cta-copy p { margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, 0.92); }
.cta-copy strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cta-tags { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.cta-tags span {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.qr-box {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 16px 36px rgba(120, 60, 0, 0.24);
  display: grid;
  place-items: center;
  flex: none;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.qr-fallback { display: none; text-align: center; }
.qr-empty .qr-fallback { display: block; }
.qr-fallback span {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 6px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px dashed rgba(255, 159, 28, 0.5);
}
.qr-fallback small { font-size: 10px; color: var(--ink-3); line-height: 1.4; display: block; }

/* ---------------- FAQ ---------------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease;
}
.faq-list details[open] { border-color: rgba(255, 159, 28, 0.35); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.25s ease, color 0.25s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--primary); }
.faq-list p { padding: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------------- 页脚 ---------------- */
.footer {
  background: #2b2118;
  color: rgba(255, 255, 255, 0.72);
  padding: 46px 0 26px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.footer-name { font-size: 17px; font-weight: 800; color: #fff; }
.footer-slogan { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------------- 滚动出现 ----------------
   仅在 JS 可用（html.js）时才做隐藏动画，保证降级可见 */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .float-a, .float-b { animation: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .badge-wall { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta-tags { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .nav-cta { margin-left: auto; padding: 9px 18px; font-size: 14px; }
  .hero { padding: 44px 0 24px; }
  .phone { width: 286px; height: 576px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 22px 8px; }
  .strip-item + .strip-item::before { display: none; }
  .strip-item:nth-child(even)::before {
    display: block;
    content: "";
    position: absolute;
    left: 0; top: 12%; bottom: 12%;
    width: 1px;
    background: var(--line);
  }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .badge-wall { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { padding: 34px 24px; border-radius: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 15.5px; }
  .hero-actions .btn { width: 100%; }
  .float-badge { display: none; }
  .badge-wall { grid-template-columns: repeat(2, 1fr); }
  .strip-item strong { font-size: 25px; }
  .footer-bottom { flex-direction: column; }
}
