/* =====================================================================
   携转小助手 · 官网设计系统 v2（对标 省算云 shengsuanyun.com）
   设计语言：蓝→青主渐变 + 一抹紫营造 AI 科技感；干净企业级 SaaS 留白；
   玻璃态导航、光晕 Hero、渐变强调字、精致卡片/按钮、暗色模式、滚动入场。
   注意：本文件保留 site.js 依赖的全部类名与 ID，仅升级视觉层。
   ===================================================================== */

/* 设计 Token 统一来源：颜色 / 间距 / 圆角 / 阴影集中到 tokens.css
   修改品牌视觉只需改 assets/tokens.css，全站（含分站页）自动生效。 */
@import url('tokens.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font);
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- 小标题 eyebrow + 渐变强调字 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--brand); margin: 0 0 12px; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--grad); display: inline-block;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- 导航（玻璃态） ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; height: 66px; gap: 22px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: .5px; display: flex; align-items: center; gap: 9px; }
.logo .dot {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  box-shadow: 0 4px 12px rgba(47,107,255,.35);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }

/* 主题切换按钮 */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: .15s var(--ease); margin-left: 4px;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 12px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-size: 15px;
  transition: .18s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(47,107,255,.28); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 10px 26px rgba(47,107,255,.36); transform: translateY(-1px); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; }

/* ---------- Hero（光晕网格 + 信任数据条） ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 84px 0 70px;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(124,92,255,.42), transparent 60%),
    radial-gradient(900px 520px at -5% 112%, rgba(19,194,163,.34), transparent 55%),
    linear-gradient(135deg, #0b1f4d 0%, #1f4fd6 58%, #13c2a3 135%);
}
.hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.55), transparent 70%);
  filter: blur(24px); top: -150px; right: 6%; opacity: .55; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px;
  left: -160px; bottom: -220px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
/* 细微网格纹理 */
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 6px 14px; border-radius: 999px; margin: 0 0 18px;
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 0 4px rgba(110,231,183,.25); }
.hero h1 { font-size: 44px; line-height: 1.22; margin: 0 0 18px; font-weight: 800; letter-spacing: -.01em; }
.hero p.sub { font-size: 18px; opacity: .92; max-width: 640px; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.24); border-color: #fff; }
.hero-stats {
  display: flex; gap: 0; margin-top: 46px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px;
}
.hero-stats > div { padding: 0 34px; position: relative; }
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div + div::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px;
  background: rgba(255,255,255,.22);
}
.hero-stats .n { font-size: 30px; font-weight: 800; }
.hero-stats .l { opacity: .86; font-size: 14px; margin-top: 2px; }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section h2 { font-size: 30px; margin: 0 0 10px; font-weight: 800; letter-spacing: -.01em; position: relative; }
.section .lead { color: var(--muted); margin: 0 0 34px; font-size: 16px; max-width: 720px; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- 网格 / 卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; box-shadow: 0 6px 16px rgba(47,107,255,.25);
}
.icon svg { width: 24px; height: 24px; stroke: #fff; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; box-shadow: var(--shadow-sm); transition: .2s var(--ease); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step .no { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.step h4 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 资讯列表 ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .2s var(--ease); box-shadow: var(--shadow-sm); }
.article:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article .thumb { height: 158px; background: var(--grad); position: relative; }
.article .thumb::after { content: "携转"; position: absolute; right: 14px; bottom: 12px; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 700; letter-spacing: 1px; }
.article .body { padding: 18px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand); background: rgba(47,107,255,.10); border-radius: 7px; padding: 3px 10px; margin-bottom: 10px; }
.article h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.article .meta { color: var(--muted); font-size: 13px; }

