/* ==========================================================================
   Lich Tool · 首页样式
   白纸为主、暖黑为字、品牌朱红作强调；深色面板只用在「运行监测」一块，
   形成明暗对比，其余保持浅色。字体只用 Noto Sans SC + JetBrains Mono。
   ========================================================================== */

/* ---------- 字体 ---------- */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/lib/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/assets/lib/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 图标字体的 @font-face 现在只有一处声明，在 /assets/lib/mdi/mdi-subset.css。
   之前这里再写一份是为了压掉 icons.min.css 里那条同名的旧版本；
   现在那条已删、页面也换成子集版（4KB CSS + 6KB 字体），
   在这里重复声明只会重新引入「同名多来源、谁生效看顺序」的坑，所以撤掉。 */

/* ---------- 变量 ---------- */
:root {
    --paper: #fbfaf8;
    --paper-2: #f3f1ed;
    --paper-3: #ece9e3;
    --ink: #12100e;
    --ink-70: rgba(18, 16, 14, .70);
    --ink-52: rgba(18, 16, 14, .52);
    --ink-36: rgba(18, 16, 14, .36);
    --ink-20: rgba(18, 16, 14, .20);
    --line: rgba(18, 16, 14, .10);
    --line-soft: rgba(18, 16, 14, .06);
    --brand: #4a79f7;          /* 主色对齐登录页的蓝 */
    --brand-deep: #5470c9;
    --brand-soft: #eef3ff;
    --amber: #e8973a;
    --dark: #14120f;
    --dark-2: #1c1a16;
    --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --r: clamp(700px, 52vw, 880px);
    /* 三条轨迹：左小圆、中大弧（半圆）、右大圆。
       三个都是「盘直径」，图标就贴在这三条轨迹上走。 */
    --ring-0: clamp(250px, 15.5vw, 300px);
    --ring-1: clamp(440px, 29vw, 560px);
    --ring-2: clamp(420px, 25vw, 500px);
    --pad-x: clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- 解除首屏锁定 ---------- */
body.preload { overflow: visible; height: auto; }
body:not(.loaded) { visibility: visible; overflow-x: hidden; }

html, body { overflow-x: clip; }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }

::selection { background: var(--brand); color: #fff; }

/* ---------- 导航 ---------- */
.navbar {
    background: transparent !important;
    border-bottom: 1px solid transparent;
    padding-top: .7rem;
    padding-bottom: .7rem;
    transition: background-color .28s ease, border-color .28s ease, backdrop-filter .28s ease;
}
.navbar.scrolled {
    background: rgba(251, 250, 248, .86) !important;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--line-soft);
}
.navbar-brand,
.navbar .nav-link { font-family: var(--sans); }
.navbar-brand span { color: var(--ink) !important; letter-spacing: -.01em; }
.navbar .nav-link {
    color: var(--ink-52) !important;
    padding: .45rem .85rem !important;
    font-size: .86rem;
    transition: color .18s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--ink) !important; }
.navbar .nav-link.active { font-weight: 500; }
.navbar .btn-primary {
    background: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: .45rem 1.05rem !important;
    font-size: .82rem !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: opacity .2s ease;
}
.navbar .btn-primary:hover { opacity: .82; transform: none !important; }
.navbar .btn-primary::before { display: none !important; }
.navbar-toggler { border-color: var(--line) !important; color: var(--ink) !important; padding: .25rem .5rem; }
.navbar-toggler i { font-size: 1.15rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
#Home.hero-section {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 660px;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
    isolation: isolate;
}
#Home.hero-section::before,
#Home.hero-section::after { content: none !important; display: none !important; }
/* 底边不再是一条刀切的直角：盖一层纸色雾，把画面往页面上「化」过去。
   quickbar 自己也有宽度限制，两边露出的底边就靠这层收到一起。 */
#Home.hero-section .hero-foot-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(90px, 13vh, 150px);
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(251, 250, 248, 0) 0%,
        rgba(251, 250, 248, .55) 46%,
        rgba(251, 250, 248, .90) 74%,
        var(--paper) 100%);
}

/* 地面：随机背景图压在半透明白纱下，并且只在弧线内侧一圈透出 ——
   越靠近圆心越淡，最后溶进纸里。像隔着一层描图纸看远处的风景，
   而不是「贴一张大图当 hero 背景」。 */
