/* ============================================================
   FustAI 官网 · 手机版独立样式（≤768px）
   与桌面版不是同一套版式：App 式导航 + 底部标签栏 + 单列内容流
   ============================================================ */
.tabbar { display: none; }

@media (max-width: 768px) {

  /* ---------- 基础：字号、间距、触控 ---------- */
  html { scroll-padding-top: 64px; }
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
    font-size: 15.5px;
    line-height: 1.75;
    letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
  }
  .wrap { padding: 0 18px; }
  .section { padding: 42px 0 54px; }
  .section--tight { padding: 34px 0 42px; }
  .section--alt {
    background:
      radial-gradient(120% 55% at 85% 0%, rgba(0,229,255,.055), transparent 62%),
      linear-gradient(180deg, transparent, rgba(10,16,32,.55), transparent);
  }

  h1, h2 { text-wrap: balance; }
  h1 { font-size: 28px; line-height: 1.24; letter-spacing: -.02em; }
  h2 { font-size: 21.5px; line-height: 1.32; letter-spacing: -.015em; }
  h3 { font-size: 16.5px; line-height: 1.5; letter-spacing: -.005em; }
  h4 { font-size: 15px; }
  .lead { font-size: 15px; line-height: 1.75; text-wrap: pretty; }
  .muted { font-size: 14px; line-height: 1.7; }
  /* 数字统一等宽，避免跳动 */
  .num, .stat, .kpi strong, .hero-meta strong, .showcase-meta strong, .flow-step b {
    font-variant-numeric: tabular-nums;
  }

  .eyebrow { font-size: 12px; letter-spacing: .1em; margin-bottom: 10px; }
  .eyebrow::before { width: 14px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head p { margin-top: 12px; }

  .btn {
    min-height: 48px; padding: 0 22px; font-size: 15px;
    border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    transition: transform .16s ease, background .2s ease, border-color .2s ease;
  }
  .btn--sm { min-height: 42px; font-size: 14px; padding: 0 18px; }
  .hero-actions, .cta-actions { display: grid; gap: 10px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }

  /* 触控反馈与键盘焦点 */
  .btn:active, .b-card:active, .pain:active, .g-card:active, .tabbar a:active {
    transform: scale(.985);
  }
  a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 10px;
  }

  img { max-width: 100%; height: auto; }

  /* ---------- 顶部 App Bar ---------- */
  .site-header { height: 56px; }
  .site-header .wrap { padding: 0 16px; }
  .logo img { height: 27px; width: 27px; }
  .site-header .logo { position: relative; z-index: 56; }
  .nav-toggle { position: relative; z-index: 56; }
  .logo .wm { font-size: 16px; }
  .logo small { font-size: 8.5px; letter-spacing: .12em; }
  .header-cta { display: none; }
  .nav-toggle {
    height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 999px; gap: 6px;
  }
  .nav-toggle .bars { width: 14px; gap: 3px; }

  /* 返回按钮：二级页面取代菜单按钮（底部标签栏已承担一级导航） */
  .nav-back {
    display: none; position: relative; z-index: 56;
    height: 36px; padding: 0 13px 0 10px; font-size: 12.5px;
    border-radius: 999px; gap: 3px; align-items: center;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    color: #e9f4ff; -webkit-tap-highlight-color: transparent;
  }
  .nav-back svg {
    width: 15px; height: 15px; fill: none; stroke: currentColor;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .nav-back:active { transform: scale(.96); }
  body:not(.is-home) .nav-toggle { display: none; }
  body:not(.is-home) .nav-back { display: inline-flex; }

  /* 抽屉：全屏卡片式列表 */
  .nav.is-open {
    position: fixed; top: 0; left: 0; right: 0; bottom: auto;
    height: 100vh; height: 100dvh; margin: 0; z-index: 55;
    display: block; padding: 64px 18px calc(92px + env(safe-area-inset-bottom));
    overflow-y: auto; background: #05080f;
    border-top: none;
  }
  .nav.is-open .nav-item { border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-link {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 16px 2px; font-size: 16.5px; font-weight: 600;
    border-radius: 0; background: none;
  }
  .nav.is-open .nav-link.is-active { background: none; color: var(--primary); }
  .nav.is-open .caret { opacity: .5; }
  .nav.is-open .dropdown {
    position: static; display: none; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: none; background: none;
    padding: 0 0 10px 2px; min-width: 0;
  }
  .nav.is-open .nav-item.is-open .dropdown { display: block; }
  .nav.is-open .dropdown a {
    padding: 11px 0 11px 14px; font-size: 14.5px; border-radius: 0;
    border-left: 1px solid rgba(0,229,255,.3); background: none;
  }
  .nav.is-open .dropdown a small { font-size: 12px; margin-top: 3px; }
  .nav.is-open .dropdown .dd-all { border-left-color: transparent; color: var(--primary); }

  /* ---------- 底部标签栏 ---------- */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(6,10,20,.94);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .tabbar a {
    flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 10.5px; letter-spacing: .02em; color: var(--muted);
    -webkit-tap-highlight-color: transparent; transition: color .2s ease;
  }
  .tabbar a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.is-active { color: var(--primary); }
  .tabbar a.is-active::before {
    content: ""; position: absolute; top: 6px; width: 16px; height: 2px;
    border-radius: 2px; background: var(--primary); box-shadow: 0 0 10px rgba(0,229,255,.6);
  }

  /* ---------- 首屏：文案优先，截图压成一条紧凑拼贴 ---------- */
  .hero { padding: 18px 0 22px; }
  .hero-split { display: block; }
  .hero-copy .tagline { font-size: 11.5px; letter-spacing: .1em; }
  .hero-copy h1 { font-size: 27px; line-height: 1.3; max-width: none; }
  .hero-copy .lead { margin-top: 12px; font-size: 14.5px; line-height: 1.72; }
  .hero-actions { margin-top: 20px; }
  .hero-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 22px;
  }
  .hero-meta div { display: flex; align-items: center; gap: 8px; }
  .hero-meta div strong { font-size: 14px; }
  .hero-meta div span { font-size: 11px; letter-spacing: 0; }

  /* 首屏截图：一张主图 + 一台手机压角，总高约 230px */
  .hero-stack {
    display: block; height: auto; margin-top: 22px;
    aspect-ratio: auto; position: relative; transform: none; padding-bottom: 6px;
  }
  .hero-stack::after { display: none; }
  .hero-stack .browser {
    position: static; width: 100%; transform: none;
    border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  }
  .hero-stack .browser .bar { display: none; }
  .hero-stack .browser .screen { flex: 1 1 auto; height: auto; aspect-ratio: 16/10; border-radius: 14px; }
  .hero-stack .phone {
    position: absolute; right: 0; bottom: 0; width: 66px; height: 134px;
    margin: 0; transform: none; z-index: 2;
    box-shadow: 0 16px 34px -16px rgba(0,0,0,.95);
  }
  .hero-stack .phone::before, .hero-stack .phone::after { display: none; }
  .hero-stack .phone .screen { height: 100%; aspect-ratio: auto; border-width: 3px; border-radius: 11px; }
  .hero-stack .phone .screen img { object-position: top center; }

  /* ---------- 二级页头部 ---------- */
  .page-hero { padding: 22px 0 20px; }
  .page-hero h1 { font-size: 25px; }
  .page-hero .lead { margin-top: 12px; font-size: 14.5px; }
  .page-hero .badge { margin-left: 6px; }
  .crumb { font-size: 12px; margin-bottom: 10px; }

  /* ---------- 痛点区：改成竖向时间轴 ---------- */
  .grid--4 { display: block; gap: 0; }
  .grid--4 .pain {
    position: relative; border-left: none; padding: 0 0 22px 40px; margin: 0;
  }
  .grid--4 .pain::before {
    content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(0,229,255,.13);
  }
  .grid--4 .pain::after {
    content: ""; position: absolute; left: 11px; top: 22px; bottom: 2px; width: 1px;
    background: linear-gradient(180deg, rgba(0,229,255,.4), rgba(0,229,255,0));
  }
  .grid--4 .pain:last-child { padding-bottom: 0; }
  .grid--4 .pain:last-child::after { display: none; }
  .grid--4 .pain .num { font-size: 11px; letter-spacing: .14em; margin-bottom: 5px; }
  .grid--4 .pain h3 { font-size: 16.5px; margin-bottom: 5px; }
  .grid--4 .pain p { font-size: 14px; }

  /* ---------- 能力卡：单列大卡 + 左侧序号 ---------- */
  .bento { display: block; }
  .bento .b-card {
    grid-column: auto !important; display: block; min-height: 0;
    margin-bottom: 12px; padding: 18px 16px 16px; border-radius: 16px;
    border-left: 2px solid rgba(0,229,255,.45);
  }
  .bento .b-card.feature {
    padding: 20px 16px 18px; border-radius: 20px;
    background: linear-gradient(150deg, rgba(0,229,255,.10), rgba(124,92,255,.05) 60%, transparent);
    border-left-color: rgba(0,229,255,.85);
  }
  .bento .b-card .num { font-size: 11px; margin-bottom: 8px; }
  .bento .b-card h3 { font-size: 17px; }
  .bento .b-card p { font-size: 14px; }
  .bento .b-card .tags { padding-top: 14px; gap: 7px; }
  .bento .b-card .tags span { font-size: 11.5px; padding: 4px 9px; }
  .bento .b-card .more { position: static; margin-top: 14px; display: inline-flex; font-size: 13px; }

  /* ---------- 流程：竖向步骤卡 ---------- */
  .flow, .flow--3, .flow--4 { display: block; margin-top: 22px; }
  .flow-step {
    position: relative; padding: 14px 16px 14px 58px; margin-bottom: 10px;
    border-radius: 14px; background: rgba(255,255,255,.03);
  }
  .flow-step:last-child { margin-bottom: 0; }
  .flow-step b {
    position: absolute; left: 13px; top: 15px; width: 30px; height: 30px; margin: 0;
    display: grid; place-items: center; font-size: 11.5px;
    border-radius: 50%; background: rgba(0,229,255,.12); border: 1px solid rgba(0,229,255,.35);
  }
  .flow-step span { font-size: 15px; margin-bottom: 3px; }
  .flow-step p { font-size: 13px; line-height: 1.6; }
  .flow-step::after { display: none; }

  /* ---------- 设备截图：一律压成一条 16:10 主图，不占满屏 ----------
     用 padding-top 撑 16:10：微信 X5/XWeb86 内核不支持 aspect-ratio，会变形 */
  .browser { border-radius: 14px; overflow: hidden; }
  .browser .bar { display: none; }
  .browser .screen { position: relative; height: auto; padding-top: 62.5%; border-radius: 14px; }
  .browser .screen img { position: absolute; top: 0; left: 0; object-fit: cover; object-position: top left; }

  /* ---------- 产品沉浸段：图在上、文在下；图片左右交替出血，打破对称 ---------- */
  .showcase { display: block; margin-bottom: 38px; }
  .showcase--flip .showcase-media { order: 0; }
  .showcase-media {
    position: relative; margin-bottom: 20px;
    margin-right: -18px; border-radius: 14px 0 0 14px;
  }
  .showcase-media::after { display: none; }
  .showcase-body .eyebrow { margin-bottom: 8px; }
  .showcase-body h2 { font-size: 19.5px; line-height: 1.35; margin-bottom: 10px; }
  .showcase-body .lead { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
  .showcase-body ul.ticks { margin-bottom: 16px; gap: 7px; }
  .showcase-body ul.ticks li { font-size: 13.5px; line-height: 1.55; }
  /* 移动端只留前 3 条要点，其余收起 */
  .showcase-body ul.ticks li:nth-child(n+4) { display: none; }
  .showcase-meta { display: none; }
  .showcase-body .btn { width: 100%; justify-content: center; }

  /* 多终端：主图铺满 + 一台手机压右下角，三部手机只留第一台 */
  .duo, .trio, .devices-3 {
    display: block; height: auto; padding: 0 0 6px; position: relative;
  }
  .duo .browser, .trio .browser, .devices-3 .browser,
  .showcase-media > .browser {
    position: static; width: 100%; margin: 0;
    transform: none; border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .duo .browser .bar, .trio .browser .bar, .devices-3 .browser .bar { display: none; }
  .duo .browser .screen, .trio .browser .screen, .devices-3 .browser .screen {
    position: relative; flex: none; height: auto; padding-top: 62.5%; border-radius: 14px;
  }
  .duo .phone, .trio .phone, .devices-3 .phone {
    position: absolute; right: 0; bottom: 0; width: 66px; height: 134px;
    margin: 0; transform: none; z-index: 2;
    box-shadow: 0 16px 34px -16px rgba(0,0,0,.95);
  }
  /* 小尺寸手机仍保留 iPhone 18 机身：金属包边 + 灵动岛 + 比例圆角 */
  .duo .phone, .trio .phone, .devices-3 .phone { padding: 2px; }
  .duo .phone::before, .trio .phone::before, .devices-3 .phone::before {
    display: block; top: 3%; width: 31%; min-width: 0; height: 6px;
    border-radius: 999px;
  }
  .duo .phone::after, .trio .phone::after, .devices-3 .phone::after {
    display: block; right: -1px; width: 1.5px; height: 9%; border-radius: 2px;
  }
  .duo .phone ~ .phone, .trio .phone ~ .phone, .devices-3 .phone ~ .phone { display: none; }
  .devices-3 .phone.p1, .devices-3 .phone.p2 {
    left: auto; right: 0; bottom: 0; transform: none;
  }
  .duo .phone .screen, .trio .phone .screen, .devices-3 .phone .screen {
    height: 100%; aspect-ratio: auto; border-width: 2.5px; border-radius: 11.5% / 5.4%;
  }
  .duo .phone .screen img, .trio .phone .screen img, .devices-3 .phone .screen img {
    object-position: top center;
  }

  /* 画廊 / 通用网格 */
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .g-card .g-body { padding: 16px; }
  .g-card .g-body h3 { font-size: 16px; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; gap: 12px; }
  .split, .split--wide { display: block; }
  .split > * + * { margin-top: 22px; }

  /* ---------- 数据 ---------- */
  .stat-band { display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .stat { padding: 18px 12px; border-right: none; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat strong { font-size: 25px; }
  .stat span { font-size: 12px; margin-top: 5px; }

  .kpi { grid-template-columns: 1fr; gap: 10px; }
  .kpi-card { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; }
  .kpi-card strong { font-size: 24px; }
  .kpi-card span { margin: 0; font-size: 13px; }

  /* 表格 → 卡片 */
  .table-wrap { border: none; background: none; border-radius: 0; overflow: visible; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody,
  .table-wrap tr, .table-wrap th, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap table { border-collapse: separate; min-width: 0; }
  .table-wrap tr {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 14px; padding: 2px 15px; margin-bottom: 12px;
  }
  .table-wrap td {
    border: none !important; padding: 8px 0; font-size: 14px; line-height: 1.65;
    display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px;
    align-items: start; overflow-wrap: anywhere;
  }
  .table-wrap td::before {
    content: attr(data-label); color: var(--muted);
    font-size: 12px; padding-top: 2px;
  }
  .table-wrap td:first-child {
    padding: 13px 0 9px; border-bottom: 1px solid var(--line) !important;
    color: var(--primary); font-size: 15px;
  }
  .table-wrap td:first-child::before { display: none; }

  /* 对比表 → 逐行卡片 */
  .cmp { display: grid; grid-template-columns: 1fr 1fr; border: none; background: none; gap: 0; }
  .cmp > div {
    padding: 6px 14px 12px; border-bottom: 1px solid var(--line);
    font-size: 13.5px; background: none !important;
  }
  .cmp > div:nth-child(3n+1) {
    grid-column: 1 / -1; padding: 14px 14px 4px; border-bottom: none;
    color: var(--primary); font-size: 12px; letter-spacing: .08em;
    background: rgba(0,229,255,.05) !important;
  }
  .cmp > div:nth-last-child(-n+3) { border-bottom: none; }
  .cmp .cmp-head { font-size: 11.5px; color: var(--muted) !important; }

  /* ---------- 侧边目录 → 吸顶横向胶囊 ---------- */
  .rail { display: block; }
  .rail-nav {
    position: sticky; top: 56px; z-index: 30; display: flex; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -18px 22px; padding: 10px 18px;
    border: none; border-bottom: 1px solid var(--line); border-radius: 0;
    background: rgba(5,8,15,.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-nav .rn-title { display: none; }
  .rail-nav a {
    flex: none; padding: 7px 14px; font-size: 13px; border: 1px solid var(--line);
    border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,.03);
  }
  .rail-nav a.is-active { background: rgba(0,229,255,.14); border-color: rgba(0,229,255,.45); }
  .rail-content section[id] { scroll-margin-top: 106px; }
  .rail-content section + section { margin-top: 40px !important; }

  /* ---------- 特性列表：图标左置 ---------- */
  .feat { grid-template-columns: 1fr; gap: 10px; }
  .feat .f {
    display: grid; grid-template-columns: 38px 1fr; gap: 0 14px;
    padding: 15px 16px; border-radius: 14px; align-items: start;
  }
  .feat .f .icon-box { grid-row: 1 / 3; width: 36px; height: 36px; margin: 0; font-size: 15px; }
  .feat .f h4 { margin: 0 0 3px; font-size: 15.5px; }
  .feat .f p { font-size: 13px; line-height: 1.6; }

  /* 八种终端：两列紧凑卡（不带图标列） */
  .feat.feat--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feat.feat--4 .f { display: block; padding: 13px 13px 14px; border-radius: 14px; }
  /* 首卡通栏，避免 8 张等大卡片排成"表格感" */
  .feat.feat--4 .f:first-child {
    grid-column: 1 / -1; border-radius: 18px;
    background: linear-gradient(140deg, rgba(0,229,255,.11), rgba(124,92,255,.06) 55%, transparent);
    border-color: rgba(0,229,255,.28);
  }
  .feat.feat--4 .f:first-child p { font-size: 13px; }
  .feat.feat--4 .f .f-no { margin-bottom: 6px; font-size: 10.5px; letter-spacing: .14em; }
  .feat.feat--4 .f h4 { font-size: 14px; margin: 0 0 4px; }
  .feat.feat--4 .f p { font-size: 12.5px; line-height: 1.55; margin: 0; }

  /* ---------- 时间线 ---------- */
  .timeline { padding-left: 0; }
  .timeline::before { left: 6px; }
  .tl { padding: 0 0 26px 30px; }
  .tl::before { left: -1px; width: 13px; height: 13px; }
  .tl h4 { font-size: 15.5px; }
  .tl .when { font-size: 11px; margin-bottom: 6px; }
  .tl p { font-size: 13.5px; }

  /* ---------- 面板 / 清单 / 标签 ---------- */
  .panel { padding: 18px 16px; border-radius: 16px; }
  .panel + .panel { margin-top: 12px; }
  .panel h3 { font-size: 15.5px; margin-bottom: 10px; }
  .ticks { gap: 9px; }
  .ticks li { font-size: 14px; padding-left: 22px; line-height: 1.65; }
  .chips { gap: 8px; }
  .chips span { font-size: 12.5px; padding: 5px 11px; }
  .tech-strip span { font-size: 12px; padding: 6px 11px; }
  .badge { font-size: 11px; padding: 3px 9px; }

  .quote { padding: 20px 16px; border-radius: 16px; }
  .quote::before { font-size: 54px; left: 8px; top: 6px; }
  .quote p { font-size: 15px; line-height: 1.85; padding-left: 22px; }
  .quote cite { padding-left: 22px; font-size: 12px; }

  /* ---------- CTA 横幅 ---------- */
  .cta-band { padding: 26px 18px; border-radius: 18px; }
  .cta-band h2 { font-size: 20px; }
  .cta-band .lead { font-size: 14px; }

  /* ---------- 联系 ---------- */
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-list li { padding: 14px 0; gap: 12px; }
  .contact-list h4 { font-size: 14.5px; }
  .contact-list p { font-size: 13.5px; }

  /* ---------- 页脚：精简为单列 ---------- */
  /* ---------- 页脚：手机端不要整站页脚，只留备案一行 ---------- */
  .site-footer { padding: 16px 0 10px; border-top: 1px solid rgba(255,255,255,.06); }
  .site-footer .footer-grid { display: none; }
  .footer-bottom { display: block; font-size: 11.5px; line-height: 1.9; color: var(--muted); text-align: center; border-top: 0; padding-top: 0; }
  .footer-bottom > span { display: none; }
  .footer-beian { margin-top: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 11px; }
  .footer-beian a { display: inline-flex; align-items: center; gap: 4px; opacity: .75; }
  .footer-beian img { width: 13px; height: 13px; }
}

/* 769~1279px：设备图/产品图的光晕左右外扩会撑出横向滚动条，只保留上下外扩（1280px 起恢复） */
@media (min-width: 769px) and (max-width: 1279px) {
  .showcase-media::after { inset: -8% 0; }
  .hero-stack::after { inset: -10% 0; }
}
/* ==========================================================================
   审美升级层 · Ethereal Glass（仅手机端）
   质感来自：极黑底 + 双色光晕 + 胶片颗粒 + 双包边卡片 + 弹性动效
   ========================================================================== */
@media (max-width: 768px) {
  :root { --ease: cubic-bezier(.32, .72, 0, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); }

  /* ---- 底：极黑 + 双光晕，不再是均匀的深蓝 ---- */
  body {
    background:
      radial-gradient(52% 30% at 86% -4%, rgba(0, 229, 255, .17), transparent 72%),
      radial-gradient(46% 26% at 2% 34%, rgba(124, 92, 255, .13), transparent 74%),
      radial-gradient(60% 30% at 60% 100%, rgba(0, 255, 163, .06), transparent 76%),
      #04060c;
    background-attachment: scroll;
  }
  /* 胶片颗粒：固定层，只占一张小图，不影响滚动 */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
    opacity: .038;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---- 字：更重的标题、更紧的字距、更亮的正文 ---- */
  h1 { font-size: 30px; line-height: 1.17; letter-spacing: -.035em; font-weight: 700; }
  h2 { font-size: 22.5px; line-height: 1.27; letter-spacing: -.028em; font-weight: 700; }
  h3 { font-size: 16.5px; letter-spacing: -.012em; font-weight: 600; }
  .lead { font-size: 15px; line-height: 1.78; color: #b6c4d6; }
  .muted { color: #94a5bb; }
  .grad { background-size: 100% 100%; }

  /* ---- 眉标：从裸文字变成微型胶囊徽章 ---- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px 5px 9px; margin-bottom: 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 229, 255, .24);
    background: rgba(0, 229, 255, .07);
    font-size: 10.5px; letter-spacing: .16em; color: #7fe8ff;
  }
  .eyebrow::before {
    width: 5px; height: 5px; border-radius: 50%; margin: 0;
    background: var(--primary); box-shadow: 0 0 10px rgba(0, 229, 255, .9);
  }
  .sec-head { margin-bottom: 30px; }
  .sec-head h2 { margin-top: 2px; }

  /* ---- 留白：大幅拉开段落节奏 ---- */
  .section { padding: 56px 0 62px; }
  .section--tight { padding: 40px 0 46px; }
  .section--alt {
    background:
      radial-gradient(90% 46% at 92% 0%, rgba(0, 229, 255, .05), transparent 66%),
      linear-gradient(180deg, transparent, rgba(9, 14, 26, .62), transparent);
  }

  /* ---- 双包边卡片：外壳高光描边 + 内芯渐变底，像一块嵌进托盘的面板 ---- */
  .b-card, .pain, .panel, .g-card, .quote, .kpi, .contact-card {
    position: relative;
    border: 1px solid transparent;
    border-radius: 20px;
    background:
      linear-gradient(158deg, #0a1222 0%, #070b15 64%) padding-box,
      linear-gradient(158deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03) 42%, rgba(0, 229, 255, .16)) border-box;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .07),
      0 26px 48px -36px rgba(0, 0, 0, .95);
  }
  .b-card.feature {
    border-radius: 24px;
    background:
      linear-gradient(158deg, #0b1524 0%, #070c17 66%) padding-box,
      linear-gradient(150deg, rgba(0, 229, 255, .5), rgba(255, 255, 255, .05) 44%, rgba(124, 92, 255, .3)) border-box;
    border-left-width: 1px;
  }
  .feat.feat--4 .f:first-child {
    border-radius: 22px;
    background:
      linear-gradient(158deg, #0b1726 0%, #070c17 70%) padding-box,
      linear-gradient(150deg, rgba(0, 229, 255, .42), rgba(255, 255, 255, .04) 50%, rgba(124, 92, 255, .22)) border-box;
  }
  .feat.feat--4 .f {
    border: 1px solid transparent;
    background:
      linear-gradient(160deg, #0a1020 0%, #070b14 70%) padding-box,
      linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  }

  /* ---- 按钮：胶囊 + 内嵌箭头圆，按下像实体键 ---- */
  .btn { transition: transform .38s var(--ease), box-shadow .38s var(--ease), background .3s var(--ease); }
  .btn--primary { gap: 10px; padding-right: 13px; }
  .btn--primary::after {
    content: "↗"; width: 26px; height: 26px; border-radius: 50%;
    display: inline-grid; place-items: center;
    font-size: 12px; line-height: 1; color: #d6fdff;
    background: rgba(4, 10, 20, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
    transition: transform .38s var(--ease);
  }
  .btn--primary:active { transform: scale(.975); }
  .btn--primary:active::after { transform: translate(2px, -2px); }
  .btn--ghost { border-color: rgba(255, 255, 255, .14); }
  .btn--ghost:active { transform: scale(.975); }

  /* ---- 首屏信任点：去掉方格，改为细线分栏 ---- */
  .hero-meta {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 14px;
  }
  .hero-meta div {
    background: none; border: 0;
    padding-left: 12px; position: relative;
  }
  .hero-meta div::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 1px; background: linear-gradient(180deg, rgba(0, 229, 255, .7), transparent);
  }
  .hero-meta strong { font-size: 13px; color: var(--primary); }
  .hero-meta span { font-size: 11.5px; color: #9fb0c6; }

  /* ---- 贴图卡片：圆角收紧、内高光，像放在屏幕上的玻璃片 ---- */
  .showcase-media {
    border-radius: 18px 0 0 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 30px 50px -40px #000;
  }
  .showcase-media .browser, .showcase-media .phone { box-shadow: 0 22px 40px -30px rgba(0, 0, 0, .9); }

  /* ---- 底部标签栏：玻璃岛 ---- */
  .tabbar {
    background: linear-gradient(180deg, rgba(6, 10, 18, .82), rgba(4, 7, 13, .96));
    border-top: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 -18px 40px -30px rgba(0, 0, 0, .9);
  }

  /* ---- 动效：统一弹簧曲线，不用 linear/ease-in-out ---- */
  .reveal { transition: opacity .82s var(--ease-out), transform .82s var(--ease-out); }
  .tabbar a, .nav-link, .nav-back, .nav-toggle, .rail-nav a {
    transition: color .32s var(--ease), background .32s var(--ease), border-color .32s var(--ease);
  }
}

/* 卡片化后痛点不再需要时间轴圆点，避免左侧悬空小点 */
@media (max-width: 768px) {
  .pain::before, .pain::after { display: none; }
  .pain { padding: 18px 16px 16px; }
  .pain .num { display: inline-block; margin-bottom: 6px; color: #6fe6ff; letter-spacing: .14em; }
}

/* 痛点四条：从四张重复卡片合并成一张"清单面板"，用细线分隔，减少卡片噪音 */
@media (max-width: 768px) {
  .grid--4 {
    display: block;
    border: 1px solid transparent; border-radius: 22px; overflow: hidden;
    background:
      linear-gradient(160deg, #0a1120 0%, #070b14 72%) padding-box,
      linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .03) 46%, rgba(0, 229, 255, .15)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 26px 48px -36px rgba(0, 0, 0, .95);
  }
  .pain {
    background: none; border: 0; border-radius: 0; box-shadow: none;
    padding: 17px 17px 16px;
    border-top: 1px solid rgba(255, 255, 255, .055);
  }
  .grid--4 .pain:first-child { border-top: 0; }
  .pain h3 { margin: 2px 0 6px; }
}

/* ==========================================================================
   V3 · 移动端独立设计层
   原则：去掉所有"桌面版痕迹"（面包屑、浏览器窗框、四栏页脚、并排卡片），
        改用移动端原生的清单、栅格表、单列编辑式排版。
   ========================================================================== */
@media (max-width: 768px) {
  /* ---- 去掉桌面专属元素 ---- */
  .crumb { display: none; }              /* 面包屑：已有返回按钮，重复 */
  .browser .bar { display: none; }       /* 浏览器三圆点标题栏：手机上像缩小版桌面 */
  .browser { background: none; border: 0; padding: 0; box-shadow: none; }
  .browser .screen {
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 24px 44px -34px #000;
  }
  .page-hero { padding: 26px 0 30px; }
  .page-hero h1 { margin: 0 0 10px; }

  /* ---- 业务四条：合并为一张编号清单，不再四张同构卡片 ---- */
  .bento {
    display: block; gap: 0;
    border: 1px solid transparent; border-radius: 24px; overflow: hidden;
    background:
      linear-gradient(162deg, #0a1221 0%, #060a13 74%) padding-box,
      linear-gradient(158deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03) 46%, rgba(0, 229, 255, .16)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 50px -38px rgba(0, 0, 0, .95);
  }
  .bento .b-card, .bento .b-card.feature, .bento .b-card[style] {
    display: block; padding: 18px 17px 16px;
    border: 0; border-radius: 0; box-shadow: none;
    background: none; grid-column: auto !important;
    border-top: 1px solid rgba(255, 255, 255, .055);
  }
  .bento .b-card:first-child { border-top: 0; }
  .bento .b-card .num {
    display: inline-block; margin-bottom: 7px;
    font-size: 10.5px; letter-spacing: .16em; color: #6fe6ff;
  }
  .bento .b-card h3 { margin: 0 0 7px; font-size: 17px; }
  .bento .b-card p { font-size: 14px; line-height: 1.72; color: #a9b8ca; }
  .bento .b-card .tags { margin-top: 11px; }
  .bento .b-card .more { margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; }

  /* ---- 多终端八项：合并成一张"规格栅格"，细线分格 ---- */
  .feat.feat--4 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border: 1px solid transparent; border-radius: 20px; overflow: hidden;
    background:
      linear-gradient(160deg, #0a1020 0%, #060a12 76%) padding-box,
      linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 48%, rgba(0, 229, 255, .13)) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  }
  .feat.feat--4 .f, .feat.feat--4 .f:first-child {
    grid-column: auto; border: 0; border-radius: 0; box-shadow: none; background: none;
    padding: 14px 14px 13px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    border-left: 1px solid rgba(255, 255, 255, .055);
  }
  .feat.feat--4 .f:nth-child(-n+2) { border-top: 0; }
  .feat.feat--4 .f:nth-child(odd) { border-left: 0; }
  .feat.feat--4 .f .f-no { font-size: 10px; letter-spacing: .14em; color: #6fe6ff; }
  .feat.feat--4 .f strong { font-size: 14.5px; }
  .feat.feat--4 .f p { font-size: 12.5px; line-height: 1.65; color: #94a5bb; }

  /* ---- 其余成组卡片：统一为清单式，去掉重复边框 ---- */
  .grid--3 .g-card, .grid--2 .g-card { border-radius: 18px; }

  /* ---- 图片区：不再"出血 + 大投影"，收敛为干净的圆角图 ---- */
  .showcase-media { margin-right: 0; border-radius: 16px; box-shadow: none; }
}

/* ==========================================================================
   V4 · 原生 App 顶栏：返回箭头在左、页面名在右；首页不设菜单（底部标签栏已够）
   ========================================================================== */
@media (max-width: 768px) {
  .site-header .wrap { gap: 8px; }
  .site-header { padding-left: 6px; padding-right: 6px; }

  /* 返回：靠左的圆形箭头，44 触控区 */
  .nav-back {
    order: -1; display: none;
    width: 38px; height: 38px; padding: 0; margin-left: -6px;
    border: 0; border-radius: 50%; background: none;
    align-items: center; justify-content: center; color: #dcebfb;
  }
  .nav-back svg { width: 21px; height: 21px; stroke-width: 1.9; }
  .nav-back:active { background: rgba(255, 255, 255, .07); transform: none; }

  /* 页面名：接在箭头右边，单行省略 */
  .m-title {
    display: none; flex: 1; min-width: 0;
    font-size: 15.5px; font-weight: 600; letter-spacing: -.012em;
    color: #e9f3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  body:not(.is-home) .logo { display: none; }
  body:not(.is-home) .nav-back { display: inline-flex; }
  body:not(.is-home) .m-title { display: block; }
  body:not(.is-home) .nav-toggle { display: none; }

  /* 首页：只有 logo，右上角不再有菜单按钮 */
  body.is-home .nav-toggle { display: none; }
  body.is-home .logo { margin-left: 8px; }
  .site-header .wrap { justify-content: flex-start; }

  /* 业务清单：右侧 chevron，像原生列表行 */
  .bento .b-card { position: relative; padding-right: 32px; }
  .bento .b-card::after {
    content: ""; position: absolute; right: 16px; top: 50%;
    width: 7px; height: 7px; margin-top: -3px;
    border-right: 1.5px solid rgba(255, 255, 255, .34);
    border-bottom: 1.5px solid rgba(255, 255, 255, .34);
    transform: rotate(-45deg);
  }
  .bento .b-card .more { font-size: 12.5px; opacity: .8; }
}

/* ==========================================================================
   V8 · 首屏小图：与桌面完全同构图（浏览器 84% + 右侧倾斜手机），整体等比缩小
   几何全部用显式 px：微信 X5/XWeb86 内核不支持 aspect-ratio，不能用比例撑高
   ========================================================================== */
@media (max-width: 768px) {
  .hero-split { position: relative; }
  /* 340×272 固定画布，transform 等比缩到约 42% */
  .hero-split .hero-stack {
    display: block; position: absolute; top: 30px; right: 45px;
    width: 340px; height: 272px;
    margin: 0; padding: 0; z-index: 2; perspective: 1600px;
  }
  .hero-split .hero-stack.reveal {
    transform: translateY(22px) scale(.42); transform-origin: top right;
  }
  .hero-split .hero-stack.reveal.in { transform: scale(.42); }

  /* 浏览器：宽 285.6（84%），bar 38 + 屏幕 178.5（16:10），与桌面同值 */
  .hero-stack .browser {
    position: absolute; left: 0; top: 22px; width: 285.6px;
    border-radius: 16px; display: block;
  }
  .hero-stack .browser .bar { display: flex; height: 38px; padding: 0 14px; gap: 0; }
  .hero-stack .browser .bar i { width: 10px; height: 10px; }
  .hero-stack .browser .bar i + i { margin-left: 8px; }
  .hero-stack .browser .bar .url {
    flex: 1; height: 22px; margin-left: 18px; padding: 0;
    font-size: 11px; border-radius: 6px; letter-spacing: .04em;
  }
  .hero-stack .browser .screen { position: relative; height: 178.5px; padding-top: 0; border-radius: 0; }

  /* 手机：宽 115.6（34%），屏幕外框高 231.4（9:19 含 6px 边框），4° 倾斜 */
  .hero-stack .phone {
    position: absolute; right: -6.8px; bottom: -10.9px; width: 115.6px;
    height: auto; margin: 0; z-index: 3; padding: 3px;
    transform: rotate(4deg); border-radius: 13.5% / 6.2%;
  }
  .hero-stack .phone::before {
    display: block; top: 12px; width: 46px; height: 17px;
  }
  .hero-stack .phone::after {
    display: block; right: -1px; top: 27%; width: 2px; height: 10%;
  }
  .hero-stack .phone .screen { height: 231.4px; border-width: 6px; border-radius: 11.5% / 5.4%; }
  .hero-stack .phone .screen img { object-position: top center; }

  /* 正文让出右侧 195px（小图整体按胶囊居中后视觉左缘约 vw-206），行尾不会钻到小图下面 */
  .hero-copy .lead { padding-right: 195px; }
}


/* 胶囊悬在右上 mockup 正上方：整体随小图左移，左缘与浏览器小图左缘对齐 */
@media (max-width: 768px) {
  .hero-copy { display: block; position: relative; }
  .hero-copy .tagline {
    position: absolute; top: 3px; right: 16px; margin: 0;
  }
  .hero-copy h1 { font-size: 26px; line-height: 1.2; padding-right: 0; }
}
/* ≤457 窄屏：文字优先——小图贴右（放弃居中），副标题一行；≥458 走居中版 */
@media (max-width: 457px) {
  .hero-split .hero-stack { right: 0; }
  .hero-copy .lead { padding-right: 150px; }
  .hero-copy h1 { padding-right: 145px; }
}
/* ≤410：小图缩到 .34，给 226px 的一行副标题腾空间（390 实测一行副标题+三行正文） */
@media (max-width: 410px) {
  .hero-split .hero-stack { top: 36px; } /* 画布下移，避免缩小后顶到胶囊底边 */
  .hero-split .hero-stack.reveal { transform: translateY(22px) scale(.34); }
  .hero-split .hero-stack.reveal.in { transform: scale(.34); }
  .hero-copy h1 { padding-right: 120px; }
  .hero-copy .lead { padding-right: 125px; }
}
/* ≤385：再缩到 .27，361 宽也要塞下一行副标题 */
@media (max-width: 385px) {
  .hero-split .hero-stack { top: 36px; }
  .hero-split .hero-stack.reveal { transform: translateY(22px) scale(.27); }
  .hero-split .hero-stack.reveal.in { transform: scale(.27); }
  .hero-copy h1 { padding-right: 95px; }
  .hero-copy .lead { padding-right: 100px; }
}

/* ≤360 窄屏：胶囊缩号，避免 36px 的 FustAI 首行顶进胶囊（320px 实测会碰） */
@media (max-width: 360px) {
  .hero-copy .tagline { font-size: 10px; letter-spacing: .06em; padding: 6px 13px; gap: 8px; }
  .hero-split .hero-stack { right: 29px; } /* 胶囊缩号后中轴左移，小图整体跟随居中 */
  .hero-split .hero-stack.reveal { transform: translateY(22px) scale(.42); }
  .hero-split .hero-stack.reveal.in { transform: scale(.42); }
  .hero-copy h1 { padding-right: 195px; }  /* 居中版避让：副标题/正文不钻到小图下 */
  .hero-copy .lead { padding-right: 195px; }
}

/* 首屏标题层级：FustAI 大字主标题，落地定位小字副标题 */
@media (max-width: 768px) {
  .hero-copy h1 { font-size: 36px; line-height: 1; letter-spacing: -.04em; }
  .hero-copy h1 .h1-sub { margin-top: 12px; font-size: 15.5px; line-height: 1.5; font-weight: 500; color: #c4d3e5; }
}

/* 手机端首屏无截图后收紧下边距 */
@media (max-width: 768px) {
  .hero { padding-bottom: 34px; }
}


/* 痛点清单：线与文字之间加呼吸，不再贴边 */
@media (max-width: 768px) {
  .pain { padding: 22px 19px 23px; }
  .pain .num { margin-bottom: 9px; }
  .pain h3 { margin: 0 0 9px; line-height: 1.42; }
  .pain p { line-height: 1.78; }
}

/* 痛点清单：线与文字之间加呼吸（覆盖早期时间轴缩进规则） */
@media (max-width: 768px) {
  .grid--4 .pain { padding: 22px 19px 23px; }
  .grid--4 .pain .num { margin-bottom: 9px; }
  .grid--4 .pain h3 { margin: 0 0 9px; line-height: 1.42; }
  .grid--4 .pain p { line-height: 1.78; }
}

/* 痛点清单二次放宽：分隔线与文字之间再留 4px，标题与正文再留 3px */
@media (max-width: 768px) {
  .grid--4 .pain { padding: 26px 20px 27px; }
  .grid--4 .pain .num { margin-bottom: 11px; }
  .grid--4 .pain h3 { margin: 0 0 10px; }
}

/* FUTS 四条：分隔线到文字的间距由 14px 放宽到 22px，行间 8→14 */
@media (max-width: 768px) {
  .hero-meta { padding-top: 22px; row-gap: 14px; column-gap: 14px; margin-top: 26px; }
}

/* 修正：痛点 04 底部内边距被时间轴旧规则清成 0，导致文字贴住面板底边 */
@media (max-width: 768px) {
  .grid--4 .pain:last-child { padding-bottom: 27px; }
}

/* 产品案例卡：手机叠图在小屏上收小 */
@media (max-width: 768px) {
  .g-shot .g-phone { width: 19%; max-width: 78px; min-width: 62px; right: 10px; bottom: 10px; border-radius: 11px; }
}

/* 叠图手机框：小屏上收窄，机身比例保持 */
@media (max-width: 768px) {
  .g-shot .g-phone { padding: 2px; border-radius: 13.5% / 6.2%; }
  .g-shot .g-phone::before { top: 4px; height: 5px; width: 26%; }
  .g-shot .g-phone img { border-width: 1.5px; }
}

/* 首页流程：手机端整体收起（五步模块不进手机版） */
@media (max-width: 768px) {
  .bento ~ .flow { display: none; }
}

/* 首屏信任点：去掉按钮下方那条横线，只留四项 */
@media (max-width: 768px) {
  .hero-meta { border-top: 0; padding-top: 0; }
}
