/* ══════════════════════════════════════════════════════
   深度探知 · 24 平台导航
   视觉语言参考 Google Chrome 产品站 / next-steps 页
   ══════════════════════════════════════════════════════ */

:root{
  --blue:#1A73E8;
  --blue-d:#1558d6;
  --ink:#202124;
  --ink2:#5F6368;
  --ink3:#80868B;
  --line:#DADCE0;
  --line2:#E8EAED;
  --bg:#FFFFFF;
  --card:#FFFFFF;
  --foot:#F1F3F4;
  --chip:#F1F3F4;
  --shadow1:0 1px 2px rgba(60,64,67,.30), 0 1px 3px 1px rgba(60,64,67,.15);
  --shadow2:0 2px 6px 2px rgba(60,64,67,.15), 0 1px 2px rgba(60,64,67,.30);
  --shadow3:0 12px 28px -8px rgba(60,64,67,.40);
  --r-xl:28px;
  --r-lg:24px;
  --r-md:16px;
  --r-sm:12px;
  /* 字标渐变（藏青 S + 亮蓝 D，取自品牌 SD 原稿） */
  --mk-s1:#16497F;
  --mk-s2:#082F58;
  --mk-d1:#4FC0F7;
  --mk-d2:#0396E3;
  --mk-d3:#0288D1;
  --font:"Google Sans","Product Sans",-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Roboto,Helvetica,Arial,sans-serif;
  --ease:cubic-bezier(.2,.8,.2,1);
}

body[data-theme="dark"]{
  --ink:#E8EAED;
  --ink2:#9AA0A6;
  --ink3:#80868B;
  --line:#3C4043;
  --line2:#2D2F31;
  --bg:#202124;
  --card:#292A2D;
  --foot:#17181A;
  --chip:#303134;
  --shadow1:0 1px 2px rgba(0,0,0,.4);
  --shadow2:0 2px 6px 2px rgba(0,0,0,.4);
  --shadow3:0 12px 28px -8px rgba(0,0,0,.6);
  --mk-s1:#E8EAED;
  --mk-s2:#8A9099;
  --mk-d1:#5AC8FA;
  --mk-d2:#1E9BE0;
  --mk-d3:#0B84D6;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--font);
  font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}

