/* ============================================
   临期管家 · 产品官网样式
   配色思路：从 LOGO1.png 提取的天蓝 + 白色 + Apple 风的留白与字号
   ============================================ */

:root {
  --bg: #F4FAFE;          /* 近白带蓝意的主背景（贴合 LOGO 底色） */
  --bg-alt: #E2EEF7;      /* 浅蓝 section */
  --ink: #0F1B2A;         /* 冷调深字 */
  --ink-2: #4A5868;       /* 副文字 */
  --ink-3: #8696A8;       /* 提示文字 */
  --line: rgba(15,40,80,.08);
  --blue-1: #4FA8E0;      /* 主天蓝（LOGO 主色 — 收纳盒、小铃铛背景） */
  --blue-2: #8FC4ED;      /* 浅天蓝 */
  --blue-3: #C9DEEC;      /* 极浅天蓝（盒子高光） */
  --blue: #0071E3;        /* Apple 风 CTA 蓝（按钮保留强对比） */
  --blue-d: #0058B0;
  --warm: #EAF3FA;        /* 冷调浅蓝 section 背景 */
  --dark: #0F1B2A;        /* 深色 section 背景（冷调深蓝） */
  --dark-ink: #F0F6FC;    /* 深底文字 */
  --shadow: 0 20px 60px rgba(79,168,224,.20), 0 4px 12px rgba(0,0,0,.04);
  --r: 18px;
  --r-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ 顶部导航 ============ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(244,250,254,.9);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.topnav.scrolled {
  background: rgba(244,250,254,.92);
  border-bottom-color: var(--line);
}
.topnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 52px;
  padding: 0 22px;
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 17px; color: var(--ink);
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links {
  list-style: none; display: flex; gap: 22px;
  margin: 0; padding: 0; flex: 1;
}
.nav-links a {
  font-size: 13.5px; color: var(--ink-2); font-weight: 400;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  font-size: 13.5px; color: var(--ink); font-weight: 500;
  background: rgba(0,0,0,.04);
  padding: 6px 14px; border-radius: 999px;
  transition: background .15s;
}
.nav-cta:hover { background: rgba(0,0,0,.08); }

/* ============ Hero ============ */
.hero {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--blue-3) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero-text { max-width: 720px; }
.hero-text h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 16px;
  background: linear-gradient(180deg, #0F1B2A 0%, #2A3A4D 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500; color: var(--ink-2);
  margin: 0 0 18px; letter-spacing: -0.01em;
}
.hero-text p {
  font-size: 17px; color: var(--ink-3);
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  font-size: 12.5px; color: var(--ink-3);
  letter-spacing: 0.04em;
}
.hero-art {
  position: absolute; inset: auto 0 -120px 0;
  display: flex; justify-content: center;
  pointer-events: none;
}
.hero-logo-wrap {
  width: 320px; height: 320px;
  border-radius: 64px;
  background: linear-gradient(180deg, var(--blue-3) 0%, var(--blue-2) 100%);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(40px) rotate(-3deg);
  animation: floatLogo 6s ease-in-out infinite;
}
.hero-logo { width: 200px; height: 200px; border-radius: 40px; }
@keyframes floatLogo {
  0%, 100% { transform: translateY(40px) rotate(-3deg); }
  50% { transform: translateY(20px) rotate(-3deg); }
}

/* ============ 通用按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500;
  border-radius: 999px; padding: 12px 24px;
  transition: all .2s ease; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--blue); color: #fff;
  padding: 14px 28px; font-size: 16px;
  box-shadow: 0 6px 20px rgba(0,113,227,.32);
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn-link {
  background: transparent; color: var(--blue);
  padding: 12px 4px; font-size: 16px;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.light { color: var(--blue-2); }

/* ============ Section 通用 ============ */
.band { padding: 110px 24px; }
.band-light { background: var(--bg); }
.band-dark  { background: var(--dark); color: var(--dark-ink); }
.band-warm  { background: var(--warm); }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-text { max-width: 560px; }
.band-text.center { text-align: center; margin: 0 auto; max-width: 720px; }
.kicker {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue-1);
  margin: 0 0 14px;
}
.band-dark .kicker { color: var(--blue-2); }
.band-text h3 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 20px;
}
.band-text h2 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 16px;
}
.band-text p {
  font-size: 18px; color: var(--ink-2);
  margin: 0 0 24px; line-height: 1.6;
}
.band-dark .band-text p { color: rgba(245,245,247,.7); }
.subtle { color: var(--ink-3); font-size: 16px; }

/* 两栏 */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.two-col.reverse .band-text { order: 2; }
.two-col.reverse .band-art  { order: 1; }

/* ============ 设备 mockup 通用 ============ */
.mockup {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px;
  max-width: 480px; margin: 0 auto;
}
.mockup-bar {
  display: flex; gap: 6px; padding: 6px 8px 12px;
  border-bottom: 1px solid var(--line);
}
.mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #E5E5EA;
}
.mockup-screen {
  padding: 28px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}

