﻿/* ============================================================================
   static/css/resource-refresh.css —— 资源站全新前台样式（现代简约）
   ============================================================================
   设计原则：
     * 不依赖 Bootstrap / Tailwind 等重框架，全部手写；
     * 只服务前台，不影响 /admin/（Unfold 自带样式，互不加载）；
     * 颜色克制：浅灰底 + 白卡片 + 单一品牌蓝，网盘品牌色只用于图标点色；
     * 重点区域（网盘链接、提取码、权限提示）对比度最高。

   目录：
     01 变量与基础        02 布局容器      03 顶部导航
     04 按钮 / 标签       05 首页 hero     06 资源卡片
     07 区块标题          08 列表筛选      09 分页
     10 资源详情          11 下载面板      12 评论
     13 个人中心          14 中转页        15 公告 / 弹窗
     16 页脚              17 空状态        18 响应式
   ========================================================================== */

/* ---------- 01 变量与基础 ---------- */
:root {
    /* 全浅色画布与层级表面 */
    --bg: #FBFBFD;
    --panel: #FFFFFF;
    --card: #FFFFFF;
    --surface-subtle: #F1F5F9;
    --white: #FFFFFF;

    /* 光学毛玻璃材质 */
    --chrome-bg: rgba(255, 255, 255, 0.82);
    --popover-bg: rgba(255, 255, 255, 0.97);
    --scrim-bg: rgba(15, 23, 42, 0.36);

    /* 文本层级 */
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --muted-2: #94A3B8;

    /* 描边：半透明优先，实色兜底 */
    --line: rgba(15, 23, 42, 0.08);
    --line-solid: #E2E8F0;
    --line-2: #EEF2F7;

    /* 品牌蓝：主色 / 悬浮 / 按下 */
    --brand: #0071E3;
    --brand-hover: #0077ED;
    --brand-press: #0062C4;
    --brand-soft: #EFF6FF;
    --brand-deep: #0062C4;

    /* 语义色：成功 / 警告 / 危险 / 积分 / 会员 */
    --green: #059669;
    --green-soft: #ECFDF5;
    --amber: #B45309;
    --amber-soft: #FFFBEB;
    --warning: #D97706;
    --red: #DC2626;
    --red-soft: #FFF1F2;
    --vip: #047857;

    /* 芯片 */
    --chip-bg: #F1F5F9;
    --chip-ink: #334155;

    /* 语义描边 */
    --brand-line: #BFDBFE;
    --amber-line: #F7E2BD;
    --red-line: #FECDCA;
    --green-line: #ABEFC6;

    /* 形状与深度 */
    --radius-lg: 18px;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -18px rgba(15, 23, 42, .28);
    --shadow-lg: 0 24px 60px -28px rgba(15, 23, 42, .35);

    /* 动效：展开用临界阻尼拟合，收起用 iOS Sheet 曲线 */
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-in: cubic-bezier(.32, .72, 0, 1);

    --font: 'HarmonyOS Sans SC', 'MiSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Rajdhani', 'HarmonyOS Sans SC', 'MiSans', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}


* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}
a, button, [role="button"], summary {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: .9375rem;
    line-height: 1.65;
    letter-spacing: 0;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-loadingApp { overflow-x: hidden; }
.loading-line { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); line-height: 1.35; font-weight: 650; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: var(--white); }

.rs-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* 旧主题里残留的隐藏元素 */
.menustate, #header-nav > li.menuicon, .sticky-ico { display: none; }

/* ---------- 02 布局容器 ---------- */
.rs-container {
    width: 100%;
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 24px;
}

.rs-main { padding: 20px 0 72px; min-height: 55vh; }

.rs-row { display: flex; gap: 24px; align-items: flex-start; }
.rs-col-main { flex: 1 1 auto; min-width: 0; }
.rs-col-side { flex: 0 0 320px; width: 320px; }

/* ---------- 03 顶部导航 ---------- */
.rs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--chrome-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 10px 28px -24px rgba(15, 23, 42, .22);
    transition:
        background-color 240ms cubic-bezier(.23, 1, .32, 1),
        box-shadow 240ms cubic-bezier(.23, 1, .32, 1);
}
@supports (animation-timeline: scroll()) {
    @keyframes rs-header-scroll {
        to {
            background-color: rgba(255, 255, 255, 0.94);
            box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 12px 32px -16px rgba(15, 23, 42, .28);
        }
    }
    .rs-header {
        animation: rs-header-scroll linear both;
        animation-timeline: scroll();
        animation-range: 0px 80px;
    }
}

.rs-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.rs-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 40px;
    border-radius: 12px;
}

.rs-brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(180deg, var(--brand-hover) 0%, var(--brand-deep) 100%);
    color: var(--white);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.02em;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .35),
        0 5px 14px -8px rgba(0, 113, 227, .75);
}

.rs-brand-text { min-width: 0; }

.rs-brand-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px -2px rgba(0, 113, 227, .35);
}

.rs-footer-brand .rs-brand-logo { width: 30px; height: 30px; border-radius: 8px; }

.rs-brand-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rs-brand-text span {
    display: block;
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .03em;
    color: var(--muted);
    white-space: nowrap;
}

.rs-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.rs-nav-item { position: relative; display: flex; align-items: center; flex: 0 0 auto; }

.rs-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.005em;
    color: var(--ink-2);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 140ms ease-out, color 140ms ease-out;
}
.rs-nav a:hover { background: rgba(15, 23, 42, .055); color: var(--ink); }
.rs-nav a.is-active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.rs-nav a:active {
    transform: scale(.985);
    background-color: rgba(0, 113, 227, .12);
    transition: transform 80ms ease-out, background-color 80ms ease-out;
}

/* 二级导航：始终留在渲染树中，用 opacity/transform/visibility 状态机显隐 */
.rs-nav-chevron { width: 12px; height: 12px; transition: transform 240ms var(--ease-out); }
.rs-nav-item:hover .rs-nav-chevron,
.rs-nav-item:focus-within .rs-nav-chevron { transform: rotate(180deg); }

.rs-nav-sub {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 90;
    display: block;
    min-width: 184px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .7),
        0 18px 44px -20px rgba(15, 23, 42, .3);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top left;
    transform: translate3d(0, -6px, 0) scale(.96);
    transition:
        opacity 180ms var(--ease-in),
        transform 220ms var(--ease-in),
        visibility 0s linear 220ms;
}
.rs-nav-sub::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}
.rs-nav-item:hover .rs-nav-sub,
.rs-nav-item:focus-within .rs-nav-sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 200ms var(--ease-out),
        transform 280ms var(--ease-out),
        visibility 0s linear 0s;
}
.rs-nav-sub a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}
.rs-nav-sub a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.rs-nav-sub a.is-active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }

.rs-header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.rs-points-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: .8125rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rs-points-pill svg { color: var(--amber); }
.rs-points-pill b { font-weight: 700; }
.rs-signup-btn { border-radius: 999px; }

.rs-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--chip-bg);
    min-width: 0;
    transition:
        border-color 160ms ease-out,
        background-color 160ms ease-out,
        box-shadow 160ms ease-out,
        width 220ms var(--ease-out),
        flex-basis 220ms var(--ease-out);
}
.rs-search--desktop { width: 280px; flex: 0 0 280px; }
.rs-search--desktop:focus-within { width: 320px; flex-basis: 320px; }
.rs-search:focus-within {
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, .14);
}
.rs-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .8438rem;
    color: var(--ink);
}
.rs-search input::placeholder { color: var(--muted-2); }
.rs-search button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: var(--muted);
    display: grid;
    place-items: center;
}
.rs-search svg { width: 16px; height: 16px; }

.rs-user { position: relative; }
.rs-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    height: 40px;
    padding: 0 10px 0 4px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: .8438rem;
    font-weight: 500;
    color: var(--ink-2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 140ms ease-out, background-color 140ms ease-out, transform 80ms cubic-bezier(.2, 0, 0, 1);
}
.rs-user-btn:hover { border-color: rgba(0, 113, 227, .28); background: rgba(255, 255, 255, .92); }
.rs-user-btn:active { transform: scale(.97); }
.rs-user-name {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rs-user-btn > svg { transition: transform 240ms var(--ease-out); }
.rs-user.is-open .rs-user-btn > svg { transform: rotate(180deg); }

.rs-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border: 1px solid var(--brand-line);
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
}
.rs-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 用户下拉：与二级导航同一套可中断状态机，transform-origin 锚定右上角 */
.rs-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: block;
    min-width: 232px;
    padding: 8px;
    background: var(--white);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .7),
        var(--shadow-lg);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top right;
    transform: translate3d(0, -6px, 0) scale(.96);
    transition:
        opacity 220ms cubic-bezier(.23, 1, .32, 1),
        transform 220ms cubic-bezier(.23, 1, .32, 1),
        visibility 0s linear 220ms;
}
.rs-user.is-open .rs-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 220ms cubic-bezier(.23, 1, .32, 1),
        transform 220ms cubic-bezier(.23, 1, .32, 1),
        visibility 0s linear 0s;
}
.rs-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 10px 10px;
    border-radius: 9px;
    font-size: .8438rem;
    color: var(--ink-2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 140ms ease-out, color 140ms ease-out;
}
.rs-dropdown a:hover { background: var(--bg); color: var(--ink); }
.rs-dropdown a:active,
.rs-dropdown-logout:active {
    transform: scale(.985);
    background-color: rgba(0, 113, 227, .12);
    transition: transform 80ms ease-out, background-color 80ms ease-out;
}
.rs-dropdown .rs-dd-meta { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.rs-dropdown .rs-dd-meta b { display: block; font-size: .875rem; letter-spacing: -.01em; }
.rs-dropdown .rs-dd-meta span { font-size: .75rem; color: var(--muted); }
.rs-dropdown .rs-dd-meta span b { display: inline; color: var(--amber); font-size: .8125rem; }
.rs-dropdown svg { width: 15px; height: 15px; opacity: .7; }
.rs-dropdown-form { margin: 0; }

.rs-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .8);
    color: var(--ink-2);
    cursor: pointer;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1), background-color 80ms ease-out;
}
.rs-mobile-toggle:active { transform: scale(.97); background-color: rgba(0, 113, 227, .12); }
.rs-mobile-toggle svg { width: 18px; height: 18px; }

