/* ============================================================
   T9店长助手 · 官网样式
   品牌色直接沿用产品本身的调色板（轻会员系统 miniprogram/app.wxss），
   官网和 App 视觉一致：--brand #2563eb 主蓝、--bg #f7f8fa 背景、--ink #0f172a 文字。
   纯静态、无外部依赖（不引 CDN，内网/无网也能正常显示）。
   ============================================================ */

:root {
  /* 文字 */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;

  /* 主色 */
  --brand: #2563eb;
  --brand-2: #3b82f6;
  --brand-soft: #eff6ff;
  --brand-deep: #1d4ed8;

  /* 功能色 */
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warning: #f97316;
  --warning-soft: #fff7ed;

  /* 背景与线条 */
  --bg: #f7f8fa;
  --line: #e2e8f0;
  --fill: #f1f5f9;
  --fill-2: #f8fafc;
  --white: #fff;

  /* 圆角与阴影 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);

  /* 版心 */
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; }
h2 { font-size: clamp(23px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

.wrap-narrow { max-width: 820px; }

/* 线性图标统一描边风格 */
.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; margin-top: 22px; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 99, 235, .34); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* （原 .btn-white 只用于已删除的「联系我们」板块，一并移除） */

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .05);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; font-weight: 700; }
.brand-text small { font-size: 12px; color: var(--muted-2); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--brand); background: var(--brand-soft); }
.nav-link.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
}

/* ========== 首屏 ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft) 55%, var(--bg) 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
}
.blob-1 { width: 460px; height: 460px; background: #bfdbfe; top: -160px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: #ddd6fe; bottom: -180px; left: -120px; opacity: .38; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--muted);
}
.pill .ico { width: 15px; height: 15px; color: var(--brand); }

.hero h1 { margin: 20px 0 0; }
.hero h1 em { font-style: normal; color: var(--brand); }

.hero-desc {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted);
  max-width: 30em;
}

/* 首屏二维码：直接把码摆出来，不再用"点击跳转"的按钮
   （两个码并排，各带一行小字说明；窄屏自动收缩，不会横向溢出） */
.hero-qr {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 30px);
  margin-top: 30px;
}

.hero-qr-item { margin: 0; text-align: center; }

.hero-qr-item img,
.hero-qr-item .qr-placeholder {
  width: clamp(124px, 16vw, 168px);
  height: auto;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

/* 万一图片缺失：占位块要跟二维码一样大，但字号得收小才放得下 */
.hero-qr-item .qr-placeholder { font-size: 11px; padding: 4px; gap: 4px; }

.hero-qr-item figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-qr-item figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-2);
}

/* 搜索引导：和二维码配套的另一条路径（微信里搜小程序名） */
.hero-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 20px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* 窄屏放不下时让文字自己换行，而不是把胶囊撑破 */
.hero-search > span { min-width: 0; }

.hero-search b { color: var(--ink); font-weight: 600; }
.hero-search .ico { width: 15px; height: 15px; flex-shrink: 0; color: var(--brand); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.hero-meta li { position: relative; padding-left: 18px; }
.hero-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

/* 产品实拍：真实小程序截图，套一层简约机身框（深色边框 + 圆角 + 投影） */
.hero-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shot-frame {
  padding: 8px;
  border-radius: 36px;
  background: #0f172a;
  box-shadow: var(--shadow-lg);
}

.shot-frame img {
  display: block;
  /* 240px 显示宽度 ≈ 原图 486px 的 2 倍密度，高分屏也清晰 */
  width: min(240px, 68vw);
  height: auto;
  border-radius: 28px;
}

.shot-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
}