.hero-ground {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to bottom,
            rgba(251, 250, 248, .99) 0%,
            rgba(251, 250, 248, .95) 26%,
            rgba(251, 250, 248, .62) 44%,
            rgba(251, 250, 248, .22) 60%,
            rgba(251, 250, 248, .10) 78%,
            rgba(251, 250, 248, .26) 100%),
        var(--hero-img, none);
    background-size: cover, cover;
    background-position: center center, center 62%;
    background-repeat: no-repeat, no-repeat;
    /* 退到纸面之后：只降一点饱和、压一点对比 */
    filter: saturate(.82) contrast(.88) brightness(1.04);
    opacity: .72;
    transition: opacity 1.6s ease;
    /* 圆形裁到弧线内，再用径向渐变让中心虚掉 */
    -webkit-mask-image:
        radial-gradient(ellipse calc(var(--r) * 2) calc(var(--r) * 2 * var(--tilt)) at 50% var(--orbit-cy),
            transparent 0%, transparent 42%,
            rgba(0, 0, 0, .35) 62%,
            rgba(0, 0, 0, .85) 82%,
            #000 96%, transparent 100%);
    mask-image:
        radial-gradient(ellipse calc(var(--r) * 2) calc(var(--r) * 2 * var(--tilt)) at 50% var(--orbit-cy),
            transparent 0%, transparent 42%,
            rgba(0, 0, 0, .35) 62%,
            rgba(0, 0, 0, .85) 82%,
            #000 96%, transparent 100%);
}
/* 脚本可用时先收敛到 0，再淡入；脚本挂了默认就是看得见的状态 */
html.js-anim .hero-ground { opacity: 0; }
html.js-anim.hero-ground-on .hero-ground { opacity: .72; }

/* ---------- 24 小时天色（three.js）----------
   canvas 由 skylight.js 塞进 #heroSky，铺满整个首屏。
   从地板线到顶部往下铺一层纸色渐变，让天色在标题一带淡到几乎没有，
   标题照常压在纸面上，越往下天色越浓、山脊越实。
   失败时这里什么都没有，.hero-ground 那条纸色渐变照常显示，不会白屏。 */
.hero-sky {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    -webkit-mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, .12) 22%,
        rgba(0, 0, 0, .45) 42%,
        rgba(0, 0, 0, .82) 58%,
        #000 74%,
        #000 100%);
    mask-image: linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, .12) 22%,
        rgba(0, 0, 0, .45) 42%,
        rgba(0, 0, 0, .82) 58%,
        #000 74%,
        #000 100%);
}
/* 两层叠在同一块 [0,0] 上：
   canvas（z0）= three 画的天光，svg（z1）= 五层矢量山脊 + 山后辉光 + 雾带。
   都是绝对定位，谁后到都不影响排版。 */
.hero-sky canvas,
.hero-sky svg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.hero-sky canvas { z-index: 0; }
.hero-sky svg {
    z-index: 1;
    shape-rendering: geometricPrecision;
}
/* 注意：这里不要加 will-change: transform。
   山脊的视差走的是 SVG 的 transform 属性，浏览器不会因此提升图层；
   但 will-change 会真的给每个 <g>（5 层山 + 辉光）各开一个合成层，
   手机上就是 6 个全屏层一起做遮罩合成 —— 掉帧的主要来源之一。 */
html.hero-sky-on .hero-sky { opacity: 1; }
/* three.js 起来了，兜底渐变只留上半屏那层纸色，下半屏交给天色 */
html.hero-sky-on .hero-ground {
    background-image: linear-gradient(to bottom,
        rgba(251, 250, 248, .99) 0%,
        rgba(251, 250, 248, .92) 30%,
        rgba(251, 250, 248, .45) 48%,
        rgba(251, 250, 248, .06) 62%,
        rgba(251, 250, 248, 0) 72%);
    filter: none;
    opacity: 1;
}
/* 天色只在下边缘继续往下铺，让山峰越过首屏那条线，和下面的内容接上 */
html.hero-sky-on .hero-sky {
    bottom: -clamp(60px, 9vh, 110px);
}

/* ---------- 首屏与下方内容的交界 ----------
   原来是一条 1px 直线把「有画的地面」和「一张白纸」切开，很硬。
   现在把 quickbar 收到和正文同一个宽度，左右露出的是纸色；再用一条暖色雾带
   从地面底部漫上去，交界就从「切线」变成了「雾」。 */
.hero-horizon-seam {
    position: relative;
    z-index: 1;
    margin-top: -1px;
    height: clamp(56px, 9vh, 96px);
    pointer-events: none;
    background:
        radial-gradient(ellipse 62% 130% at 50% 100%,
            rgba(232, 151, 58, .10) 0%,
            rgba(232, 151, 58, .05) 38%,
            transparent 72%),
        linear-gradient(to bottom,
            rgba(251, 250, 248, 0) 0%,
            rgba(251, 250, 248, .72) 58%,
            var(--paper) 100%);
}

/* 地平线高光：弧线本身带一层暖光，让「地面」从纸里浮出来 */
.hero-horizon-glow {
    position: absolute;
    left: 50%;
    top: calc(var(--orbit-cy) - var(--r) * var(--tilt));
    width: calc(var(--r) * 2);
    height: calc(var(--r) * 2);
    transform: scaleY(var(--tilt));
    margin-left: calc(var(--r) * -1);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 90px 6px rgba(232, 151, 58, .16),
                inset 0 2px 0 rgba(255, 255, 255, .9);
    opacity: 1;
    transition: opacity 1.2s ease;
}
html.js-anim .hero-horizon-glow { opacity: 0; }
html.js-anim.hero-ground-on .hero-horizon-glow { opacity: 1; }
/* 天色层起来之后，地平线的光由 skylight.js 算（跟着太阳的位置走）。
   这里只留一层很淡的暖氛围，去掉那道 inset 白色弧线 ——
   否则山脊压上去以后，它会变成一条横穿画面的白线。 */
html.hero-sky-on .hero-horizon-glow {
    box-shadow: 0 0 80px 4px rgba(232, 151, 58, .10);
}

/* ---------- 中央内容 ---------- */
.hero-center {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: min(100%, 840px);
    padding: clamp(4.6rem, 12vh, 7.6rem) 1.5rem 0;
    text-align: center;
    /* 盘在上面，标题必须盖在盘的节点之上：节点转到标题区会被压到下面而不是浮在字上 */
    z-index: 6;
    pointer-events: none;
}
.hero-center .hero-cta { pointer-events: auto; }
/* 中间半圆环的弧顶偶尔会擦到按钮：按钮自己站到最上面，节点从它背后过 */
.hero-center .hero-cta { position: relative; z-index: 2; }

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .95rem .4rem .7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--sans);
    font-size: .74rem;
    color: var(--ink-52);
    background: rgba(251, 250, 248, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: clamp(1.1rem, 2.8vh, 1.9rem);
}
.hero-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.hero-hi {
    font-family: var(--sans);
    font-size: clamp(.92rem, 1.4vw, 1.15rem);
    font-weight: 400;
    color: var(--ink-52);
    margin-bottom: .5rem;
}