/* 移动端抽屉：绝对定位到顶栏下沿的毛玻璃面板，绝不用 display:none 中断过渡 */
.rs-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 85;
    display: block;
    background: var(--white);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, .18);
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: top right;
    transform: translate3d(0, -10px, 0) scaleY(.96);
    transition:
        opacity 260ms cubic-bezier(.23, 1, .32, 1),
        transform 260ms cubic-bezier(.23, 1, .32, 1),
        visibility 0s linear 260ms;
}
@media (max-width: 1023px) {
    .rs-mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0) scaleY(1);
        transition:
            opacity 260ms cubic-bezier(.23, 1, .32, 1),
            transform 260ms cubic-bezier(.23, 1, .32, 1),
            visibility 0s linear 0s;
    }
}
.rs-mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 14px;
}
.rs-mobile-nav .rs-search--mobile {
    display: flex;
    width: 100%;
    margin: 0 0 12px;
    background: var(--surface-subtle);
}
.rs-mobile-links { display: flex; flex-direction: column; gap: 2px; }
.rs-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: .875rem;
    color: var(--ink-2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 140ms ease-out, color 140ms ease-out;
}
.rs-mobile-nav a:hover { background: var(--bg); color: var(--ink); }
.rs-mobile-nav a.is-active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.rs-mobile-nav a:active {
    transform: scale(.985);
    background-color: rgba(0, 113, 227, .12);
    transition: transform 80ms ease-out, background-color 80ms ease-out;
}
.rs-mobile-nav .rs-mobile-sub {
    min-height: 40px;
    margin-left: 12px;
    padding-left: 14px;
    border-left: 2px solid var(--line);
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    font-size: .8125rem;
}

/* 抽屉底部分类网格：两列，390 宽下无需二次滚屏即可点全 6 个一级分类 */
.rs-mobile-cats {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-2);
}
.rs-mobile-cats-label {
    display: block;
    padding: 0 4px 8px;
    font-size: .6563rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--muted-2);
}
.rs-mobile-cats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}
.rs-mobile-nav .rs-mobile-cats-grid a {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    font-size: .8125rem;
    color: var(--ink-2);
    justify-content: space-between;
}
.rs-mobile-nav .rs-mobile-cats-grid a::after {
    content: "→";
    color: var(--muted-2);
    font-size: .75rem;
}
.rs-mobile-nav .rs-mobile-cats-grid a:hover,
.rs-mobile-nav .rs-mobile-cats-grid a:active {
    background: var(--brand-soft);
    border-color: var(--brand-line);
    color: var(--brand-deep);
}

.rs-icon-xs { width: 12px; height: 12px; flex: 0 0 auto; }


/* ---------- 04 按钮 / 标签 ---------- */
.rs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--brand);
    color: var(--white);
    font-size: .875rem; font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition:
        transform 80ms cubic-bezier(.2, 0, 0, 1),
        background-color 140ms ease-out,
        box-shadow 160ms ease-out,
        border-color 140ms ease-out;
}
.rs-btn:hover { background: var(--brand-hover); box-shadow: 0 10px 22px -14px rgba(0, 113, 227, .9); }
.rs-btn:active { transform: scale(.97); background: var(--brand-press); }
.rs-btn[disabled], .rs-btn.is-disabled { background: #cbd5e1; cursor: not-allowed; box-shadow: none; }
.rs-btn svg { width: 16px; height: 16px; }

.rs-btn:disabled,
button:disabled {
    opacity: .58;
    cursor: not-allowed;
    pointer-events: none;
}

.rs-btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink-2); }
.rs-btn-ghost:hover { background: var(--bg); border-color: rgba(15, 23, 42, .16); color: var(--ink); box-shadow: none; }
.rs-btn-soft { background: var(--brand-soft); color: var(--brand-deep); }
.rs-btn-soft:hover { background: var(--brand-soft); box-shadow: none; }
.rs-btn-block { width: 100%; }
.rs-btn-sm { min-height: 40px; height: 40px; padding: 0 14px; font-size: .8125rem; border-radius: 9px; }
.rs-btn-lg { height: 46px; padding: 0 22px; font-size: .9375rem; border-radius: 12px; }
.rs-login-btn { min-height: 40px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: .875rem; }

.rs-chip {
    display: inline-flex; align-items: center; gap: 5px;
    height: 26px; padding: 0 9px;
    border-radius: 7px;
    background: var(--chip-bg);
    color: var(--chip-ink);
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
}
.rs-chip--brand { background: var(--brand-soft); color: var(--brand-deep); }
.rs-chip--green { background: var(--green-soft); color: var(--vip); }
.rs-chip--amber { background: var(--amber-soft); color: var(--amber); }
.rs-chip--red { background: var(--red-soft); color: var(--red); }
.rs-chip--outline { background: var(--white); border: 1px solid var(--line); color: var(--ink-2); }

.rs-tag {
    display: inline-flex; align-items: center;
    min-height: 40px; height: 40px; padding: 0 14px;
    border-radius: 7px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .75rem;
    transition: border-color 140ms ease-out, color 140ms ease-out, background-color 140ms ease-out;
}
.rs-tag:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }

.rs-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.rs-icon-sm { width: 14px; height: 14px; }

/* ---------- 05 首页 hero：双联台（16:10 主图 + 标题切换列 + 右侧热榜） ---------- */
.rs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    margin-bottom: 28px;
}

/* 幻灯卡片：左图严格 16:10（宽 = 高 × 1.6），右列吃剩余宽度 */
.rs-slider {
    display: flex;
    height: 250px;
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.rs-slides {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 16 / 10;
    background: var(--ink);
}
.rs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 320ms ease; pointer-events: none; }
.rs-slide.is-active { opacity: 1; pointer-events: auto; cursor: pointer; }
.rs-slide.is-active:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: -3px; }
.rs-slide-media { display: block; width: 100%; height: 100%; }
.rs-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.22, 1, .36, 1); }
.rs-slide.is-active:hover img { transform: scale(1.02); }

/* 右列：.rs-slider-dots button 从圆点升级为整行标题切换项，JS 仍按 index 一一配对 */
.rs-slider-dots {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--panel);
    border-left: 1px solid var(--line-2);
}
.rs-slide-tab {
    position: relative;
    flex: 1 1 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 14px;
    border: 0;
    border-top: 1px solid var(--line-2);
    background: transparent;
    color: var(--ink-2);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.rs-slide-tab:first-child { border-top: 0; }
.rs-slide-tab > * { position: relative; z-index: 1; transition: transform 75ms cubic-bezier(.2, 0, 0, 1); }
/* 选中底色只用 opacity 叠层，不写 background-color 过渡 */
.rs-slide-tab::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 113, 227, .10), rgba(0, 113, 227, .02));
    opacity: 0;
    transition: opacity 180ms ease-out;
    pointer-events: none;
}
.rs-slide-tab.is-active::after { opacity: 1; }
.rs-slide-tab:hover::after { opacity: .55; }
.rs-slide-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--brand);
    opacity: 0;
    transition: opacity 200ms ease-out;
    z-index: 2;
}
.rs-slide-tab.is-active::before { opacity: 1; }
.rs-slide-tab:active > * { transform: translateX(2px); }
.rs-slide-tab-idx {
    flex: 0 0 auto;
    font-size: .6563rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .04em;
    color: var(--muted-2);
}
.rs-slide-tab.is-active .rs-slide-tab-idx { color: var(--brand-deep); }
.rs-slide-tab-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rs-slide-tab-title {
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rs-slide-tab-meta { font-size: .6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 热榜：与幻灯同高 250，压紧到 5 行 */
.rs-hot {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 10px 14px 6px;
    height: 250px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.rs-hot-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.rs-hot-head h2 { font-size: 14px; }
.rs-hot-head a {
    font-size: 12px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 6px;
    margin: -8px -6px;
}
.rs-hot-list { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.rs-hot-item { display: flex; gap: 10px; padding: 3px 0; border-top: 1px solid var(--line-2); align-items: center; }
.rs-hot-item:first-child { border-top: 0; }
.rs-hot-thumb { width: 48px; height: 30px; border-radius: 7px; overflow: hidden; background: var(--line); flex: 0 0 auto; }
.rs-hot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs-hot-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.rs-hot-title { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rs-hot-meta { display: flex; gap: 8px; font-size: 10.5px; color: var(--muted-2); }
.rs-hot-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rs-hot-meta svg { flex: 0 0 auto; }

/* ---------- 06 资源卡片 ---------- */
/* 模板结构统一，三种形态只由容器决定：A 首页陈列 / B 列表矩阵 / C 相关推荐 */
.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rs-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.rs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transform: translate3d(0, 0, 0);
    transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
}

/* 悬浮高阶阴影预先涂布在伪元素上：只插值 opacity，不重算 box-shadow */
.rs-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, .12), 0 4px 10px -2px rgba(0, 113, 227, .08);
    opacity: 0;
    transition: opacity 240ms cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
    .rs-card:hover { transform: translate3d(0, -3px, 0); }
    .rs-card:hover::after { opacity: 1; }
}

/* 指针按下瞬间就回弹，不等 release */
.rs-card:active { transform: translate3d(0, 0, 0) scale(.985); transition-duration: 75ms; }

.rs-card-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-2); }
.rs-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rs-card:hover .rs-card-cover img { transform: scale(1.035); } }