.skip{position:absolute;left:-9999px;top:0;background:var(--blue);color:#fff;padding:10px 16px;border-radius:0 0 10px 0;z-index:99}
.skip:focus{left:0}

/* 视觉隐藏：保留给读屏与搜索引擎，视觉上不占位 */
.vh{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ══════════ 进入动画：精修 SD 字标（描边 → 上色 → 高光扫过） ══════════ */
.splash{
  position:fixed;top:0;right:0;bottom:0;left:0;inset:0;z-index:100;
  width:100%;height:100vh;height:100dvh;
  padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);
  background:var(--bg);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;overflow:hidden;
  transition:opacity .55s ease, visibility .55s ease;
}
.splash.is-gone{opacity:0;visibility:hidden;pointer-events:none}
.splash__inner{display:flex;flex-direction:column;align-items:center;justify-content:center}
/* 字标背后的品牌光晕 */
.splash__mark{position:relative;margin-bottom:36px}
.splash__mark svg{
  position:relative;display:block;
  width:300px;max-width:76vw;height:auto;
  transform-origin:50% 50%;
  animation:markIn .95s cubic-bezier(.22,.8,.3,1) both;
}
@keyframes markIn{
  from{opacity:0;transform:translateY(7px) scale(.965)}
  to{opacity:1;transform:none}
}
/* 1) 描边绘制 */
.ink{stroke-dasharray:1;stroke-dashoffset:1}
.ink--s{animation:draw .85s cubic-bezier(.62,0,.34,1) .22s forwards}
.ink--d{animation:draw .92s cubic-bezier(.62,0,.34,1) .52s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
/* 2) 上色 */
.mkfill{opacity:0}
.mkfill--s{animation:fillIn .55s cubic-bezier(.22,.8,.3,1) 1.00s forwards}
.mkfill--d{animation:fillIn .55s cubic-bezier(.22,.8,.3,1) 1.16s forwards}
@keyframes fillIn{from{opacity:0}to{opacity:1}}
/* 3) 高光扫过 */
.shine{animation:sweep .80s cubic-bezier(.32,.05,.2,1) 1.42s both}
@keyframes sweep{
  from{transform:translateX(0)}
  to{transform:translateX(940px)}
}
/* 进度条 */
.splash__bar{
  width:240px;max-width:62vw;height:2px;border-radius:99px;
  background:var(--line2);overflow:hidden;
}
.splash__fill{
  display:block;height:100%;width:0;border-radius:99px;
  background:linear-gradient(90deg,#35B6F5 0%,#0396E3 58%,#0B84D6 100%);
  transition:width .32s cubic-bezier(.22,.8,.3,1);
}
/* 品牌文字 */
.splash__brand{
  margin-top:22px;
  font-size:25px;line-height:1;font-weight:300;
  color:var(--ink3);
  opacity:0;transform:translateY(8px);
  animation:brandIn .70s cubic-bezier(.22,.8,.3,1) 1.30s forwards;
}
.splash__brand span{display:inline-block;letter-spacing:.22em;margin-right:-.22em}
.splash__brand b{font-weight:600;color:var(--ink)}
@keyframes brandIn{to{opacity:1;transform:none}}

/* 内容容器：进场完成后揭示 */
.app{min-height:100vh;background:var(--bg)}
.app[hidden]{display:none}
.app.is-in .ptile{animation:cardIn .55s cubic-bezier(.2,.8,.25,1) backwards;animation-delay:calc(var(--i,0) * 26ms)}
.app.is-in .step{animation:cardIn .55s cubic-bezier(.2,.8,.25,1) backwards;animation-delay:calc(var(--i,0) * 34ms)}
@keyframes cardIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* ══════════ 顶栏 ══════════ */
.topbar{
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line2);
}
.topbar__in{
  max-width:1280px;margin:0 auto;padding:0 28px;
  height:66px;display:flex;align-items:center;gap:28px;
}
.brand{display:flex;align-items:center;gap:11px;flex:0 0 auto}
.brand__mark{
  position:relative;display:grid;place-items:center;
  height:30px;width:47px;
}
.mark{grid-area:1/1;height:30px;width:auto;max-width:none;object-fit:contain}
/* 顶栏 / 页脚字标：与开场动画同一套路径与渐变（--mk-* 变量），亮暗主题自动跟随 */
.mark--live,.mark--static{display:block;overflow:hidden}
.hm-ink{stroke-dasharray:1;stroke-dashoffset:0}
.hm-fill{opacity:1}
@keyframes hmDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes hmFill{from{opacity:0}to{opacity:1}}
@keyframes hmSweep{from{transform:translateX(0)}to{transform:translateX(940px)}}
.app.is-in .hm-ink--s{animation:hmDraw .44s cubic-bezier(.62,0,.34,1) .10s both}
.app.is-in .hm-ink--d{animation:hmDraw .48s cubic-bezier(.62,0,.34,1) .22s both}
.app.is-in .hm-fill--s{animation:hmFill .30s cubic-bezier(.22,.8,.3,1) .50s both}
.app.is-in .hm-fill--d{animation:hmFill .30s cubic-bezier(.22,.8,.3,1) .60s both}
.app.is-in .hm-axis{animation:hmFill .30s cubic-bezier(.22,.8,.3,1) .60s both}
.app.is-in .hm-shine{animation:hmSweep .58s cubic-bezier(.32,.05,.2,1) .76s both}
/* 品牌锁定块：标题 + 副标题两行，排版精细化 */
.brand__txt{display:flex;flex-direction:column;justify-content:center;gap:3px}
.brand__txt b{font-size:16.5px;font-weight:700;letter-spacing:.08em;line-height:1.1}
.brand__sub{display:flex;align-items:center;gap:6px;font-size:11px;letter-spacing:.16em;line-height:1;color:#6B7280;margin-right:-.16em}
.brand__sub i{font-style:normal}
.brand__dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.6;display:block;flex:0 0 auto}
body[data-theme="dark"] .brand__sub{color:#9AA0A6}

/* 顶栏导航：胶囊分段控件 */
.topnav{
  display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;
  padding:4px;border-radius:999px;background:var(--chip);
  margin-left:20px;
}
.topnav a{
  position:relative;
  display:inline-flex;align-items:center;gap:5px;
  padding:8px 17px;border-radius:999px;
  font-size:14px;font-weight:500;color:var(--ink2);
  transition:color .22s var(--ease), background .28s var(--ease),
             box-shadow .28s var(--ease), transform .22s var(--ease);
}
.topnav a:hover{
  color:var(--ink);background:var(--bg);
  transform:translateY(-1px);
  box-shadow:0 1px 2px rgba(60,64,67,.10), 0 2px 6px rgba(60,64,67,.07);
}
.topnav a.is-on{
  background:var(--bg);color:var(--blue);
  box-shadow:0 1px 2px rgba(60,64,67,.12), 0 2px 8px rgba(60,64,67,.10);
}
.topnav a svg{transition:transform .28s var(--ease)}
.topnav a:hover svg{transform:translate(1.5px,-1.5px)}
.topnav__ext{color:var(--ink2)}
.topnav__ext:hover{color:var(--blue)}
.topnav__sep{
  width:1px;height:17px;background:var(--line);
  margin:0 5px;flex:0 0 auto;
}

/* 顶栏右侧工具组 */
.topbar__tools{display:flex;align-items:center;gap:8px}
/* 账号入口：平台统一组件（sd-account.js）。所有断点都保留，不随工具区折叠 */
.topbar__acct{flex:none;margin-right:2px}
body[data-theme="dark"] .sdacct{
  --sdacct-ink:#e8eaed;--sdacct-ink2:#9aa0a6;
  --sdacct-line:rgba(255,255,255,.24);--sdacct-hover:rgba(255,255,255,.09);
  --sdacct-brand:#8ab4f8;--sdacct-focus:#8ab4f8;
}
@media (max-width:480px){ .topbar__acct{margin-right:0} }
.replay{
  display:inline-flex;align-items:center;gap:6px;
  height:36px;padding:0 12px;border:1px solid var(--line2);border-radius:999px;
  background:transparent;color:var(--ink2);font-size:13.5px;font-weight:500;cursor:pointer;
  transition:color .2s,border-color .2s,background .2s;
}
.replay:hover{color:var(--ink);border-color:var(--line);background:var(--chip)}
.replay svg{opacity:.85}
.theme-btn{
  display:inline-flex;align-items:center;gap:7px;
  height:36px;padding:0 10px;border:0;border-radius:8px;
  background:transparent;color:var(--ink2);font-size:13.5px;font-weight:500;
  cursor:pointer;transition:color .2s;
}
.theme-btn:hover{color:var(--ink)}
.theme-btn .i-sun{transition:transform .45s var(--ease)}
.theme-btn:hover .i-sun{transform:rotate(60deg)}
.theme-btn .i-moon{display:none}
body[data-theme="dark"] .theme-btn .i-sun{display:none}
body[data-theme="dark"] .theme-btn .i-moon{display:block}

/* ══════════ 搜索框（顶栏右侧） ══════════ */
.realbox{
  display:flex;align-items:center;gap:10px;
  flex:0 1 300px;width:300px;max-width:300px;min-width:128px;
  height:38px;padding:0 14px;border-radius:999px;
  background:var(--bg);border:1px solid var(--line);
  margin-left:auto;
  transition:border-color .2s,box-shadow .2s;
}
.realbox:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,115,232,.14)}
.realbox svg{flex:0 0 auto;color:var(--ink2)}
.realbox input{
  flex:1;border:0;outline:0;background:transparent;font-size:14.5px;min-width:0;
}
.realbox input::placeholder{color:var(--ink3)}
.realbox__clr{
  border:0;background:var(--chip);color:var(--ink2);width:22px;height:22px;
  border-radius:50%;font-size:16px;line-height:1;cursor:pointer;flex:0 0 auto;
  transition:color .2s,background .2s;
}
.realbox__clr:hover{background:var(--line2);color:var(--ink)}

/* 分类筛选：纯文字，无胶囊 */
.chips{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:2px 2px;justify-content:flex-start;
}
.chip{
  border:0;background:none;color:var(--ink2);
  font-size:13.5px;font-weight:500;padding:7px 10px;border-radius:6px;
  cursor:pointer;position:relative;transition:color .2s;
}
.chip:hover{color:var(--ink)}
.chip.on{color:var(--blue)}
.chip.on::after{
  content:"";position:absolute;left:10px;right:10px;bottom:1px;
  height:2px;border-radius:2px;background:var(--blue);
}
.chip i{font-style:normal;opacity:.55;margin-left:2px;font-size:12px}

/* ══════════ 全部平台（平铺网格） ══════════ */
.platforms{
  max-width:1180px;margin:0 auto;
  padding:52px 24px 0;
}
.platforms__head{max-width:660px;margin-bottom:30px}
.platforms__t{
  margin:0;font-size:clamp(26px,2.7vw,36px);
  font-weight:800;letter-spacing:-.03em;line-height:1.14;
}
.platforms__d{margin:12px 0 0;font-size:15px;line-height:1.65;color:var(--ink2)}
.platforms__grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(164px,1fr));
  gap:14px;padding-bottom:100px;
}
.ptile{
  position:relative;display:flex;flex-direction:column;align-items:center;
  gap:9px;padding:24px 12px 18px;border-radius:var(--r-lg);
  background:var(--card);border:1px solid var(--line2);
  transition:transform .34s var(--ease),box-shadow .34s var(--ease),border-color .3s;
}
.ptile:hover{transform:translateY(-5px);box-shadow:var(--shadow2);border-color:transparent}
.ptile__ic{
  width:60px;height:60px;border-radius:13px;background:none;
  display:grid;place-items:center;
  transition:transform .34s var(--ease);
}
.ptile__ic img{width:56px;height:56px;object-fit:contain;transition:transform .34s var(--ease)}
.ptile:hover .ptile__ic{transform:translateY(-6px) scale(1.06)}
.ptile:hover .ptile__ic img{transform:scale(1.1)}
.ptile__n{
  font-size:13.5px;font-weight:600;text-align:center;line-height:1.35;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;
}
.ptile__h{font-size:11px;color:var(--ink3);text-align:center;letter-spacing:.01em;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptile__g{
  position:absolute;top:12px;right:14px;
  font-size:10.5px;color:var(--blue);opacity:0;transition:opacity .3s var(--ease);
  letter-spacing:.02em;
}
.ptile:hover .ptile__g{opacity:.9}

/* 视图切换 */
body[data-view="all"] .steps{display:none}
body[data-view="lines"] .platforms{display:none}

/* ══════════ 业务线大卡（Google next-steps 卡片解剖） ══════════ */
.steps{
  max-width:1180px;margin:0 auto;
  padding:46px 24px 96px;
  display:grid;grid-template-columns:repeat(2,1fr);gap:26px;
}
.step{
  position:relative;
  border-radius:var(--r-xl);
  background:#fff;
  display:flex;flex-direction:column;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover{transform:translateY(-6px);box-shadow:var(--shadow3)}
.step__top{padding:38px 38px 30px}
.step__label{
  display:inline-block;font-size:13.5px;font-weight:600;
  letter-spacing:.04em;opacity:.72;
}
.step__t{
  margin:10px 0 0;
  font-size:clamp(28px,3.1vw,40px);
  font-weight:800;line-height:1.12;letter-spacing:-.03em;
}
.step__d{
  margin:14px 0 0;font-size:15px;line-height:1.65;opacity:.76;max-width:430px;
  /* 预留两行高度：同排卡片表头等高 -> 深浅色分隔线严格对齐（不截断文案） */
  min-height:calc(1.65em * 2);
}
.step__media{
  flex:1 1 auto;
  margin-top:0;
  padding:26px 22px 28px;
  /* 图标左对齐、依次排列：末行只剩一个时不再居中悬空 */
  display:flex;flex-wrap:wrap;gap:16px 8px;justify-content:flex-start;align-content:center;
  border-radius:0 0 var(--r-xl) var(--r-xl);
}

/* 首卡：横跨整行的 feature 卡（Google 首页式），避免最后一行落单 */
.steps .step:first-child{grid-column:span 2;flex-direction:row;align-items:stretch}
.steps .step:first-child .step__top{
  width:44%;display:flex;flex-direction:column;justify-content:center;
  padding:52px 42px;
}
.steps .step:first-child .step__t{font-size:clamp(32px,3.6vw,48px)}
.steps .step:first-child .step__media{
  width:56%;margin-top:0;flex-direction:row;align-items:center;justify-content:center;
  gap:26px;border-radius:0 var(--r-xl) var(--r-xl) 0;
}
.steps .step:first-child .tile{width:150px}
.steps .step:first-child .tile__ic{width:76px;height:76px;border-radius:17px}
.steps .step:first-child .tile__ic img{width:72px;height:72px}
/* SD 字标保持自身比例（1.61），不被拉成方形 */
.steps .step:first-child .tile__n{font-size:14px}

/* 配色：Google pastel */
.step--blue  {background:#1A73E8;color:#fff}
.step--blue  .step__media{background:#1558d6}
.step--yellow{background:#FDE293;color:#202124}
.step--yellow .step__media{background:#F8CE6B}
.step--red   {background:#F6A5A0;color:#202124}
.step--red   .step__media{background:#EE8478}
.step--green {background:#A9D6B5;color:#202124}
.step--green .step__media{background:#7FC08E}
.step--purple{background:#D7BEFB;color:#202124}
.step--purple .step__media{background:#BE9BF0}
.step--orange{background:#FDD9A6;color:#202124}
.step--orange .step__media{background:#F6C177}
.step--teal  {background:#A3D5D5;color:#202124}
.step--teal  .step__media{background:#74BFC0}

/* ══════════ 平台小图标 ══════════ */
.tile{
  position:relative;
  width:120px;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  padding:6px 4px 10px;border-radius:var(--r-md);
  transition:background .25s var(--ease);
}
.tile:hover{background:rgba(255,255,255,.22)}
.step--yellow .tile:hover,.step--red .tile:hover,.step--green .tile:hover,
.step--purple .tile:hover,.step--orange .tile:hover,.step--teal .tile:hover{background:rgba(255,255,255,.55)}

.tile__ic{
  position:relative;
  width:60px;height:60px;border-radius:13px;
  background:none;display:grid;place-items:center;
  transition:transform .34s var(--ease), border-radius .34s var(--ease);
  overflow:visible;
}
.tile__ic::after{
  content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;inset:-4px;border-radius:17px;
  background:rgba(255,255,255,.0);
  transition:background .3s var(--ease);
  z-index:-1;
}
.tile__ic img{width:56px;height:56px;object-fit:contain;transition:transform .34s var(--ease)}
.tile__ic--word img{width:78px;height:11px;max-width:none}
.tile:hover .tile__ic{
  transform:translateY(-8px) scale(1.07);
  border-radius:16px;
}
.tile:hover .tile__ic img{transform:scale(1.12)}
.tile__ic--word:hover img{transform:scale(1.1) translateY(-1px)}

.tile__n{
  font-size:12.5px;font-weight:600;text-align:center;line-height:1.35;
  letter-spacing:.005em;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;
}
.tile__tip{
  position:absolute;left:50%;top:calc(100% + 8px);
  transform:translate(-50%,-6px);
  background:#202124;color:#fff;
  font-size:11.5px;font-weight:500;line-height:1.45;
  padding:7px 11px;border-radius:9px;
  white-space:nowrap;pointer-events:none;
  opacity:0;z-index:40;
  box-shadow:0 8px 20px -6px rgba(0,0,0,.5);
  transition:opacity .24s var(--ease), transform .24s var(--ease);
}
.tile__tip i{display:block;font-style:normal;opacity:.62;margin-top:2px;font-size:10.5px;letter-spacing:.02em}
.tile:hover .tile__tip{opacity:1;transform:translate(-50%,0)}

.empty{
  text-align:center;color:var(--ink2);font-size:16px;
  padding:0 24px 90px;margin:0;
}

/* ══════════ 页脚（Google 多栏页脚） ══════════ */
.foot{background:var(--foot);border-top:1px solid var(--line2);padding:58px 24px 38px}
.foot__in{max-width:1280px;margin:0 auto}

.pillnav{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  margin:0 auto 48px;
}
.pillnav a{
  font-size:14.5px;font-weight:500;color:var(--ink2);
  padding:6px 16px;transition:color .2s;
}
.pillnav a:hover{color:var(--ink)}
.pillnav a.is-on{color:var(--blue);font-weight:600}
.pillnav__cta{
  display:inline-flex;align-items:center;gap:7px;
  color:var(--blue)!important;font-weight:500;
}
.pillnav__cta:hover{color:var(--blue-d)!important}
.pillnav__cta svg{transition:transform .25s var(--ease)}
.pillnav__cta:hover svg{transform:translateX(3px)}

/* 页脚平台图标墙：26 个平台图标（黑白常态，悬停上色）+ 气泡说明 */
.foot__social{border-bottom:1px solid var(--line2);padding-bottom:40px}
.foot__social h3{
  font-size:20px;font-weight:600;color:var(--ink);
  margin:0 0 6px;letter-spacing:-.01em;
}
.foot__socialsub{margin:0 0 24px;font-size:14px;color:var(--ink2)}
.rail{
  --cols:16; --gap:14px; --tile:48px;
  list-style:none;margin:0;padding:0;
  /* 图标墙左对齐、依次排列：每行按序排满，末行落单不再居中 */
  display:flex;flex-wrap:wrap;justify-content:flex-start;gap:var(--gap);
}
.rail li{
  position:relative;display:flex;justify-content:center;
  flex:0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}
.rail a{
  position:relative;display:grid;place-items:center;
  width:var(--tile);height:var(--tile);border-radius:13px;
  background:none;border:0;
  transition:transform .28s var(--ease),box-shadow .28s var(--ease);
}
.rail a:hover{transform:translateY(-5px);box-shadow:var(--shadow2)}
.rail__ic{display:grid;place-items:center;width:100%;height:100%}
.rail img{
  width:100%;height:100%;object-fit:contain;
  filter:grayscale(1) brightness(.95) contrast(1.15);
  opacity:.85;
  transition:filter .3s var(--ease),opacity .3s var(--ease),transform .3s var(--ease);
}
.rail a:hover img,.rail a:focus-visible img{filter:none;opacity:1;transform:scale(1.08)}
.rail__tip{
  position:absolute;left:50%;bottom:calc(100% + 11px);
  transform:translate(-50%,8px);
  min-width:150px;max-width:236px;
  padding:11px 14px;border-radius:13px;
  background:#202124;color:#fff;text-align:left;
  font-size:12px;line-height:1.55;
  opacity:0;pointer-events:none;z-index:40;
  box-shadow:0 12px 28px -8px rgba(0,0,0,.6);
  transition:opacity .24s var(--ease),transform .24s var(--ease);
}
.rail__tip b{display:block;font-size:13.5px;font-weight:600;margin-bottom:3px;letter-spacing:.01em}
.rail__tip span{display:block;color:rgba(255,255,255,.76)}
.rail__tip i{display:block;font-style:normal;color:#8AB4F8;margin-top:5px;font-size:11px;letter-spacing:.02em}
.rail a:hover .rail__tip,.rail a:focus-visible .rail__tip{opacity:1;transform:translate(-50%,0)}
/* 无 JS 时的兜底：首个气泡贴左 */
.rail li:first-child .rail__tip{left:0;transform:translate(0,8px)}
.rail li:first-child a:hover .rail__tip,.rail li:first-child a:focus-visible .rail__tip{transform:translate(0,0)}
/* 行首气泡贴左、行尾气泡贴右，避免撑出容器产生横向滚动条。
   行首/行尾由 app.js 按实际换行位置打标（.rail__l / .rail__r），断点变化自动跟随。 */
.rail li.rail__l .rail__tip{left:0;transform:translate(0,8px)}
.rail li.rail__l a:hover .rail__tip,.rail li.rail__l a:focus-visible .rail__tip{transform:translate(0,0)}
.rail li.rail__r .rail__tip{left:auto;right:0;transform:translate(0,8px)}
.rail li.rail__r a:hover .rail__tip,.rail li.rail__r a:focus-visible .rail__tip{transform:translate(0,0)}

/* 链接栏 */
.foot__cols{
  /* 列数跟随分组数（--gcols 由 gen.ps1 注在容器上），保证所有业务线排成一行，不再掉到第二行 */
  display:grid;grid-template-columns:repeat(var(--gcols,7),minmax(0,1fr));gap:18px;
  padding:50px 0 46px;border-bottom:1px solid var(--line2);
}
/* 宽屏：列按内容宽度排布（minmax(0,auto) 保证空间不足时折行而不是溢出），
   所有业务线并成一行；长名称如“深度企业入新培训系统”不会被挤成两行 */
@media (min-width:1240px){
  .foot__cols{grid-template-columns:repeat(var(--gcols,7),minmax(0,auto));justify-content:space-between}
}
/* 中等宽度：9 列挤在一起会大量折行，改为 5 列 */
@media (min-width:1081px) and (max-width:1239px){
  .foot__cols{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:34px}
}.foot__col h4{
  font-size:15.5px;font-weight:600;color:var(--ink);
  margin:0 0 16px;letter-spacing:-.005em;
}
.foot__col h4 + h4{margin-top:30px}
.foot__col a{
  display:block;width:fit-content;max-width:100%;
  font-size:14px;color:var(--ink2);
  padding:7px 0;line-height:1.5;
  transition:color .2s;
}
.foot__col a:hover{color:var(--ink)}

/* 底部条 */
.foot__bottom{
  display:flex;align-items:center;gap:32px;flex-wrap:wrap;
  padding-top:32px;
}
.foot__wordmark{display:flex;align-items:center;gap:11px;color:var(--ink)}
.foot__mark{position:relative;display:grid;place-items:center;height:33px;width:52px}
.foot__mark .mark{height:33px;width:auto}
.foot__wordmark span{
  font-size:24px;font-weight:500;letter-spacing:-.025em;line-height:1;
}
.foot__links{display:flex;gap:28px;flex-wrap:wrap}
.foot__links a{font-size:14px;color:var(--ink2);transition:color .2s}
.foot__links a:hover{color:var(--ink)}
.foot__copy{font-size:12.5px;color:var(--ink3);letter-spacing:.01em}
/* 工信部 ICP 备案号：按要求跳转 beian.miit.gov.cn */
.foot__icp{margin-left:9px;transition:color .2s}
.foot__icp::before{content:"·";margin-right:9px;opacity:.5}
.foot__icp:hover{color:var(--ink2)}
.foot__help{margin-left:auto;display:flex;align-items:center;gap:22px}
.foot__helpbtn{
  display:inline-flex;align-items:center;gap:8px;border:0;background:none;
  color:var(--ink2);font-size:14px;cursor:pointer;padding:0;
  transition:color .2s;
}
.foot__helpbtn:hover{color:var(--ink)}
.foot__sel{
  border:0;border-bottom:1px solid var(--line);background:transparent;
  color:var(--ink2);font-size:14px;cursor:pointer;padding:3px 0;
  transition:color .2s,border-color .2s;
}
.foot__sel:hover{color:var(--ink);border-color:var(--ink2)}
.foot__sel option{color:#202124;background:#fff}

/* 深色下的页脚微调 */
body[data-theme="dark"] .rail img{filter:grayscale(1) brightness(1.7) contrast(1.05);opacity:.92}
body[data-theme="dark"] .rail a:hover img,body[data-theme="dark"] .rail a:focus-visible img{filter:none;opacity:1}
/* 白底那 7 个图标（线稿类）在深色下反相：白卡转黑、线条转亮，避免整排晃眼 */
body[data-theme="dark"] .rail li[data-fam="light"] img{filter:invert(1) grayscale(1);opacity:.92}
body[data-theme="dark"] .rail li[data-fam="light"] a:hover img,
body[data-theme="dark"] .rail li[data-fam="light"] a:focus-visible img{filter:none;opacity:1}
body[data-theme="dark"] .foot__helpbtn svg path{stroke:#17181A}
body[data-theme="dark"] .foot__helpbtn svg circle:last-child{fill:#17181A}
body[data-theme="dark"] .foot__sel option{color:#E8EAED;background:#292A2D}

/* ══════════ 响应式 ══════════ */
@media (max-width:900px){
  .topbar__in{gap:18px}
  .brand__txt .brand__sub{display:none}
  .topnav a{padding:8px 13px}
  .realbox{flex:0 1 200px;width:200px;max-width:200px}
}
@media (max-width:1080px){
  .topbar__in{gap:16px}
  .replay span,.theme-btn span{display:none}
  .replay{padding:0 9px}
  .theme-btn{padding:0 10px}
  .realbox{flex:0 1 250px;width:250px;max-width:250px}
  .steps{grid-template-columns:1fr}
  .steps .step:first-child{grid-column:span 1;flex-direction:column}
  .steps .step:first-child .step__top{width:100%;padding:38px 30px 26px}
  .steps .step:first-child .step__media{
    width:100%;margin-top:auto;border-radius:0 0 var(--r-xl) var(--r-xl);
    flex-wrap:wrap;padding:24px 20px 26px;justify-content:flex-start;
  }
  .steps .step:first-child .tile{width:calc(50% - 10px)}
  .foot__cols{grid-template-columns:repeat(4,1fr);row-gap:34px}
  .rail{--cols:8;--gap:12px;--tile:44px}
}
@media (max-width:720px){
  .topbar{position:static}
  .topbar__in{height:auto;padding:11px 16px 0;gap:0;flex-wrap:wrap}
  .brand__txt .brand__sub{display:none}
  .theme-btn span{display:none}
  .replay span{display:none}
  /* 手机上把账号入口推到右侧，别贴着品牌字；
     「重播进场动画」只是演示用的彩蛋，手机上让位给账号入口 */
  .replay{display:none}
  .topbar__tools{margin-left:auto}
  .topbar__acct{margin-right:2px}
  .replay{padding:0 9px}
  .theme-btn{padding:0 10px}
  .topnav{
    display:flex;order:3;width:100%;margin:9px 0 12px;
    overflow-x:auto;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .theme-btn{order:1}
  .topnav::-webkit-scrollbar{display:none}
  .topnav a{flex:0 0 auto;padding:7px 14px;font-size:13.5px}
  .realbox{order:2;flex:0 0 100%;width:100%;max-width:100%;min-width:0;height:40px;margin:10px 0 0;padding:0 14px}
  .chips{margin-left:0;justify-content:flex-start;gap:0}
  .chip{padding:6px 9px;font-size:13px}
  .chip.on::after{left:9px;right:9px}
  .steps{padding:40px 18px 70px;gap:18px}
  .step__top{padding:28px 24px 22px}
  .step__media{padding:22px 16px 24px;gap:14px 6px}
  .tile{width:calc(50% - 7px);gap:9px}
  .tile__ic{width:56px;height:56px;border-radius:13px}
  .tile__ic img{width:52px;height:52px}
  .tile__n{font-size:12px}
  /* 窄屏气泡不再 nowrap 居中飘出屏幕：贴合 tile 宽度自动换行，避免出现横向滚动条 */
  .tile__tip{
    left:0;right:0;width:auto;
    transform:translate(0,-6px);
    white-space:normal;text-align:center;
  }
  .tile:hover .tile__tip{transform:translate(0,0)}
  .steps .step:first-child .step__top{padding:30px 24px 20px}
  .steps .step:first-child .step__media{padding:20px 14px 24px;gap:12px 6px}
  .steps .step:first-child .tile{width:calc(50% - 7px)}
  .steps .step:first-child .tile__ic{width:64px;height:64px;border-radius:14px}
  .steps .step:first-child .tile__ic img{width:60px;height:60px}
  .foot__cols{grid-template-columns:repeat(2,1fr)}
  .rail{--cols:6;--gap:10px;--tile:38px}
  .rail__tip{font-size:11.5px;padding:9px 12px;min-width:132px}
  .foot__help{margin-left:0}
  .pillnav{width:100%;justify-content:center;margin-bottom:38px}
  .pillnav a{padding:8px 13px;font-size:13px}
}
@media (max-width:340px){
  .rail{--cols:5;--gap:8px;--tile:34px}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;animation-delay:0s!important;transition-duration:.01ms!important}
  .ink{stroke-dashoffset:0}
  .mkfill{opacity:1}
  .shine{display:none}
  .hm-ink{stroke-dashoffset:0}
  .hm-fill{opacity:1}
  .hm-shine{display:none}
  .splash__brand{opacity:1;transform:none}
}