#Home .hero-title {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(2.9rem, 7.8vw, 7.4rem);
    line-height: 1.02 !important;
    letter-spacing: .005em;
    color: var(--ink);
    margin: 0 0 clamp(.95rem, 2.4vh, 1.5rem);
    text-wrap: balance;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--sans);
    font-size: clamp(.76rem, 1vw, .9rem);
    color: var(--ink-52);
    margin-bottom: clamp(1.5rem, 3.6vh, 2.4rem);
}
.hero-tags i { font-style: normal; color: var(--ink-20); }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .7rem;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .68rem 1.5rem;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: .84rem;
    text-decoration: none !important;
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(251, 250, 248, .9);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hero-btn:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-20); }
.hero-btn--primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.hero-btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.hero-btn i { font-size: .95rem; }

/* ---------- 两侧工具卡（打字机） ---------- */
.hero-aside {
    position: absolute;
    top: clamp(15rem, 34vh, 22rem);
    width: clamp(190px, 17.5vw, 258px);
    z-index: 4;
    font-family: var(--sans);
    pointer-events: none;
    opacity: 1;
    transition: opacity .5s ease, transform .5s ease;
}
.hero-aside--l { left: var(--pad-x); }
.hero-aside--r { right: var(--pad-x); }
/* 只有脚本可用时才做入场：脚本挂了也照样能看到两张卡片 */
html.js-anim .hero-aside { opacity: 0; transform: translateY(10px); }
html.js-anim .hero-aside.is-on { opacity: 1; transform: translateY(0); }

.aside-k {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .14em;
    color: var(--ink-36);
    margin-bottom: .55rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.aside-k::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.aside-card {
    /* 天色打开后卡背后是亮的天空，半透明底会把字吃掉，所以底色给到接近实心 */
    background: rgba(251, 250, 248, .94);
    backdrop-filter: blur(12px) saturate(1.25);
    -webkit-backdrop-filter: blur(12px) saturate(1.25);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .85rem .9rem .9rem;
    box-shadow: 0 10px 30px -18px rgba(18, 16, 14, .35);
    transition: opacity .32s ease, transform .32s ease;
}
.aside-card.is-out { opacity: 0; transform: translateY(-6px); }

.aside-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--brand);
    background: var(--brand-soft);
    margin-bottom: .6rem;
}
.aside-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