.rs-card-badges { position: absolute; left: 10px; top: 10px; z-index: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.rs-card-badges .rs-chip { background: rgba(255, 255, 255, .92); color: var(--ink-2); backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.rs-card-badges .rs-chip--brand { background: var(--brand); color: var(--white); }
.rs-card-badges .rs-chip--amber { background: var(--amber); color: var(--white); }
.rs-card-badges .rs-chip--green { background: var(--vip); color: var(--white); }

.rs-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }

/* 槽位锁高：1 行标题与 2 行标题的卡片高度 100% 齐平 */
.rs-card-cat { height: 18px; font-size: 12px; line-height: 18px; color: var(--brand-deep); font-weight: 600; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-card-title { height: 44px; font-size: 15.5px; line-height: 22px; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-card-title a { display: block; min-height: 40px; }
.rs-card-desc { height: 20px; font-size: 13px; line-height: 20px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.rs-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; height: 26px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--muted-2); }
.rs-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rs-card-meta .rs-rating { color: var(--amber); font-weight: 600; }

/* 形态 C：相关推荐 —— 分类与摘要收起，标题锁 1 行 */
.rs-related .rs-card-cat,
.rs-related .rs-card-desc { display: none; }
.rs-related .rs-card-title { height: 22px; line-height: 22px; -webkit-line-clamp: 1; }
.rs-related .rs-card-body { padding: 12px 16px; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
    .rs-card, .rs-card:hover, .rs-card:active { transform: none !important; transition: none !important; }
    .rs-card::after, .rs-card:hover::after { transition: none !important; }
    .rs-card-cover img, .rs-card:hover .rs-card-cover img { transform: none !important; transition: none !important; }
}

/* ---------- 07 区块标题 ---------- */
.rs-section { margin-bottom: 34px; }
.rs-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rs-section-head h2 { font-size: 19px; letter-spacing: .2px; }
.rs-section-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.rs-section-head a.more {
    font-size: 13px;
    color: var(--brand-deep);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 8px 6px;
    margin: -8px -6px;
}

/* 分类面板 */
/* ---------- 07 页尾分类紧凑目录（无封面：3 分类 × 4 行 = 12 条） ---------- */
.rs-cat-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rs-cat-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.rs-cat-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rs-cat-panel-head h3 { font-size: 14px; }
.rs-cat-panel-head a {
    font-size: 11.5px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 10px;
    margin: -8px -10px;
}
.rs-mini-list { display: flex; flex-direction: column; }
.rs-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 5px 0;
    border-top: 1px solid var(--line-2);
    font-size: 12.5px;
    color: var(--ink-2);
    transition: transform 140ms ease-out;
}
.rs-mini:first-child { border-top: 0; }
.rs-mini-idx {
    flex: 0 0 auto;
    width: 18px;
    font-size: .625rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--muted-2);
}
.rs-mini-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-mini:hover { color: var(--brand-deep); transform: translateX(2px); }

/* ---------- 08 列表筛选 ---------- */
.rs-pagehead { padding: 6px 0 20px; }
.rs-pagehead .rs-crumb { font-size: 12px; color: var(--muted-2); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.rs-pagehead .rs-crumb a:hover { color: var(--brand-deep); }
.rs-pagehead h1 { font-size: 26px; letter-spacing: -.3px; }
.rs-pagehead p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; max-width: 720px; }

.rs-filter {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}
.rs-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}
.rs-filter-label { font-size: 12px; color: var(--muted-2); }
.rs-filter select {
    min-height: 40px; height: 40px; padding: 0 30px 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    font-size: 13px;
    color: var(--ink-2);
    outline: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 140ms ease-out, box-shadow 140ms ease-out, transform 80ms cubic-bezier(.2, 0, 0, 1);
}
.rs-filter select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rs-filter select:active { transform: scale(.985); }
.rs-filter .rs-pill {
    min-height: 40px; height: 40px; padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    font-size: 12.5px;
    color: var(--muted);
    display: inline-flex; align-items: center; gap: 5px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1), border-color 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out;
}
.rs-filter .rs-pill:hover { border-color: var(--line-solid); }
.rs-filter .rs-pill:active { transform: scale(.96); background: var(--brand-soft); }
.rs-filter .rs-pill.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.rs-filter .rs-spacer { flex: 1 1 auto; }
.rs-filter .rs-total { font-size: 12px; color: var(--muted-2); }
.rs-active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: -10px 0 18px; }

/* ---------- 09 分页 ---------- */
.rs-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.rs-pager a, .rs-pager span {
    min-width: 40px; min-height: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    font-size: 13px;
    color: var(--ink-2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1), border-color 140ms ease-out, background-color 140ms ease-out, color 140ms ease-out;
}
.rs-pager a:hover { border-color: var(--brand); color: var(--brand-deep); }
.rs-pager a:active { transform: scale(.96); background: var(--brand-soft); }
.rs-pager .is-current { background: var(--brand); border-color: var(--brand); color: var(--white); font-weight: 600; }
.rs-pager .is-dots { border-color: transparent; background: transparent; color: var(--muted-2); }
.rs-pager .is-total { border: 0; background: transparent; color: var(--muted-2); font-size: 12px; }

/* ---------- 10 资源详情 ---------- */
/* 下载舱与资源信息共用同一 sticky 容器：两张卡一起滚动，避免信息卡单独悬浮遮挡内容 */
.rs-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}
.rs-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 2px;
    color: var(--muted);
    text-decoration: none;
    touch-action: manipulation;
}
.rs-breadcrumb a:active { color: var(--brand-deep); }
.rs-breadcrumb [aria-current="page"] {
    min-width: 0;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}
.rs-breadcrumb-sep {
    color: var(--muted-2);
    user-select: none;
}
.rs-aside-box .rs-table {
    min-width: 0;
    table-layout: fixed;
}
.rs-aside-box .rs-table td {
    white-space: normal;
    overflow-wrap: anywhere;
}
.rs-aside-box .rs-table td:first-child {
    width: 84px;
    color: var(--muted-2);
}
@media (hover: hover) and (pointer: fine) {
    .rs-breadcrumb a:hover { color: var(--brand-deep); }
}
.rs-detail { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 26px; align-items: start; }
.rs-side-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rs-side-stack > .rs-panel + .rs-panel { margin-top: 0; }
@media (min-width: 1024px) {
    .rs-col-main { display: contents; }
    .rs-detail-hero { grid-column: 1; grid-row: 1; }
    .rs-side-stack {
        grid-column: 2;
        grid-row: 1 / span 4;
        position: sticky;
        top: 86px;
        align-self: start;
    }
    .rs-side-stack .rs-download { position: static; top: auto; }
    .rs-detail-info { grid-column: 1; grid-row: 2; }
    #comments { grid-column: 1; grid-row: 3; }
    .rs-nav-posts { grid-column: 1; grid-row: 4; }
    .rs-related { grid-column: 1 / -1; grid-row: 5; }
}

.rs-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.rs-panel-pad { padding: 24px; }
.rs-panel + .rs-panel { margin-top: 20px; }

.rs-detail-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.rs-detail-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; opacity: .92; }
.rs-detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 6, 23, .04), rgba(2, 6, 23, .72)); }
.rs-detail-hero-body { position: absolute; inset: auto 0 0; padding: 26px 28px; color: var(--white); z-index: 2; }
.rs-detail-hero-body .rs-chip { background: rgba(255, 255, 255, .18); color: var(--white); backdrop-filter: blur(6px); }
.rs-detail-title { color: var(--white); font-size: 26px; margin: 12px 0 8px; letter-spacing: -.2px; max-width: 720px; }
.rs-detail-sub { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.rs-detail-sub span { display: inline-flex; align-items: center; gap: 5px; }

.rs-detail-head { padding: 20px 24px 4px; }
.rs-detail-head h1 { font-size: 24px; letter-spacing: -.3px; }
.rs-detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.rs-detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.rs-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.rs-summary { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }

.rs-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.rs-spec { background: var(--white); padding: 12px 14px; }
.rs-spec dt { font-size: 11.5px; color: var(--muted-2); margin-bottom: 3px; }
.rs-spec dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }

.rs-article { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; word-break: break-word; }
.rs-article h1, .rs-article h2, .rs-article h3, .rs-article h4 { color: var(--ink); font-weight: 700; line-height: 1.4; margin: 26px 0 12px; }
.rs-article h1 { font-size: 18px; }
.rs-article h2 { font-size: 16.5px; }
.rs-article h3, .rs-article h4 { font-size: 15px; }
.rs-article p { margin: 10px 0; }
.rs-article ul, .rs-article ol { padding-left: 20px; margin: 10px 0 16px; color: var(--ink-2); }
.rs-article ul { list-style: disc; }
.rs-article ol { list-style: decimal; }
.rs-article li { margin-bottom: 6px; }
.rs-article img { max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; display: block; }
.rs-article a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.rs-article blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--brand); background: var(--bg-card); border-radius: 0 8px 8px 0; color: var(--ink-2); font-size: 14px; }
.rs-article code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: var(--bg-card); color: var(--brand-deep); border: 1px solid var(--line-2); }
.rs-article pre { margin: 14px 0; padding: 14px 16px; border-radius: 10px; background: #0f172a; color: #e2e8f0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rs-article pre code { padding: 0; background: transparent; border: 0; color: inherit; font-size: 13px; line-height: 1.6; }
.rs-article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; display: block; overflow-x: auto; max-width: 100%; }
.rs-article th, .rs-article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.rs-article th { background: var(--bg-card); font-weight: 600; color: var(--ink); }
.rs-article hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.rs-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 4px;
}
.rs-shot {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}
.rs-shot img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: var(--bg-card);
}
.rs-shot figcaption { padding: 7px 10px; font-size: 11.5px; color: var(--muted-2); background: var(--bg); }

.rs-changelog { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--line); }
.rs-changelog li { position: relative; padding: 0 0 14px 18px; font-size: 13px; color: var(--ink-2); }
.rs-changelog li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--white); border: 2px solid var(--brand); }
.rs-changelog li:last-child { padding-bottom: 0; }