/* ---------- 区县查询 ---------- */
.search { display: flex; gap: 10px; max-width: 540px; margin-bottom: 20px; flex-wrap: wrap; }
.search input { flex: 1; min-width: 200px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; font-size: 15px; outline: none; background: var(--card); color: var(--ink); transition: border-color .15s; }
.search input:focus { border-color: var(--brand); }
.district-result { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.badge.open { background: rgba(19,194,163,.14); color: var(--ok); }
.badge.full { background: rgba(255,91,91,.12); color: var(--danger); }
.badge.review { background: rgba(255,154,60,.14); color: var(--warn); }
.badge.unknown { background: var(--bg-2); color: var(--muted); }

/* ---------- 详情 ---------- */
.article-detail { max-width: 760px; margin: 0 auto; }
.article-detail h1 { font-size: 30px; line-height: 1.35; margin: 0 0 12px; }
.article-detail .meta { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.article-detail p { margin: 0 0 16px; font-size: 16px; }
.back { color: var(--brand); cursor: pointer; display: inline-block; margin-bottom: 18px; font-weight: 600; }

/* ---------- 页脚 ---------- */
footer { background: #0b1424; color: #c6d0e0; padding: 52px 0 32px; margin-top: 36px; position: relative; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
footer a { color: #c6d0e0; font-size: 14px; display: block; margin-bottom: 8px; transition: color .15s; }
footer a:hover { color: #fff; }
footer .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; color: #8492a8; font-size: 13px; }

/* ---------- 数据看板 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; transition: .2s var(--ease); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card .sn { font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.stat-card .sn .su { font-size: 18px; margin-left: 2px; }
.stat-card .sl { margin-top: 8px; font-weight: 600; font-size: 15px; }
.stat-card .ss { margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ---------- 行业机会 ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ind-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; transition: .2s var(--ease); }
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ind-card .in { font-size: 34px; font-weight: 800; color: var(--brand-2); line-height: 1.1; }
.ind-card .in .iu { font-size: 16px; margin-left: 2px; }
.ind-card .il { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- FAQ 折叠 ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-weight: 600; cursor: pointer; }
.faq-q .faq-ar { color: var(--muted); transition: .2s; }
.faq-item.open .faq-q .faq-ar { transform: rotate(180deg); color: var(--brand); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 20px; color: var(--muted); line-height: 1.7; transition: max-height .28s ease, padding .28s ease; }
.faq-a.open { max-height: 360px; padding: 0 20px 16px; }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(135deg, #0b1f4d, #1f4fd6 60%, #13c2a3); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 80% -20%, rgba(124,92,255,.4), transparent 60%); pointer-events: none; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.24); }

/* ---------- 加盟权益 / 价格 / ROI / 对比 / 案例 ---------- */
#franchiseBenefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 780px; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: .2s var(--ease); }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.hot { border-color: var(--brand); box-shadow: 0 12px 34px rgba(47,107,255,.16); }
.price-card .pt { font-weight: 700; font-size: 17px; }
.price-card .ribbon { position: absolute; top: 18px; right: 18px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.price-card .pf { font-size: 36px; font-weight: 800; color: var(--brand); margin: 12px 0 8px; }
.price-card .pf .pu { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-card .pn { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.price-card .pm { font-size: 13px; color: var(--brand-2); margin: 0; }

.roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roi-cell { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.roi-cell.hl { background: rgba(47,107,255,.08); border-color: var(--brand); }
.roi-cell .rn { font-size: 24px; font-weight: 800; color: var(--ink); }
.roi-cell.hl .rn { color: var(--brand); }
.roi-cell .rl { margin-top: 6px; color: var(--muted); font-size: 13px; }

.cmp { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.cmp th { background: rgba(47,107,255,.06); font-weight: 700; }
.cmp td:first-child { font-weight: 600; color: var(--ink); }
.cmp tr:last-child td { border-bottom: 0; }

.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: .2s var(--ease); }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case-h { font-size: 17px; margin-bottom: 10px; }
.case-m { color: var(--ink); font-size: 14px; margin-bottom: 12px; }
.case-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.case-stats span { background: rgba(47,107,255,.10); color: var(--brand); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.case-q { color: var(--muted); font-size: 14px; border-left: 3px solid var(--brand-2); padding-left: 12px; }

/* ---------- Offer ---------- */
.offer { background: linear-gradient(135deg, #fff7ec, #fff); border: 1px solid #f3d9a6; border-radius: var(--radius); padding: 28px; max-width: 780px; }
.offer h3 { margin: 0 0 14px; font-size: 20px; color: #b9760a; }
.offer-list { margin: 0 0 20px; padding-left: 20px; }
.offer-list li { margin-bottom: 8px; color: var(--ink); }

/* =====================================================================
   新增：省算云风格板块（用于设计预览 / 后续落地）
   ===================================================================== */

/* 场景化图文交错 */
.scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 18px 0; }
.scenario + .scenario { margin-top: 36px; }
.scenario.rev .sc-media { order: 2; }
.scenario .sc-body .eyebrow { margin-bottom: 10px; }
.scenario .sc-body h3 { font-size: 24px; margin: 0 0 12px; font-weight: 800; }
.scenario .sc-body p { color: var(--muted); margin: 0 0 16px; }
.scenario .sc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.scenario .sc-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.scenario .sc-list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--brand-2); margin-top: 2px; }
.sc-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--grad-soft); position: relative; overflow: hidden;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
}
.sc-media .sc-mock {
  width: 78%; background: var(--card); border-radius: 14px; box-shadow: var(--shadow);
  padding: 18px; border: 1px solid var(--line);
}
.sc-media .sc-mock .bar { height: 10px; border-radius: 6px; background: var(--grad); opacity: .85; margin-bottom: 10px; }
.sc-media .sc-mock .bar.s { width: 60%; opacity: .5; }
.sc-media .sc-mock .row { height: 26px; border-radius: 8px; background: var(--bg-2); margin-bottom: 8px; }
.sc-media .sc-mock .row.a { background: rgba(47,107,255,.12); }

/* 生态 / 客户 Logo 墙 */
.logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-chip {
  height: 56px; min-width: 132px; padding: 0 22px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); transition: .2s var(--ease);
}
.logo-chip:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.logo-chip .dotc { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }

/* 焦点可达性 */
a:focus-visible, button:focus-visible, input:focus-visible, .theme-toggle:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px;
}

/* 城市落地页：区县标签云 */
.city-districts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.city-tag {
  background: rgba(47,107,255,.10); color: var(--brand); border: 1px solid rgba(47,107,255,.18);
  border-radius: 20px; padding: 7px 15px; font-size: 14px; font-weight: 500; transition: .15s;
}
.city-tag:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
section.cta-band .card { background: rgba(255,255,255,.96); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
section.cta-band .card .muted { color: #7a8aa6; }

/* ---------- 滚动入场（渐进增强：无 JS 也可见） ---------- */
body.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
body.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 移动端 ---------- */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .hero { padding: 64px 0 54px; }
  .hero h1 { font-size: 30px; }
  .hero p.sub { font-size: 16px; }
  .hero-stats > div { padding: 0 20px; }
  .hero-stats > div:first-child { padding-left: 0; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 25px; }
  .grid-3, .grid-2, .articles, .steps, footer .cols,
  .stats-grid, .industry-grid, #franchiseBenefits, .price-cards, .roi-grid, .cases-grid,
  .scenario { grid-template-columns: 1fr; }
  .scenario.rev .sc-media { order: 0; }
  .cmp { display: block; overflow-x: auto; white-space: nowrap; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--card); flex-direction: column; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 4px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }
  .nav .wrap { gap: 12px; }
  .nav .btn-primary { display: none; }
  .theme-toggle { margin-left: 0; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body.js .reveal { opacity: 1; transform: none; }
}