.aside-name {
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: .3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aside-desc {
    font-size: .74rem;
    line-height: 1.62;
    color: var(--ink-52);
    min-height: 2.4em;
    display: block;
}
.aside-desc .caret {
    display: inline-block;
    width: 1px;
    height: .92em;
    background: var(--brand);
    vertical-align: -.12em;
    margin-left: 1px;
    animation: caretBlink .85s step-end infinite;
}
.aside-desc.is-done .caret { animation: none; opacity: 0; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---------- 三个工具圆环 ----------
   左下、右下各一个整圆，正下方中间一个半圆。
   三个圆心不同、半径不同，所以三条弧线互不穿插；
   每个环整圈套一圈虚线轨，节点挂在轨上慢慢转，一圈顺时针、一圈逆时针、一圈顺时针。 */
.hero-rings {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

/* ---------- 三个工具环（SVG 版） ----------
   轨迹、图标全都由 rings.js 画进同一个 <svg>：轨迹就是一条 path，
   图标用 animateMotion 挂在这条 path 上。几何只有一份，不会对不上。 */
.hero-rings {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.rings-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 轨道线：一条细发丝线，压在天空上但不抢字 */
.ring-track {
    stroke: rgba(11, 11, 12, .16);
    stroke-width: 1.2;
    fill: none;
    vector-effect: non-scaling-stroke;
}
.ring-track--2 {
    stroke: rgba(11, 11, 12, .20);
}

/* 图标底盘 */
.ring-disc {
    fill: rgba(255, 255, 255, .96);
    stroke: rgba(11, 11, 12, .14);
    stroke-width: 1;
    transition: stroke .18s ease;
}

/* 图标字形：MDI 字体，白色底盘上的墨色字 */
.ring-glyph {
    fill: var(--ink);
    font-family: 'Material Design Icons', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    text-rendering: geometricPrecision;
    pointer-events: none;
    user-select: none;
}

.ring-node {
    transition: filter .18s ease;
}

/* 侧栏正在介绍的那个节点：反色高亮 + 一圈品牌蓝描边，让人一眼在环上找到它 */
.ring-node.is-focus .ring-disc {
    fill: var(--ink);
    stroke: var(--brand);
    stroke-width: 2;
}
.ring-node.is-focus .ring-glyph {
    fill: #fff;
}
.ring-node.is-focus {
    filter: drop-shadow(0 0 6px rgba(74, 121, 247, .45));
}
.ring-node:hover .ring-disc,
.ring-node:focus-visible .ring-disc {
    stroke: var(--ink);
    stroke-width: 1.6;
}
.ring-node:focus-visible {
    outline: none;
}

/* 关闭动效时不跑动画，图标停在路径起点 */
@media (prefers-reduced-motion: reduce) {
    .rings-svg animateMotion { display: none; }
}

@keyframes toolSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes toolSpinRev {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
/* 逆时针的环，圆盘图标要反向自转，否则图标是倒着的 */
@keyframes discSpinRev {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* ---------- 四角状态 ---------- */
.hero-hud {
    position: absolute;
    z-index: 5;
    font-family: var(--mono);
    font-size: .68rem;
    line-height: 1.6;
    color: var(--ink-36);
    letter-spacing: .06em;
    pointer-events: none;
}
.hero-hud .k { color: var(--ink-52); }
.hero-hud .v { color: var(--ink-36); }
.hero-hud--tl { top: clamp(4.6rem, 10vh, 6.4rem); left: var(--pad-x); }
.hero-hud--tr { top: clamp(4.6rem, 10vh, 6.4rem); right: var(--pad-x); text-align: right; }
.hero-hud--bl { bottom: clamp(1.2rem, 3vh, 2rem); left: var(--pad-x); }
.hero-hud--br { bottom: clamp(1.2rem, 3vh, 2rem); right: var(--pad-x); text-align: right; }

/* 底部两角正好是弧线穿出视口的位置，节点会从这儿滑过去。
   所以给它们一块不透明纸底 + 发丝边，节点经过时是被标签挡住，
   而不是从半透明底上透出来糊成一团。 */
.hero-hud--bl,
.hero-hud--br {
    padding: .4rem .6rem;
    margin: 0 -.6rem -.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
}

/* ---------- 悬停提示 ---------- */
.hero-tip {
    position: fixed;
    z-index: 9999;
    max-width: 17rem;
    padding: .6rem .8rem;
    background: var(--dark);
    color: #fff;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: .74rem;
    line-height: 1.55;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease;
    box-shadow: 0 12px 32px rgba(18, 16, 14, .22);
}
.hero-tip.show { opacity: 1; transform: translateY(0); }
.hero-tip b { display: block; font-weight: 500; margin-bottom: .15rem; }
.hero-tip span { color: rgba(255, 255, 255, .62); }

/* ---------- 快捷入口条 ---------- */
.hero-actions-section {
    background: var(--paper);
    padding: 0 var(--pad-x) clamp(1.4rem, 3vh, 2.2rem);
}
.hero-actions-section .container { max-width: none; padding: 0; }
.hero-actions-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    border-top: 1px solid var(--line-soft);
    padding-top: clamp(1rem, 2.4vh, 1.6rem);
}
.hero-actions-container .btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--paper-2) !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    color: var(--ink-70) !important;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 400 !important;
    padding: .45rem .95rem !important;
    box-shadow: none !important;
    transform: none !important;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hero-actions-container .btn:hover {
    background: #fff !important;
    border-color: var(--line) !important;
    color: var(--ink) !important;
}
.hero-actions-container .btn i { font-size: .9rem; color: var(--ink-36); }
.hero-actions-container .btn::before { display: none !important; }

/* ==========================================================================
   区块通用
   ========================================================================== */
.section {
    padding: clamp(3.6rem, 8vh, 6.5rem) 0;
    position: relative;
    /* 锚点跳转时留出固定导航的高度，否则标题会被导航条压住 */
    scroll-margin-top: 78px;
}
.section--tight { padding: clamp(2.6rem, 6vh, 4.5rem) 0; }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--dark); color: #f4f1ec; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .6rem 1rem;
    margin-bottom: clamp(2rem, 4.6vh, 3.2rem);
}
.section-head .idx {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .14em;
    color: var(--ink-36);
    padding-top: .35rem;
}
.section-head h2 {
    font-size: clamp(1.55rem, 3.2vw, 2.5rem);
    font-weight: 600;
    line-height: 1.16;
    margin: 0;
    letter-spacing: -.01em;
}
.section-head h2 .thin { color: var(--ink-36); font-weight: 400; }
.section-head p {
    flex: 1 1 18rem;
    margin: 0;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--ink-52);
    max-width: 46ch;
}
.section--dark .section-head .idx { color: rgba(244, 241, 236, .42); }
.section--dark .section-head h2 { color: #f4f1ec; }
.section--dark .section-head h2 .thin { color: rgba(244, 241, 236, .38); }
.section--dark .section-head p { color: rgba(244, 241, 236, .58); }

/* 旧 class 兜底，避免残留标记塌掉 */
.section-title { font-weight: 600; }
.section-subtitle { color: var(--ink-52); }
.text-muted { color: var(--ink-52) !important; }
.text-primary { color: var(--brand) !important; }
.bg-white { background: var(--paper) !important; }
.bg-light { background: var(--paper-2) !important; }

/* ==========================================================================
   分隔带：把 49 个工具摊开成一条横带
   深色条 + 末端的余量块。取这个形状是因为首页没有「分类」这一层，
   读者在圆环上看到的是一圈散点，需要一条带子告诉他这些点能分成几堆。
   ========================================================================== */
.strap {
    margin: clamp(1.4rem, 3vw, 2.2rem) 0;
    border-radius: 20px;
    overflow: hidden;
    background: #eef3ff;
    color: var(--ink);
    border: 1px solid rgba(74, 121, 247, .12);
    box-shadow: none;
}
.strap-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.strap-item {
    padding: 1.05rem 1.15rem 1.15rem;
    border-right: 1px solid rgba(18, 16, 14, .08);
    min-width: 0;
}
.strap-item:last-child {
    border-right: 0;
    background: rgba(74, 121, 247, .07);
}
.strap-cat {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    color: var(--ink-52);
    white-space: nowrap;
}
.strap-cat .c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 5px;
    background: rgba(74, 121, 247, .12);
    color: var(--brand);
    font-family: var(--mono);
    font-size: .72rem;
    line-height: 1;
}
.strap-cat em {
    margin-left: auto;
    font-family: var(--mono);
    font-style: normal;
    font-size: .7rem;
    color: var(--ink-36);
}
.strap-num {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-top: .5rem;
    flex-wrap: wrap;
}
.strap-num b {
    font-family: var(--mono);
    font-size: clamp(1.15rem, 2.1vw, 1.5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
}
.strap-item:last-child .strap-num b { color: var(--brand); }
.strap-num span {
    font-size: .7rem;
    color: var(--ink-36);
}

@media (max-width: 991px) {
    .strap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .strap-item:nth-child(2n) { border-right: 0; }
    .strap-item:nth-child(-n+2) { border-bottom: 1px solid rgba(18, 16, 14, .08); }
}
@media (max-width: 420px) {
    .strap-item { padding: .85rem .9rem .95rem; }
    .strap-cat { font-size: .78rem; }
}

/* ==========================================================================
   运行监测（深色面板）
   ========================================================================== */
.monitor {
    position: relative;
    border-radius: 18px;
    background: var(--dark);
    color: #f4f1ec;
    padding: clamp(1.1rem, 2.4vw, 1.8rem);
    overflow: hidden;
    box-shadow: 0 30px 70px -40px rgba(18, 16, 14, .6);
}
.monitor-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem 1.1rem;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .07em;
    color: rgba(244, 241, 236, .48);
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(244, 241, 236, .10);
}
.monitor-top .rec {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #7fa9ff;
}
.monitor-top .rec::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7fa9ff;
    box-shadow: 0 0 0 3px rgba(127, 169, 255, .22);
    animation: recPulse 2s ease-in-out infinite;
}
@keyframes recPulse { 50% { opacity: .35; } }
.monitor-top .sp { margin-left: auto; }