/* ---------- 11 下载面板 ---------- */
.rs-download { position: sticky; top: 86px; overflow: hidden; transition: box-shadow 180ms cubic-bezier(.2, 0, 0, 1), border-color 180ms cubic-bezier(.2, 0, 0, 1); }
.rs-download-head {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--ink), #1e293b);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rs-download-head h2 { color: var(--white); font-size: 15px; display: flex; align-items: center; gap: 8px; margin: 0; }
.rs-download-head p { margin: 4px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.rs-badge-count {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: var(--white);
    white-space: nowrap;
}

.rs-download-body { padding: 18px 20px 20px; }

.rs-disk-row {
    display: block;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}
.rs-disk-row:hover { border-color: var(--line-solid); box-shadow: var(--shadow-sm); }
.rs-disk-top { display: flex; align-items: center; gap: 10px; }
.rs-disk-ico {
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center;
    color: var(--white); font-size: 12px; font-weight: 700;
    flex: 0 0 auto;
}
.res-disk-baidu .rs-disk-ico { background: linear-gradient(135deg, #3b4bff, #2932e1); }
.res-disk-quark .rs-disk-ico { background: linear-gradient(135deg, #7a8bff, #4f5dff); }
.res-disk-aliyun .rs-disk-ico { background: linear-gradient(135deg, #ff8a3d, #ff5a00); }
.res-disk-other .rs-disk-ico { background: linear-gradient(135deg, var(--muted-2), var(--muted)); }

.rs-disk-info { flex: 1 1 auto; min-width: 0; }
.rs-disk-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rs-disk-name .rs-chip { height: 20px; font-size: 10.5px; padding: 0 6px; }
.rs-disk-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.rs-disk-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.rs-icon-btn {
    min-width: 40px; min-height: 40px; width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    display: grid; place-items: center;
    cursor: pointer;
    color: var(--muted);
    transition: color .15s, background .15s, border-color .15s, transform 80ms cubic-bezier(.2, 0, 0, 1);
}
.rs-icon-btn:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
.rs-icon-btn:active { transform: scale(0.90); }
.rs-icon-btn svg { width: 14px; height: 14px; }

.rs-secret { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rs-secret-item {
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    min-height: 40px; height: 40px; padding: 0 10px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px dashed var(--line-solid);
    font-size: 11.5px;
    color: var(--muted);
}
.rs-secret-item b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); font-size: 12.5px; letter-spacing: .4px; }
.rs-secret-item button {
    border: 0; background: transparent; cursor: pointer; color: var(--brand-deep);
    display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0;
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1);
}
.rs-secret-item button:active { transform: scale(0.88); }
.rs-secret-item button svg { width: 13px; height: 13px; }

.rs-lock {
    text-align: left;
    padding: 18px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}
.rs-lock-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.rs-lock-ico {
    width: 40px; height: 40px; margin: 0;
    border-radius: 11px;
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.rs-lock-ico svg { width: 20px; height: 20px; }
.rs-lock-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
}
.rs-lock h3 { font-size: 15px; font-weight: 600; margin: 0; color: var(--ink); }
.rs-lock p { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.rs-lock-promises {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-2);
}
.rs-lock-promises li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rs-lock-promises svg {
    width: 14px; height: 14px;
    color: var(--brand);
    flex: 0 0 auto;
}
/* 积分解锁态 */
.rs-lock--points {
    background: linear-gradient(180deg, #fffdf8, var(--bg));
    border-color: #fde68a;
}
.rs-lock--points .rs-lock-ico {
    background: #fef3c7;
    color: #d97706;
}
.rs-lock--points .rs-lock-badge {
    background: #fef3c7;
    color: #b45309;
}
.rs-lock--points .rs-price {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
    color: #d97706;
    font-weight: 700;
    font-size: 22px;
}
.rs-lock--points .rs-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}
.rs-lock--points .rs-balance {
    font-size: 12px;
    color: var(--muted-2);
    margin-top: 10px;
}
.rs-lock--points .rs-balance-tip {
    display: block;
    color: var(--amber);
    margin-top: 4px;
    font-size: 11.5px;
}
/* 会员专属态 */
.rs-lock--member {
    background: linear-gradient(180deg, #f7fdf9, var(--bg));
    border-color: #bbf7d0;
}
.rs-lock--member .rs-lock-ico {
    background: #dcfce7;
    color: #15803d;
}
.rs-lock--member .rs-lock-badge {
    background: #dcfce7;
    color: #15803d;
}
.rs-lock--member .rs-lock-promises svg {
    color: #16a34a;
}
/* 登录可见态 */
.rs-lock--login {
    background: linear-gradient(180deg, #f8faff, var(--bg));
    border-color: #bfdbfe;
}
.rs-lock--login .rs-lock-ico {
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.rs-lock--login .rs-lock-badge {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.rs-download-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.7; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.rs-download-foot { display: flex; gap: 8px; margin-top: 14px; }
.rs-download-foot .rs-btn { flex: 1 1 0; }

.rs-aside-box { padding: 18px 20px; }
.rs-aside-box h3 { font-size: 14px; margin-bottom: 12px; }

/* 按钮瞬时按压物理反馈（Apple Design 80ms cubic-bezier(.2, 0, 0, 1)） */
.rs-copy-all,
[data-unlock-url],
.rs-lock-actions .rs-btn,
.rs-download-foot .rs-btn,
.rs-mobile-dl {
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1), opacity .15s;
}
.rs-copy-all:active,
[data-unlock-url]:active,
.rs-lock-actions .rs-btn:active,
.rs-download-foot .rs-btn:active,
.rs-mobile-dl:active {
    transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
    .rs-icon-btn:active,
    .rs-secret-item button:active,
    .rs-copy-all:active,
    [data-unlock-url]:active,
    .rs-lock-actions .rs-btn:active,
    .rs-download-foot .rs-btn:active,
    .rs-mobile-dl:active {
        transform: none !important;
        opacity: .8 !important;
    }
}

/* 相关资源 */
.rs-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rs-related .rs-card-title { font-size: 13px; }
.rs-related .rs-card-params {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.rs-related .rs-card-params span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 关于 / 隐私等静态信息页 */
.rs-static-page {
    width: min(720px, calc(100% - 32px));
    margin: 32px auto 56px;
}
.rs-static-head {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}
.rs-static-head h1 {
    margin: 0;
    font: 700 clamp(28px, 5vw, 42px)/1.12 var(--font-heading);
    letter-spacing: -.025em;
    color: var(--ink);
}
.rs-static-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}
.rs-static-body {
    display: grid;
    gap: 24px;
}
.rs-static-body section {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.rs-static-body h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.45;
    color: var(--ink);
}
.rs-static-body p,
.rs-static-body li {
    color: var(--meta);
    font-size: 14px;
    line-height: 1.8;
}
.rs-static-body p { margin: 0; }
.rs-static-body ul {
    margin: 0;
    padding-left: 1.2em;
}
@media (max-width: 640px) {
    .rs-static-page {
        width: min(100% - 24px, 720px);
        margin: 20px auto 40px;
    }
}

/* 上下篇 */
.rs-nav-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.rs-nav-post { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.rs-nav-post span { font-size: 11.5px; color: var(--muted-2); }
.rs-nav-post b { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rs-nav-post:hover { border-color: var(--brand); }
.rs-nav-post.is-empty { opacity: .55; }

/* ---------- 12 评论 ---------- */
.rs-comment-form { display: flex; flex-direction: column; gap: 12px; }
.rs-stars { display: flex; gap: 4px; align-items: center; }
.rs-stars button { border: 0; background: transparent; padding: 4px; min-width: 32px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--line-solid); line-height: 0; border-radius: 6px; transition: color .12s cubic-bezier(.2, 0, 0, 1), background-color .12s; }
.rs-stars button svg { width: 22px; height: 22px; pointer-events: none; }
.rs-stars button.is-on { color: var(--amber); }
.rs-stars button:hover { background: var(--bg-card); color: var(--amber); }
.rs-stars-label { font-size: 12px; color: var(--muted-2); margin-left: 6px; }

/* 验货区未登录参与引导（轻量会话卡片，与下载舱权限门槛区隔） */
.rs-lock--comment {
    background: var(--bg-card);
    border: 1px dashed var(--line);
    box-shadow: none;
    padding: 24px 20px;
}
.rs-lock--comment .rs-lock-ico {
    background: var(--white);
    border: 1px solid var(--line-2);
    color: var(--muted-2);
}
.rs-lock--comment h3 {
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 6px;
}
.rs-lock--comment p {
    font-size: 13px;
    color: var(--muted-2);
    margin-bottom: 14px;
}

.rs-input, .rs-textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    background: var(--white);
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
}
.rs-input:focus, .rs-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rs-textarea { min-height: 96px; resize: vertical; }
.rs-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rs-comment-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.rs-comment { display: flex; gap: 12px; }
.rs-comment .rs-avatar { width: 36px; height: 36px; flex: 0 0 auto; }
.rs-comment-body { flex: 1 1 auto; min-width: 0; }
.rs-comment-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.rs-comment-head b { font-size: 13px; }
.rs-comment-head time { color: var(--muted-2); font-size: 11.5px; }
.rs-comment-stars { color: var(--amber); display: inline-flex; gap: 1px; }
.rs-comment-stars svg { width: 12px; height: 12px; }
.rs-comment-text { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; word-break: break-word; }
.rs-comment-note { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); }
.rs-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--muted-2);
    font-size: 13px;
    animation: rs-empty-in 200ms cubic-bezier(.2, 0, 0, 1);
}
.rs-empty svg { width: 34px; height: 34px; margin-bottom: 8px; opacity: .5; }
@keyframes rs-empty-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 13 个人中心 ---------- */
.rs-profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; }
.rs-profile-card { padding: 24px; text-align: center; }
.rs-profile-card .rs-avatar { width: 72px; height: 72px; font-size: 26px; margin: 0 auto 12px; }
.rs-profile-card h1 { font-size: 19px; }
.rs-profile-card .rs-chip { margin-top: 6px; }
.rs-points { display: flex; justify-content: center; gap: 26px; margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.rs-points div { text-align: center; }
.rs-points b { display: block; font-size: 22px; letter-spacing: -.5px; }
.rs-points span { font-size: 11.5px; color: var(--muted-2); }

.rs-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.rs-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.rs-profile, .rs-profile > div { min-width: 0; }
.rs-table th { text-align: left; font-size: 11.5px; color: var(--muted-2); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rs-table td { padding: 10px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.rs-table tr:last-child td { border-bottom: 0; }
.rs-table .rs-delta-plus { color: var(--green); font-weight: 600; }
.rs-table .rs-delta-minus { color: var(--red); font-weight: 600; }
.rs-table-empty {
    text-align: center;
    padding: 24px 12px;
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.6;
}

/* 个人中心已签到态与操作区层级 */
.rs-profile-name { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.3; }
.rs-profile-meta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.rs-profile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rs-profile-actions .rs-btn { width: 100%; }
.rs-profile-actions-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rs-profile-actions-sub .rs-btn { width: 100%; margin-top: 0 !important; }
.rs-btn[disabled].is-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.85;
}

/* OAuth 解绑危险操作样式 */
.rs-account-bind .rs-btn-unbind {
    color: var(--red);
    border-color: rgba(220, 38, 38, .2);
    background: transparent;
    transition:
        color 140ms ease-out,
        background-color 140ms ease-out,
        border-color 140ms ease-out;
}
.rs-account-bind .rs-btn-unbind:hover {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
}

/* ---------- 14 中转页 ---------- */
.rs-redirect { max-width: 620px; margin: 60px auto; padding: 32px; text-align: center; }
.rs-redirect-ico { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-deep); }
.rs-redirect-ico svg { width: 24px; height: 24px; }
.rs-redirect h1 { font-size: 21px; margin-bottom: 6px; }
.rs-redirect p { color: var(--muted); font-size: 13px; }
.rs-redirect-url { margin: 18px 0; padding: 12px 14px; border: 1px dashed var(--line-solid); border-radius: 10px; background: var(--bg); font-family: ui-monospace, monospace; font-size: 12.5px; word-break: break-all; color: var(--ink-2); }
.rs-redirect-secrets { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.rs-redirect-steps { text-align: left; margin: 22px 0; padding: 16px 18px; border-radius: 12px; background: var(--bg); font-size: 12.5px; color: var(--muted); }
.rs-redirect-steps li { margin: 6px 0 6px 18px; list-style: decimal; }

/* ---------- 15 公告 / 弹窗 ---------- */
/* 公告条：32px 深色高对比微胶囊条，关闭后整条由 JS 移除 */
.rs-announce {
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transform-origin: top center;
    transition:
        opacity 200ms cubic-bezier(.23, 1, .32, 1),
        transform 200ms cubic-bezier(.23, 1, .32, 1);
}
.rs-announce-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: .75rem;
    color: var(--bg);
}
.rs-announce-badge {
    flex: 0 0 auto;
    height: 18px;
    padding: 0 6px;
    border-radius: 5px;
    background: rgba(96, 165, 250, .16);
    color: var(--brand-hover);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .06em;
    display: inline-flex;
    align-items: center;
}
.rs-announce-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rs-announce-close {
    flex: 0 0 auto;
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    margin: 0 -6px 0 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    display: grid;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1), background-color 80ms ease-out, color 80ms ease-out;
}
.rs-announce-close:hover { background: rgba(255, 255, 255, .1); color: var(--bg); }
.rs-announce-close:active { transform: scale(.96); background: rgba(255, 255, 255, .16); }
.rs-announce-close svg { width: 14px; height: 14px; }

/* 模态框：始终 display:flex，显隐交给 opacity/visibility/pointer-events 状态机 */
.rs-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 220ms var(--ease-in),
        visibility 0s linear 220ms;
}
.rs-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 240ms var(--ease-out),
        visibility 0s linear 0s;
}
.rs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--scrim-bg);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.rs-modal-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: var(--popover-bg);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    padding: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .8),
        0 32px 80px -24px rgba(15, 23, 42, .42);
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(.95);
    transition:
        opacity 200ms var(--ease-in),
        transform 220ms var(--ease-in);
}
.rs-modal.is-open .rs-modal-card {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transition:
        opacity 260ms var(--ease-out),
        transform 320ms var(--ease-out);
}
.rs-modal-card--wide { max-width: 520px; }
.rs-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rs-modal-head h2 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; letter-spacing: -.018em; }
.rs-modal-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: -8px -8px 0 0;
    border: 0;
    border-radius: 10px;
    background: var(--surface-subtle);
    cursor: pointer;
    color: var(--muted);
    display: grid;
    place-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1), background-color 80ms ease-out;
}
.rs-modal-close:hover { background: var(--line-solid); color: var(--ink-2); }
.rs-modal-close:active { transform: scale(.97); }
.rs-modal-close svg { width: 16px; height: 16px; }
.rs-modal-body {
    max-height: 55vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--ink-2);
    font-size: .8125rem;
    line-height: 1.8;
}
.rs-modal p { color: var(--muted); font-size: .8125rem; }
.rs-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.rs-modal-actions .rs-btn { flex: 1 1 0; }
.rs-modal-note { margin-top: 12px; font-size: .7188rem; color: var(--muted-2); }