/* ========== 通用区块 ========== */
.section { padding: clamp(56px, 7.5vw, 88px) 0; }
.section-soft { background: #fff; }

.section-head { max-width: 660px; margin: 0 auto 46px; text-align: center; }

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

.section-head h2 { margin-top: 16px; }
.section-desc { margin-top: 14px; color: var(--muted); font-size: 16px; }

/* ========== 卡片与栅格 ========== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 28px);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }

.feature .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}
.feature .card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* 功能卡里的小标签（如「消费通知」卡片的两种通知方式） */
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.mini-tags li {
  padding: 4px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

/* 两端协同：两张卡，居中收窄一点更稳 */
.terminals-grid { max-width: 880px; margin: 0 auto; }

.terminal { position: relative; padding-top: 34px; }
.terminal-tag {
  position: absolute;
  top: 18px;
  left: 28px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.terminal h3 { margin-top: 26px; }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

/* ========== 行业 ========== */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--ink-2);
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.chips li:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

.scenario { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.scenario-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.scenario-item b { display: block; font-size: 16px; }
.scenario-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ========== 价格：只有一档「永久免费」，居中一张卡 ========== */
.free-plan {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 4vw, 46px) clamp(22px, 3vw, 40px);
}

.free-plan-badge {
  display: inline-block;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: .04em;
}

.free-plan-note { margin-top: 16px; font-size: 16px; color: var(--muted); }

.free-plan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  max-width: 560px;
  margin: 28px auto 0;
  text-align: left;
}

/* .ticks li 默认带 margin-top，放进网格会两列对不齐，这里去掉 */
.free-plan-list li { margin-top: 0; }

.free-plan-cta { margin-top: 32px; }

/* ========== 二维码 ========== */
.qr-grid { max-width: 860px; margin: 0 auto; }

.qr-card { text-align: center; padding: 32px 28px 28px; }
.qr-desc { margin-top: 8px; color: var(--muted); font-size: 15px; }

.qr-box {
  width: min(236px, 68vw);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 22px auto 0;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qr-box:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }

/* 图片缺失时的占位（小程序码还没上传时不会破版） */
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--fill-2);
  border: 1px dashed #cbd5e1;
  color: var(--muted-2);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  cursor: default;
}
.qr-placeholder b { color: var(--muted); font-size: 14px; }

.qr-tip { margin-top: 16px; color: var(--muted-2); font-size: 14px; }

/* ========== FAQ ========== */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 4px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted-2);
  border-bottom: 2px solid var(--muted-2);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }

/* （「联系我们」板块已按需求删除，相关样式一并移除） */

/* ========== 页脚 ========== */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 44px 0 28px; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand strong { font-size: 16px; }
.footer-brand p { color: var(--muted-2); font-size: 13px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--brand); }

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--fill);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
}

/* 备案信息：工信部备案 + 公安网备并排，颜色低调、hover 时才提亮 */
.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-icp a { color: inherit; transition: color .2s ease; }
.footer-icp a:hover { color: var(--brand); }

/* 公安网备：按惯例带一个盾牌小标 */
.beian-gongan { display: inline-flex; align-items: center; gap: 4px; }
.beian-gongan svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== 二维码放大弹窗 ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(3px);
}

.lightbox-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop .2s ease;
}
.lightbox-box img { width: min(72vw, 340px); height: auto; margin: 0 auto; }
.lightbox-box p { margin-top: 14px; color: var(--muted); font-size: 14px; }

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted-2);
  cursor: pointer;
}
.lightbox-close:hover { color: var(--ink); }

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ========== 滚动出现动画 ========== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .qr-box:hover, .chips li:hover { transform: none; }
}

/* ========== 响应式 ========== */
@media (max-width: 1000px) {
  .hero { padding: 56px 0 64px; }
  /* 单列时保持"文字在上、实拍图在下"：首屏第一眼应该是价值主张，不是插图 */
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-desc { font-size: 16px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .scenario { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* 移动端：导航收进抽屉，点开后纵向铺满 */
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 16px; }

  .header-actions .btn { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .free-plan-list { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .card { padding: 24px; }

  /* 窄屏这条引导可能占两行：改成左对齐的圆角块，胶囊造型会显怪 */
  .hero-search {
    align-items: flex-start;
    border-radius: var(--radius-md);
    font-size: 13px;
  }
  .hero-search .ico { margin-top: 2px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 小屏（320~380px，如 iPhone SE）：再收紧一层，避免品牌副标题/备案号被挤成两行 */
@media (max-width: 380px) {
  .brand-text small { display: none; }
  .hero-meta { gap: 6px 14px; font-size: 13px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