.monitor-chart {
    position: relative;
    margin-top: .2rem;
    height: clamp(160px, 26vh, 250px);
}
.monitor-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.monitor-chart .grid line { stroke: rgba(244, 241, 236, .07); stroke-width: 1; }
.monitor-chart .area { fill: url(#monArea); }
.monitor-chart .line {
    fill: none;
    stroke: #7fa9ff;
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.monitor-chart .dot { fill: var(--dark); stroke: #7fa9ff; stroke-width: 1.6; }
.monitor-chart .lbl {
    font-family: var(--mono);
    font-size: 9px;
    fill: rgba(244, 241, 236, .34);
}
.monitor-chart .val {
    font-family: var(--mono);
    font-size: 10px;
    fill: rgba(244, 241, 236, .72);
}

.monitor-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .05em;
    color: rgba(244, 241, 236, .4);
    padding-top: .5rem;
    border-top: 1px solid rgba(244, 241, 236, .08);
    margin-top: .6rem;
}
.monitor-legend b { color: #7fa9ff; font-weight: 400; }

.monitor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: rgba(244, 241, 236, .09);
    border-radius: 12px;
    overflow: hidden;
    margin-top: clamp(1rem, 2.4vw, 1.5rem);
}
.monitor-stat {
    background: var(--dark);
    padding: .9rem 1rem 1rem;
}
.monitor-stat .k {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .1em;
    color: rgba(244, 241, 236, .38);
    margin-bottom: .3rem;
}
.monitor-stat .v {
    font-family: var(--sans);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.1;
    color: #f4f1ec;
    font-variant-numeric: tabular-nums;
}
.monitor-stat .v small { font-size: .58em; font-weight: 400; color: rgba(244, 241, 236, .45); margin-left: .18em; }

/* ==========================================================================
   功能：bento 网格
   ========================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(.7rem, 1.4vw, 1rem);
}
.bento-cell {
    grid-column: span 4;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(1.1rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    position: relative;
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .22s ease;
}
.bento-cell:hover { border-color: var(--ink-20); box-shadow: 0 16px 40px -28px rgba(18, 16, 14, .45); }
.bento-cell--wide { grid-column: span 6; }
.bento-cell--half { grid-column: span 6; }
/* 六张卡统一白底细边，不再深浅混排：层次靠编号、字号和卡内那条蓝色 CTA 来分，
   而不是靠换底色 —— 深浅混排在白底页面里就是脏。 */
.bento-cell--dark { background: #fff; border-color: var(--line); color: var(--ink); }
.bento-cell--brand { background: #fff; border-color: var(--brand); color: var(--ink); }

.bento-idx {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .12em;
    color: var(--ink-36);
    margin-bottom: .2rem;
}
.bento-cell--dark .bento-idx { color: var(--ink-36); }
.bento-cell--brand .bento-idx { color: var(--brand); }
.bento-cell--brand .bento-idx { color: rgba(255, 255, 255, .62); }

.bento-cell h3 {
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: inherit;
}
.bento-cell p {
    font-size: .84rem;
    line-height: 1.72;
    color: var(--ink-52);
    margin: 0;
}
.bento-cell--dark p { color: var(--ink-52); }
.bento-cell--brand p { color: var(--ink-52); }

.bento-fact {
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .04em;
    color: var(--ink-36);
    display: flex;
    align-items: baseline;
    gap: .4rem;
}
.bento-cell--dark .bento-fact { border-top-color: var(--line-soft); color: var(--ink-36); }
.bento-cell--brand .bento-fact { border-top-color: rgba(74, 121, 247, .16); color: var(--ink-36); }
.bento-fact b {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.bento-cell--dark .bento-fact b { color: var(--ink); }
.bento-cell--brand .bento-fact b { color: var(--ink); }

/* 第 1 格：实时运行时长 */
.bento-runtime { font-variant-numeric: tabular-nums; }
.bento-runtime .num {
    font-family: var(--mono);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--ink);
}
.bento-cell--dark .bento-runtime .num { color: var(--brand); }
/* .sub 原是按深色卡调的；深色卡改成淡蓝灰后，白卡那套墨字就能直接用了 */
.bento-cell--dark .bento-runtime .sub { color: var(--ink-36); }
.bento-runtime .sub {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .1em;
    color: var(--ink-36);
    margin-top: .3rem;
}

/* ==========================================================================
   等级价格（新版：切换条 + 卡片 + 折叠）
   ========================================================================== */
.price-switch {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-bottom: clamp(1.2rem, 2.6vh, 1.7rem);
}
.price-switch-btn {
    font-family: var(--sans);
    font-size: .8rem;
    padding: .44rem 1.05rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--ink-52);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.price-switch-btn:hover { color: var(--ink); }
.price-switch-btn.active { background: var(--brand); color: #fff; }

.level-tab-content { display: none; }
.level-tab-content.active { display: block; }

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: clamp(.7rem, 1.4vw, 1rem);
}
.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.35rem 1.25rem 1.2rem;
    transition: border-color .22s ease, box-shadow .22s ease;
}
.price-card:hover { border-color: var(--ink-20); box-shadow: 0 18px 44px -32px rgba(18, 16, 14, .42); }
.price-card--hot { border-color: var(--brand); }
.price-flag {
    position: absolute;
    top: .9rem;
    right: .9rem;
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .1em;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: .12rem .5rem;
}
.price-name {
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 .6rem;
    padding-right: 3.4rem;
}
.price-amount {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    margin-bottom: 1rem;
}
.price-amount b {
    font-family: var(--sans);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.price-amount span {
    font-size: .74rem;
    color: var(--ink-36);
}
.price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
    flex: 1;
}
.price-list li {
    position: relative;
    font-size: .78rem;
    line-height: 1.6;
    color: var(--ink-52);
    padding-left: .95rem;
    margin-bottom: .34rem;
}
.price-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .64em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .55;
}
.price-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .78rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-70);
    text-decoration: none !important;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.price-buy i { font-size: .82rem; opacity: .6; }
.price-buy:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.price-buy:hover i { opacity: 1; }

.price-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1rem;
    margin-top: clamp(1.4rem, 3vh, 2rem);
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
    font-size: .76rem;
    color: var(--ink-36);
}
.price-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: var(--sans);
    font-size: .76rem;
    padding: .4rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-52);
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease;
}
.price-more:hover { border-color: var(--ink-20); color: var(--ink); }