.rs-unlock-summary { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); margin: 14px 0; }
.rs-unlock-summary img { width: 56px; height: 42px; border-radius: 8px; object-fit: cover; }
.rs-unlock-summary b { display: block; font-size: .8125rem; }
.rs-unlock-summary span { font-size: .7188rem; color: var(--muted); }
.rs-unlock-cost { margin-left: auto; color: var(--amber); font-weight: 700; white-space: nowrap; }

/* ---------- 16 页脚 ---------- */
/* 184px = 上层索引 128px + 底栏 56px，取消旧版 320px 大间距三栏 */
.rs-footer {
    background: var(--surface-subtle);
    color: var(--ink-2);
    margin-top: 48px;
    border-top: 1px solid var(--line-solid);
}
.rs-footer-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    min-height: 128px;
    padding: 16px 0;
}
.rs-footer h4 {
    color: var(--ink);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
    margin-bottom: 12px;
}
.rs-footer p { color: var(--ink-2); font-size: .7813rem; line-height: 1.65; margin: 8px 0 0; max-width: 340px; }
.rs-footer-index { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rs-footer-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .8125rem; }
.rs-footer-quick a {
    color: var(--ink-2);
    font-weight: 500;
    transition: color 140ms ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 6px;
    margin: -8px -6px;
}
.rs-footer-quick a:hover { color: var(--brand-deep); }
.rs-footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-footer-tag {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-solid);
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    font-size: .6875rem;
    line-height: 1;
    white-space: nowrap;
    transition: border-color 140ms ease-out, color 140ms ease-out, background-color 140ms ease-out;
}
.rs-footer-tag:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-deep); }
.rs-footer-empty { color: var(--muted-2); font-size: .75rem; }
.rs-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    border-top: 1px solid var(--line-solid);
    font-size: .7188rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.rs-footer-brand { display: flex; align-items: center; gap: 9px; }
.rs-footer-brand strong { color: var(--ink); font-size: .9375rem; letter-spacing: -.01em; }
.rs-footer-brand .rs-brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
.rs-footer-meta { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rs-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--ink-2);
    min-height: 40px;
    padding: 8px 6px;
    margin: -8px -6px;
}
.rs-admin-link:hover { color: var(--brand-deep); }

/* ---------- 17 空状态 / 提示 ---------- */
.rs-notice { padding: 14px 16px; border-radius: 12px; font-size: 13px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.rs-notice--warn { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.rs-notice--danger { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }

.rs-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 200;
    max-width: calc(100vw - 32px);
    padding: 11px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--white);
    font-size: .8125rem;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 18px 40px -18px rgba(15, 23, 42, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, 14px, 0) scale(.96);
    transition:
        opacity 240ms cubic-bezier(.23, 1, .32, 1),
        transform 240ms cubic-bezier(.23, 1, .32, 1),
        visibility 0s linear 240ms;
}
.rs-toast.is-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0) scale(1);
    transition:
        opacity 240ms cubic-bezier(.23, 1, .32, 1),
        transform 240ms cubic-bezier(.23, 1, .32, 1),
        visibility 0s linear 0s;
}
.rs-toast.is-success { background: var(--vip); }
.rs-toast.is-error { background: var(--red); }

/* 签到 / 积分更新时的轻量数字动画 */
@keyframes rs-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.28); color: var(--brand); }
    100% { transform: scale(1); }
}
.is-bump { display: inline-block; animation: rs-bump .6s ease; }

/* 新提交的评论：待审核状态 */
.rs-comment.is-pending {
    background: var(--amber-soft);
    border-left: 3px solid var(--amber);
    padding-left: 12px;
    border-radius: 8px;
}

/* 注册成功弹窗 */
.rs-register-success { text-align: center; }
.rs-register-success h3 { margin: 4px 0 8px; font-size: 19px; }
.rs-register-success p { margin: 4px 0; }
.rs-register-success .rs-lock-ico {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--green-soft); color: var(--green);
    display: grid; place-items: center;
}
.rs-register-success .rs-lock-ico svg { width: 24px; height: 24px; }

/* 后台入口 */
.rs-admin-link { font-size: 12px; color: var(--muted); }

/* ============================================================================
   游戏资源站结构与排印重构扩展（沿用浅色石材底色、细灰边框与原版调色板）
   ========================================================================== */
.font-sans { font-family: var(--font) !important; }
.font-heading { font-family: var(--font-heading) !important; font-weight: 600; }
.font-mono { font-family: var(--font-mono) !important; font-variant-numeric: tabular-nums; }

/* 积分 Pill 等宽对齐 */
.rs-points-pill b {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

/* 首屏 Bento 双栏布局：65% 宽左侧巨幕 + 35% 宽右侧榜单 */
.rs-hero--bento {
    display: grid;
    grid-template-columns: 65% calc(35% - 20px);
    gap: 20px;
    margin-bottom: 28px;
    align-items: stretch;
}

.rs-stage {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.rs-stage-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.rs-stage-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.22, 1, .36, 1);
}

.rs-stage:hover .rs-stage-media img {
    transform: scale(1.025);
}

.rs-stage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.25) 50%, rgba(15, 23, 42, 0.88) 100%);
    pointer-events: none;
}

.rs-stage-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--brand);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.rs-stage-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 65%, transparent 100%);
}

.rs-stage-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.35;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.rs-stage-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.rs-stage-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #E2E8F0;
}

.rs-stage-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rs-stage-meta .meta-val {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #FFFFFF;
}

.rs-stage-meta .meta-divider {
    color: rgba(255, 255, 255, 0.35);
}

.rs-stage-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 2px;
}

.rs-stage-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand);
    color: var(--white) !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
    transition: background-color 140ms ease-out, transform 80ms cubic-bezier(.2, 0, 0, 1);
}

.rs-stage-btn:hover {
    background: var(--brand-hover);
}

.rs-stage-btn:active {
    background: var(--brand-press);
    transform: scale(.98);
}

/* 右侧热门周榜（Top 5） */
.rs-hot--top5 {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.rs-hot--top5 .rs-hot-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
}

.rs-hot-item--top5 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-top: 1px solid var(--line-2);
    transition: background-color 140ms ease-out;
}

.rs-hot-item--top5:first-child {
    border-top: 0;
}

.rs-hot-rank {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--muted-2);
    width: 24px;
    flex: 0 0 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rs-hot-item--top5:nth-child(1) .rs-hot-rank { color: var(--amber); }
.rs-hot-item--top5:nth-child(2) .rs-hot-rank { color: var(--brand-deep); }
.rs-hot-item--top5:nth-child(3) .rs-hot-rank { color: var(--ink-2); }

