/* ==========================================================================
   四方模板网 · 设计系统 (app.css)
   --------------------------------------------------------------------------
   目标：替换散落在各模板里的 200+ 行内联样式与重复的 <style> 块。
   规则：
   1. 全部类名为 s- 前缀，与 Bootstrap / layui / common.css 零冲突；
   2. 只依赖 CSS 变量，改色改圆角只动 :root；
   3. 覆盖 common.css 的 html{min-width:1200px}，恢复移动端可用性；
   4. 亮色主题（白底 + 薄荷绿品牌色），四档响应式：1024 / 820 / 768 / 420。
   ========================================================================== */

:root {
    /* 品牌 */
    --s-brand: var(--brand, #10b981);
    --s-brand-2: #84cc16;
    --s-brand-grad: linear-gradient(135deg, var(--brand, #10b981) 0%, #84cc16 100%);
    --s-brand-soft: var(--brand-soft, #f0fdf4);
    --s-brand-line: var(--brand-line, #bbf7d0);

    /* 文本 */
    --s-ink: var(--tx-1, #0f172a);
    --s-body: var(--tx-2, #334155);
    --s-muted: var(--tx-3, #64748b);
    --s-faint: var(--tx-4, #94a3b8);

    /* 面 */
    --s-surface: var(--bg-card, #ffffff);
    --s-soft: var(--bg-inset, #f5f8fc);
    --s-soft-2: var(--bg-inset, #f5f8fc);
    --s-line: var(--ln-1, #e2e8f0);

    /* 语义 */
    --s-danger: var(--danger, #ef4444);
    --s-danger-soft: var(--danger-soft, #fef2f2);
    --s-warn: var(--warn, #f59e0b);
    --s-warn-soft: var(--warn-soft, #fffbeb);
    --s-ok: var(--brand, #10b981);

    /* 形状 */
    --s-r-sm: 10px;
    --s-r: 14px;
    --s-r-lg: 20px;
    --s-r-xl: 24px;
    --s-r-pill: 999px;

    /* 阴影 */
    --s-sh-sm: 0 1px 3px rgba(2, 6, 23, .05);
    --s-sh: 0 10px 30px -12px rgba(2, 6, 23, .12);
    --s-sh-lg: 0 24px 64px -12px rgba(2, 6, 23, .18);
    --s-sh-brand: 0 8px 20px -6px rgba(16, 185, 129, .55);

    --s-nav-h: 64px;
    --s-font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI",
              "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* 覆盖 common.css：原来 html{min-width:1200px} 让手机端必然横向滚动 */
html {
    min-width: 0 !important;
}

/* 同样来自 common.css 的 @media≤1200px{body{width:1200px}}：
   视口一旦小于 1200px，body 仍被撑到 1200px 宽，页面整体横向溢出。
   前台已整体按响应式改造，这里直接全站放开（后台另有 admin.css，不受影响） */
@media screen and (max-width: 1200px) {
    body {
        width: auto !important;
        min-width: 0 !important;
    }
    /* common.css 的 .container 也是写死 1200px，一并放开 */
    .container {
        width: auto !important;
        min-width: 0 !important;
        max-width: 920px;
        margin: 0 auto;
        padding: 0 24px;
        box-sizing: border-box;
    }
}

/* 全站背景：三层静态结构 + 一层缓慢浮动光斑
   ① 底色渐变（body）→ ② 点阵纹理（body::before）→ ③ 品牌氛围光（body::after）
   浮动光斑放在 html::before / html::after 上，避免和上面两层抢同一个元素。 */
body {
    font-family: var(--s-font);
    font-size: 14px;
    color: var(--s-body);
    /* 比登录页更浓一档的青绿过渡，避免大面积发白 */
    background: linear-gradient(135deg, #eafaf1 0%, #e6f7ee 38%, #eaf6e8 68%, #e8f4ec 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}
/* 点阵纹理：比登录页略深，让浅色卡片浮起来时有对比 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 90, 68, .16) 1px, transparent 0);
    background-size: 16px 16px;
    pointer-events: none;
    z-index: 0;
}
/* 品牌氛围光：强度提升约 60%，并增加第三团光增强层次 */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(46% 42% at 12% 16%, rgba(16, 185, 129, .30), transparent 64%),
        radial-gradient(50% 44% at 88% 84%, rgba(132, 204, 22, .24), transparent 68%),
        radial-gradient(38% 34% at 72% 8%, rgba(56, 189, 248, .14), transparent 62%);
    pointer-events: none;
    z-index: 0;
}
/* 内容层压在背景之上 */
body > * { position: relative; z-index: 1; }

/* ---------- 缓慢浮动的大光斑（装饰动效） ---------- */
/* 两团模糊光斑各自做 18s / 24s 的漂移，速度极慢，只增加“呼吸感”不干扰阅读 */
html::before,
html::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    will-change: transform;
}
html::before {
    width: 460px;
    height: 460px;
    left: -140px;
    top: -120px;
    background: radial-gradient(circle, rgba(16, 185, 129, .34) 0%, rgba(16, 185, 129, 0) 70%);
    animation: sBgFloatA 18s ease-in-out infinite alternate;
}
html::after {
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(132, 204, 22, .30) 0%, rgba(132, 204, 22, 0) 72%);
    animation: sBgFloatB 24s ease-in-out infinite alternate;
}
@keyframes sBgFloatA {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, 50px) scale(1.08); }
    100% { transform: translate(20px, 90px) scale(.96); }
}
@keyframes sBgFloatB {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-70px, -40px) scale(1.06); }
    100% { transform: translate(-30px, -80px) scale(.98); }
}
/* 尊重系统「减少动态效果」设置 */
@media (prefers-reduced-motion: reduce) {
    html::before,
    html::after { animation: none; }
}

.s-muted { color: var(--s-muted); }
.s-faint { color: var(--s-faint); }
.s-ink   { color: var(--s-ink); }
.s-ok    { color: var(--s-ok); }
.s-danger { color: var(--s-danger); }
.s-center { text-align: center; }
.s-right  { text-align: right; }

/* ============================ 容器 / 卡片 ============================ */
/* 920px：首页主体只有输入框 + 站点宫格 + 步骤说明，1180px 下留白过多显散 */
.s-container {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.s-card {
    background: var(--s-surface);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-lg);
    box-shadow: var(--s-sh-sm);
    padding: 24px;
}

.s-card + .s-card { margin-top: 20px; }

.s-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ln-2);
    flex-wrap: wrap;
}

/* 标题左侧品牌色竖条，与后台卡片头保持一致的视觉语言 */
.s-card__title {
    position: relative;
    padding-left: 11px;
    font-size: var(--fs-lg, 15px);
    font-weight: 700;
    color: var(--tx-1);
    margin: 0;
    line-height: 1.4;
}
.s-card__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--brand-grad);
}

.s-section { padding: 28px 0; }

/* ============================ 按钮 ============================ */
.s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--r-pill, 999px);
    font-size: var(--fs-md, 13.5px);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease,
                background .18s ease, border-color .18s ease, color .18s ease;
}

.s-btn:active { transform: translateY(0) scale(.98); }

.s-btn--primary {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}
.s-btn--primary:hover { filter: brightness(1.04); transform: translateY(-1px); color: #fff; }

.s-btn--ghost {
    background: var(--bg-card, #fff);
    color: var(--tx-2, #334155);
    border-color: var(--ln-1, #e2e8f0);
}
.s-btn--ghost:hover { color: var(--brand-dark); border-color: var(--brand); }

.s-btn--soft {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-color: var(--brand-line);
}
.s-btn--soft:hover { background: var(--brand-soft); }

.s-btn--block { display: flex; width: 100%; }
.s-btn--lg { height: 48px; font-size: var(--fs-lg, 15px); }
.s-btn--sm { height: 30px; padding: 0 12px; font-size: var(--fs-sm, 12.5px); }

.s-btn[disabled], .s-btn.is-disabled {
    background: var(--tx-4, #94a3b8) !important;
    box-shadow: none !important;
    filter: none !important;
    cursor: not-allowed;
    transform: none !important;
    color: #fff !important;
}

/* ============================ 导航 ============================ */
.s-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--s-line);
}

.s-nav__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: var(--s-nav-h);
}

.s-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--s-ink);
    text-decoration: none !important;
    margin-right: 18px;
    flex: none;
}
.s-brand svg { width: 22px; height: 22px; }
.s-brand__logo { width: 26px; height: 26px; border-radius: 7px; }

.s-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.s-nav__link {
    padding: 0 14px;
    line-height: 60px;
    font-size: 15px;
    color: var(--s-body);
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: color .18s ease;
    white-space: nowrap;
}
.s-nav__link:hover { color: var(--s-brand); }
.s-nav__link.is-active {
    color: var(--s-brand);
    font-weight: 500;
    border-image: var(--brand-grad) 1;
    border-bottom: 2px solid var(--s-brand);
}

.s-nav__right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: none;
}

/* 胶囊 */
.s-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px;
    border-radius: var(--s-r-pill);
    font-size: 14px;
    text-decoration: none !important;
    transition: all .18s ease;
    white-space: nowrap;
}
.s-pill--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(16,185,129,.45); }
.s-pill--primary:hover { filter: brightness(1.04); transform: translateY(-1px); color: #fff; }
/* 描边款：用于「退出登录」这类次要动作，避免抢主按钮的视觉权重 */
.s-pill--ghost {
    background: var(--bg-card, #fff);
    color: var(--s-muted);
    border: 1px solid var(--s-line);
}
.s-pill--ghost:hover { color: var(--s-danger); border-color: var(--danger-line, #fecaca); background: var(--s-danger-soft); }

.s-nav__toggle {
    display: none;
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-sm);
    background: var(--bg-card, #fff);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color .2s ease, background .2s ease;
}
.s-nav__toggle:hover { border-color: var(--s-brand); }
.s-nav__toggle:active { background: var(--s-soft); }
/* 两个图标叠在同一位置，靠旋转+透明度互换，形成「三条线 → 叉号」的过渡 */
.s-nav__toggle-ico {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .26s cubic-bezier(.34, 1.2, .64, 1), opacity .18s ease;
}
.s-nav__toggle-ico--bars {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}
.s-nav__toggle-ico--close {
    transform: translate(-50%, -50%) rotate(-90deg) scale(.6);
    opacity: 0;
}
.s-nav__toggle[aria-expanded="true"] .s-nav__toggle-ico--bars {
    transform: translate(-50%, -50%) rotate(90deg) scale(.6);
    opacity: 0;
}
.s-nav__toggle[aria-expanded="true"] .s-nav__toggle-ico--close {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
}

/* 用户下拉（<details> 免 JS） */
.s-menu { position: relative; }
.s-menu > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.s-menu > summary::-webkit-details-marker { display: none; }

/* 过期提醒条 */
.s-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--s-r);
    font-size: 14px;
    margin: 16px 0 0;
}
.s-alert--warn { background: var(--s-warn-soft); border: 1px solid var(--warn-line, #fde68a); color: var(--warn-dark, #b45309); }
.s-alert--danger { background: var(--s-danger-soft); border: 1px solid var(--danger-line, #fecaca); color: var(--danger-dark, #b91c1c); }
.s-alert--info { background: var(--s-brand-soft); border: 1px solid var(--s-brand-line); color: var(--brand-dark, #047857); }

/* ============================ 首页 Hero ============================ */
/* Hero 区：背景交给 body 统一处理（与登录页同一套渐变+点阵+氛围光），
   这里保持透明，避免叠出两种底色。上传了自定义背景图时才覆盖。 */
.s-hero {
    position: relative;
    padding: 56px 0 28px;
    background: transparent;
    overflow: visible;
}
/* 后台上传了自定义背景图：用图片覆盖 body 背景 */
.s-hero--custom-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
/* 内容层压在背景之上 */
.s-hero > .s-container { position: relative; z-index: 1; }

.s-hero__title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: var(--s-ink);
    margin: 0 0 24px;
    letter-spacing: .5px;
    line-height: 1.25;
    /* 后台「主标题样式」通过内联 CSS 变量覆盖；用变量而非直接写内联属性，
       否则内联 font-size 会盖掉手机端的媒体查询缩小规则 */
    color: var(--ht-color, var(--s-ink));
    font-size: var(--ht-size, 42px);
    font-weight: var(--ht-weight, 800);
    letter-spacing: var(--ht-ls, .5px);
    margin: 0 0 var(--ht-margin, 24px);
    font-family: var(--ht-font, inherit);
    /* 纯色模式下的透明度（渐变模式的透明度在下方 --grad 规则里单独处理） */
    opacity: var(--ht-opacity, 1);
}
/* 渐变文字：后台启用渐变时使用 background-clip:text，此时文字色必须透明 */
.s-hero__title--grad {
    background-image: linear-gradient(
        var(--ht-grad, 90deg),
        var(--ht-color, var(--tx-1, #0f172a)) 0%,
        var(--ht-color2, #84cc16) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* 透明度用整体 opacity 控制，保证渐变两端同步变淡 */
    opacity: var(--ht-opacity, 1);
    /* 部分浏览器在 text-fill 透明时会丢失降级，保留一份文字阴影增强可读性 */
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .35));
}.s-hero__sub {
    text-align: center;
    color: var(--s-muted);
    font-size: 15px;
    margin: 0 0 28px;
}

/* 首页标题下的三条提示：空心胶囊标签 */
.s-hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
}
.s-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 15px;
    border-radius: var(--s-r-pill);
    /* 空心描边样式：透明底 + 品牌色边框与文字 */
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--s-brand-line);
    color: var(--brand-dark, #059669);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background .18s ease, border-color .18s ease,
                box-shadow .18s ease, transform .18s ease;
}
.s-tag svg {
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--s-brand);
    opacity: .85;
}
.s-tag:hover {
    background: var(--bg-card, #fff);
    border-color: var(--s-brand);
    color: var(--brand-dark);
    box-shadow: 0 6px 16px -8px var(--theme-glow-a, rgba(16, 185, 129, .6));
    transform: translateY(-1px);
}
@media (max-width: 480px) {
    .s-hero__tags { gap: 8px; margin-bottom: 20px; }
    .s-tag { height: 30px; padding: 0 12px; font-size: 12px; }
    .s-tag svg { width: 13px; height: 13px; }
}

.s-hero__card {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--s-r-xl);
    padding: 26px;
    box-shadow: 0 20px 48px -24px rgba(2, 6, 23, .28),
                0 4px 12px -6px rgba(2, 6, 23, .08);
}
/* 顶部高光线：模拟玻璃边缘，让卡片更有质感 */
.s-hero__card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, .95) 50%,
                rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}
/* 深色风格不适用白色高光线 */
.s-hero__card--dark::before { display: none; }
/* ---- 卡片风格变体（后台「解析框卡片风格」可切换） ---- */
/* 纯白：不透明，最清晰 */
.s-hero__card--white {
    background: var(--bg-card, #fff);
    border-color: #e6ecf3;
}
/* 半透明毛玻璃：与背景融合，有层次感 */
.s-hero__card--glass {
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-color: rgba(255, 255, 255, .85);
    box-shadow: 0 20px 48px -24px rgba(2, 6, 23, .28);
}
/* 浅灰：低对比、稳重 */
.s-hero__card--gray {
    background: var(--bg-inset, #f4f6f9);
    border-color: var(--ln-1, #e3e9f0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 28px -18px rgba(2, 6, 23, .2);
}
/* 完全透明：只有输入框本身可见，最轻盈 */
.s-hero__card--transparent {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
/* 透明/毛玻璃风格下，给输入框加更强的投影，避免贴在背景上看不出边界 */
.s-hero__card--transparent .s-urlbox,
.s-hero__card--glass .s-urlbox {
    box-shadow: 0 12px 32px -12px rgba(2, 6, 23, .3);
}

/* ---- 更多卡片风格（后台「解析框卡片风格」可选） ---- */
/* 品牌渐变：浅绿到白，主题感强 */
.s-hero__card--brand {
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--bg-card, #fff) 55%, var(--brand-soft) 100%);
    border-color: var(--brand-line, #bbf7d0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 14px 36px -20px var(--theme-glow-a, rgba(16, 185, 129, .45));
}
/* 描边：完全无底色，只有一圈品牌色虚线边框，最轻盈 */
.s-hero__card--outline {
    background: rgba(255, 255, 255, .35);
    border: 2px dashed var(--brand-line, #bbf7d0);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.s-hero__card--outline .s-urlbox { box-shadow: 0 10px 28px -14px rgba(2, 6, 23, .22); }
/* 深色：深灰底 + 白字，适合做对比强烈的首页 */
.s-hero__card--dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 18px 44px -20px rgba(2, 6, 23, .6);
}
.s-hero__card--dark .s-urlbox {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: none;
}
.s-hero__card--dark .s-urlbox__input { color: #f1f5f9; }
.s-hero__card--dark .s-urlbox__input::placeholder { color: #94a3b8; }
.s-hero__card--dark .s-urlbox__icon path { fill: #94a3b8; }
/* 卡片投影加强：悬浮得更明显 */
.s-hero__card--elevated {
    background: var(--bg-card, #fff);
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 24px 60px -24px rgba(2, 6, 23, .35),
                0 8px 20px -12px rgba(16, 185, 129, .25);
}

/* 解析输入框 */
.s-urlbox {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card, #fff);
    border: 1px solid var(--s-line);
    border-radius: 16px;
    box-shadow: var(--s-sh);
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.s-urlbox:focus-within {
    border-color: var(--s-brand-2);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12), var(--s-sh);
}
.s-urlbox__icon { flex: none; width: 20px; height: 20px; margin: 0 0 0 18px; }
.s-urlbox__icon path { fill: var(--s-faint); }
.s-urlbox__input {
    flex: 1;
    min-width: 0;
    height: 60px;
    border: 0;
    outline: none;
    padding: 0 12px;
    font-size: 16px;
    color: var(--s-ink);
    background: transparent;
    font-family: inherit;
}
.s-urlbox__input::placeholder { color: var(--s-faint); }
.s-urlbox__clear {
    flex: none;
    width: 26px;
    height: 26px;
    margin: 0 10px 0 6px;
    cursor: pointer;
    display: none;
}
.s-urlbox__clear path { fill: var(--ln-1, #e2e8f0); }
.s-urlbox__clear:hover path { fill: var(--s-faint); }
.s-urlbox__submit {
    flex: none;
    width: 170px;
    height: 60px;
    border: 0;
    cursor: pointer;
    background: var(--brand-grad);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: filter .18s ease;
}
.s-urlbox__submit:hover { filter: brightness(.94); }
.s-urlbox__submit svg { width: 18px; height: 18px; }
.s-urlbox__submit.is-disabled { background: var(--s-faint); cursor: not-allowed; filter: none; }

/* 解析结果 */
.s-result { margin-top: 14px; }
.s-result__tip { text-align: center; color: var(--s-muted); font-size: 14px; margin: 0 0 10px; }
.s-result__list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.s-result__msg {
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--s-r);
    background: var(--s-danger-soft);
    color: var(--danger-dark, #b91c1c);
    font-size: 14px;
}
.s-result__msg--ok { background: var(--s-brand-soft); color: var(--brand-dark, #047857); }

/* 解析中：输入区下方显示转圈 + 进度条，让用户明确知道正在处理 */
.s-loading {
    display: none;
    margin-top: 14px;
    text-align: center;
}
.s-loading.is-on { display: block; }
.s-loading__row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--s-muted);
    font-size: 14px;
}
/* 圆环转圈 */
.s-spinner {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--s-brand-line);
    border-top-color: var(--s-brand);
    animation: sSpin .7s linear infinite;
}
@keyframes sSpin { to { transform: rotate(360deg); } }
/* 进度条：解析接口没有真实进度，用一段来回滑动的光带表示"进行中" */
.s-loading__bar {
    position: relative;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--s-soft-2);
    overflow: hidden;
}
.s-loading__bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    border-radius: 999px;
    background: var(--brand-grad);
    animation: sBarSlide 1.15s ease-in-out infinite;
}
@keyframes sBarSlide {
    0%   { left: -40%; }
    100% { left: 100%; }
}

/* ============================ 下载浮层 ============================ */
.s-dl__lead {
    margin: 0 0 14px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--s-danger);
    line-height: 1.7;
}
.s-dl__note {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: var(--s-body);
    line-height: 1.8;
}
.s-dl__note strong { color: var(--s-ink); font-weight: 600; }
/* 5 分钟时限提示条 */
.s-dl__limit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 4px;
    padding: 10px 14px;
    border-radius: var(--s-r-sm);
    background: var(--s-warn-soft);
    border: 1px solid var(--warn-line, #fde68a);
    color: var(--warn-dark, #b45309);
    font-size: 13px;
    line-height: 1.7;
}
.s-dl__limit svg { flex: none; margin-top: 2px; }
/* 下载项列表：每个规格一行，名称 + 「下载」「复制链接」 */
.s-dl__items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}
.s-dl__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-sm);
    background: var(--s-surface);
}
.s-dl__name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--s-ink);
    word-break: break-all;
}
.s-dl__row {
    display: flex;
    gap: 8px;
    flex: none;
}
.s-dl__row .s-btn { height: 38px; padding: 0 16px; font-size: 14px; }
/* 立即下载按钮 */
.s-dl__go { letter-spacing: .5px; }
@media (max-width: 480px) {
    .s-dl__item { flex-direction: column; align-items: stretch; gap: 10px; }
    .s-dl__row .s-btn { flex: 1; }
    .s-dl__lead { font-size: 14.5px; }
    .s-dl__note { font-size: 13px; }
}

/* 公告条 */
.s-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
    padding: 12px 20px;
    background: var(--s-brand-soft);
    border: 1px solid var(--s-brand-line);
    border-radius: var(--s-r);
    color: var(--s-body);
    font-size: 14px;
    overflow: hidden;
}
.s-notice svg { flex: none; width: 20px; height: 20px; }
/* 后台富文本默认给文字套 <font color="#10b981">，切主题后会留下固定绿色。
   公告条整体已用品牌色边框表达强调，正文统一用正文色，避免色彩打架 */
.s-notice__scroll font { color: inherit !important; }
/* 公告正文：内容来自后台富文本，桌面端单行显示，超长时横向滚动 */
.s-notice__scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}
.s-notice__scroll > * {
    margin: 0 !important;
    padding: 0;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit;
    white-space: nowrap;
}
/* 桌面端：只有内容确实超出时才滚动（由 app.js 加 .is-overflow 类控制），
   否则静止显示，避免短公告也被推着跑、末尾被截。
   速度说明：位移距离 = 内容自身宽度，所以时长要随内容长度调整，
   否则长公告会滚得飞快。这里用 JS 写入 --s-notice-dur 精确控制速度，
   未设置时回退到 45s。 */
@media (min-width: 821px) {
    .s-notice__scroll.is-overflow > * {
        display: inline-block;
        padding-right: 60px;
        animation: sNoticeScroll var(--s-notice-dur, 45s) linear infinite;
    }
    .s-notice__scroll.is-overflow:hover > * { animation-play-state: paused; }
}
/* 复制一份文本接在后面，才能做到无缝循环 */
.s-notice__scroll.is-overflow > *::after {
    content: attr(data-notice-clone);
    display: inline-block;
    padding-left: 60px;
}
@keyframes sNoticeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
/* 窄屏：滚动看不清且容易被裁，改为静态换行完整展示 */
@media (max-width: 820px) {
    .s-notice { align-items: flex-start; padding: 12px 14px; }
    .s-notice svg { margin-top: 2px; }
    .s-notice__scroll { overflow: visible; }
    .s-notice__scroll > * {
        display: block;
        white-space: normal !important;
        word-break: break-word;
        line-height: 1.7 !important;
        font-size: 13px;
        animation: none;
        padding-right: 0;
    }
    .s-notice__scroll > *::after { content: none; }
}

/* 站点宫格 */
.s-sites { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-content: flex-start; }
/* 一行最多 3 个：卡片内含"图标+站名+次数"和一行详情，需要足够宽度 */
.s-site {
    flex: 0 0 calc(33.3333% - 8px);
    width: calc(33.3333% - 8px);
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: var(--s-r);
    /* 不透明白底：首页 hero 是浅蓝渐变，半透明会糊在一起看不清 */
    background: var(--bg-card, #fff);
    border: 1px solid var(--ln-1, #e2e8f0);
    color: var(--s-body);
    font-size: 14px;
    text-decoration: none !important;
    transition: all .18s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
    position: relative;
}
/* 颜色点缀：顶部一条品牌渐变细条，把卡片从白底里拎出来 */
.s-site::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand-grad);
    opacity: .9;
}
/* 图标块加淡色底圈，名字不再压着图标 */
.s-site__top { position: relative; z-index: 1; }
/* 卡片整体铺一层极淡的品牌色，避免纯白太素 */
.s-site::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-soft, #f0fdf4) 0%, transparent 55%);
    opacity: .5;
    pointer-events: none;
    border-radius: inherit;
}
.s-site:hover {
    color: var(--s-brand);
    background: var(--bg-card, #fff);
    border-color: var(--s-brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(16, 185, 129, .4);
}
/* 未开通：灰调 + 压掉品牌渐变，避免和可用站点抢注意力 */
.s-site--disabled { background: #f7f8fa; border-color: #e3e8ef; box-shadow: none; }
.s-site--disabled::before { background: var(--ln-1, #e2e8f0); opacity: 1; }
.s-site--disabled::after { background: none; }
.s-site--disabled:hover { border-color: var(--ln-1, #e2e8f0); transform: none; box-shadow: none; }
/* 维护中：红色描边 + 淡红底，和红色「维护中」徽标呼应 */
.s-site--off { border-color: var(--danger-line, #fecaca); background: #fffafa; }
.s-site--off::before { background: linear-gradient(90deg, var(--danger, #ef4444), #fca5a5); opacity: 1; }
.s-site--off::after { background: linear-gradient(135deg, var(--danger-soft, #fef2f2) 0%, transparent 55%); opacity: .6; }

/* 上排：图标 + 站点名 + 剩余次数 */
.s-site__top {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
/* 站点图标：favicon 覆盖在首字母色块上，加载失败回退首字母 */
.s-site__icon {
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease;
}
.s-site:hover .s-site__icon { transform: scale(1.06); }
.s-site__letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    border-radius: 10px;
    background: var(--brand-grad);
}
.s-site__icon img {
    position: absolute;
    inset: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--bg-card, #fff);
    border: 1px solid var(--s-line);
    box-sizing: border-box;
    padding: 4px;
    display: none;
}
.s-site__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--s-ink);
}
/* 右侧直接显示剩余次数，不再依赖悬停提示 */
.s-site__quota {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.s-site__quota.is-ok { color: var(--brand-dark, #047857); background: var(--brand-soft, #d1fae5); }
.s-site__quota.is-none { color: var(--tx-3, #64748b); background: var(--bg-inset, #eef1f5); }
.s-site__quota.is-off { color: var(--danger-dark, #b91c1c); background: #fee2e2; }
.s-site--disabled .s-site__name { color: var(--s-faint); }

/* 下排：今日 / 累计 明细 */
.s-site__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px dashed #e6ebf2;
    font-size: 12px;
    color: #7c8798;
    white-space: nowrap;
    overflow: hidden;
}
.s-site__meta-item { flex: none; }
.s-site__meta-item strong { color: var(--brand-dark, #059669); font-weight: 700; }
.s-site__meta-item em { font-style: normal; color: var(--tx-4, #94a3b8); }
.s-site--disabled .s-site__meta-item strong { color: var(--tx-4, #94a3b8); }
.s-site__meta-sep {
    flex: none;
    width: 1px;
    height: 11px;
    background: var(--ln-1, #e2e8f0);
}

/* 三步引导 */
.s-steps { display: flex; gap: 16px; margin-top: 28px; }
.s-step {
    position: relative;
    flex: 1;
    background: var(--s-surface);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-lg);
    padding: 22px 20px 20px;
    box-shadow: var(--s-sh-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.s-step:hover {
    transform: translateY(-3px);
    border-color: var(--brand-line);
    box-shadow: 0 14px 32px -16px rgba(16, 185, 129, .55);
}
/* 步骤之间的连接箭头 */
.s-step + .s-step::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 42px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--brand-line);
    border-top: 2px solid var(--brand-line);
    transform: rotate(45deg);
}
/* 顶部：大图标（编号已移到卡片右上角，不再与图标并排） */
.s-step__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.s-step__ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    /* 用更淡的底色和中等深度的图标色，避免大面积高饱和绿 */
    background: var(--brand-soft);
    color: var(--brand-dark);
    transition: background .2s ease, color .2s ease;
}
.s-step:hover .s-step__ico { background: var(--brand-soft); color: var(--brand-dark); }
/* 编号：空心描边样式，尺寸收小到 26px，避免和图标争夺视觉焦点。
   与图标同处 flex 行内，垂直居中由 align-items:center 保证。 */
.s-step__no {
    flex: none;
    margin-left: auto;
    width: 26px;
    height: 26px;
    border-radius: var(--s-r-pill);
    /* 透明底 + 品牌色描边 + 品牌色文字，视觉重量远低于实心块 */
    background: transparent;
    border: 1.5px solid var(--brand-line, #bbf7d0);
    color: var(--brand-dark, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
/* 悬停时微微填充，作为交互反馈（不改变静态时的轻盈感） */
.s-step:hover .s-step__no {
    background: var(--brand-soft, #f0fdf4);
    border-color: var(--brand, #10b981);
}
.s-step__title { font-weight: 700; color: var(--s-ink); margin-bottom: 7px; font-size: 14.5px; }
.s-step__desc { color: var(--s-muted); font-size: 13px; line-height: 1.75; }

/* ============================ 弹层 / Toast ============================ */
.s-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 900;
    animation: sFade .2s ease;
}
.s-modal {
    position: fixed;
    z-index: 901;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(920px, calc(100vw - 48px));
    max-height: 88vh;
    overflow: auto;
    background: var(--bg-card, #fff);
    border-radius: var(--s-r-xl);
    box-shadow: var(--s-sh-lg);
    animation: sPop .3s cubic-bezier(.34, 1.4, .64, 1);
}
.s-modal--sm { width: min(420px, calc(100vw - 40px)); }
.s-modal__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 56px 18px;
    border-bottom: 1px solid var(--s-soft-2);
}
.s-modal__title { font-size: 17px; font-weight: 600; color: var(--s-ink); }
/* 弹窗标题图标：后台「首页公告 → 弹窗样式」可配置 */
.s-modal__ico { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.s-modal__close {
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -18px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--s-soft-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s, transform .18s;
}
.s-modal__close:hover { background: var(--s-line); transform: scale(1.06); }
.s-modal__body { padding: 22px 26px; font-size: 15px; line-height: 1.9; color: var(--s-body); }
.s-modal__body img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px auto; display: block; }
.s-modal__body a { color: var(--s-brand); text-decoration: none; }
.s-modal__foot { display: flex; justify-content: center; gap: 12px; padding: 6px 24px 24px; }
.s-modal__verify { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.s-modal__verify img {
    width: 76px;
    height: 40px;
    object-fit: cover;
    border: 2px solid var(--s-line);
    border-radius: 8px;
    cursor: pointer;
}
.s-modal__verify img:hover { border-color: var(--s-brand); }

@keyframes sFade { from { opacity: 0 } to { opacity: 1 } }
/* sPop 供绝对定位的模态框使用（含 translate(-50%,-50%)），登录卡片不能共用，
   否则动画未播放完或被偏好禁用时卡片会停在屏幕外 */
@keyframes sPop { from { opacity: 0; transform: translate(-50%, -50%) scale(.94) } to { opacity: 1; transform: translate(-50%, -50%) scale(1) } }
@keyframes sPopIn { from { opacity: 0; transform: translateY(12px) scale(.98) } to { opacity: 1; transform: none } }

.s-toast {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}
.s-toast__item {
    max-width: min(560px, calc(100vw - 40px));
    padding: 11px 18px;
    border-radius: var(--s-r-pill);
    background: rgba(15, 23, 42, .92);
    color: #fff;
    font-size: 14px;
    box-shadow: var(--s-sh-lg);
    animation: sToastIn .22s ease;
}
.s-toast__item--ok { background: rgba(16, 185, 129, .95); }
.s-toast__item--err { background: rgba(239, 68, 68, .95); }
@keyframes sToastIn { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }

/* ============================ 登录 / 注册 ============================ */
/* 背景分三层：底色渐变（本元素）→ 点阵纹理（::before）→ 品牌色氛围光（::after）。
   拆成伪元素是为了各自独立控制，且都不参与布局、不挡点击。 */
.s-auth {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    box-sizing: border-box;
    background: var(--theme-page-grad, linear-gradient(135deg, #f8fdfa 0%, #f4fbf7 55%, #eef7f1 100%));
    overflow: hidden;
}
/* 点阵：在瓦片左上角画一个 1px 实心圆后平铺，比线格更像纸张纹理。
   间距与透明度都收敛过——16px/0.18 在浅绿底上会显成"筛网"，太重 */
.s-auth::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--theme-dot, rgba(22, 78, 60, .10)) 1px, transparent 0);
    background-size: 18px 18px;
    pointer-events: none;
}
/* 氛围光：两团低透明度品牌色柔光，让背景有层次而不是死板一块 */
.s-auth::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(42% 38% at 14% 18%, var(--theme-glow-a, rgba(16, 185, 129, .16)), transparent 66%),
        radial-gradient(46% 40% at 88% 82%, var(--theme-glow-b, rgba(132, 204, 22, .13)), transparent 70%);
    pointer-events: none;
}
.s-auth__box {
    position: relative;
    z-index: 1;
    display: flex;
    width: 880px;
    max-width: 100%;
    min-height: 520px;
    background: var(--bg-card, #fff);
    border-radius: 24px;
    box-shadow: 0 24px 60px -18px rgba(5, 150, 105, .28), 0 8px 24px rgba(16, 185, 129, .12);
    overflow: hidden;
    animation: sPopIn .35s cubic-bezier(.34, 1.3, .64, 1);
}

/* 左栏：品牌渐变区。大圆装饰用 ::before/::after 画，超出部分由卡片的 overflow:hidden 裁掉 */
.s-auth__aside {
    position: relative;
    flex: 0 0 44%;
    box-sizing: border-box;
    padding: 48px 40px;
    background: var(--brand-grad);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}
/* 左栏两处磨砂光斑：大半径 blur 让边界完全化开，比实心半透明圆柔和得多 */
.s-auth__aside::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -70px;
    top: -90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    filter: blur(40px);
    z-index: -1;
}
.s-auth__aside::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: -60px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    filter: blur(30px);
    z-index: -1;
}
/* 左栏文字统一左对齐，避免在居中容器里视觉偏右 */
.s-auth__aside h2,
.s-auth__aside p,
.s-auth__points { text-align: left; }
.s-auth__logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px rgba(0, 0, 0, .18);
    display: flex;
    align-items: center;
    justify-content: center;
}
.s-auth__logo img { width: 46px; height: 46px; display: block; }
.s-auth__aside h2 { font-size: 26px; font-weight: 700; margin: 26px 0 0; letter-spacing: 1px; }
/* 副标题限宽，避免最后两个字单独掉到下一行 */
.s-auth__aside p { margin: 10px 0 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .82); max-width: 15em; }
.s-auth__points {
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.s-auth__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
}
/* 特性前的勾选圆点 */
.s-auth__points li > span:first-child {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}
.s-auth__copyright {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 22px;
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
    z-index: 1;
}
.s-auth__panel {
    flex: 1;
    padding: 56px 52px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.s-auth__head { text-align: left; margin-bottom: 26px; }
.s-auth__head h1 { font-size: 24px; font-weight: 700; color: var(--s-ink); margin: 0 0 8px; letter-spacing: .5px; }
.s-auth__head p { color: #93a1b5; font-size: 13.5px; margin: 0; }

/* Tab：登录页用下划线样式，与参考图一致（不覆盖用户中心的 .s-tabs 胶囊样式） */
.s-auth .s-tabs {
    display: flex;
    gap: 28px;
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--s-line);
}
.s-auth .s-tabs__item {
    flex: none;
    position: relative;
    padding: 0 0 12px;
    text-align: center;
    font-size: 14.5px;
    color: var(--s-muted);
    border: 0;
    background: none;
    border-radius: 0;
    cursor: pointer;
    transition: color .2s ease;
    font-family: inherit;
}
.s-auth .s-tabs__item:hover { color: var(--s-brand); }
.s-auth .s-tabs__item.is-active { background: none; color: var(--s-brand); font-weight: 600; }
/* 激活的下划线 */
.s-auth .s-tabs__item.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-grad);
}

.s-field { margin-bottom: 16px; }
.s-field__label { display: block; font-size: 13px; color: var(--s-muted); margin-bottom: 6px; }
.s-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--s-line);
    border-radius: var(--s-r);
    background: var(--s-soft);
    font-size: 14.5px;
    color: var(--s-ink);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.s-input::placeholder { color: var(--tx-4, #a3b1c6); }
.s-input:focus {
    background: var(--bg-card, #fff);
    border-color: var(--s-brand);
    box-shadow: 0 0 0 3px var(--theme-glow-a, rgba(16, 185, 129, .15));
}

/* 带左侧图标的输入框（登录页） */
.s-auth .s-input {
    height: 50px;
    border-radius: 12px;
    background: var(--bg-inset, #f8fafb);
    border-color: var(--ln-1, #e8edf3);
    padding-left: 46px;
}
.s-auth .s-input-wrap .s-input { padding-left: 46px; padding-right: 48px; }
.s-input-wrap { position: relative; }
.s-input-wrap .s-input { padding-right: 44px; }
/* 图标：用内联 SVG 作为背景图，避免引入额外文件 */
.s-auth .s-input-wrap--icon::before,
.s-auth .s-input-icon {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    opacity: .55;
    pointer-events: none;
}
.s-auth .s-ico-user {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.s-auth .s-ico-lock {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
.s-auth .s-ico-shield {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}
.s-input--code { flex: 1; }
.s-field--row { display: flex; gap: 10px; align-items: stretch; }

.s-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--s-faint);
    font-size: 13px;
    font-family: inherit;
    transition: color .18s;
}
.s-eye:hover { color: var(--s-brand); }

.s-check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--s-muted); cursor: pointer; user-select: none; }
.s-check input { accent-color: var(--s-brand); }
/* 勾选项与上方输入框拉开一点，避免贴在一起 */
.s-auth .s-check { margin: 4px 0 0; }

/* 主按钮：登录页用更大的渐变块（参考图的比例） */
.s-auth .s-btn--primary {
    height: 50px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    box-shadow: 0 12px 24px -10px rgba(16, 185, 129, .75);
}

.s-auth__links {
    display: flex;
    /* 链接可能只有一个（注册开关关闭时），居中排比 space-between 更稳 */
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 18px;
    font-size: 13.5px;
    text-align: center;
}
.s-auth__links a { color: var(--s-muted); text-decoration: none !important; transition: color .18s; }
.s-auth__links a:hover { color: var(--s-brand); }
/* 登录页底部条款说明 */
.s-auth__terms {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    color: #b3bfd0;
    line-height: 1.7;
}

/* ============================ 图文教程截图 ============================ */
/* 截图本身是浅色长图，直接铺在白卡片上边界不清；用细边框 + 柔和阴影把它托起来 */
.s-shot {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--bg-card, #fff);
    cursor: zoom-in;
    overflow: hidden;
    font: inherit;
    line-height: 0;
    box-shadow: 0 1px 2px rgba(2, 6, 23, .06), 0 8px 24px -12px rgba(2, 6, 23, .18);
    transition: box-shadow .22s ease, transform .22s ease;
}
.s-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* 描边画在图片上，避免和按钮的 overflow 裁切打架 */
    outline: 1px solid var(--s-line);
    outline-offset: -1px;
}
.s-shot:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(2, 6, 23, .08), 0 16px 36px -16px rgba(2, 6, 23, .28);
}
.s-shot:active { transform: translateY(0); }
.s-shot:focus-visible { outline: 2px solid var(--s-brand); outline-offset: 3px; }
/* 「点击放大」提示：默认淡出，悬停时浮现 */
.s-shot__hint {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 12px;
    border-radius: var(--s-r-pill);
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .5px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.s-shot:hover .s-shot__hint { opacity: 1; transform: translateY(0); }
/* 触摸设备没有 hover，直接常驻显示提示 */
@media (hover: none) {
    .s-shot__hint { opacity: 1; transform: none; }
}

/* 放大查看时的图片展示（复用 s-modal 外壳） */
.s-modal__body .s-zoom-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ============================ 使用教程悬浮按钮 ============================ */
/* 固定在视口右侧、垂直居中，全站常驻（原为主导航最后一项） */
.s-fab-help {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 900;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 15px 11px;
    border-radius: 14px 0 0 14px;
    background: var(--brand-grad);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-decoration: none !important;
    box-shadow: 0 8px 22px -8px rgba(16, 185, 129, .7), 0 2px 6px rgba(2, 6, 23, .08);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
    /* 竖排文字：从上到下，读起来像书签 */
    writing-mode: vertical-rl;
    text-orientation: upright;
}
.s-fab-help:hover {
    color: #fff;
    transform: translateY(-50%) translateX(-4px);
    box-shadow: 0 12px 28px -8px rgba(16, 185, 129, .85), 0 3px 8px rgba(2, 6, 23, .1);
    filter: brightness(1.04);
}
.s-fab-help:active { transform: translateY(-50%) translateX(-2px) scale(.98); }
/* 图标在竖排容器里恢复横向排版，保持正向显示 */
.s-fab-help__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    transform: rotate(0deg);
}
.s-fab-help__ico svg { display: block; }
.s-fab-help__text { writing-mode: vertical-rl; text-orientation: upright; }
/* 当前就在教程页时弱化，避免重复强调 */
.s-fab-help.is-current { opacity: .55; pointer-events: none; }

@media (max-width: 820px) {
    /* 手机上收成小圆形图标，紧贴右边缘、半透明，尽量少遮挡正文 */
    .s-fab-help {
        padding: 8px;
        border-radius: 50%;
        gap: 0;
        right: 0;
        opacity: .88;
        box-shadow: 0 4px 12px -4px rgba(16, 185, 129, .6), 0 1px 4px rgba(2, 6, 23, .08);
    }
    .s-fab-help__text { display: none; }
    .s-fab-help__ico { transform: none; }
    .s-fab-help__ico svg { width: 16px; height: 16px; }
    .s-fab-help:hover, .s-fab-help:active { transform: translateY(-50%) translateX(-2px); opacity: 1; }
}

/* ============================ 用户中心 ============================ */
.s-shell { display: flex; gap: 20px; align-items: flex-start; }
.s-side {
    flex: none;
    width: 200px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-lg);
    box-shadow: var(--s-sh-sm);
    padding: 10px;
    box-sizing: border-box;
}
.s-side a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--s-r-sm);
    color: var(--s-body);
    font-size: 14px;
    text-decoration: none !important;
    transition: all .18s ease;
}
.s-side a:hover { background: var(--s-soft); color: var(--s-brand); }
.s-side a.is-active { background: var(--s-brand-soft); color: var(--s-brand); font-weight: 500; }
.s-main { flex: 1; min-width: 0; }

.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
/* 个人中心：多了「解析间隔时间」，桌面端 5 列；
   用 auto-fit + minmax 让窄屏自动减列，避免卡片被压到几十像素宽后
   标题竖排、文字一个一个字堆成一列 */
.s-stats--5 {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.s-stat {
    background: var(--bg-card, #fff);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-lg);
    box-shadow: var(--s-sh-sm);
    padding: 18px;
    /* 关键：允许子项在网格里收缩，否则 min-content 会把列撑开/挤扁 */
    min-width: 0;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.s-stat:hover {
    border-color: var(--brand-line);
    box-shadow: 0 10px 26px -14px rgba(16, 185, 129, .5);
    transform: translateY(-2px);
}
.s-stat__label { font-size: 13px; color: var(--s-muted); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-stat__value { font-size: 24px; font-weight: 700; color: var(--s-ink); line-height: 1.1; }
.s-stat__value small { font-size: 13px; font-weight: 400; color: var(--s-muted); margin-left: 4px; }
.s-stat--brand .s-stat__value { color: var(--s-brand); }

/* ---- 统计卡图标（线性小图标） ---- */
.s-stat__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    vertical-align: -4px;
}
.s-stat__meta {
    margin-top: 6px;
    font-size: 12px;
    color: var(--tx-3);
}
.s-stat__meta strong { color: var(--brand-dark); font-weight: 700; }

/* ============================ 会员横幅（个人中心顶部） ============================ */
.s-hero-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    margin-bottom: 18px;
    border-radius: var(--s-r-lg);
    border: 1px solid var(--brand-line);
    background: linear-gradient(135deg, var(--brand-soft) 0%, var(--bg-card, #fff) 55%, var(--brand-soft) 100%);
    box-shadow: 0 10px 28px -18px var(--theme-glow-a, rgba(16, 185, 129, .5));
}
.s-hero-user__avatar {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: var(--brand-grad);
    box-shadow: 0 8px 20px -8px rgba(16, 185, 129, .7);
}
.s-hero-user__main { flex: 1; min-width: 0; }
.s-hero-user__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--tx-1);
    letter-spacing: .4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 7px;
}
.s-hero-user__sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s-hero-user__badge {
    display: inline-flex;
    align-items: center;
    height: 23px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--ln-1);
    color: var(--tx-2);
}
.s-hero-user__badge.is-ok { background: var(--brand-soft, #ecfdf5); border-color: var(--brand-line, #a7f3d0); color: var(--brand-dark, #047857); }
.s-hero-user__badge.is-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.s-hero-user__meta { font-size: 12.5px; color: var(--tx-3); }
.s-hero-user__actions { flex: none; }
@media (max-width: 560px) {
    .s-hero-user { flex-wrap: wrap; gap: 12px; padding: 16px; }
    .s-hero-user__actions { width: 100%; }
    .s-hero-user__actions .s-btn { width: 100%; }
    /* 「续费升级」幽灵按钮基础宽度较大，行宽不足时允许收缩换行 */
    .s-hero-user__sub { gap: 8px; }
    .s-hero-user__sub .s-btn { max-width: 100%; }
}

/* ---- 环形进度卡（账号剩余次数） ---- */
.s-stat--ring {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}
/* 卡片过窄时（< 190px 可用宽度）环形图与文字改为上下排列，
   避免文字被挤成竖排单列 */
@media (max-width: 1400px) {
    .s-stat--ring { flex-wrap: wrap; gap: 10px; }
}
.s-stat__ring {
    position: relative;
    flex: none;
    width: 56px;
    height: 56px;
}
.s-stat__ring svg {
    width: 100%;
    height: 100%;
    /* 从 12 点方向开始绘制 */
    transform: rotate(-90deg);
}
.s-ring__track {
    fill: none;
    stroke: var(--bg-inset);
    stroke-width: 4;
}
.s-ring__bar {
    fill: none;
    stroke: var(--brand);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray .5s ease;
}
.s-stat__ring.is-warn .s-ring__bar { stroke: var(--warn); }
.s-stat__ring.is-danger .s-ring__bar { stroke: var(--danger); }
.s-ring__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tx-1);
}
.s-stat__body { min-width: 0; }
.s-stat__ring.is-warn + .s-stat__body .s-stat__value { color: var(--warn-dark); }
.s-stat__ring.is-danger + .s-stat__body .s-stat__value { color: var(--danger); }

/* ---- 横条进度（今日剩余次数） ---- */
.s-stat__bar {
    margin-top: 10px;
    height: 5px;
    border-radius: 999px;
    background: var(--bg-inset);
    overflow: hidden;
}
.s-stat__bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--brand-grad);
    transition: width .5s ease;
}
.s-stat__bar.is-warn > span { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.s-stat__bar.is-danger > span { background: linear-gradient(90deg, #ef4444, #f87171); }

/* 首页账号概览：横向一行，三栏信息 */
.s-overview {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    padding: 6px 8px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--ln-1, #e2e8f0);
    border-radius: var(--s-r);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.s-overview__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    transition: background .18s ease;
}
.s-overview__item:hover { background: var(--bg-inset); }
.s-overview__label {
    flex: none;
    font-size: 12.5px;
    color: var(--tx-3, #64748b);
}
.s-overview__value {
    flex: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--tx-1, #0f172a);
    white-space: nowrap;
}
.s-overview__value.is-brand { color: var(--brand-dark, #059669); }
.s-overview__value.is-date { font-size: 13.5px; }
/* 每格左侧小图标：缩小并改为更淡的品牌色 */
.s-overview__ico {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--brand-soft, #f3fbf6);
    color: var(--brand, #10b981);
}
.s-overview__ico svg { width: 14px; height: 14px; }
/* 一行排列：图标 + 标签 + 数值横向对齐 */
.s-overview__txt {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}
.s-overview__sep {
    flex: none;
    width: 1px;
    height: 16px;
    background: var(--ln-2, #eef2f7);
}
@media (max-width: 768px) {
    /* 窄屏放不下三组，改为竖排每项一行 */
    .s-overview { flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 10px; }
    .s-overview__item { justify-content: flex-start; }
    .s-overview__sep { width: 100%; height: 1px; }
    /* 个人中心「左侧菜单 + 右侧内容」的桌面布局在手机上折叠为上下：
       .s-side 固定 200px 且不收缩，行内排列会把 .s-main 挤出容器（整页横向溢出）。
       align-items 必须一并改为 stretch——基础规则的 flex-start 在 column
       模式下控制横向对齐，会让子元素保持内容宽（403px）而不拉伸回容器宽 */
    .s-shell { flex-direction: column; gap: 14px; align-items: stretch; }
    .s-side { width: 100%; }
}

/* 表格 */
/* 包裹层：窄屏横向滚动，避免长 URL 把页面顶宽 */
.s-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.s-table-wrap::-webkit-scrollbar { height: 8px; }
.s-table-wrap::-webkit-scrollbar-thumb { background: var(--ln-1); border-radius: 999px; }
.s-table-wrap::-webkit-scrollbar-track { background: var(--bg-inset); }
/* 没有包裹层的卡片直挂表格：窄屏给卡片一个横向滚动出口，
   否则表格按内容最小宽渲染会顶破卡片右侧（个人中心解析记录卡实测溢出 39px） */
@media (max-width: 768px) {
    .s-card > .s-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.s-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md, 13.5px); }
.s-table th, .s-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--ln-2);
    vertical-align: middle;
}
/* 固定列宽模式：加 .s-table--fixed（配合 colgroup 使用），内容单行省略 */
.s-table--fixed { table-layout: fixed; }
.s-table--fixed th,
.s-table--fixed td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.s-table th {
    color: var(--tx-3);
    font-weight: 600;
    font-size: var(--fs-sm, 12.5px);
    background: var(--bg-inset);
    white-space: nowrap;
}
.s-table tbody tr:hover { background: var(--bg-inset); }
.s-table tbody tr:last-child td { border-bottom: 0; }
/* 状态行左侧色条：成功绿色、失败红色，扫一眼就能看出结果分布 */
.s-table tbody tr.is-ok-row td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.s-table tbody tr.is-err-row td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.s-table tbody tr.is-err-row { background: #fffbfb; }
.s-table tbody tr.is-err-row:hover { background: #fef2f2; }
.s-table td { color: var(--tx-2); }
/* 长 URL 单行省略（原 word-break:break-all 会把链接拆成多行，反而撑高行） */
.s-table__url {
    max-width: 320px;
    color: var(--tx-3);
    font-size: var(--fs-sm, 12.5px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* 操作按钮组：横向排列，不再上下堆 */
.s-ops { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }

/* 账号信息横排（个人中心） */
.s-acct {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
/* 三项版本（卡密 / 登录时间 / IP） */
.s-acct--3 { grid-template-columns: repeat(3, 1fr); }
.s-acct__item {
    padding: 14px 16px;
    border: 1px solid var(--ln-1);
    border-radius: var(--r-md);
    background: var(--bg-inset);
    min-width: 0;
}
.s-acct__label {
    font-size: var(--fs-sm, 12.5px);
    color: var(--tx-3);
    margin-bottom: 7px;
}
.s-acct__value {
    font-size: var(--fs-md, 13.5px);
    font-weight: 600;
    color: var(--tx-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.s-acct__value--mono { font-family: var(--font-mono); letter-spacing: .3px; }
.s-acct__value--sm { font-size: var(--fs-sm, 12.5px); font-weight: 500; color: var(--tx-2); }
@media (max-width: 900px) {
    .s-acct { grid-template-columns: repeat(2, 1fr); }
    .s-acct--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .s-acct { grid-template-columns: 1fr; }
    .s-acct--3 { grid-template-columns: 1fr; }
}

.s-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--s-r-pill);
    font-size: 12px;
    background: var(--s-soft-2);
    color: var(--s-muted);
}
.s-badge--ok { background: var(--s-brand-soft); color: var(--s-brand); }
.s-badge--err { background: var(--s-danger-soft); color: var(--s-danger); }
.s-badge--warn { background: var(--s-warn-soft); color: var(--warn-dark, #b45309); }

/* 空状态：图标 + 主副文案 + 行动按钮 */
.s-empty {
    padding: 48px 20px 52px;
    text-align: center;
    color: var(--s-faint);
    font-size: 14px;
}
.s-empty__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--bg-inset);
    color: #b9c4d2;
}
.s-empty__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--tx-2);
    margin-bottom: 6px;
}
.s-empty__desc {
    font-size: 13px;
    color: var(--tx-3);
    line-height: 1.8;
    max-width: 340px;
    margin: 0 auto;
}

/* 复制按钮：与 s-btn--sm 同高，可并排放在操作列 */
.s-copy {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--ln-1);
    background: var(--bg-card);
    border-radius: var(--r-sm);
    font-size: var(--fs-sm, 12.5px);
    color: var(--tx-3);
    cursor: pointer;
    font-family: inherit;
    transition: color .16s ease, border-color .16s ease;
}
.s-copy:hover { color: var(--brand-dark); border-color: var(--brand); }

/* FAQ 折叠 */
.s-faq { border: 1px solid var(--s-line); border-radius: var(--s-r); overflow: hidden; }
.s-faq + .s-faq { margin-top: 10px; }
.s-faq > summary {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--s-ink);
    background: var(--s-soft);
    list-style: none;
}
.s-faq > summary::-webkit-details-marker { display: none; }
.s-faq > summary::after { content: "+"; float: right; color: var(--s-faint); }
.s-faq[open] > summary::after { content: "\2212"; }
.s-faq__body { padding: 12px 16px; font-size: 13.5px; line-height: 1.8; color: var(--s-muted); }

/* 分页 */
.s-page { margin-top: 16px; text-align: center; }
.s-page a, .s-page span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-sm);
    color: var(--s-body);
    font-size: 13px;
    text-decoration: none !important;
}
.s-page .active { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ============================ 页脚 ============================ */
.s-footer {
    margin-top: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--s-line);
    color: var(--s-faint);
    font-size: 13px;
    text-align: center;
}
.s-footer a { color: var(--s-muted); text-decoration: none !important; margin: 0 8px; }
.s-footer a:hover { color: var(--s-brand); }
.s-footer__links { margin-bottom: 8px; }

/* ============================ 独立页（重新下载 / 跳转提示） ============================ */
.s-plain {
    background: var(--s-soft);
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.s-plain-card {
    width: min(760px, 100%);
    background: var(--bg-card, #fff);
    border: 1px solid var(--s-line);
    border-radius: var(--s-r-xl);
    box-shadow: var(--s-sh);
    padding: 32px;
}
.s-plain-card h1 { font-size: 20px; color: var(--s-ink); margin: 0 0 10px; }
.s-plain-list { list-style: none; margin: 18px 0 0; padding: 0; }
.s-plain-list li + li { margin-top: 10px; }
.s-plain-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--s-line);
    border-radius: var(--s-r);
    color: var(--s-body);
    text-decoration: none !important;
    transition: all .18s ease;
}
.s-plain-list a:hover { border-color: var(--s-brand); color: var(--s-brand); transform: translateY(-1px); }
.s-plain-list em { font-style: normal; font-size: 12.5px; color: var(--s-faint); flex: none; }

/* 跳转提示页 */
.s-jump { text-align: center; padding: 48px 24px; }
.s-jump__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s-brand-soft);
}
.s-jump__icon--err { background: var(--s-danger-soft); }
.s-jump__icon svg { width: 30px; height: 30px; }
.s-jump__msg { font-size: 16px; color: var(--s-ink); margin-bottom: 8px; }
.s-jump__tip { font-size: 13.5px; color: var(--s-muted); margin-bottom: 20px; }
.s-jump__bar {
    width: min(320px, 100%);
    height: 4px;
    margin: 0 auto;
    border-radius: var(--s-r-pill);
    background: var(--s-soft-2);
    overflow: hidden;
}
.s-jump__bar i { display: block; height: 100%; background: var(--brand-grad); width: 0; transition: width .3s linear; }

/* ============================ 侧边浮层广告 ============================ */
.s-float {
    position: fixed;
    top: 150px;
    z-index: 800;
    width: 220px;
    background: var(--bg-card, #fff);
    border-radius: var(--s-r-lg);
    box-shadow: var(--s-sh);
    padding: 10px;
}
.s-float--left { left: calc(50% - 850px); }
.s-float--right { right: calc(50% - 850px); }
.s-float img { width: 100%; border-radius: var(--s-r-sm); display: block; }
.s-float__close {
    position: absolute;
    right: -6px;
    top: -6px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: var(--s-ink);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

/* ============================ 响应式 ============================ */
/* 5 列统计在中等屏（820~1280）太挤，先降到 3 列 */
@media (max-width: 1280px) {
    .s-stats--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .s-float { display: none; }
    /* 站点格子宽度由基础规则（5 列）决定，这里不再重复覆盖 */
    .s-stats,
    .s-stats--5 { grid-template-columns: repeat(2, 1fr); }
}
/* 手机竖屏：统计卡改单列。auto-fit+minmax(168px) 在 367px 视口会挤出
   2 列（336px+gap 超出容器），把整页顶出横向滚动；label 的 nowrap
   同样会撑破格子。统一在此收口 */
@media (max-width: 560px) {
    .s-stats,
    .s-stats--5 { grid-template-columns: 1fr; }
    .s-stat { padding: 14px 16px; }
    .s-stat__label { white-space: normal; }
    .s-stat__value { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .s-auth__box { animation: none; }
}

@media (max-width: 860px) {
    /* 移动端浏览器地址栏会吃掉 100vh，dvh 才是可见高度 */
    .s-auth {
        padding: 24px 16px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    /* 手机屏小，点阵略收一点，避免糊成一片 */
    .s-auth::before { background-size: 16px 16px; }
    /* 与参考页一致：改为上下堆叠，品牌区收窄置顶，不再整块隐藏 */
    .s-auth__box {
        flex-direction: column;
        width: 460px;
        max-width: 100%;
        min-height: 0;
        /* 居中项用 auto 外边距而非 align-items：内容高于视口时才不会被裁掉顶部且滚不到 */
        margin: auto;
    }
    .s-auth__aside {
        flex: 0 0 auto;
        padding: 32px 30px 28px;
        justify-content: flex-start;
    }
    /* 堆叠后品牌区变矮，列表太长会挤掉表单，直接隐藏 */
    .s-auth__points { display: none; }
    .s-auth__logo { width: 64px; height: 64px; border-radius: 18px; }
    .s-auth__logo img { width: 36px; height: 36px; }
    .s-auth__aside h2 { font-size: 22px; margin-top: 18px; }
    .s-auth__aside p { margin-top: 8px; font-size: 13px; max-width: none; }
    /* 版权从绝对定位改为跟随文档流，否则会压住表单 */
    .s-auth__copyright { position: static; margin-top: 16px; }
    .s-auth__panel { padding: 30px 24px 26px; }
    .s-auth__head { margin-bottom: 20px; }
    /* 触摸目标不小于 44px */
    .s-auth .s-tabs__item { padding: 12px 0; }
    .s-eye {
        right: 4px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .s-input-wrap .s-input { padding-right: 52px; }
    /* iOS Safari 会在聚焦字号小于 16px 的输入框时自动放大整页 */
    .s-input { font-size: 16px; }
    .s-auth__links { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
    .s-auth__links a { padding: 4px 0; }

    .s-side { width: 100%; display: flex; overflow-x: auto; }
    .s-side a { white-space: nowrap; }
    .s-shell { flex-direction: column; }
}

@media (max-width: 768px) {
    .s-nav__toggle { display: inline-flex; }
    /* 移动端菜单：用 max-height + opacity + 位移做展开动画。
       不能再用 display:none 切换，那样无法过渡；visibility 负责收起后不接收点击 */
    .s-nav__links {
        position: absolute;
        left: 0;
        right: 0;
        top: var(--s-nav-h);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-card, #fff);
        border-bottom: 1px solid var(--s-line);
        padding: 8px;
        box-shadow: var(--s-sh);
        /* 收起态 */
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-color: transparent;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        overflow: hidden;
        transition: max-height .28s cubic-bezier(.4, 0, .2, 1),
                    opacity .2s ease,
                    transform .28s cubic-bezier(.4, 0, .2, 1),
                    padding .28s cubic-bezier(.4, 0, .2, 1),
                    border-color .2s ease,
                    visibility 0s linear .28s;
    }
    .s-nav__links.is-open {
        /* 登录后最多 7 条（首页 + 4 个个人中心入口 + 购买卡密 + 使用教程），
           7×44 + 上下内边距 ≈ 324px，取 400px 留足余量，避免末条被裁 */
        max-height: 400px;
        padding-top: 8px;
        padding-bottom: 8px;
        border-bottom-color: var(--s-line);
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        /* 展开时 visibility 立刻生效，不等动画结束 */
        transition: max-height .3s cubic-bezier(.4, 0, .2, 1),
                    opacity .22s ease .04s,
                    transform .3s cubic-bezier(.4, 0, .2, 1),
                    padding .3s cubic-bezier(.4, 0, .2, 1),
                    border-color .2s ease,
                    visibility 0s;
    }
    /* 每条链接依次淡入，避免整块「突然出现」 */
    .s-nav__link {
        line-height: 44px;
        border-bottom: 0;
        border-radius: var(--s-r-sm);
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity .18s ease, transform .22s ease, background .18s ease, color .18s ease;
    }
    .s-nav__links.is-open .s-nav__link { opacity: 1; transform: translateY(0); }
    .s-nav__links.is-open .s-nav__link:nth-child(1) { transition-delay: .06s; }
    .s-nav__links.is-open .s-nav__link:nth-child(2) { transition-delay: .10s; }
    .s-nav__links.is-open .s-nav__link:nth-child(3) { transition-delay: .14s; }
    .s-nav__links.is-open .s-nav__link:nth-child(4) { transition-delay: .18s; }
    .s-nav__links.is-open .s-nav__link:nth-child(5) { transition-delay: .22s; }
    .s-nav__links.is-open .s-nav__link:nth-child(6) { transition-delay: .26s; }
    .s-nav__links.is-open .s-nav__link:nth-child(7) { transition-delay: .30s; }
    .s-nav__link.is-active { border-bottom: 0; background: var(--s-brand-soft); }

    /* 导航右侧：窄屏下只保留一个账号动作（退出/登录），允许压缩 */
    .s-nav__inner { gap: 6px; }
    .s-brand { font-size: 16px; margin-right: 0; min-width: 0; }
    .s-brand__logo { width: 24px; height: 24px; }
    .s-nav__right {
        gap: 6px;
        min-width: 0;
        flex: none;
        justify-content: flex-end;
    }
    .s-pill {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
        max-width: 128px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .s-hero { padding: 32px 0 20px; }
    /* 手机端缩小标题：基于后台设置的字号按比例缩放，避免大字号溢出 */
    .s-hero__title { font-size: calc(var(--ht-size, 42px) * .62); }
    .s-hero__tags { margin-bottom: 18px; }
    .s-hero__card { padding: 16px; }
    .s-steps { flex-direction: column; }
    /* 平板：卡片改成一行 2 个，三列会挤掉"今日/累计"明细 */
    .s-site { flex: 0 0 calc(50% - 6px); width: calc(50% - 6px); }
    .s-table th, .s-table td { padding: 10px 8px; font-size: 12.5px; }

    /* 平板宽度下输入框会被 170px 的按钮挤压，收窄按钮并缩小字号 */
    .s-urlbox__submit { width: 120px; font-size: 14px; gap: 4px; }
    .s-urlbox__input { font-size: 15px; }
}

@media (max-width: 480px) {
    .s-auth { padding: 16px 12px; }
    .s-auth__box { border-radius: 18px; }
    .s-auth__panel { padding: 26px 20px 22px; }
    .s-auth__head h1 { font-size: 20px; }
    .s-auth__head p { font-size: 12.5px; }
    .s-auth .s-input { height: 48px; }
    .s-auth .s-btn--primary { height: 48px; }
    .s-field { margin-bottom: 14px; }
    /* 窄屏两个链接并排会挤成两行，改成上下居中排列 */
    .s-auth__links { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
    .s-check { align-items: flex-start; font-size: 13px; line-height: 1.5; }
    .s-check input { flex: none; margin-top: 2px; }
    /* 验证码行：按钮不参与收缩，否则会被挤到只剩几个字宽 */
    .s-field--row .s-btn { flex: none; padding: 0 12px; font-size: 13px; }
}

@media (max-width: 420px) {
    .s-container { padding: 0 14px; }
    /* 小屏：搜索图标 + 输入框 + 清除按钮 占第一行，提交按钮换到第二行。
       注意清除按钮必须留在输入行内（不能用 order 排到最后），
       否则会掉到卡片外、溢出容器。 */
    .s-urlbox { flex-wrap: wrap; border-radius: 14px; }
    .s-urlbox__icon {
        order: 1;
        width: 18px;
        height: 18px;
        margin: 0 0 0 14px;
    }
    .s-urlbox__input {
        order: 2;
        /* flex-basis 0 + min-width 0：只占剩余空间，绝不把清除按钮挤到下一行 */
        flex: 1 1 0%;
        width: 0;
        min-width: 0;
        height: 52px;
        font-size: 15px;
        padding: 0 10px;
    }
    .s-urlbox__clear {
        order: 3;
        width: 22px;
        height: 22px;
        margin: 0 12px 0 2px;
    }
    .s-urlbox__submit {
        order: 4;
        width: 100%;
        height: 46px;
        border-radius: 0 0 13px 13px;
    }
    .s-pill { height: 30px; padding: 0 12px; font-size: 13px; }
    /* .s-stats--5（个人中心 5 卡）在更窄屏也要保持单列：
       此处比上面的 560px 块更晚出现，必须一并声明，否则会把单列覆盖回两列 */
    .s-stats, .s-stats--5 { grid-template-columns: 1fr; gap: 10px; }
    .s-stat { padding: 14px; }
    .s-stat__value { font-size: 20px; }
    .s-site { flex: 0 0 100%; width: 100%; padding: 11px 12px; gap: 7px; }
    /* 卡片变窄后，图标与次数标签同步收窄 */
    .s-site__icon, .s-site__letter, .s-site__icon img { width: 24px; height: 24px; }
    .s-site__letter { font-size: 12px; }
    .s-site__quota { padding: 2px 7px; font-size: 11px; }
    .s-site__meta { font-size: 11.5px; }
    .s-auth__panel { padding: 28px 22px; }
    .s-modal__body { padding: 16px; }
    /* 卡片头部的说明文字在窄屏独占一行，避免和标题挤在一起 */
    .s-card__head > .s-muted { flex: 0 0 100%; }
}

/* ============================ 焦点框 ============================ */
/* 浏览器/Bootstrap 默认会给聚焦元素画 outline：
     bootstrap.min.css 里有 button:focus{outline:-webkit-focus-ring-color auto 5px}
     Chrome/Edge 下实际渲染成 5px 纯黑环，鼠标点过按钮后一直留着，很难看。
   原则：去掉鼠标/触摸产生的焦点环，键盘 Tab 仍保留可见提示，
   不做全局 outline:none —— 那会让键盘用户完全失去位置反馈。 */

/* 1) 鼠标/触摸聚焦：不显示焦点环。
      先覆盖 Bootstrap 的 button:focus，再用 :focus:not(:focus-visible) 精确命中非键盘聚焦 */
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
[role="button"]:focus {
    outline: 0 !important;
    outline-offset: 0;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none !important;
}

/* 2) 键盘 Tab：品牌色描边替代浏览器黑框。
      用 !important 覆盖 Bootstrap 与上面第 1 条的 button:focus；
      颜色写具体值而不是 var()，避免变量在优先级竞争中失效 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brand, #10b981) !important;
    outline-offset: 2px;
}

/* 3) 输入类控件有自己的边框/光晕反馈，一律不要焦点环 */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
    outline: 0 !important;
}

/* 4) 「立即获取」按钮紧贴输入框，外描边会溢出圆角，改为向内描边 */
.s-urlbox__submit:focus-visible {
    outline: 2px solid var(--brand, #10b981) !important;
    outline-offset: -2px;
}


/* 深色系统模式适配 + 焦点框统一（前台） */
html, body { color-scheme: light; }
/* 鼠标点击不留黑色焦点框，键盘导航才显示品牌色环 */
.s-btn:focus,
.s-input:focus,
.s-copy:focus,
.s-side a:focus,
button:focus,
a:focus { outline: none; }
.s-btn:focus-visible,
.s-copy:focus-visible,
.s-side a:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(16, 185, 129, .55);
    outline-offset: 2px;
}

/* 自绘复选框（导出页等） */
input[type="checkbox"]:not(.a-check input),
input[type="radio"] { accent-color: var(--brand); }
