/* GG-VPN 服务介绍页（/）· 苹果官网式：大标题、留白、产品截图为主角、明暗分段。
   品牌珊瑚红沿用下载页 / 后台（docs/10），其余采用中性灰阶。纯 CSS，无脚本。 */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --bg-alt: #F5F5F7; --ink: #1D1D1F; --ink-2: #424245; --muted: #6E6E73; --line: #D2D2D7;
  --brand: #D63F3B; --brand-hover: #BF3531; --link: #C9302C;
  --blue: #2D4FD0; --red: #C0392B; --amber: #B26A00;
  --nav-bg: rgba(255, 255, 255, .72);
  --tile: #FFFFFF;
  --green: #0E7A5F; --brand-bg: #FDEDEB; --on-accent: #FFFFFF;
  --grad: linear-gradient(95deg, #D63F3B 0%, #F06A4F 50%, #E8872B 100%);
  --hero-glow: radial-gradient(60% 100% at 50% 0%, rgba(214, 63, 59, .14), transparent 70%);
  --ring: 0 0 0 1px rgba(29, 29, 31, .07);
  --card-shadow: 0 0 0 1px rgba(29, 29, 31, .07), 0 14px 32px -16px rgba(29, 29, 31, .22);
  --btn-shadow: 0 10px 24px -10px rgba(214, 63, 59, .6);
  --shot-glow: 0 0 0 1px rgba(29, 29, 31, .08), 0 40px 80px -24px rgba(214, 63, 59, .38), 0 24px 48px -24px rgba(0, 0, 0, .25);
  --shot-shadow: 0 30px 60px -20px rgba(0, 0, 0, .28), 0 18px 36px -18px rgba(0, 0, 0, .22);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-alt: #101012; --ink: #F5F5F7; --ink-2: #D2D2D7; --muted: #A1A1A6; --line: #3A3A3C;
    --brand: #EF534F; --brand-hover: #F0625E; --link: #FF7A75;
    --blue: #7C95FF; --red: #FF7A6B; --amber: #F0B860;
    --nav-bg: rgba(22, 22, 23, .72);
    --tile: #1C1C1E;
    --green: #34C08F; --brand-bg: #3A1F1E; --on-accent: #10131A;
    --grad: linear-gradient(95deg, #FF8A80 0%, #EF534F 45%, #F0B860 100%);
    --hero-glow: radial-gradient(60% 100% at 50% 0%, rgba(239, 83, 79, .28), transparent 70%);
    --ring: 0 0 0 1px rgba(255, 255, 255, .09);
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 14px 32px -16px rgba(0, 0, 0, .8);
    --btn-shadow: 0 10px 28px -10px rgba(239, 83, 79, .7);
    --shot-glow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 100px -24px rgba(239, 83, 79, .5);
    --shot-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.01em; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
.inner { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.spacer { flex: 1; }

/* 顶部导航：半透明毛玻璃 */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav-in { max-width: 1040px; margin: 0 auto; padding: 0 22px; height: 48px; display: flex; align-items: center; gap: 28px; font-size: 13px; }
.nav-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-brand:hover { text-decoration: none; }
.logo { width: 20px; height: 20px; background: url(/brand/logo.svg) center / contain no-repeat; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* 按钮：胶囊 + 箭头文字链接 */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 980px; background: var(--brand); color: var(--on-accent); font-size: 17px; font-weight: 500; white-space: nowrap; box-shadow: var(--btn-shadow); }
.pill:hover { background: var(--brand-hover); text-decoration: none; }
.pill.small { box-shadow: none; height: 28px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.more { font-size: 17px; white-space: nowrap; }
.more::after { content: " ›"; }

/* 文字层级 */
.kicker { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.kicker.brand { color: var(--brand); } .kicker.blue { color: var(--blue); } .kicker.red { color: var(--red); } .kicker.amber { color: var(--amber); }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; color: var(--muted); max-width: 720px; margin-top: 18px; font-weight: 500; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* 截图：保留窗口圆角，用柔和投影浮起 */
.shot img { border-radius: 12px; box-shadow: var(--shot-shadow); }

/* 首屏 */
.hero { position: relative; isolation: isolate; padding: 88px 22px 0; text-align: center; display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 62%, var(--bg-alt) 62%); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; background: var(--hero-glow); pointer-events: none; }
.hero .lede { margin-left: auto; margin-right: auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 4px; margin-bottom: 20px; border-radius: 980px; background: var(--brand-bg); color: var(--link); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.badge b { height: 20px; line-height: 20px; padding: 0 8px; border-radius: 980px; background: var(--brand); color: var(--on-accent); font-size: 12px; font-weight: 600; }
/* 首屏截图：正面平放 + 品牌色光晕（静态，滚动动效仍作用在外层 figure 上） */
.hero-shot img { border-radius: 14px; box-shadow: var(--shot-glow); }

/* 三栏功能条 */
.trio { background: var(--bg-alt); padding: 64px 0 72px; }
.trio-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trio-card { padding: 24px; border-radius: 16px; background: var(--tile); box-shadow: var(--card-shadow); }
.trio-card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.01em; }
.trio-card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.t-green { color: var(--green); } .t-blue { color: var(--blue); } .t-red { color: var(--red); }
.cta { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hero-shot { width: 100%; max-width: 960px; margin: 56px auto 0; }

/* 深色展示段：无论系统主题都是黑底 */
.dark { background: #000; color: #F5F5F7; padding: 120px 0; text-align: center; }
.dark .kicker.brand { color: #FF7A75; }
.dark .lede { color: #A1A1A6; margin: 18px auto 0; }
.dark .shot { max-width: 960px; margin: 64px auto 0; }
.dark .shot img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -30px rgba(239, 83, 79, .4); }


/* 规格条 */
.specs { padding: 72px 0; border-bottom: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.spec-row strong { display: block; font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.spec-row span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* 下载 */
.download { padding: 120px 0; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; margin: 56px auto 0; }
.dl-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 24px 36px; border-radius: 24px; background: var(--bg-alt); box-shadow: var(--card-shadow); color: var(--ink); transition: transform .25s ease; }
.dl-card:hover { text-decoration: none; transform: scale(1.015); }
.dl-card:hover .more { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .dl-card { transition: none; } .dl-card:hover { transform: none; } }
.dl-icon { width: 56px; height: 56px; margin-bottom: 8px; }
.dl-name { font-size: 28px; font-weight: 700; letter-spacing: -.015em; }
.dl-meta { font-size: 14px; color: var(--muted); line-height: 1.5; }
.dl-card .more { color: var(--link); margin-top: 12px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 56px auto 0; max-width: 760px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; font-weight: 600; color: var(--brand); }
.steps strong { font-size: 17px; }
.steps span { font-size: 14px; color: var(--muted); }

/* 管理员 */
.admin { background: var(--bg-alt); padding: 100px 0; }
.admin-in { display: flex; align-items: flex-end; gap: 40px; justify-content: space-between; }
.admin .lede { font-size: 19px; }

/* 页脚 */
.foot { background: var(--bg-alt); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot-in { display: flex; align-items: center; gap: 20px; padding-top: 20px; padding-bottom: 28px; }
.foot a { color: var(--ink-2); }

/* 响应式 */
@media (max-width: 860px) {
  .spec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .trio-row { grid-template-columns: 1fr; }
  .admin-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-in .pill.small { margin-left: auto; }
  .hero { padding-top: 56px; }
  .dark, .download { padding: 80px 0; }
  .dl-grid, .steps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; gap: 16px; }
}

/* ===== 静态版（无动效时）的章节与细节排版 ===== */
em { font-style: normal; color: var(--brand); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
/* 常黑底的段落：渐变用深色版，保证对比度 */
.dark, .chapter.dk { --grad: linear-gradient(95deg, #FF8A80 0%, #EF534F 45%, #F0B860 100%); --brand: #EF534F; }
.mega { font-size: clamp(40px, 7.2vw, 96px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
h1 { font-size: clamp(44px, 8vw, 104px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; }
.chapter { position: relative; overflow: clip; }
.chapter.dk { background: #000; color: #F5F5F7; --muted: #A1A1A6; --ink: #F5F5F7; }
.chapter.lt { background: var(--bg-alt); }
.chapter .stage { max-width: 1240px; margin: 0 auto; padding: 96px 22px; display: grid; gap: 48px; align-items: center; }
.chapter .stage.center { text-align: center; justify-items: center; }
.chapter .stage.center .lede { margin-left: auto; margin-right: auto; }
.chapter .stage.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter .stage.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.chapter .stage.split.rev .copy { order: 2; }
.chapter .fig { position: relative; width: 100%; max-width: 1000px; }
.chapter .shot-img { border-radius: 14px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .25), 0 50px 120px -30px rgba(0, 0, 0, .55); width: 100%; }
.c-intranet { --glow: 40, 160, 110; } .c-proxy { --glow: 45, 79, 208; } .c-trace { --glow: 214, 63, 59; }
.chapter .stage::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; background: radial-gradient(60% 50% at 50% 55%, rgba(var(--glow), .35), transparent 70%); pointer-events: none; }
.chapter { isolation: isolate; }

@media (max-width: 480px) { h1 { font-size: 38px; } }
@media (max-width: 860px) {
  .chapter .stage.split, .chapter .stage.split.rev { grid-template-columns: 1fr; text-align: center; }
  .chapter .stage.split.rev .copy { order: 0; }
  .chapter .stage.split .lede { margin-left: auto; margin-right: auto; }
}

/* ===== 滚动驱动动效（苹果官网式，更大胆）=====
   进度绑定滚动位置而非时间：下滚推进、上滚倒放。纯 CSS（animation-timeline），
   不支持的浏览器与「减少动态效果」用户直接看到上面的静态版。 */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes progress  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @keyframes rise-text { from { opacity: 0; transform: translateY(48px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
    @keyframes rise      { from { opacity: 0; transform: translateY(70px) scale(.94); } to { opacity: 1; transform: none; } }
    @keyframes shot-in   { from { opacity: .4; transform: translateY(60px) scale(.84); } to { opacity: 1; transform: none; } }
    @keyframes hero-out  { to { opacity: 0; transform: translateY(-50px) scale(.92); filter: blur(8px); } }
    @keyframes stage-in  { 0% { opacity: 0; transform: translateY(80px); } 22% { opacity: 1; transform: none; } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-80px); } }
    @keyframes zoom-shot { 0% { transform: perspective(1600px) rotateX(18deg) scale(.62); } 45% { transform: perspective(1600px) rotateX(0) scale(1); } 100% { transform: perspective(1600px) rotateX(0) scale(1.14); } }
    @keyframes glow      { 0%, 20% { opacity: 0; } 55%, 100% { opacity: 1; } }

    /* 滚动进度条：贴在导航底边 */
    .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, #F0B860, #EF534F); transform-origin: 0 50%; animation: progress linear both; animation-timeline: scroll(root); }

    /* 首屏 */
    .hero-copy { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
    .hero-shot { animation: shot-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; transform-origin: 50% 100%; }

    /* 深色总览段与所有功能章节：吸顶舞台 */
    .dark, .chapter { height: 200vh; position: relative; view-timeline: --stage block; }
    .dark { padding: 0; }
    .dark .stage, .chapter .stage { position: sticky; top: 0; height: 100vh; box-sizing: border-box; padding-top: 72px; padding-bottom: 32px; overflow: hidden; }
    .dark .stage { display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .dark .stage > * { animation: stage-in linear both; animation-timeline: --stage; animation-range: cover 18% cover 82%; }
    .dark .stage > .lede { animation-range: cover 20% cover 84%; }
    .dark .shot { width: 100%; margin-top: 40px; animation: zoom-shot linear both; animation-timeline: --stage; animation-range: cover 22% cover 82%; }
    .dark .shot img { max-height: 52vh; width: auto; margin: 0 auto; animation: glow linear both; animation-timeline: --stage; animation-range: cover 22% cover 60%; }

    /* 章节背景光晕随滚动亮起 */
    .chapter .stage::before { animation: glow linear both; animation-timeline: --stage; animation-range: cover 10% cover 45%; }

    /* 居中版式：文字在上；截图从下方倾斜升起、放大，最后盖住淡出的文字 */
    .chapter .stage.center { align-content: start; padding-top: 84px; }
    .center .fig { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: min(880px, calc(100% - 44px)); }
    .center .copy { position: relative; z-index: 1; animation: kcopy linear both; animation-timeline: --stage; animation-range: cover 10% cover 66%; }
    @keyframes kcopy { 0% { opacity: 0; transform: translateY(70px) scale(.96); filter: blur(10px); } 28% { opacity: 1; transform: none; filter: blur(0); } 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-70px) scale(.94); } }
    .center .fig { z-index: 2; animation: fig-up linear both; animation-timeline: --stage; animation-range: cover 12% cover 78%; transform-origin: 50% 0; }
    @keyframes fig-up { 0% { opacity: 0; transform: perspective(1800px) translateY(70vh) rotateX(26deg) scale(.6); } 38% { opacity: 1; transform: perspective(1800px) translateY(24vh) rotateX(0) scale(1); } 100% { opacity: 1; transform: perspective(1800px) translateY(-8vh) rotateX(0) scale(1.3); } }

    /* 左右分栏版式：文字淡入，截图从侧面带 3D 转角滑入并持续放大 */
    .split .copy { animation: scopy linear both; animation-timeline: --stage; animation-range: cover 12% cover 60%; }
    @keyframes scopy { 0% { opacity: 0; transform: translateX(-60px); filter: blur(10px); } 40%, 100% { opacity: 1; transform: none; filter: blur(0); } }
    .split.rev .copy { animation-name: scopy-r; }
    @keyframes scopy-r { 0% { opacity: 0; transform: translateX(60px); filter: blur(10px); } 40%, 100% { opacity: 1; transform: none; filter: blur(0); } }
    .split .fig { animation: fig-side linear both; animation-timeline: --stage; animation-range: cover 10% cover 85%; }
    @keyframes fig-side { 0% { opacity: 0; transform: perspective(1800px) translateX(34vw) rotateY(-32deg) scale(.7); } 35% { opacity: 1; transform: perspective(1800px) translateX(0) rotateY(-12deg) scale(.96); } 100% { opacity: 1; transform: perspective(1800px) translateX(2vw) rotateY(4deg) scale(1.12); } }
    .split.rev .fig { animation-name: fig-side-r; }
    @keyframes fig-side-r { 0% { opacity: 0; transform: perspective(1800px) translateX(-34vw) rotateY(32deg) scale(.7); } 35% { opacity: 1; transform: perspective(1800px) translateX(0) rotateY(12deg) scale(.96); } 100% { opacity: 1; transform: perspective(1800px) translateX(-2vw) rotateY(-4deg) scale(1.12); } }

    /* 悬浮标签：错开时机，从不同方向弹入，视差漂移 */

    /* 其余区块 */
    .spec-row > div {
      animation: rise-text linear both; animation-timeline: view(); animation-range: entry 5% entry 65%;
    }
    .spec-row > div:nth-child(2) { animation-range: entry 10% entry 70%; }
    .spec-row > div:nth-child(3) { animation-range: entry 15% entry 75%; }
    .spec-row > div:nth-child(4) { animation-range: entry 20% entry 80%; }
  }
}
@media (max-width: 860px) {
  @media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
      .dark, .chapter { height: 180vh; }
      .dark .shot img { max-height: 40vh; }
            @keyframes fig-up { 0% { opacity: 0; transform: translateY(60vh) scale(.7); } 38% { opacity: 1; transform: translateY(26vh); } 100% { opacity: 1; transform: translateY(-4vh) scale(1.15); } }
      @keyframes fig-side { 0% { opacity: 0; transform: translateY(30vh) scale(.7); } 40%, 100% { opacity: 1; transform: none; } }
      @keyframes fig-side-r { 0% { opacity: 0; transform: translateY(30vh) scale(.7); } 40%, 100% { opacity: 1; transform: none; } }
      .chapter .stage.split { align-content: center; gap: 20px; }
    }
  }
}

/* AI 访问守护：复用官网字体、色彩与内容宽度。 */
.ai-guard { padding: 100px 0; background: var(--bg-alt); }
.ai-guard h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.15; margin: 16px 0 24px; letter-spacing: -.03em; }
.ai-guard h2 em { color: var(--blue); font-style: normal; }
.ai-guard .lede { max-width: 760px; }
.guard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 28px; }
.guard-grid h3 { font-size: 20px; margin-bottom: 10px; }
.guard-grid p { color: var(--ink-2); line-height: 1.7; }
@media (max-width: 700px) { .ai-guard { padding: 64px 0; } .guard-grid { grid-template-columns: 1fr; gap: 24px; } }

/* AI 访问守护示意图：应用 → 代理链 → 出口检测 → 结果（纯 CSS 绘制，颜色全部取自主题变量） */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.guard-flow { margin: 48px 0 8px; padding: 36px 32px; border-radius: 24px; background: var(--tile); box-shadow: var(--card-shadow); position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1.2fr) 36px minmax(0, 1.15fr) 36px minmax(0, 1.1fr); align-items: stretch; gap: 0 10px; }
.guard-flow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%); }
.guard-flow svg { display: block; }
.gf-stage { min-width: 0; display: flex; flex-direction: column; }
/* 各列标签顶对齐，内容在标签下方的剩余高度里垂直居中；箭头让出标签高度后同样居中 */
.gf-label { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.gf-stage > .gf-label + * { margin-top: auto; }
.gf-stage > :last-child { margin-bottom: auto; }
.gf-arrow { display: flex; align-items: center; justify-content: center; width: 36px; padding-top: 34px; color: color-mix(in srgb, var(--blue) 55%, var(--line)); }
.gf-arrow svg { width: 36px; height: auto; }

/* 阶段 1：AI 应用芯片 */
.gf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gf-app { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--bg-alt); min-width: 0; }
.gf-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.gf-ic svg { width: 18px; height: 18px; }
.gf-name { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.gf-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* 阶段 2：代理链三跳（圆点 + 竖线） */
.gf-hops { list-style: none; margin: 0; padding: 0; }
.gf-hop { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 12px; padding-bottom: 14px; }
.gf-hop:last-child { padding-bottom: 0; }
.gf-hop::before { content: ""; grid-row: 1 / span 2; width: 14px; height: 14px; margin-top: 4px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--line); background: var(--tile); position: relative; z-index: 1; }
.gf-hop:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: -4px; width: 2px; background: var(--line); }
.gf-ht { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); }
.gf-hs { grid-column: 2; font-size: 13px; line-height: 1.4; color: var(--muted); }
.gf-hop.is-dim .gf-ht { color: var(--muted); }
.gf-hop.is-exit .gf-ht { font-weight: 600; }
.gf-hop.is-exit::before { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.gf-tag { height: 20px; line-height: 20px; padding: 0 8px; border-radius: 980px; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* 阶段 3：出口检测卡片 */
.gf-card { padding: 18px; border-radius: 16px; background: var(--bg-alt); min-width: 0; }
.gf-head { display: flex; align-items: center; gap: 10px; }
.gf-globe { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.gf-globe svg { width: 20px; height: 20px; }
.gf-hint { font-size: 13px; color: var(--muted); }
.gf-where { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 10px; }
.gf-where b { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.gf-where span { font-size: 15px; color: var(--muted); }
.gf-kv { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 14px; color: var(--ink-2); }
.gf-yes { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--green); white-space: nowrap; }
.gf-yes svg { width: 14px; height: 14px; }
.gf-redo { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.gf-redo svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }

/* 阶段 4：三种结果（当前状态突出，其余略淡） */
.gf-outs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gf-out { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-alt); min-width: 0; }
.gf-out:not(.on) { opacity: .8; }
.gf-out > svg { flex: none; width: 22px; height: 22px; }
.gf-ot { display: flex; flex-direction: column; min-width: 0; }
.gf-ot b { font-size: 16px; line-height: 1.3; font-weight: 700; }
.gf-ot span { font-size: 13px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.gf-out.ok { color: var(--green); }
.gf-out.block { color: var(--red); }
.gf-out.wait { color: var(--amber); }
.gf-out.on { background: color-mix(in srgb, var(--green) 12%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 35%, transparent); }
.gf-out.on .gf-ot span { color: var(--ink-2); }

/* 示意图响应式：窄屏改为单列竖向流程，箭头转向下 */
@media (max-width: 860px) {
  .guard-flow { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; padding: 28px 20px; gap: 6px; }
  .gf-arrow { width: auto; height: 28px; padding-top: 0; }
  .gf-arrow svg { width: 28px; transform: rotate(90deg); }
  .gf-label { text-align: center; }
  .gf-chips { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .gf-note { text-align: center; }
  .gf-hops { align-self: center; }
}

/* 示意图滚动入场：复用上面的 rise / rise-text，四个阶段依次错开；不支持或减少动态效果时直接显示静态版 */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .guard-flow { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
    .gf-stage { animation: rise-text linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
    .gf-chain { animation-range: entry 16% entry 66%; }
    .gf-check { animation-range: entry 22% entry 72%; }
    .gf-result { animation-range: entry 28% entry 78%; }
  }
}