/* ==========================================================================
   常见问题（details/summary 手风琴）
   ========================================================================== */
.qa {
    border-top: 1px solid var(--line);
}
.qa-item {
    border-bottom: 1px solid var(--line);
}
.qa-item summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: clamp(.9rem, 2vh, 1.25rem) .2rem;
    cursor: pointer;
    list-style: none;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-n {
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .08em;
    color: var(--ink-36);
    flex-shrink: 0;
}
.qa-q {
    font-size: clamp(.95rem, 1.7vw, 1.12rem);
    font-weight: 500;
    color: var(--ink);
    flex: 1;
    min-width: 0;
}
.qa-i {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink-52);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.qa-item[open] .qa-i { transform: rotate(45deg); border-color: var(--ink-20); color: var(--ink); }
.qa-item summary:hover .qa-i { border-color: var(--ink-20); color: var(--ink); }
.qa-a {
    font-size: .86rem;
    line-height: 1.75;
    color: var(--ink-52);
    padding: 0 2.6rem clamp(1rem, 2vh, 1.4rem) 2.4rem;
    max-width: 68ch;
}
.qa-a a { color: var(--brand); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ==========================================================================
   应用库
   ========================================================================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(.8rem, 1.6vw, 1.1rem);
}
.app-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    transition: border-color .22s ease, box-shadow .22s ease;
}
.app-card::before { display: none; }
.app-card:hover { border-color: var(--ink-20); box-shadow: 0 18px 44px -32px rgba(18, 16, 14, .45); }
.app-card-top { display: flex; gap: .9rem; align-items: flex-start; }
.app-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.app-icon-fallback { font-size: 1.3rem; font-weight: 600; color: var(--brand); opacity: .75; }
.app-title-wrap { min-width: 0; }
.app-name { font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; color: var(--ink); }
.app-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.app-tag {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .04em;
    padding: .12rem .5rem;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink-52);
}
.app-tag-pin { background: var(--brand-soft); color: var(--brand-deep); }
.app-summary {
    margin: .9rem 0 .8rem;
    font-size: .84rem;
    color: var(--ink-52);
    line-height: 1.68;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-meta { display: flex; flex-wrap: wrap; gap: .35rem; font-family: var(--mono); font-size: .64rem; color: var(--ink-36); margin-bottom: .8rem; }
.app-meta span { background: var(--paper-2); border-radius: 5px; padding: .12rem .45rem; }
.app-links { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .9rem; }
.app-link-chip {
    font-family: var(--mono);
    font-size: .62rem;
    padding: .14rem .5rem;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.app-actions { display: flex; gap: .5rem; margin-top: auto; }
.app-actions .btn {
    flex: 1;
    padding: .5rem .9rem !important;
    font-size: .78rem !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    transform: none !important;
}
.app-actions .btn::before { display: none !important; }
.apps-empty { text-align: center; color: var(--ink-36); padding: 2.5rem 1rem; font-size: .86rem; }

/* 只有一个应用时，卡片横过来占满一整行，别在右边留一块空地 */
.apps-grid--solo { grid-template-columns: minmax(0, 1fr); }
.apps-grid--solo .app-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "head  head"
        "sum   meta"
        "links act";
    gap: .3rem 2.6rem;
    padding: 1.75rem 2rem;
    align-items: start;
}
.apps-grid--solo .app-card-top { grid-area: head; align-items: center; margin-bottom: .5rem; }
.apps-grid--solo .app-icon { width: 62px; height: 62px; border-radius: 14px; }
.apps-grid--solo .app-name { font-size: 1.2rem; }
.apps-grid--solo .app-summary {
    grid-area: sum;
    margin: 0;
    font-size: .9rem;
    -webkit-line-clamp: 3;
}
.apps-grid--solo .app-meta { grid-area: meta; margin: 0; justify-content: flex-end; align-self: center; }
.apps-grid--solo .app-links { grid-area: links; margin: .5rem 0 0; }
.apps-grid--solo .app-actions { grid-area: act; margin: .5rem 0 0; justify-content: flex-end; }
.apps-grid--solo .app-actions .btn { flex: 0 0 auto; padding: .5rem 1.3rem !important; }

@media (max-width: 860px) {
    .apps-grid--solo .app-card {
        display: flex;
        padding: 1.4rem;
        gap: 0;
    }
    .apps-grid--solo .app-meta { justify-content: flex-start; margin: .2rem 0 .8rem; }
    .apps-grid--solo .app-actions { margin-top: 1rem; justify-content: flex-start; }
    .apps-grid--solo .app-actions .btn { flex: 1; }
}

/* ==========================================================================
   合作厂商：无限滚动
   轨道里放 4 份相同内容，动画走 -75% 时第三份正好落在第一份的起始位置，
   所以看不出接缝。hover / 键盘聚焦时暂停（WCAG 2.2.2 要求能停下来）。
   ========================================================================== */
.partner-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.partner-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
    will-change: transform;
}
.partner-marquee:hover .partner-marquee-track,
.partner-marquee:focus-within .partner-marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-75%, 0, 0); }
}
.partner-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 0 clamp(1.3rem, 3.4vw, 2.8rem);
    white-space: nowrap;
}
.partner-item img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    padding: 7px 11px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .10);
    flex-shrink: 0;
}
.partner-item img[src$="baidu-map.png"] { height: 40px; padding: 8px; }
/* 同花顺是横排「图标+汉字」的长条标（约 4:1），按通用 40px 高会顶满 160px 宽显得压秤；
   压窄到 132px，白块高度仍与其他家一致（contain 会等比缩小并垂直居中） */