/* 扫码 mockup */
.mockup-scan .scan-frame {
  position: relative;
  width: 220px; height: 140px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--warm) 0%, var(--blue-3) 100%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.scan-corners i {
  position: absolute; width: 22px; height: 22px;
  border: 2.5px solid var(--blue-1);
}
.scan-corners i:nth-child(1) { top: 10px; left: 10px;  border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.scan-corners i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.scan-corners i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.scan-corners i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.scan-line {
  position: absolute; left: 12px; right: 12px; top: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-1), transparent);
  animation: scanline 2.4s linear infinite;
}
@keyframes scanline {
  0% { transform: translateY(0); }
  50% { transform: translateY(112px); }
  100% { transform: translateY(0); }
}
.mockup-barcode {
  width: 140px; height: 50px;
  background:
    repeating-linear-gradient(90deg, #1D1D1F 0 2px, transparent 2px 4px,
                              #1D1D1F 4px 5px, transparent 5px 8px,
                              #1D1D1F 8px 11px, transparent 11px 13px,
                              #1D1D1F 13px 15px, transparent 15px 19px,
                              #1D1D1F 19px 21px, transparent 21px 23px,
                              #1D1D1F 23px 26px, transparent 26px 28px,
                              #1D1D1F 28px 31px, transparent 31px 33px,
                              #1D1D1F 33px 35px, transparent 35px 38px);
  border-radius: 4px;
}
.scan-hint {
  font-size: 13px; color: var(--ink-3);
}

/* 提醒 mockup */
.mockup-bell {
  background: linear-gradient(180deg, #162338 0%, #0A1623 100%);
  color: #fff;
  padding: 40px 26px;
}
.bell-card {
  max-width: 360px; margin: 0 auto;
}
.bell-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue-1) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(79,168,224,.4);
  margin-bottom: 18px;
}
.bell-title {
  font-size: 22px; font-weight: 600; margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.bell-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: rgba(255,255,255,.85);
}
.bell-item b { color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-warn { background: var(--blue-2); }
.dot-danger { background: #FF453A; }

/* 列表 mockup */
.mockup-list { padding: 22px 24px; }
.list-row {
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr;
  align-items: center;
  padding: 12px 4px;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
.list-row > span:last-child { text-align: right; }
.list-head {
  font-size: 12px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
.tag {
  display: inline-block;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  font-weight: 500;
}
.tag-warn { background: #E2EEF7; color: #0F5A95; }
.tag-danger { background: #FFD7D2; color: #C2301C; }
.tag-ok { background: #E5F1FF; color: #0066CC; }

/* ============ 三步上手 ============ */
.step-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 56px;
}
.step-card {
  background: #fff;
  border-radius: var(--r);
  padding: 32px 28px;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(79,168,224,.18);
}
.step-num {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue-1) 100%);
  color: #fff; font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(79,168,224,.32);
}
.step-card h4 {
  font-size: 20px; font-weight: 600; margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step-card p {
  font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.6;
}

/* ============ 下载入口 ============ */
.dl-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 48px;
}
.dl-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border-radius: var(--r);
  padding: 22px 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(79,168,224,.20);
}
.dl-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(180deg, var(--warm) 0%, var(--blue-3) 100%);
  color: var(--blue-1);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.dl-text { flex: 1; min-width: 0; }
.dl-platform { font-size: 16px; font-weight: 600; }
.dl-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.dl-cta { color: var(--blue); font-size: 14px; font-weight: 500; flex: none; }
.dl-tip { text-align: center; margin-top: 24px; font-size: 13px; }

/* ============ FAQ ============ */
.faq-list { margin-top: 40px; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item {
  background: #fff;
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: 0 6px 22px rgba(0,0,0,.06); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px;
  font-size: 16px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px; font-weight: 300; color: var(--ink-3);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0; padding: 0 22px 18px;
  font-size: 14.5px; color: var(--ink-2); line-height: 1.7;
}

/* ============ 页脚 ============ */
.site-foot {
  background: var(--bg-alt);
  padding: 56px 24px 28px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.foot-cols {
  max-width: var(--max);
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.foot-col h5 {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin: 0 0 14px; letter-spacing: 0.02em;
}
.foot-col a {
  display: block; font-size: 13.5px; color: var(--ink-2);
  margin-bottom: 8px;
  transition: color .15s;
}
.foot-col a:hover { color: var(--blue-1); }
.foot-bar {
  max-width: var(--max);
  margin: 22px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--ink-3);
  flex-wrap: wrap; gap: 8px;
}

/* ============ 滚动渐入 ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .topnav-inner { gap: 12px; }
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .two-col.reverse .band-text { order: 1; }
  .two-col.reverse .band-art  { order: 2; }
  .step-grid, .dl-grid, .foot-cols {
    grid-template-columns: 1fr;
  }
  .band { padding: 72px 22px; }
  .hero { padding: 100px 22px 60px; min-height: auto; }
  .hero-logo-wrap { width: 220px; height: 220px; }
  .hero-logo { width: 140px; height: 140px; }
}
@media (max-width: 480px) {
  .dl-card { flex-wrap: wrap; }
  .dl-cta { width: 100%; text-align: right; }
}