.rs-hot-thumb--compact {
    width: 52px;
    height: 34px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: var(--line-2);
    flex: 0 0 auto;
}

.rs-hot-thumb--compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-hot-body--top5 {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rs-hot-title--top5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-hot-meta--top5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}

.rs-hot-meta--top5 .num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* 游戏专属双层过滤条 */
.rs-game-filter {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rs-game-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rs-game-filter-label {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .02em;
}

.rs-game-capsules {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rs-game-capsule {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-2);
    font-size: 12.5px;
    text-decoration: none;
    transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out, transform 80ms cubic-bezier(.2, 0, 0, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.rs-game-capsule:hover {
    border-color: var(--line-solid);
    color: var(--ink);
    background: var(--surface-subtle);
}

.rs-game-capsule:active {
    transform: scale(.97);
}

.rs-game-capsule.is-active {
    background: var(--surface-subtle);
    border-color: var(--brand);
    color: var(--brand-deep);
    font-weight: 600;
}

/* 资源卡片网格增强（16:9 + font-heading 标题 + font-mono 参数） */
.rs-card-cover--16-9 {
    aspect-ratio: 16 / 9;
}

.rs-card-game-tag {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1;
    background: rgba(241, 245, 249, 0.92);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid var(--line-solid);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.rs-card-title--single {
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 22px;
    font-weight: 650;
    height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: var(--ink);
}

.rs-card-params {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    margin-top: -2px;
}

.rs-card-params span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rs-card-foot-author {
    color: var(--ink-2);
    font-weight: 500;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-card-foot-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}


/* ---------- 18 响应式 ---------- */
@media (max-width: 1180px) {
    .rs-search--desktop { width: 200px; flex-basis: 200px; }
    .rs-search--desktop:focus-within { width: 240px; flex-basis: 240px; }
    .rs-brand-text span { display: none; }
    .rs-nav a { padding: 6px 8px; font-size: .7813rem; }
}

@media (max-width: 1100px) {
    .rs-header-inner { gap: 12px; }
    .rs-nav a { padding: 5px 8px; font-size: .7813rem; }
    .rs-brand-text strong { max-width: 120px; }
    .rs-search--desktop { width: 200px; flex: 0 1 200px; min-width: 150px; }
    .rs-search--desktop:focus-within { width: 220px; flex-basis: 220px; }
}

@media (max-width: 1080px) {
    .rs-main { padding-top: 18px; }
    .rs-hero,
    .rs-hero--bento { grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
    .rs-slider { height: 230px; }
    .rs-slide-tab { padding: 4px 12px; }
    .rs-slide-tab-title { -webkit-line-clamp: 1; }
    .rs-hot { height: 230px; }
    .rs-hot-item { padding: 2px 0; gap: 8px; }
    .rs-hot-thumb { width: 44px; height: 27.5px; }
    .rs-hot-title { font-size: 12px; }
    .rs-hot-meta { font-size: 10px; gap: 6px; }
    .rs-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rs-detail { grid-template-columns: minmax(0, 1fr) 320px; }
    .rs-cat-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rs-footer-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 1023px) {
    .rs-main { padding-top: 16px; }
    .rs-header-inner { gap: 12px; }
    .rs-nav { display: none; }
    .rs-search--desktop { display: none; }
    .rs-mobile-toggle { display: grid; }
    .rs-header-tools { margin-left: auto; }
    .rs-hero,
    .rs-hero--bento { grid-template-columns: 1fr; gap: 16px; }
    .rs-slider { height: 225px; }
    .rs-hot { height: auto; }
    .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-row { flex-direction: column; }
    .rs-col-side { display: none; }
    .rs-col-main { width: 100%; flex: 1 1 auto; }
    .rs-detail { display: flex; flex-direction: column; gap: 16px; }
    .rs-download { position: static; width: 100%; }
    .rs-profile { grid-template-columns: 1fr; }
    .rs-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body { font-size: .9063rem; }
    .rs-container { padding: 0 16px; }
    .rs-header { height: calc(52px + env(safe-area-inset-top, 0px)); }
    .rs-header-inner { height: 100%; gap: 10px; }
    .rs-brand { gap: 8px; }
    .rs-brand-text span { display: none; }
    .rs-brand-text strong { max-width: 96px; }
    .rs-user-name { display: none; }
    .rs-points-pill { height: 30px; padding: 0 9px; font-size: .75rem; }
    .rs-login-btn { min-height: 40px; height: 40px; padding: 0 14px; }
    .rs-announce-inner { min-height: 40px; gap: 8px; }
    .rs-announce-close { margin-right: -4px; }
    .rs-mobile-nav {
        max-height: calc(100vh - 52px - env(safe-area-inset-top, 0px));
        max-height: calc(100dvh - 52px - env(safe-area-inset-top, 0px));
    }
    .rs-main { padding: 12px 0 56px; }
    .rs-hero,
    .rs-hero--bento { gap: 10px; margin-bottom: 16px; min-width: 0; }
    .rs-slider { flex-direction: column; height: auto; min-width: 0; }
    .rs-slides { width: 100%; height: auto; aspect-ratio: 16 / 10; }
    .rs-slider-dots { display: none; }
    .rs-hot { padding: 8px 12px 6px; min-width: 0; }
    .rs-hot-head { margin-bottom: 2px; }
    .rs-hot-head a { min-height: 32px; padding: 4px 6px; margin: -4px -6px; }
    .rs-hot-item { padding: 2px 0; gap: 8px; }
    .rs-hot-thumb { width: 40px; height: 25px; border-radius: 5px; }
    .rs-hot-title { font-size: 11.5px; }
    .rs-hot-meta { font-size: 10px; gap: 6px; }
    .rs-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .rs-grid, .rs-grid--4 { grid-template-columns: 1fr; }
    .rs-cat-panels {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .rs-cat-panels::-webkit-scrollbar { display: none; }
    .rs-cat-panel { flex: 0 0 300px; scroll-snap-align: start; }
    .rs-pagehead h1 { font-size: 21px; }
    .rs-detail-hero img { aspect-ratio: 16 / 10; }
    .rs-detail-title { font-size: 20px; }
    .rs-detail-hero-body { padding: 18px; }
    .rs-panel-pad { padding: 18px; }
    .rs-specs { grid-template-columns: 1fr 1fr; }
    .rs-shots { grid-template-columns: 1fr; }
    .rs-related { grid-template-columns: 1fr; }
    .rs-nav-posts { grid-template-columns: 1fr; }
    .rs-filter { padding: 12px; margin-bottom: 16px; }
    .rs-filter-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .rs-filter-label { display: none; }
    .rs-filter select {
        width: 100%;
        min-width: 0;
    }
    .rs-tag-filter {
        width: 100%;
    }
    .rs-tag-filter > summary {
        width: 100%;
        justify-content: space-between;
    }
    .rs-filter .rs-spacer { display: none; }
    .rs-filter .rs-total { display: none; }
    .rs-filter .rs-pill {
        width: 100%;
        justify-content: center;
    }
    .rs-footer { padding: 0; }
    .rs-footer-grid { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding: 20px 0 16px; }
    .rs-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 0; padding: 12px 0 16px; }
    .rs-form-row { grid-template-columns: 1fr; }
    .rs-modal { padding: 16px; }
    .rs-modal-card { padding: 20px; border-radius: 18px; }
    .rs-modal-body { max-height: 60vh; }
    .rs-hot { padding: 12px 14px 8px; }
    .rs-hot-item:nth-child(n+4) { display: none; }
    .rs-profile-card { padding: 20px; }
}

@media (max-width: 480px) {
    .rs-user-btn { max-width: 118px; padding: 0 8px 0 4px; gap: 6px; }
    .rs-user-name { max-width: 64px; }
    .rs-header-tools { gap: 8px; }
}

/* ============================================================================
   补充：模板里用到、但首版未覆盖的少量元素
   ========================================================================== */

/* 表单字段（评论 / 举报弹窗） */
.rs-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.rs-field > span { font-weight: 600; color: var(--ink-2); }

/* 下拉菜单里的“退出登录”按钮，视觉与链接一致 */
.rs-dropdown-logout {
    display: flex; align-items: center; gap: 8px;
    width: 100%; min-height: 40px; padding: 10px 10px; border: 0; border-radius: 8px;
    background: transparent; color: var(--ink-2); font: inherit; font-size: 13px;
    cursor: pointer; text-align: left;
}
.rs-dropdown-logout:hover { background: var(--bg); color: var(--ink); }
.rs-dropdown-logout svg { width: 15px; height: 15px; opacity: .7; }

/* 分页禁用项 */
.rs-pager .is-disabled { opacity: .42; cursor: not-allowed; }

/* 筛选结果 chips */
.rs-active-filters { align-items: center; }

/* 头像 img 兜底 */
.rs-avatar img { border-radius: inherit; }

/* 搜索表单在窄容器里可收缩 */
.rs-search { min-width: 0; }
.rs-search input { min-width: 0; }

/* 详情页相关资源卡片（a 标签包裹） */
.rs-related .rs-card { display: flex; flex-direction: column; }
.rs-related .rs-card-cover { display: block; }

/* 移动端底部「网盘下载」固定入口：桌面隐藏，窄屏才出现 */
.rs-mobile-dl { display: none; }
@media (max-width: 900px) {
    .rs-mobile-dl {
        position: fixed; left: 12px; right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
        display: flex; align-items: center; gap: 10px;
        padding: 10px 14px;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--brand-deep), var(--brand));
        color: var(--white);
        box-shadow: 0 10px 30px rgba(47, 107, 255, .35);
        text-decoration: none;
    }
    .rs-mobile-dl-ico {
        width: 34px; height: 34px; border-radius: 10px;
        background: rgba(255, 255, 255, .18);
        display: grid; place-items: center; flex: 0 0 auto;
    }
    .rs-mobile-dl-ico svg { width: 17px; height: 17px; }
    .rs-mobile-dl-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; }
    .rs-mobile-dl-text b { font-size: 14px; }
    .rs-mobile-dl-text em { font-style: normal; font-size: 11.5px; opacity: .82; }
    .rs-mobile-dl-arrow { width: 16px; height: 16px; opacity: .9; }
    body.single { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================================
   第 7 步：多标签筛选 / 权限引导 / 个人中心表单 / 移动端分页
   ========================================================================== */
.rs-tag-filter { position: relative; }
.rs-tag-filter > summary {
    list-style: none;
    cursor: pointer;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--ink-2);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 80ms cubic-bezier(.2, 0, 0, 1), border-color 140ms ease-out, color 140ms ease-out;
}
.rs-tag-filter > summary:active {
    transform: scale(.97);
}
.rs-tag-filter > summary::-webkit-details-marker { display: none; }
.rs-tag-filter > summary::after { content: "▾"; font-size: 10px; color: var(--muted-2); }
.rs-tag-filter[open] > summary { border-color: var(--brand); color: var(--brand-deep); }
.rs-tag-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    width: 320px;
    max-height: 320px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
@media (max-width: 640px) {
    .rs-tag-menu {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 32px));
    }
}
.rs-tag-check {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background-color 80ms ease-out, transform 80ms cubic-bezier(.2, 0, 0, 1);
}
.rs-tag-check:hover { background: var(--brand-soft); }
.rs-tag-check:active { transform: scale(.985); }
.rs-tag-check input { accent-color: var(--brand); }
.rs-tag-empty { color: var(--muted-2); font-size: 12.5px; }
.rs-tag-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.rs-tag-clear {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 8px;
    margin: -8px -8px;
    font-size: 12.5px;
    color: var(--muted);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: color 140ms ease-out, transform 80ms cubic-bezier(.2, 0, 0, 1);
}
.rs-tag-clear:hover { color: var(--brand); }
.rs-tag-clear:active { transform: scale(.96); }

/* 权限引导：登录 / 注册两个入口并排 */
.rs-lock-actions { display: grid; gap: 8px; margin-top: 12px; }
.rs-balance-tip { margin-left: 8px; font-size: 12px; color: var(--amber); }
.rs-copy-all { margin-bottom: 14px; font-size: 13px; padding: 10px 8px; }
.rs-copy-all svg { width: 15px; height: 15px; margin-right: 4px; }

/* 个人中心基础资料 */
.rs-alert { padding: 10px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 16px; }
.rs-alert--success { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); }
.rs-alert--error { background: var(--red-soft); color: var(--red); border: 1px solid var(--red-line); }
.rs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.rs-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.rs-field > span { font-weight: 500; }
.rs-form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.rs-form-hint { font-size: 12px; color: var(--muted-2); }
.rs-cell-clip {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分页：移动端只保留上一页 / 当前页 / 下一页 */
.rs-pager-mobile { display: none; }
@media (max-width: 640px) {
    .rs-pager .rs-pager-nums { display: none; }
    .rs-pager-mobile {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 12.5px;
        color: var(--muted);
    }
    .rs-pager .is-total { display: none; }
    .rs-tag-menu { width: min(320px, calc(100vw - 48px)); grid-template-columns: 1fr; }
    .rs-form-grid { grid-template-columns: 1fr; }
    .rs-cell-clip { max-width: 160px; }
}

/* ==========================================================================
   积分充值（第 12 步任务三）
   ========================================================================== */
.rs-recharge-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rs-recharge-head h2 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.rs-recharge-head p { margin: 0; font-size: 13px; color: var(--muted); }
.rs-recharge-balance { font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--card); padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.rs-recharge-balance b { color: var(--brand-deep); font-size: 16px; }

.rs-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.rs-plan {
    position: relative; text-align: left; padding: 20px 18px 18px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--card); color: var(--ink); cursor: pointer;
    display: flex; flex-direction: column; gap: 6px; min-height: 150px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rs-plan:hover { border-color: var(--brand-line); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rs-plan.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rs-plan.is-recommended { background: linear-gradient(180deg, var(--bg), var(--card)); }
.rs-plan-badge { position: absolute; top: -1px; right: 14px; font-size: 11px; color: var(--white); background: var(--brand); padding: 3px 8px; border-radius: 0 0 7px 7px; }
.rs-plan-points { font-size: 15px; color: var(--ink); }
.rs-plan-points b { font-size: 28px; line-height: 1.1; color: var(--brand-deep); margin-right: 2px; }
.rs-plan-price { font-size: 17px; font-weight: 600; color: var(--ink); }
.rs-plan-name { font-size: 13px; color: var(--muted); }
.rs-plan-desc { font-size: 12px; color: var(--muted-2); }
.rs-plan-check { position: absolute; right: 14px; bottom: 14px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); }
.rs-plan.is-selected .rs-plan-check { background: var(--brand); border-color: var(--brand); }
.rs-plan.is-selected .rs-plan-check::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--white); }