.partner-item img[src$="tonghuashun.png"] { max-width: 132px; }
.partner-item span {
    font-size: .9rem;
    letter-spacing: .01em;
}
/* 深色底那一版 */
.partner-marquee--dark {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(244, 241, 236, .12);
    border-bottom: 1px solid rgba(244, 241, 236, .12);
}
.partner-marquee--dark .partner-item span { color: rgba(244, 241, 236, .82); }
.partner-item:hover span { color: #fff; }

/* ==========================================================================
   页脚（新版：三段式，不是四列链接模板）
   ========================================================================== */
.foot {
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: clamp(2.4rem, 5.5vh, 3.6rem) 0 1.5rem;
}
.foot-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .9fr);
    gap: clamp(1.6rem, 4vw, 3rem);
    align-items: start;
    padding-bottom: clamp(1.8rem, 4vh, 2.6rem);
}
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.foot-brand img { flex-shrink: 0; }
.foot-brand b {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
}
.foot-brand span {
    display: block;
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .05em;
    color: var(--ink-36);
    margin-top: .18rem;
}
.foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.3rem;
}
.foot-nav a,
.foot-contact a {
    font-size: .82rem;
    color: var(--ink-52);
    text-decoration: none;
    transition: color .18s ease;
}
.foot-nav a:hover,
.foot-contact a:hover { color: var(--ink); }
.foot-contact {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.2rem;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: .66rem;
    letter-spacing: .04em;
    color: var(--ink-36);
}
.foot-bottom a { color: var(--ink-36); text-decoration: none; margin-left: auto; }
.foot-bottom a:hover { color: var(--ink-52); }

/* ==========================================================================
   快捷入口条
   ========================================================================== */
.quickbar {
    background: var(--paper);
    padding: 0 0 clamp(1.4rem, 3vh, 2.2rem);
}
.quickbar-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.quickbar-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--paper);
    padding: .85rem 1rem;
    text-decoration: none !important;
    transition: background-color .18s ease;
}
.quickbar-item:hover { background: #fff; }
.quickbar-item i {
    font-size: 1.05rem;
    color: var(--ink-36);
    flex-shrink: 0;
    transition: color .18s ease;
}
.quickbar-item:hover i { color: var(--brand); }
.quickbar-item span { display: flex; flex-direction: column; min-width: 0; }
.quickbar-item b {
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
}
.quickbar-item em {
    font-family: var(--mono);
    font-style: normal;
    font-size: .62rem;
    letter-spacing: .03em;
    color: var(--ink-36);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   应用库补充
   ========================================================================== */
.apps-more {
    display: flex;
    justify-content: center;
    margin-top: clamp(1.4rem, 3vh, 2rem);
}
.apps-more a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    color: var(--ink-52);
    text-decoration: none;
    padding: .5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color .18s ease, color .18s ease;
}
.apps-more a:hover { border-color: var(--ink-20); color: var(--ink); }
.app-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: .76rem;
    padding: .46rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-70);
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.app-btn:hover { border-color: var(--ink-20); color: var(--ink); }
.app-btn--fill {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff !important;
}
.app-btn--fill:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff !important; }

/* ==========================================================================
   通用按钮（覆盖 Bootstrap / 旧样式）
   ========================================================================== */
.btn {
    font-family: var(--sans);
    border-radius: 999px;
    font-weight: 400;
    box-shadow: none;
    transform: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn::before { display: none !important; }
.btn:hover { transform: none !important; box-shadow: none !important; }
.btn-primary {
    background: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
}
.btn-primary:hover { background: var(--brand-deep) !important; border-color: var(--brand-deep) !important; }
.btn-outline-primary {
    background: transparent !important;
    border: 1px solid var(--line) !important;
    color: var(--ink-70) !important;
}
.btn-outline-primary:hover { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.btn-success, .btn-purple, .btn-red {
    background: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    color: #fff !important;
}
.btn-success:hover, .btn-purple:hover, .btn-red:hover { background: var(--brand-deep) !important; border-color: var(--brand-deep) !important; }

.card {
    border: 1px solid var(--line) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    background: #fff;
    transition: border-color .22s ease, box-shadow .22s ease;
}
.card:hover { transform: none !important; box-shadow: none !important; }
.hover-shadow:hover { border-color: var(--ink-20) !important; }

/* 入场动画：默认可见，只有脚本接管时才隐藏 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in-up, .fade-in { opacity: 1; }
html.js-anim .fade-in-up { opacity: 0; animation: fadeInUp .7s cubic-bezier(.2, .8, .2, 1) forwards; }
html.js-anim .fade-in { opacity: 0; animation: fadeIn .9s ease forwards; }
.animated { opacity: 1; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 10px 30px -12px rgba(18, 16, 14, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease, background-color .2s ease;
    z-index: 999;
    text-decoration: none !important;
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: rgba(18, 16, 14, .22); border-radius: 10px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: rgba(18, 16, 14, .38); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1400px) {
    .hero-aside { width: clamp(180px, 16vw, 220px); }
    .hero-center { width: min(100%, 800px); }
}

@media (max-width: 1200px) {
    :root { --r: clamp(620px, 56vw, 880px); --orbit-cy: 76%; --tilt: .68; }
    .hero-aside { display: none; }
    .hero-center { width: min(100%, 900px); }
    .bento-cell { grid-column: span 6; }
    .bento-cell--wide, .bento-cell--half { grid-column: span 6; }
}

@media (max-width: 991px) {
    :root { --r: clamp(360px, 78vw, 540px); --orbit-cy: 86%; --tilt: .58; }
    .hero-hud { font-size: .62rem; }
    .hero-hud--tl, .hero-hud--tr { top: clamp(4rem, 9vh, 5.2rem); }
    .section-head { gap: .4rem .8rem; }
    .section-head p { flex-basis: 100%; }
    .bento-cell { grid-column: span 12; }
    .bento-cell--wide, .bento-cell--half { grid-column: span 12; }
    .price-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

@media (max-width: 767px) {
    :root { --r: clamp(300px, 72vw, 460px); --orbit-cy: 82%; --tilt: .56; }
    #Home.hero-section { min-height: 580px; }
    .hero-center { padding-top: clamp(5.4rem, 15vh, 7rem); }
    #Home .hero-title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
    /* 手机上四角 HUD 与居中内容抢位置：左上信息收到导航下方一行，
       右上直接不显示，底部两个贴在弧线外侧。 */
    .hero-hud--tl { top: clamp(4.2rem, 8.5vh, 5rem); left: var(--pad-x); right: var(--pad-x); }
    .hero-hud--tl .v { display: none; }
    .hero-hud--tr { display: none; }
    .hero-hud { font-size: .58rem; letter-spacing: .04em; }
    .hero-hud--bl, .hero-hud--br { bottom: clamp(.7rem, 1.6vh, 1.1rem); }
    .hero-tip { display: none; }
    .hero-tags { font-size: .74rem; gap: .4rem; }
    .hero-btn { padding: .6rem 1.2rem; font-size: .8rem; }
    .apps-grid { grid-template-columns: 1fr; }
    .price-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .monitor-chart { height: 150px; }
    /* 页脚三列在 375px 下每列只剩 ~95px，「群英工作室 · 始于 2022」会折成四行。
       改成两段式：品牌占满一行，导航与联系并排。 */
    .foot-top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.4rem 1rem;
    }
    .foot-brand { grid-column: 1 / -1; }
    .foot-brand span { white-space: nowrap; }
    .foot-nav { gap: .4rem .9rem; }
    .foot-nav a, .foot-contact a { font-size: .78rem; }
    .foot-bottom { font-size: .62rem; padding-bottom: 2.6rem; }
    .site-footer .foot-bottom .sp { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
    :root { --orbit-cy: 70%; }
    .hero-pill { font-size: .68rem; }
    .price-grid { grid-template-columns: 1fr 1fr; }
    .price-feats li { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
    .partner-marquee-track { animation: none; }
    html.js-anim .fade-in-up,
    html.js-anim .fade-in { animation: none; opacity: 1; }
    .aside-desc .caret { animation: none; }
    .monitor-top .rec::before { animation: none; }
    * { transition-duration: .01ms !important; }
}