.rs-pay-panel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-bottom: 44px; }
.rs-pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.rs-pay-method {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card);
    border: 1px solid var(--line); border-radius: 14px; cursor: pointer; text-align: left;
    transition: border-color .15s, box-shadow .15s, transform 80ms cubic-bezier(.2, 0, 0, 1);
    min-height: 64px;
}
.rs-pay-method:active { transform: scale(0.98); }
.rs-pay-method:hover { border-color: var(--brand-line); }
.rs-pay-method.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rs-pay-method b { display: block; font-size: 14px; color: var(--ink); }
.rs-pay-method small { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.rs-pay-icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--white); font-size: 14px; letter-spacing: -0.5px; box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.rs-pay-icon--wechat { background: #07c160; }
.rs-pay-icon--alipay { background: #1677ff; }
.rs-pay-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rs-pay-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.rs-pay-summary > div b { color: var(--ink); font-size: 15px; }
.rs-pay-summary .rs-pay-amount { color: var(--red); font-size: 24px; }
.rs-pay-summary .rs-btn { width: 100%; height: 46px; font-size: 15px; }
.rs-pay-tip { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted-2); }

.rs-recharge-orders { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rs-order-status { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; background: var(--line-2); color: var(--muted); }
.rs-order-status.is-paid { background: var(--green-soft); color: var(--green); }
.rs-order-status.is-pending { background: var(--amber-soft); color: var(--amber); }
.rs-order-status.is-closed, .rs-order-status.is-failed { background: var(--red-soft); color: var(--red); }

/* 支付弹窗 */
.rs-pay-modal { width: min(430px, calc(100vw - 32px)); text-align: center; }
.rs-pay-modal-head { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 16px; }
.rs-pay-modal-head h3 { margin: 0; font-size: 17px; }
.rs-pay-modal-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.rs-qr-wrap { width: 240px; height: 240px; margin: 0 auto 12px; position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--white); }
.rs-qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rs-qr-loading { position: absolute; inset: 10px; display: flex; align-items: center; justify-content: center; background: var(--white); font-size: 13px; color: var(--muted); }
.rs-qr-loading[hidden] { display: none; }
.rs-pay-modal-amount { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.rs-pay-modal-amount b { color: var(--ink); }
.rs-pay-modal-status { margin: 0 0 14px; font-size: 13px; color: var(--amber); }
.rs-pay-modal-status.is-paid { color: var(--green); }
.rs-pay-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.rs-pay-modal-actions .rs-btn { width: 100%; }
.rs-pay-modal-tip { margin: 12px 0 0; font-size: 12px; color: var(--muted-2); }

/* 结果页 / 模拟收银台 */
.rs-result-card { max-width: 680px; margin: 0 auto; text-align: center; }
.rs-result-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-deep); }
.rs-result-icon.is-paid { background: var(--green-soft); color: var(--green); }
.rs-result-icon.is-pending { background: var(--amber-soft); color: var(--amber); }
.rs-result-icon.is-closed { background: var(--line-2); color: var(--muted); }
.rs-result-icon.is-failed { background: var(--red-soft); color: var(--red); }
.rs-result-icon.is-refunded { background: #eff6ff; color: #2563eb; }
.rs-sandbox-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 12px; font-weight: 700; margin-bottom: 12px; border: 1px solid #fde68a; }
.rs-result-card h2 { margin: 0 0 8px; font-size: 22px; }
.rs-result-desc { margin: 0 auto 20px; max-width: 520px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.rs-result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 20px; text-align: left; }
.rs-result-meta > div { background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.rs-result-meta b { color: var(--ink); font-size: 14px; }
.rs-result-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rs-result-tip { margin: 16px 0 0; font-size: 12px; color: var(--muted-2); }

@media (max-width: 900px) {
    .rs-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-pay-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .rs-recharge-head { align-items: flex-start; flex-direction: column; }
    .rs-plan-grid { grid-template-columns: 1fr; gap: 10px; }
    .rs-plan { min-height: 0; padding: 16px; }
    .rs-pay-methods { grid-template-columns: 1fr; }
    .rs-recharge-orders { padding: 14px; overflow-x: auto; }
    .rs-result-meta { grid-template-columns: 1fr 1fr; }
    .rs-pay-modal { width: calc(100vw - 24px); }
}

/* ===== 会员兑换（第 13 步任务一） ===== */
.rs-member-status{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.rs-member-status h2{font-size:17px;margin:0 0 8px}
.rs-member-status p{margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rs-member-points{text-align:right;line-height:1.2}
.rs-member-points b{display:block;font-size:28px;color:var(--brand)}
.rs-member-points span{font-size:12px;color:var(--muted-2)}
.rs-member-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.rs-member-plan{position:relative;border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--white);display:flex;flex-direction:column;gap:8px}
.rs-member-plan.is-recommended{border-color:var(--brand);box-shadow:0 10px 30px rgba(47,107,255,.12)}
.rs-member-plan h3{font-size:17px;margin:0}
.rs-member-level{font-size:13px;color:var(--brand);font-weight:600}
.rs-member-cost b{font-size:26px;color:var(--brand)}
.rs-member-cost span{font-size:12px;color:var(--muted-2);margin-left:4px}
.rs-member-benefits{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.8;flex:1}
.rs-member-plan .rs-btn{margin-top:auto}
.rs-member-plan.is-disabled { opacity: .72; border-color: var(--line); }
.rs-member-plan.is-disabled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.rs-member-plan-badge { position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600; line-height: 1; }
.rs-member-plan-badge.is-ok { background: rgba(52, 199, 89, .12); color: #248a3d; }
.rs-member-plan-badge.is-need { background: rgba(220, 38, 38, .08); color: var(--red); }
.rs-member-plan-points-hint { font-size: 12px; margin-top: 4px; }
.rs-member-plan-points-hint.is-ok { color: #248a3d; }
.rs-member-plan-points-hint.is-need { color: var(--red); }
.rs-member-rules{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.rs-member-rules h3{font-size:15px;margin:0 0 8px}
.rs-member-rules ul{margin:0;padding-left:18px;color:var(--muted);font-size:13px;line-height:1.9}
@media (max-width:900px){.rs-member-plans{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.rs-member-plans{grid-template-columns:1fr}.rs-member-status{align-items:flex-start}.rs-member-points{text-align:left}}

/* ===== 第三方登录（第 13 步任务三） ===== */
.rs-oauth{margin-top:18px}
.rs-oauth-sep{display:flex;align-items:center;gap:10px;color:var(--muted-2);font-size:12px;margin:14px 0}
.rs-oauth-sep::before,.rs-oauth-sep::after{content:"";height:1px;background:var(--line);flex:1}
.rs-oauth-list{display:grid;grid-template-columns:1fr;gap:8px}
.rs-oauth-btn{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:10px 14px;font-size:14px;font-weight:600;color:var(--ink-2);background:var(--white);transition:border-color 140ms ease-out, background-color 140ms ease-out}
.rs-oauth-btn:hover{border-color:var(--brand-line);background:var(--bg)}
.rs-oauth-dot{width:22px;height:22px;border-radius:50%;background:var(--brand);color:var(--white);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;line-height:1}
.rs-oauth-wechat .rs-oauth-dot{background:var(--green)}
.rs-oauth-qq .rs-oauth-dot{background:#12b7f5;font-size:14px}
.rs-oauth-github .rs-oauth-dot{background:var(--ink);font-size:9px;letter-spacing:.3px}
.rs-account-bind{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.rs-account-bind:last-child{border-bottom:0}
.rs-account-bind .rs-muted{font-size:12px}
@media (max-width:560px){.rs-oauth-list{grid-template-columns:1fr}}

/* ============================================================================
   19 交互反馈、焦点可见性与动效退化
   ========================================================================== */

/* 下拉菜单里的“退出登录”按钮，视觉与链接一致 */
.rs-dropdown-logout {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 80ms ease-out, background-color 80ms ease-out, color 80ms ease-out;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.rs-brand:focus-visible,
.rs-nav a:focus-visible,
.rs-dropdown a:focus-visible {
    outline-offset: 0;
}

@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .rs-points-pill {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .rs-dropdown,
    .rs-nav-sub,
    .rs-mobile-nav,
    .rs-modal-card,
    .rs-modal-backdrop,
    .rs-toast {
        transform: none !important;
        transition: opacity 150ms linear, visibility 0s linear 150ms !important;
    }
    .rs-toast {
        /* 保留水平居中定位，仅移除垂直位移与缩放动画 */
        transform: translateX(-50%) !important;
    }
    .rs-user.is-open .rs-dropdown,
    .rs-nav-item:hover .rs-nav-sub,
    .rs-nav-item:focus-within .rs-nav-sub,
    .rs-mobile-nav.is-open,
    .rs-modal.is-open .rs-modal-card,
    .rs-modal.is-open .rs-modal-backdrop,
    .rs-toast.is-show {
        transition: opacity 150ms linear, visibility 0s linear 0s !important;
    }
    .rs-announce {
        transform: none !important;
        transition: opacity 150ms linear !important;
    }
    .rs-btn:active,
    .rs-user-btn:active,
    .rs-mobile-toggle:active,
    .rs-announce-close:active,
    .rs-nav a:active,
    .rs-dropdown a:active,
    .rs-mobile-nav a:active,
    .rs-tag-filter > summary:active,
    .rs-tag-check:active,
    .rs-tag-clear:active,
    .rs-pager a:active,
    .rs-filter .rs-pill:active,
    .rs-filter select:active {
        transform: none !important;
        transition: background-color 80ms linear, color 80ms linear !important;
    }
    .rs-nav-chevron,
    .rs-user-btn > svg,
    .is-bump,
    .rs-empty {
        transition: none !important;
        animation: none !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .rs-header,
    .rs-dropdown,
    .rs-nav-sub,
    .rs-mobile-nav {
        background: var(--white) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .rs-modal-card {
        background: var(--white) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line: var(--muted-2);
        --ink-2: var(--ink);
        --muted: var(--ink-2);
    }
    .rs-header,
    .rs-dropdown,
    .rs-nav-sub,
    .rs-modal-card {
        border-width: 2px;
        border-color: var(--ink-2);
    }
}

/* ---------- 19 搜索建议 / 主题切换 ---------- */
.rs-search {
    position: relative;
    overflow: visible;
}

.rs-theme-toggle {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-2);
    cursor: pointer;
    transition:
        background-color 140ms ease-out,
        border-color 140ms ease-out,
        transform 80ms cubic-bezier(.2, 0, 0, 1);
}
.rs-theme-toggle:hover {
    border-color: var(--brand-line);
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.rs-theme-toggle:active {
    transform: scale(.96);
}
.rs-theme-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.rs-theme-toggle svg {
    width: 18px;
    height: 18px;
}
.rs-theme-icon--sun {
    display: none;
}
html[data-theme="dark"] .rs-theme-icon--moon {
    display: none;
}
html[data-theme="dark"] .rs-theme-icon--sun {
    display: block;
}

.rs-search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 110;
    min-width: 280px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--popover-bg);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}
.rs-search--mobile .rs-search-suggest {
    min-width: 0;
}
.rs-suggest-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 7px 9px;
    border-radius: 9px;
    color: var(--ink-2);
}
.rs-suggest-item:hover,
.rs-suggest-item.is-active {
    background: var(--brand-soft);
    color: var(--brand-deep);
}
.rs-suggest-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--surface-subtle);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}
.rs-suggest-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8125rem;
}
.rs-suggest-type {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--chip-bg);
    color: var(--muted);
    font-size: .6875rem;
    white-space: nowrap;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0B1120;
    --panel: #111827;
    --card: #111827;
    --surface-subtle: #1E293B;
    --chrome-bg: rgba(11, 17, 32, .86);
    --popover-bg: rgba(15, 23, 42, .97);
    --scrim-bg: rgba(2, 6, 23, .72);
    --ink: #F8FAFC;
    --ink-2: #CBD5E1;
    --muted: #94A3B8;
    --muted-2: #64748B;
    --line: rgba(148, 163, 184, .18);
    --line-solid: #334155;
    --line-2: #243244;
    --brand: #4DA3FF;
    --brand-hover: #70B7FF;
    --brand-press: #2789E8;
    --brand-soft: rgba(77, 163, 255, .13);
    --brand-deep: #9ACBFF;
    --green: #34D399;
    --green-soft: rgba(52, 211, 153, .12);
    --amber: #FBBF24;
    --amber-soft: rgba(251, 191, 36, .12);
    --warning: #F59E0B;
    --red: #F87171;
    --red-soft: rgba(248, 113, 113, .12);
    --vip: #34D399;
    --chip-bg: #1E293B;
    --chip-ink: #E2E8F0;
    --brand-line: rgba(77, 163, 255, .38);
    --amber-line: rgba(251, 191, 36, .34);
    --red-line: rgba(248, 113, 113, .34);
    --green-line: rgba(52, 211, 153, .34);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .28);
    --shadow: 0 1px 2px rgba(0, 0, 0, .28), 0 16px 36px -20px rgba(0, 0, 0, .72);
    --shadow-lg: 0 28px 72px -28px rgba(0, 0, 0, .82);
}

html[data-theme="dark"] .rs-header {
    animation: none;
    background: var(--chrome-bg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 30px -24px rgba(0, 0, 0, .9);
}

html[data-theme="dark"] .rs-user-btn {
    border-color: var(--line);
    background: rgba(17, 24, 39, .72);
}
html[data-theme="dark"] .rs-user-btn:hover {
    border-color: var(--brand-line);
    background: rgba(30, 41, 59, .92);
}

html[data-theme="dark"] :is(
    .rs-nav-sub,
    .rs-search:focus-within,
    .rs-dropdown,
    .rs-mobile-nav,
    .rs-mobile-nav .rs-mobile-cats-grid a,
    .rs-btn-ghost,
    .rs-chip--outline,
    .rs-filter select,
    .rs-spec,
    .rs-icon-btn,
    .rs-nav-post,
    .rs-table,
    .rs-toast,
    .rs-tag-check,
    .rs-tag-clear,
    .rs-member-plan,
    .rs-oauth-btn
) {
    background: var(--panel);
}

html[data-theme="dark"] :is(
    .rs-filter .rs-pill:not(.is-active),
    .rs-pager a:not(.is-current),
    .rs-game-capsule:not(.is-active),
    .rs-plan:not(.is-selected),
    .rs-pay-method:not(.is-active)
) {
    background: var(--panel);
}

html[data-theme="dark"] .rs-search {
    background: var(--surface-subtle);
}
html[data-theme="dark"] .rs-mobile-nav {
    background: var(--popover-bg);
}
html[data-theme="dark"] .rs-card-badges .rs-chip {
    background: rgba(15, 23, 42, .9);
    color: var(--ink-2);
}
html[data-theme="dark"] .rs-suggest-icon {
    background: var(--surface-subtle);
    color: var(--ink-2);
}
html[data-theme="dark"] .rs-suggest-type {
    background: var(--surface-subtle);
}
html[data-theme="dark"] .rs-theme-toggle {
    background: rgba(17, 24, 39, .72);
}

html[data-theme="dark"] .rs-mobile-toggle {
    background: rgba(17, 24, 39, .72);
    border-color: var(--line);
    color: var(--ink);
}
html[data-theme="dark"] .rs-mobile-toggle:active {
    background: var(--surface-subtle);
    border-color: var(--brand-line);
    color: var(--ink);
}

html[data-theme="dark"] .rs-card-game-tag {
    background: rgba(15, 23, 42, .9);
    border-color: var(--line-solid);
    color: var(--chip-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .38);
}

@media (max-width: 640px) {
    .rs-search-suggest {
        min-width: 0;
    }
}

@media (prefers-reduced-transparency: reduce) {
    html[data-theme="dark"] :is(.rs-header, .rs-dropdown, .rs-nav-sub, .rs-mobile-nav, .rs-modal-card) {
        background: var(--panel) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-theme-toggle {
        transition: none;
    }
    .rs-theme-toggle:active {
        transform: none;
    }
}
