/* ==========================================================================
   Oasis-AI 主题 — AI 教程与资源站
   配色：琥珀橙 #f59e0b → 玫红 #f43f5e 渐变（暖色深空底），青/绿仅作点缀
   品牌默认深色（layout.html 初始化脚本默认 dark），浅色模式保留为次选
   ========================================================================== */

:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --accent: #e11d48;
    --accent-dark: #be123c;
    --accent-50: #fff1f2;
    --bg: #faf6f2;
    --card: #ffffff;
    --text: #1e293b;
    --text-2: #475569;
    --text-3: #5b6b80;
    --border: #efe6e0;
    --footer-bg: #1b1210;
    --danger: #ef4444;
    --warn: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --grad: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
    --grad-soft: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
    --shadow: 0 1px 2px rgba(154, 52, 18, 0.05), 0 4px 14px rgba(154, 52, 18, 0.07);
    --shadow-lg: 0 2px 6px rgba(154, 52, 18, 0.06), 0 14px 34px rgba(154, 52, 18, 0.13);
    --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    --body-tint: radial-gradient(900px 520px at 88% -8%, rgba(244, 63, 94, 0.05), transparent 60%),
        radial-gradient(820px 480px at -8% 6%, rgba(245, 158, 11, 0.05), transparent 55%);
    --body-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    --container: 1200px;
    --nav-h: 64px;
}

/* ==========================================================================
   暗黑模式（html.dark）：品牌默认。首次访问默认深色，用户手动切浅色后由 app.js 记忆
   ========================================================================== */
html.dark {
    --primary: #fbbf24;
    --primary-dark: #fcd34d;
    --primary-50: rgba(245, 158, 11, 0.14);
    --primary-100: rgba(245, 158, 11, 0.28);
    --accent: #fb7185;
    --accent-dark: #fda4af;
    --accent-50: rgba(244, 63, 94, 0.13);
    --bg: #100d0e;
    --card: #1a1517;
    --text: #e4e9f5;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --border: #2b2326;
    --footer-bg: #0a0809;
    --grad: linear-gradient(135deg, #fbbf24 0%, #fb7185 100%);
    --grad-soft: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(244, 63, 94, 0.08) 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.45);
    --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --body-tint: radial-gradient(900px 520px at 88% -8%, rgba(251, 113, 133, 0.06), transparent 60%),
        radial-gradient(820px 480px at -8% 6%, rgba(251, 191, 36, 0.06), transparent 55%);
    --body-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    color-scheme: dark;
}

/* hidden 属性始终生效：组件的 display 样式（如 .uc-list 的 flex）不能覆盖 UA 的 [hidden] 规则 */
[hidden] { display: none !important; }

/* 暗黑下覆盖硬编码浅色 */
html.dark .nav { background: rgba(26, 20, 22, 0.92); }
html.dark .nav-sub { background: var(--card); }
html.dark .nav-search input:focus { background: var(--card); }
html.dark .hero { background: linear-gradient(135deg, #191113 0%, #150e0d 100%); }
html.dark .hero-search { background: var(--card); }
html.dark .hero-hot-tag { background: rgba(255, 255, 255, 0.08); }
html.dark .hero-hot-tag:hover { background: rgba(255, 255, 255, 0.15); }

/* 分类图标彩色循环：半透明底 + 提亮前景 */
html.dark .cat-card:nth-child(7n+1) .cat-ico { background: rgba(234, 88, 12, 0.18); color: #fb923c; }
html.dark .cat-card:nth-child(7n+2) .cat-ico { background: rgba(251, 113, 133, 0.16); color: #fb7185; }
html.dark .cat-card:nth-child(7n+3) .cat-ico { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
html.dark .cat-card:nth-child(7n+4) .cat-ico { background: rgba(13, 148, 136, 0.18); color: #2dd4bf; }
html.dark .cat-card:nth-child(7n+5) .cat-ico { background: rgba(234, 88, 12, 0.16); color: #fb923c; }
html.dark .cat-card:nth-child(7n+6) .cat-ico { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
html.dark .cat-card:nth-child(7n+7) .cat-ico { background: rgba(234, 88, 12, 0.16); color: #c4b5fd; }

html.dark .view-btn.active { background: #2b2326; }
html.dark .pager-btn,
html.dark .btn-ghost,
html.dark .back-top { background: var(--card); }

html.dark .stars .icon { color: #4a3c3e; }
html.dark .safe-tip { border-color: rgba(16, 185, 129, 0.3); }
html.dark .safe-tip p { color: #6ee7b7; }
html.dark .article-content { color: #cbd5e1; }
html.dark .article-content code { background: #241d1f; }
html.dark .chip { color: var(--primary); }

html.dark .form-input:focus { background: var(--card); }
html.dark .form-error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
html.dark .notice-error { background: rgba(239, 68, 68, 0.12); }
html.dark .login-tip { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
html.dark .login-tip p { color: #fcd34d; }
html.dark .login-tip a { color: #fbbf24; }
html.dark .btn-fav.faved { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }
html.dark .btn-fav.faved:hover { color: #fbbf24; }
html.dark .uc-badge { background: rgba(245, 158, 11, 0.1); color: #fcd34d; }
html.dark .uc-modal { background: rgba(0, 0, 0, 0.6); }
html.dark .uc-modal-card { background: var(--card); }

@media (max-width: 992px) {
    html.dark .nav-menu { background: var(--card); }
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    background-image: var(--body-tint), var(--body-noise);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    /* 纵向弹性布局：内容不足一屏时 footer 沉底，超出时正常滚动 */
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

ul, ol { list-style-position: inside; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: none; flex-shrink: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }

/* logo + 站名：底部对齐（图标底缘与文字底缘齐平，类字标排版）；translateY 为光学微调 */
.nav-logo { display: flex; align-items: flex-end; gap: 10px; color: var(--text); flex-shrink: 0; transform: translateY(2px); }
.nav-logo:hover { color: var(--text); }

.nav-logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}
.nav-logo-mark .icon { width: 18px; height: 18px; }

/* logo 图：等比完整显示（contain），不做圆角裁切——透明底图标自身带造型 */
.nav-logo-img { width: auto; height: 36px; object-fit: contain; }
.footer-logo-img { height: 30px; }

/* 站名：得意黑子集字体（仅含「AI信息差」5 字形，1.2KB）+ 品牌渐变文字。
   其他字符自动回退系统字体栈；@supports 防老浏览器背景裁切失败导致文字不可见 */
@font-face {
    font-family: 'Smiley Logo';
    src: url('/fonts/logo-smiley.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
.nav-logo-text {
    font-size: 20px;
    font-weight: 800;
    line-height: 1; /* 中文字形无下延部，行框底部留空会加剧偏高观感 */
    white-space: nowrap;
    font-family: 'Smiley Logo', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .nav-logo-text {
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow: visible; }

.nav-item { position: relative; }

.nav-link {
    display: block; padding: 8px 13px; border-radius: var(--radius-sm);
    color: var(--text); font-size: 15px; font-weight: 500;
    position: relative; transition: color 0.2s; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
    height: 3px; border-radius: 2px; background: var(--primary);
}

.nav-sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 60;
    min-width: 150px; padding: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
.nav-sub-link {
    display: block; padding: 8px 14px; border-radius: var(--radius-sm);
    color: var(--text-2); font-size: 14px; white-space: nowrap;
}
.nav-sub-link:hover { background: var(--primary-50); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-search { position: relative; }
.nav-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.nav-search input {
    width: 200px; height: 38px; padding: 0 14px 0 34px;
    background: var(--bg); border: 1px solid transparent; border-radius: 19px;
    font-size: 13px; color: var(--text); transition: all 0.2s;
}
.nav-search input:focus {
    outline: none; background: #fff; border-color: var(--primary-100);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

/* 临时隐藏「上传资源」入口；恢复时删除下面这条规则 */
.nav .nav-upload { display: none; }

.nav-upload {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 18px; border-radius: 19px;
    background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}
.nav-upload:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }

/* 暗黑模式开关（浅色显示月亮，暗色显示太阳） */
.nav-theme {
    display: inline-flex; width: 40px; height: 40px; border-radius: var(--radius-sm);
    color: var(--text); align-items: center; justify-content: center;
    transition: color 0.2s;
}
.nav-theme:hover { color: var(--primary); }
.nav-theme .icon { width: 20px; height: 20px; }
.nav-theme .icon-sun { display: none; }
html.dark .nav-theme .icon-moon { display: none; }
html.dark .nav-theme .icon-sun { display: inline-block; }
.nav-toggle {
    display: none; width: 40px; height: 40px; border-radius: var(--radius-sm);
    color: var(--text); align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-menu-close { display: none; }
.nav-toggle.open .icon-menu-open { display: none; }
.nav-toggle.open .icon-menu-close { display: inline-block; }

.nav-mobile-search, .nav-mobile-user { display: none; }

/* ---------- 主区域 ---------- */
/* flex:1 让主区撑满视口剩余高度（sticky footer：内容不足一屏时页脚贴底） */
.main { padding: 24px 0 56px; flex: 1 0 auto; }
.main-home { padding: 0 0 56px; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #eaf3ff 0%, #e4f4ef 100%);
    overflow: hidden;
}

.hero-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    padding-top: 64px; padding-bottom: 72px;
}

.hero-text { max-width: 560px; }

.hero-title { font-size: 42px; font-weight: 800; line-height: 1.25; letter-spacing: 1px; }
.hero-title em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* 三行递减：大标题 → 中等说明 → 小字弱化 */
.hero-line2 { margin-top: 14px; font-size: 19px; font-weight: 600; color: var(--text); line-height: 1.6; }
.hero-line3 { margin-top: 10px; font-size: 14px; font-weight: 400; color: var(--text-3); line-height: 1.8; }

.hero-search {
    display: flex; margin-top: 30px;
    background: #fff; border-radius: 26px; padding: 6px;
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.15);
}
.hero-search input {
    flex: 1; min-width: 0; border: none; outline: none;
    padding: 0 10px 0 18px; font-size: 15px; color: var(--text); background: transparent;
}
.hero-search input::placeholder { color: var(--text-3); }
.hero-search button {
    width: 48px; height: 44px; border-radius: 22px;
    background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.28);
    transition: filter 0.2s;
}
.hero-search button:hover { filter: brightness(0.94); }
.hero-search button .icon { width: 18px; height: 18px; }

.hero-hot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.hero-hot-label { font-size: 13px; color: var(--text-3); }
.hero-hot-tag {
    padding: 4px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.75); color: var(--text-2); font-size: 13px;
    transition: all 0.2s;
}
.hero-hot-tag:hover { background: #fff; color: var(--primary); }

.hero-art { flex-shrink: 0; width: 400px; max-width: 38vw; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- 分类入口 ---------- */
.home-body { padding-top: 40px; }

.cat-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px;
    margin-bottom: 48px;
}
/* 同 .grid > *：让长分类描述的省略号生效而不撑破轨道 */
.cat-grid > * { min-width: 0; }

.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 22px 12px; text-align: center;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); transition: all 0.25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); border-color: transparent; }

.cat-ico {
    width: 46px; height: 46px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}
.cat-ico .icon { width: 22px; height: 22px; }

/* 分类图标彩色循环 */
.cat-card:nth-child(7n+1) .cat-ico { background: #fff7ed; color: #d97706; }
.cat-card:nth-child(7n+2) .cat-ico { background: #ecfeff; color: #0891b2; }
.cat-card:nth-child(7n+3) .cat-ico { background: #fff1f2; color: #e11d48; }
.cat-card:nth-child(7n+4) .cat-ico { background: #f0fdfa; color: #0d9488; }
.cat-card:nth-child(7n+5) .cat-ico { background: #fff7ed; color: #ea580c; }
.cat-card:nth-child(7n+6) .cat-ico { background: #fff1f2; color: #e11d48; }
.cat-card:nth-child(7n+7) .cat-ico { background: #fef2f2; color: #dc2626; }

.cat-name { font-size: 15px; font-weight: 600; }
.cat-desc {
    font-size: 12px; color: var(--text-3);
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 区块 ---------- */
.sec { margin-bottom: 48px; }

.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

.sec-title { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.sec-bar { width: 5px; height: 20px; border-radius: 3px; background: var(--primary); }

.sec-more {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 13px; color: var(--text-3); transition: color 0.2s;
}
.sec-more:hover { color: var(--primary); }
.sec-more .icon { width: 12px; height: 12px; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 18px; }
/* 网格项可收缩：否则 nowrap 长标题的 min-content 会把 1fr 轨道撑破容器 */
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 资源卡片（大图卡） ---------- */
.res-card {
    display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; color: var(--text);
    transition: transform 0.25s, box-shadow 0.25s;
}
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }

.res-cover { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.res-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.res-card:hover .res-cover img { transform: scale(1.05); }

/* 封面占位渐变循环 */
.cover-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.grid > *:nth-child(5n+1) .cover-ph { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.grid > *:nth-child(5n+2) .cover-ph { background: linear-gradient(135deg, #9f1239, #fb7185); }
.grid > *:nth-child(5n+3) .cover-ph { background: linear-gradient(135deg, #0e9f6e, #34d399); }
.grid > *:nth-child(5n+4) .cover-ph { background: linear-gradient(135deg, #b45309, #fbbf24); }
.grid > *:nth-child(5n+5) .cover-ph { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.cover-ph-art .icon { width: 44px; height: 44px; color: rgba(255, 255, 255, 0.85); }

.ph-letter {
    font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, 0.92);
    letter-spacing: 1px; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}

.res-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }

.res-title {
    font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.9em;
}

.res-desc {
    font-size: 13px; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.res-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
    display: inline-flex; align-items: center;
    padding: 2px 10px; border-radius: 999px;
    background: var(--primary-50); color: #be123c;
    font-size: 12px; font-style: normal; font-weight: 500; line-height: 1.7;
}
.chip-link:hover { background: var(--primary-100); }

.res-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; }
.res-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.res-meta-item .icon { width: 13px; height: 13px; }

/* ---------- 行卡片（紧凑横排） ---------- */
.row-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); transition: all 0.25s;
}
.row-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }

.row-ico {
    width: 52px; height: 52px; border-radius: 12px; overflow: hidden;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #7c2d12, #ea580c);
}
.grid > *:nth-child(5n+2) .row-ico { background: linear-gradient(135deg, #9f1239, #fb7185); }
.grid > *:nth-child(5n+3) .row-ico { background: linear-gradient(135deg, #0e9f6e, #34d399); }
.grid > *:nth-child(5n+4) .row-ico { background: linear-gradient(135deg, #b45309, #fbbf24); }
.grid > *:nth-child(5n+5) .row-ico { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.row-ico img { width: 100%; height: 100%; object-fit: cover; }
.row-ico .ph-letter { font-size: 20px; }

.row-ico-solid { background: var(--primary-50); color: var(--primary); }
.row-ico-solid .icon { width: 22px; height: 22px; }

.row-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.row-title {
    font-size: 15px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 友情链接 ---------- */
.link-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.link-card {
    padding: 8px 18px; border-radius: var(--radius-sm);
    background: var(--card); border: 1px solid var(--border);
    font-size: 13px; color: var(--text-2); transition: all 0.2s;
}
.link-card:hover { color: var(--primary); border-color: var(--primary-100); box-shadow: var(--shadow); }

/* ---------- 面包屑 ---------- */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 18px 0 16px; font-size: 13px; color: var(--text-3);
}
.crumbs a { color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.crumbs a:hover { color: var(--primary); }
.crumbs .icon { width: 12px; height: 12px; }
.crumbs-current {
    max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text); font-weight: 500;
}

/* ---------- 分类/标签页头横幅 ---------- */
.page-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 28px 32px; margin-bottom: 20px;
    background-image: var(--grad-soft);
}

.page-hero-text { display: flex; align-items: center; gap: 20px; min-width: 0; }

.page-hero-ico {
    width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0;
    background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28);
}
.page-hero-ico .icon { width: 28px; height: 28px; }

.page-hero-title { font-size: 28px; font-weight: 700; line-height: 1.3; }

.page-hero-count { margin-top: 4px; font-size: 13px; color: var(--primary); font-weight: 600; }

.page-hero-desc {
    margin-top: 6px; font-size: 13px; color: var(--text-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.page-hero-art { flex-shrink: 0; width: 200px; }
.page-hero-art svg { width: 100%; height: auto; }

/* ---------- 筛选与工具行 ---------- */
.filter-bar, .toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 20px; margin-bottom: 16px;
}

.filter-bar { justify-content: flex-start; }
.toolbar { justify-content: flex-end; }

.filter-label { font-size: 13px; color: var(--text-3); flex-shrink: 0; }

.filter-pills, .filter-bar-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pill {
    display: inline-flex; align-items: center;
    padding: 5px 16px; border-radius: 16px;
    background: var(--bg); color: var(--text-2);
    font-size: 13px; transition: all 0.2s;
}
a.pill:hover { color: var(--primary); background: var(--primary-50); }
.pill.active {
    background: var(--grad); color: #fff; font-weight: 500;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.3);
}

.toolbar-right { display: flex; align-items: center; gap: 14px; }
.toolbar-count { font-size: 13px; color: var(--text-3); }

.view-toggle { display: flex; gap: 4px; background: var(--bg); border-radius: 8px; padding: 3px; }
.view-btn {
    width: 30px; height: 26px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-3); transition: all 0.2s;
}
.view-btn .icon { width: 15px; height: 15px; }
.view-btn.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(154, 52, 18, 0.15); }

/* 列表视图切换（紧凑横排） */
.list-area.view-list { grid-template-columns: 1fr; gap: 12px; }
.list-area.view-list .res-card { flex-direction: row; align-items: stretch; }
.list-area.view-list .res-cover { width: 180px; aspect-ratio: auto; flex-shrink: 0; }
.list-area.view-list .res-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; min-height: unset; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 36px 0 8px; flex-wrap: wrap; }

.pager-btn {
    min-width: 38px; height: 38px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--border); border-radius: 9px;
    color: var(--text-2); font-size: 14px; transition: all 0.2s;
}
a.pager-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.pager-btn.active {
    background: var(--grad); border-color: transparent; color: #fff; font-weight: 600;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}
.pager-nav .icon { width: 15px; height: 15px; }
.pager-ellipsis { color: var(--text-3); padding: 0 2px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 28px; border-radius: 23px;
    font-size: 15px; font-weight: 600; transition: all 0.25s;
}
.btn .icon { width: 17px; height: 17px; }

.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.3);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(234, 88, 12, 0.4); }

.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text-2); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary-100); background: var(--primary-50); }

.btn-genuine {
    width: 100%;
    background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.3);
}
.btn-genuine:hover { color: #fff; transform: translateY(-2px); }

/* ---------- 空状态 ---------- */
.empty {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 70px 24px; text-align: center; margin-bottom: 16px;
}
.empty-slim { padding: 40px 24px; }
.empty-ico {
    width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--grad-soft);
    display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.empty-ico .icon { width: 32px; height: 32px; }
.empty-title { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.empty-text { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }

/* ---------- 详情页 ---------- */
.art-hero {
    display: flex; gap: 24px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 26px 28px; margin-bottom: 20px;
    background-image: var(--grad-soft);
}

.art-cover {
    width: 150px; height: 150px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, #7c2d12, #ea580c);
    box-shadow: 0 10px 24px rgba(154, 52, 18, 0.25);
}
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-cover .ph-letter { font-size: 46px; }

.art-head { min-width: 0; flex: 1; padding-top: 4px; }

.art-paused-badge {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
    padding: 4px 14px; border-radius: 999px;
    background: var(--danger); color: #fff; font-size: 12.5px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.art-paused-badge .icon { width: 13px; height: 13px; }

.art-title { font-size: 26px; font-weight: 700; line-height: 1.4; }
.paused-title { text-decoration: line-through; text-decoration-thickness: 2px; }

.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 14px; }
.art-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.art-meta-item .icon { width: 14px; height: 14px; color: var(--primary); }
.art-meta-link:hover { color: var(--primary); }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* 移动端下载锚点：窄屏侧栏落到正文下方，给一个直达下载区的入口（桌面隐藏） */
.m-dl-jump { display: none; }
#download-section { scroll-margin-top: calc(var(--nav-h) + 16px); }
@media (max-width: 1024px) {
    .m-dl-jump { display: flex; margin-bottom: 18px; }
}

/* 双栏布局 */
.art-layout { display: flex; gap: 20px; align-items: flex-start; }
.art-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.art-aside { width: 340px; flex-shrink: 0; }
.aside-sticky { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }

/* 面板卡片 */
.panel {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 22px 24px;
}
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.panel-ico {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--primary-50); color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.panel-ico .icon { width: 16px; height: 16px; }

.art-desc { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }

/* 侧栏信息卡 */
.aside-panel { padding: 18px 20px; }

.info-rows { display: flex; flex-direction: column; }
.info-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); }
.info-label .icon { width: 14px; height: 14px; color: var(--primary); }
.info-value { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* 热度星级 */
.rating { display: inline-flex; align-items: center; gap: 6px; }
.stars { display: inline-flex; gap: 1px; }
.stars .icon { width: 15px; height: 15px; color: #d7deeb; }
.stars .icon.on { color: var(--warn); }
.rating-num { font-size: 13px; font-weight: 700; color: var(--primary); }

/* 安全提示 */
.safe-tip {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--accent-50); border: 1px solid #c9f0df; border-radius: var(--radius);
    padding: 13px 15px;
}
.safe-tip .icon { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.safe-tip p { font-size: 12.5px; color: #0a7d5c; line-height: 1.6; }

/* 下载地址 */
.dl-sub { font-size: 12.5px; color: var(--text-3); margin: -8px 0 14px 42px; }

.pan-list { display: flex; flex-direction: column; gap: 10px; }

.pan-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg); border: 1px solid transparent; border-radius: var(--radius);
    padding: 12px 14px; transition: all 0.2s;
}
.pan-row:hover { background: var(--primary-50); border-color: var(--primary-100); }

.pan-badge {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #64748b, #94a3b8); color: #fff;
    font-size: 16px; font-weight: 700;
}
/* 网盘品牌配色（具体品牌优先于 .pan-badge 默认色，勿加「网盘/云盘」兜底避免覆盖） */
.pan-row [data-pan*="夸克"] { background: linear-gradient(135deg, #1485ee, #4aa7ff); }
.pan-row [data-pan*="百度"] { background: linear-gradient(135deg, #2932e1, #06a7ff); }
.pan-row [data-pan*="阿里"] { background: linear-gradient(135deg, #ff6a00, #ff9a4d); }
.pan-row [data-pan*="蓝奏"] { background: linear-gradient(135deg, #3d8bff, #6db1ff); }
.pan-row [data-pan*="天翼"] { background: linear-gradient(135deg, #e60012, #ff5a5f); }
.pan-row [data-pan*="迅雷"] { background: linear-gradient(135deg, #3077f6, #6f9bff); }
.pan-row [data-pan*="123"] { background: linear-gradient(135deg, #ff8a00, #ffb14d); }
.pan-row [data-pan*="UC"] { background: linear-gradient(135deg, #ff7a00, #ffa04d); }
.pan-row [data-pan*="移动"] { background: linear-gradient(135deg, #0085d0, #4db1e8); }
.pan-row [data-pan*="微信"] { background: linear-gradient(135deg, #07c160, #4ade80); }
.pan-row [data-pan*="城通"] { background: linear-gradient(135deg, #5b6bce, #8b98e8); }

.pan-info { flex: 1; min-width: 0; }
.pan-name { font-size: 14px; font-weight: 600; }
.pan-code { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); margin-top: 3px; }
.pan-code .icon { width: 12px; height: 12px; }
.pan-code b { color: var(--text-2); letter-spacing: 0.5px; }
.pan-free { color: var(--accent); }

.pan-actions { display: flex; flex-direction: column; align-items: stretch; gap: 5px; flex-shrink: 0; }

.btn-copy {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    height: 28px; padding: 0 12px; border-radius: 14px;
    background: var(--primary-50); color: var(--primary);
    font-size: 12px; font-weight: 500; transition: all 0.2s;
}
.btn-copy:hover { background: var(--primary-100); }
.btn-copy .icon { width: 12px; height: 12px; }

.pan-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 3px;
    height: 28px; padding: 0 12px; border-radius: 14px;
    background: var(--grad); color: #fff; font-size: 12px; font-weight: 500;
    transition: opacity 0.2s;
}
.pan-link:hover { color: #fff; opacity: 0.88; }
.pan-link .icon { width: 11px; height: 11px; }

/* ---------- 付费门禁价格区（平铺于"解锁价格"面板内，无嵌套卡片） ---------- */
.paycard-head { display: flex; align-items: center; gap: 12px; text-align: left; margin-top: 4px; }
.paycard-ico {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #ea580c, #fbbf24);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.35);
}
.paycard-ico .icon { width: 20px; height: 20px; }
.paycard-title { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--text); }
.paycard-sub { margin: 3px 0 0; font-size: 12px; color: var(--text-3); }
.paycard-levels { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.paycard-levels li {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; color: var(--text-2);
    background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: var(--radius-sm);
    padding: 10px 16px;
}
.paycard-levels li span { font-weight: 600; }
.paycard-levels li b { color: var(--primary); font-weight: 700; font-size: 16px; }
.paycard-levels li b { font-variant-numeric: tabular-nums; }
.paycard-free { justify-content: center !important; color: var(--text-3) !important; }
.paycard-note { font-size: 12px; color: var(--text-3); margin: 12px 0 0; text-align: center; }
.paycard-note a { color: var(--primary); }
html.dark .paycard-ico { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3); }

/* ---------- 卡密兑换独立页（/redeem） ---------- */
.redeem-wrap { display: flex; flex-direction: column; align-items: center; padding: 48px 0 32px; }
.redeem-card {
    width: 100%; max-width: 520px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(130% 90% at 50% 0%, var(--primary-50) 0%, transparent 55%),
        var(--card);
    padding: 36px 36px 28px;
    box-shadow: 0 20px 50px rgba(234, 88, 12, 0.1);
}
.redeem-hero { text-align: center; }
.redeem-hero-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, #ea580c, #fbbf24);
    color: #fff;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.4);
    margin-bottom: 16px;
}
.redeem-hero-ico .icon { width: 26px; height: 26px; }
.redeem-title {
    margin: 0; font-size: 26px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: var(--primary);
}
.redeem-sub { margin: 10px 0 0; font-size: 13.5px; color: var(--text-3); line-height: 1.7; }
.redeem-steps {
    list-style: none; margin: 22px 0 24px; padding: 0;
    display: flex; justify-content: center; gap: 8px;
    counter-reset: step;
}
.redeem-steps li {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; color: var(--text-2);
    background: var(--primary-50); border-radius: 999px;
    padding: 6px 14px;
}
.redeem-steps li b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff; font-size: 11px; font-weight: 700;
}
.redeem-field { position: relative; }
.redeem-field .form-input { padding-left: 40px; height: 48px; font-size: 14.5px; }
.redeem-field-ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-3); display: flex; align-items: center;
    pointer-events: none;
}
.redeem-field-ico .icon { width: 16px; height: 16px; }
.redeem-code-input { letter-spacing: 2px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.redeem-submit {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; margin-top: 6px; padding: 15px 20px;
    border: none; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.redeem-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(234, 88, 12, 0.5); }
.redeem-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.redeem-submit .icon { width: 18px; height: 18px; }
.redeem-hint {
    margin: 14px 0 0; font-size: 12px; color: var(--text-3);
    text-align: center; line-height: 1.7;
}
.redeem-hint b { color: var(--text-2); }
.redeem-success { text-align: center; }
.redeem-success-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff; box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
    margin-bottom: 16px;
}
.redeem-success-ico .icon { width: 30px; height: 30px; }
.redeem-success-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--text); }
.redeem-success-sub { margin: 12px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.8; }
.redeem-success-sub b { color: var(--primary); word-break: break-all; }
.redeem-success-tip {
    margin: 16px 0 20px; padding: 12px 16px;
    background: var(--primary-50); border-radius: var(--radius);
    text-align: left;
}
.redeem-success-tip p { margin: 2px 0; font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.redeem-trust {
    display: flex; justify-content: center; gap: 18px;
    margin-top: 24px; padding-top: 18px;
    border-top: 1px dashed var(--border);
}
.redeem-trust-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--text-3);
}
.redeem-trust-item .icon { width: 13px; height: 13px; color: var(--primary); }
.redeem-footnote { margin: 10px 0 0; font-size: 12.5px; color: var(--text-3); }
.redeem-footnote a { color: var(--primary); }
html.dark .redeem-card {
    border-color: var(--border);
    background:
        radial-gradient(130% 90% at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 55%),
        var(--card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
html.dark .redeem-hero-ico { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1a1517; box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3); }
html.dark .redeem-title { background: linear-gradient(135deg, #fbbf24, #f59e0b); -webkit-background-clip: text; background-clip: text; }
html.dark .redeem-steps li b { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1a1517; }
html.dark .redeem-submit { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1a1517; box-shadow: 0 12px 26px rgba(245, 158, 11, 0.3); }
html.dark .redeem-submit:hover { box-shadow: 0 16px 32px rgba(245, 158, 11, 0.4); }
html.dark .redeem-success-ico { background: linear-gradient(135deg, #059669, #10b981); }

@media (max-width: 640px) {
    .redeem-card { padding: 28px 20px 22px; border-radius: 14px; }
    .redeem-steps { flex-wrap: wrap; }
}


/* 温馨提示 */
.tips li {
    position: relative; padding-left: 16px; margin-bottom: 8px;
    font-size: 12.5px; color: var(--text-3); line-height: 1.7;
}
.tips li:last-child { margin-bottom: 0; }
.tips li::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--warn);
}

/* 相关推荐 */
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    color: var(--text); transition: background 0.2s;
}
.rec-item:hover { background: var(--primary-50); color: var(--text); }
.rec-ico {
    width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: linear-gradient(135deg, #7c2d12, #ea580c);
    display: flex; align-items: center; justify-content: center;
}
.rec-item:nth-child(5n+2) .rec-ico { background: linear-gradient(135deg, #9f1239, #fb7185); }
.rec-item:nth-child(5n+3) .rec-ico { background: linear-gradient(135deg, #0e9f6e, #34d399); }
.rec-item:nth-child(5n+4) .rec-ico { background: linear-gradient(135deg, #b45309, #fbbf24); }
.rec-item:nth-child(5n+5) .rec-ico { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.rec-ico img { width: 100%; height: 100%; object-fit: cover; }
.rec-ico .ph-letter { font-size: 17px; }
.rec-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rec-title {
    font-size: 13.5px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rec-item .res-meta { gap: 10px; margin-top: 0; }

/* ---------- 正文排版 ---------- */
.article-content { font-size: 15px; line-height: 1.85; color: #374151; word-break: break-word; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    color: var(--text); font-weight: 700; line-height: 1.45;
    margin: 1.4em 0 0.7em;
}
.article-content h1 { font-size: 24px; }
.article-content h2 { font-size: 20px; padding-left: 12px; border-left: 4px solid var(--primary); border-radius: 2px; }
.article-content h3 { font-size: 17px; }
.article-content p { margin: 0.8em 0; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { border-radius: var(--radius); margin: 1em auto; box-shadow: var(--shadow); }
.article-content ul, .article-content ol { padding-left: 1.4em; margin: 0.8em 0; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin: 0.3em 0; }
.article-content blockquote {
    margin: 1em 0; padding: 12px 18px;
    background: var(--primary-50); border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2);
}
.article-content code {
    background: #f1f5f9; border: 1px solid var(--border); border-radius: 5px;
    padding: 2px 7px; font-size: 0.9em;
    font-family: "JetBrains Mono", Consolas, Monaco, monospace;
}
.article-content pre {
    margin: 1em 0; padding: 16px 18px; border-radius: var(--radius);
    background: #0f172a; color: #e2e8f0; overflow-x: auto; line-height: 1.6;
}
.article-content pre code { background: none; border: none; padding: 0; color: inherit; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; }
.article-content th { background: var(--bg); font-weight: 600; }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 1.6em 0; }

/* 版权下架遮罩 */
.panel.is-paused { position: relative; overflow: hidden; }
.panel.is-paused [data-blur] {
    filter: blur(7px); -webkit-filter: blur(7px);
    opacity: 0.55; user-select: none; pointer-events: none;
}
.paused-mask {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: var(--danger); pointer-events: none; padding: 24px;
}
.paused-mask-ico {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(239, 68, 68, 0.1); color: var(--danger);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.paused-mask-ico .icon { width: 30px; height: 30px; }
.paused-mask p { font-size: 14px; line-height: 1.8; }
.paused-mask p:first-of-type b { font-size: 16px; }

/* ---------- 说明页 ---------- */
.prose-panel .article-content > *:first-child { margin-top: 0; }
.page-back { margin-top: 24px; }

/* ---------- 状态页 ---------- */
.status-page {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 64px 24px; text-align: center; margin-bottom: 24px;
    background-image: var(--grad-soft);
}
.status-code {
    font-size: 84px; font-weight: 800; line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    margin-bottom: 10px;
}
.status-code-warn { background: linear-gradient(135deg, #f59e0b, #f97316); -webkit-background-clip: text; background-clip: text; }
.status-code-danger { background: linear-gradient(135deg, #dc2626, #ef4444); -webkit-background-clip: text; background-clip: text; }
.status-title { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.status-text { font-size: 14.5px; color: var(--text-2); margin-bottom: 30px; }
.status-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.status-suggest-title { text-align: center; font-size: 14px; color: var(--text-3); margin-bottom: 16px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--footer-bg); color: #94a3b8; margin-top: 24px; }
.main-home + .footer { margin-top: 0; }

.footer-links {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
    padding: 22px 0; border-bottom: 1px solid #1e293b;
}
.footer-links-title { font-size: 13px; color: #64748b; }
.footer-links a { font-size: 13px; color: #94a3b8; }
.footer-links a:hover { color: #fff; }

.footer-main {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 30px;
    padding: 34px 0; flex-wrap: wrap;
}

.footer-brand { max-width: 420px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; }
.footer-slogan { margin-top: 12px; font-size: 13px; line-height: 1.8; }

.footer-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: #94a3b8; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 0 26px; border-top: 1px solid #1e293b; flex-wrap: wrap;
}
.footer-copy { font-size: 12.5px; }
.footer-extra { font-size: 12.5px; }
.footer-extra a { color: #94a3b8; }
.footer-extra a:hover { color: #fff; }

/* ---------- 返回顶部 ---------- */
.back-top {
    position: fixed; right: 26px; bottom: 30px; z-index: 90;
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border); color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); opacity: 0; visibility: hidden;
    transform: translateY(12px); transition: all 0.3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: var(--primary); border-color: var(--primary-100); }
.back-top .icon { width: 18px; height: 18px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .hero-art { display: none; }
    .hero-text { max-width: 640px; }
}

@media (max-width: 1024px) {
    .art-layout { flex-direction: column; }
    .art-aside { width: 100%; }
    .aside-sticky { position: static; }
    .page-hero-art { display: none; }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 95;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: #fff; border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 12px 20px 18px; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .nav-sub { display: block; position: static; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: 0; }
    .nav-mobile-search { display: block; position: relative; margin-bottom: 10px; }
    .nav-mobile-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
    .nav-mobile-search input {
        width: 100%; height: 40px; padding: 0 14px 0 36px;
        background: var(--bg); border: none; border-radius: 20px; font-size: 14px;
    }
    .nav-mobile-search input:focus { outline: none; }
    .nav-mobile-user { display: flex; gap: 8px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
    .nav-mobile-user a {
        flex: 1; text-align: center; padding: 10px 0; border-radius: 10px;
        font-size: 14px; font-weight: 600;
    }
    .nav-mobile-user a:first-child { background: var(--grad); color: #fff; }
    .nav-mobile-user a + a { background: var(--bg); color: var(--text-2); }
    .nav-toggle { display: inline-flex; }
    .nav-search { display: none; }
    .nav-link { padding: 11px 14px; font-size: 15px; }
    .nav-link.active::after { display: none; }
}

@media (max-width: 860px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 32px; }
    .hero-line2 { font-size: 17px; }
    .hero-inner { padding-top: 44px; padding-bottom: 52px; }
    .art-cover { width: 110px; height: 110px; }
    .art-title { font-size: 21px; }
}

@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-title { font-size: 27px; }
    .hero-line2 { font-size: 16px; }
    .hero-line3 { font-size: 13px; }
    .hero-search button { width: 44px; height: 40px; }
    .nav-upload span { display: none; }
    .nav-upload { padding: 0 12px; }
    .art-hero { flex-direction: column; }
    .art-cover { width: 100%; height: 180px; }
    .list-area.view-list .res-cover { width: 120px; }
    .pan-row { flex-wrap: wrap; }
    .pan-actions { flex-direction: row; width: 100%; }
    .pan-actions > * { flex: 1; }
    .footer-main { flex-direction: column; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .status-code { font-size: 64px; }
    .dl-sub { margin-left: 0; }
}

/* ---------- 动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .hero-art svg { animation: heroFloat 6s ease-in-out infinite; }
    @keyframes heroFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
}

/* ---------- 导航用户区 ---------- */
.nav-user { display: flex; align-items: center; gap: 14px; }
.nav-login, .nav-register, .nav-logout { font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.nav-login:hover, .nav-logout:hover { color: var(--primary); }
.nav-register { color: var(--primary); font-weight: 600; }
.nav-username {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; position: relative;
}
.nav-user-warn {
    position: absolute; top: -4px; right: -4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--warn); color: #fff; font-size: 10px; font-style: normal;
    display: inline-flex; align-items: center; justify-content: center;
}

/* 头像下拉菜单：用户中心 / 修改密码 / 退出登录 */
.nav-user-menu { position: relative; }
button.nav-username { cursor: pointer; border: none; padding: 0; }
.nav-user-drop {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
    width: 180px; padding: 6px;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow);
    animation: navDropIn 0.16s ease;
}
@keyframes navDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.nav-user-drop-name {
    margin: 0 0 6px; padding: 8px 10px 10px;
    font-size: 13px; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border);
    word-break: break-all;
}
.nav-user-drop-item {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 9px 10px; border: none; border-radius: 8px;
    font-size: 13px; color: var(--text-2); text-align: left;
    background: none; cursor: pointer;
    font-family: inherit;
}
.nav-user-drop-item .icon { width: 15px; height: 15px; flex-shrink: 0; }
.nav-user-drop-item:hover { background: rgba(234, 88, 12, 0.08); color: var(--primary); }
.nav-user-drop-logout:hover { background: rgba(239, 68, 68, 0.08); color: rgb(var(--red-6)); }

/* 密码输入框明文切换 */
.pwd-wrap { position: relative; }
.pwd-wrap .form-input { padding-right: 44px; }
.pwd-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: none; border-radius: 8px;
    background: none; color: var(--text-3); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.pwd-eye .icon { width: 17px; height: 17px; }
.pwd-eye:hover, .pwd-eye.showing { color: var(--primary); background: rgba(234, 88, 12, 0.08); }

/* ---------- 认证页（登录/注册/重置） ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 24px; }
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 36px 34px 30px; box-shadow: var(--shadow);
}
.auth-title { font-size: 22px; font-weight: 700; text-align: center; }
.auth-sub { margin: 8px 0 26px; font-size: 13px; color: var(--text-3); text-align: center; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.form-optional { font-style: normal; font-size: 11px; color: var(--text-3); font-weight: 400; }
.form-input {
    width: 100%; height: 44px; padding: 0 14px;
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; color: var(--text); background: var(--bg);
    transition: all 0.2s;
}
.form-input:focus {
    outline: none; background: #fff; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
/* 错误提示：预留固定占位（min-height），隐藏时透明占位，出错显示时按钮位置不跳动 */
.form-error {
    margin-bottom: 14px; padding: 9px 13px;
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 9px;
    color: #dc2626; font-size: 12.5px;
    min-height: 39px; box-sizing: border-box;
}
.form-error[hidden] {
    display: block; visibility: hidden;
    background: transparent; border-color: transparent;
}
.form-agreement { margin-top: 12px; font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.6; }

.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; border-radius: 18px; }

.auth-links {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
    font-size: 13px;
}
.auth-links a { color: var(--primary); }
.auth-tip { color: var(--text-3); }

/* ---------- 提示页 ---------- */
.notice-card { text-align: center; }
.notice-ico {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.notice-ico .icon { width: 32px; height: 32px; }
.notice-success { background: var(--accent-50); color: var(--accent); }
.notice-error { background: #fef2f2; color: var(--danger); }
.notice-info { background: var(--primary-50); color: var(--primary); }
.notice-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.notice-text { font-size: 14px; color: var(--text-2); margin-bottom: 24px; line-height: 1.7; }

/* ---------- 登录下载提示条 ---------- */
.login-tip {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
    padding: 13px 15px;
}
.login-tip .icon { width: 18px; height: 18px; color: var(--warn); flex-shrink: 0; margin-top: 2px; }
.login-tip p { font-size: 12.5px; color: #92400e; line-height: 1.7; }
.login-tip a { color: #b45309; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 收藏按钮 ---------- */
.btn-fav.faved { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.btn-fav.faved:hover { color: #b45309; }
.btn-fav { margin-bottom: 16px; }

/* ---------- 用户中心（左侧菜单布局） ---------- */
.uc-layout {
    display: grid; grid-template-columns: 232px 1fr; gap: 18px;
    align-items: start;
}
.uc-side {
    display: flex; flex-direction: column; gap: 14px;
    position: sticky; top: calc(var(--nav-h) + 20px);
}
.uc-side-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 18px;
}
.uc-user-card {
    background-image: var(--grad-soft);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding-top: 26px;
}
.uc-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: var(--grad); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28);
}
.uc-user-card .uc-name { font-size: 16px; margin-top: 12px; }
.uc-name { font-size: 19px; font-weight: 700; word-break: break-all; }
.uc-meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; }
.uc-meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-3); }
.uc-meta-item .icon { width: 13px; height: 13px; }
.uc-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 10px; border-radius: 999px;
    background: #fffbeb; color: #b45309; font-size: 12px; font-weight: 500;
}
.uc-badge .icon { width: 12px; height: 12px; }
.uc-resend { font-size: 12.5px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.uc-meta-level { display: inline-flex; align-items: center; gap: 8px; }
.uc-redeem-link { font-size: 12.5px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.uc-badge-vip { color: var(--primary); background: rgba(234, 88, 12, 0.1); font-weight: 600; }
html.dark .uc-badge-vip { background: rgba(234, 88, 12, 0.16); }
/* 修改密码 / 退出登录已移至右上角头像下拉菜单，侧栏不再保留操作按钮 */

.uc-menu { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.uc-tab {
    display: flex; align-items: center; gap: 9px;
    width: 100%; height: 42px; padding: 0 14px; border-radius: 10px;
    font-size: 14px; color: var(--text-2); transition: all 0.2s; text-align: left;
}
.uc-tab:hover { color: var(--primary); background: var(--primary-50); }
.uc-tab.active { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 4px 10px rgba(234, 88, 12, 0.25); }
.uc-tab.active:hover { color: #fff; }
.uc-tab .icon { width: 15px; height: 15px; flex-shrink: 0; }
.uc-tab-count {
    margin-left: auto;
    min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px;
    background: var(--bg); color: var(--text-3); font-size: 11.5px;
    display: inline-flex; align-items: center; justify-content: center;
}
.uc-tab.active .uc-tab-count { background: rgba(255, 255, 255, 0.25); color: #fff; }

.uc-list { display: flex; flex-direction: column; gap: 10px; }
.uc-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); transition: all 0.2s;
}
.uc-item:hover { border-color: var(--primary-100); box-shadow: var(--shadow); color: var(--text); }
.uc-more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- 修改密码弹层 ---------- */
.uc-modal {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(15, 23, 42, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.uc-modal[hidden] { display: none; }
.uc-modal-card {
    width: 100%; max-width: 380px;
    background: #fff; border-radius: 16px; padding: 26px 26px 22px;
    box-shadow: var(--shadow-lg);
}
.uc-modal-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.uc-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* ---------- 用户区响应式 ---------- */
@media (max-width: 992px) {
    .nav-user { display: none; }
}
@media (max-width: 800px) {
    .uc-layout { grid-template-columns: 1fr; }
    .uc-side { position: static; }
    .uc-menu { flex-direction: row; overflow-x: auto; padding: 8px; }
    .uc-tab { width: auto; white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 600px) {
    .auth-card { padding: 28px 22px 24px; }
    .uc-user-card { padding: 20px 16px; }
}

/* ---------- 注册成功弹窗 ---------- */
.reg-success {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.reg-success[hidden] { display: none; }
.reg-success-card {
    width: 100%; max-width: 360px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 34px 30px 26px;
    text-align: center; box-shadow: var(--shadow-lg);
    animation: regPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes regPop {
    from { transform: scale(0.85) translateY(14px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.reg-success-ico {
    width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
}
.reg-success-ico svg { width: 38px; height: 38px; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.reg-check-circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: regDraw 0.5s ease forwards; }
.reg-check { stroke-dasharray: 50; stroke-dashoffset: 50; animation: regDraw 0.35s 0.4s ease forwards; }
@keyframes regDraw { to { stroke-dashoffset: 0; } }
.reg-success-title { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.reg-success-desc { font-size: 13.5px; color: var(--text-3); margin: 0 0 16px; }
.reg-success-tip {
    font-size: 13px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 10px; padding: 9px 12px; margin: 0 0 16px;
}
html.dark .reg-success-tip { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }
.reg-success-count { font-size: 12px; color: var(--text-3); margin: 12px 0 0; }

/* ---------- 图片验证码 ---------- */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .form-input { flex: 1; min-width: 0; }
.captcha-img {
    height: 44px; width: 120px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg); flex-shrink: 0;
    object-fit: cover;
}
.captcha-img:hover { border-color: var(--primary-100); }

.resend-panel {
    margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border);
    text-align: left;
}

/* ==========================================================================
   质感与动效细节
   质感：卡片顶部高光边（光从上来）+ 双层阴影 + 页面底噪；动效：一组协调的
   进场（hero 级联 + 滚动揭示）与悬停/按压微反馈，全部可被 reduced-motion 关闭
   ========================================================================== */

/* 卡片表面：顶部 1px 高光边 + 环境阴影（后置覆盖同优先级旧规则） */
.res-card, .row-card, .cat-card, .panel, .page-hero, .art-hero, .empty,
.status-page, .auth-card, .uc-side-card, .uc-item, .toolbar, .filter-bar {
    box-shadow: var(--edge-light), var(--shadow);
}
.uc-modal-card { box-shadow: var(--edge-light), var(--shadow-lg); }

/* 封面图 1px 内描边，压住图片边缘 */
.res-cover::after {
    content: ""; position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
    pointer-events: none;
}
html.dark .res-cover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }

/* 悬停：浮起加深 + 边框泛起主色 */
.res-card:hover, .row-card:hover, .cat-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--edge-light), var(--shadow-lg);
}

/* 分类图标悬停小转动 */
.cat-card .cat-ico { transition: transform 0.25s; }
.cat-card:hover .cat-ico { transform: scale(1.08) rotate(-5deg); }

/* 行卡片小图悬停微放大 */
.row-ico img { transition: transform 0.35s; }
.row-card:hover .row-ico img { transform: scale(1.06); }

/* 主按钮流光扫过（悬停触发） */
.btn-primary, .pan-link, .hero-search button { position: relative; overflow: hidden; }
.btn-primary::after, .pan-link::after, .hero-search button::after {
    content: ""; position: absolute; top: -40%; bottom: -40%; left: 0; width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-240%) skewX(-18deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.btn-primary:hover::after, .pan-link:hover::after, .hero-search button:hover::after {
    transform: translateX(430%) skewX(-18deg);
}
html.dark .btn-primary::after, html.dark .pan-link::after, html.dark .hero-search button::after {
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

/* 按压反馈 */
.btn:active, .pan-link:active, .btn-copy:active, .view-btn:active,
.pager-btn:active, .back-top:active { transform: scale(0.96); }

/* 导航滚动后加投影 */
.nav.scrolled { box-shadow: 0 6px 20px rgba(154, 52, 18, 0.08); }
html.dark .nav.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }

/* 进场：hero 元素级联升起 + 区块滚动揭示（html.anim 由 <head> 内联脚本添加，
   无 JS / 偏好减弱动效时内容始终可见） */
@media (prefers-reduced-motion: no-preference) {
    html.anim .hero-title, html.anim .hero-line2, html.anim .hero-line3,
    html.anim .hero-search, html.anim .hero-hot, html.anim .hero-art {
        animation: heroRise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }
    html.anim .hero-line2 { animation-delay: 0.08s; }
    html.anim .hero-line3 { animation-delay: 0.1s; }
    html.anim .hero-search { animation-delay: 0.16s; }
    html.anim .hero-hot { animation-delay: 0.24s; }
    html.anim .hero-art { animation-delay: 0.12s; }
    @keyframes heroRise {
        from { opacity: 0; transform: translateY(16px); }
    }

    html.anim .rv { opacity: 0; transform: translateY(14px); }
    html.anim .rv.rv-in {
        opacity: 1; transform: none;
        transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
            transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
        transition-delay: var(--rv-d, 0s);
    }

    /* hero 插画装饰元素缓浮（整组，与 heroFloat 叠加） */
    html.anim .hero-art g[opacity="0.5"] { animation: decoBob 7s ease-in-out infinite; }
    @keyframes decoBob {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-9px); }
    }
}
@media (prefers-reduced-motion: reduce) {
    html.anim .rv { opacity: 1; transform: none; }
}

/* ---------- 公众号口令验证 ---------- */
.wxpass-card { position: relative; text-align: center; }
.wxpass-close {
    position: absolute; top: 8px; right: 12px;
    border: none; background: none; cursor: pointer;
    font-size: 22px; line-height: 1; color: var(--text-3); padding: 4px;
}
.wxpass-close:hover { color: var(--text); }
.wxpass-qr {
    display: block; width: 148px; height: 148px; margin: 2px auto 12px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg); object-fit: cover;
}
.wxpass-account { font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.wxpass-account b { color: var(--text); }
.wxpass-hint { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.wxpass-form { display: flex; gap: 10px; }
.wxpass-form .form-input { flex: 1; min-width: 0; text-align: center; letter-spacing: 4px; font-size: 16px; }
.wxpass-msg { margin-top: 12px; font-size: 13px; color: var(--danger); }
.wxpass-msg.ok { color: var(--accent-dark); }
/* 独立验证页（/download 直达被拦截）：卡片样式 */
.status-page .wxpass-card {
    max-width: 380px; margin: 0 auto 22px;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 26px 26px 22px;
    box-shadow: var(--edge-light), var(--shadow-lg);
}
html.dark .wxpass-qr { border-color: rgba(255, 255, 255, 0.08); }
.wxpass-rotate { font-size: 12px; color: var(--text-3); margin-top: -8px; margin-bottom: 12px; }

/* ==========================================================================
   Oasis-AI 科技感增强层（琥珀橙 → 玫红渐变 · 玻璃拟态 · 发光强调）
   ========================================================================== */

::selection { background: rgba(234, 88, 12, 0.35); color: inherit; }

/* Hero：深空渐变底 + 光晕 */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(640px 340px at 82% 18%, rgba(234, 88, 12, 0.14), transparent 65%),
        radial-gradient(520px 300px at 12% 85%, rgba(245, 158, 11, 0.1), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }

/* Hero 标题强调字：AI 渐变文字 + 微光 */
.hero-title em {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 0 14px rgba(234, 88, 12, 0.35));
}

/* 搜索框：玻璃拟态 + 聚焦发光 */
.hero-search, .nav-search input {
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-search:focus-within {
    box-shadow: 0 10px 30px rgba(154, 52, 18, 0.15), 0 0 0 2px rgba(234, 88, 12, 0.35);
}

/* 热门标签：渐变描边胶囊 */
.hero-hot-tag {
    border: 1px solid var(--primary-100);
}
.hero-hot-tag:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.25);
}

/* Logo 徽标：渐变发光 */
.nav-logo-mark {
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4), 0 0 18px rgba(244, 63, 94, 0.2);
}

/* 区块标题条：渐变 + 光晕 */
.sec-bar {
    background: var(--grad);
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.4);
}

/* 卡片：玻璃拟态质感（深色下呈现为半透明面板） */
html.dark .res-card, html.dark .row-card, html.dark .panel,
html.dark .cat-card, html.dark .rec-item, html.dark .auth-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.dark .res-card:hover, html.dark .row-card:hover, html.dark .cat-card:hover {
    border-color: rgba(234, 88, 12, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 16px rgba(234, 88, 12, 0.12);
}

/* 主按钮：AI 渐变 + 发光 */
.btn-primary {
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.35), 0 0 14px rgba(244, 63, 94, 0.18);
}
.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.45), 0 0 20px rgba(244, 63, 94, 0.28);
}
/* 深色模式下主按钮略微降亮度、收光晕，避免黑底上过于刺眼 */
html.dark .btn-primary {
    filter: brightness(0.92) saturate(0.94);
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.22);
}
html.dark .btn-primary:hover {
    filter: brightness(0.98);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.3);
}

/* 网盘下载按钮：加深底色 + 白色文字，保证渐变上的文案对比度 */
.pan-link {
    background: linear-gradient(135deg, #ea580c 0%, #e11d48 100%);
    color: #fff; font-weight: 600;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}
html.dark .pan-link {
    background: linear-gradient(135deg, #d97706 0%, #be123c 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
a.pill.active { color: #fff; font-weight: 500; box-shadow: 0 3px 8px rgba(234, 88, 12, 0.3); }

/* 决策信息区（资源速览） */
.quick-info {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px; margin-bottom: 18px;
    padding: 16px 18px;
    background: var(--grad-soft);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
}
.quick-info .qi-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.quick-info .qi-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-3);
}
.quick-info .qi-label .icon { width: 14px; height: 14px; }
.quick-info dd.qi-value {
    margin: 0; font-size: 14px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quick-info .icon { color: var(--primary); }
html.dark .quick-info { border-color: var(--border); background: rgba(234, 88, 12, 0.07); }

/* 空态引导：热门入口 */
.empty-guide { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.empty-guide .pill { background: var(--card); border: 1px solid var(--border); }
.empty-guide .pill:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 992px) {
    .hero-title { font-size: 32px; }
    .quick-info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .quick-info { grid-template-columns: repeat(2, 1fr); padding: 12px 14px; }
}

/* ==========================================================================
   增强：对比 zibll 借鉴的体验层（公告/悬浮条/互动/榜单/TOC/灯箱/高亮）
   ========================================================================== */

/* ---------- 顶部公告栏 ---------- */
.notice-bar {
    background: var(--grad-soft);
    border-bottom: 1px solid var(--border);
}
.notice-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.notice-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--grad);
    color: #fff;
    flex: none;
}
.notice-ico .icon { width: 15px; height: 15px; }
.notice-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.5;
}
.notice-close {
    border: 0;
    background: transparent;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    flex: none;
    display: inline-flex;
}
.notice-close .icon { width: 14px; height: 14px; }
.notice-close:hover { background: rgba(0, 0, 0, 0.06); color: var(--text); }

/* ---------- 右侧悬浮操作条 ---------- */
.float-rail {
    position: fixed;
    right: 16px;
    bottom: 90px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rail-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: color .2s, transform .2s, border-color .2s;
}
.rail-btn .icon { width: 18px; height: 18px; }
.rail-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
/* 在线客服入口：主色描边以突出（Knocket 悬浮球默认隐藏，此按钮为唯一唤起入口） */
.rail-cs { color: var(--primary); border-color: rgba(234, 88, 12, 0.35); }
.rail-cs:hover { background: var(--primary-50); }
.rail-back-top { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility .25s, transform .2s; }
.rail-back-top.show { opacity: 1; visibility: visible; pointer-events: auto; }
/* 主题按钮的双图标（同导航 .nav-theme 行为） */
.rail-theme .icon-sun { display: none; }
.rail-theme .icon-moon { display: block; }
html.dark .rail-theme .icon-sun { display: block; }
html.dark .rail-theme .icon-moon { display: none; }

@media (max-width: 640px) {
    .float-rail { right: 10px; bottom: 76px; }
    /* 移动端隐藏次要入口，保留在线客服与回顶 */
    #rail-qr, .rail-theme { display: none; }
}

/* ---------- 阅读进度条 ---------- */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--grad);
    z-index: 999;
    pointer-events: none;
    transition: width .1s linear;
}

/* ---------- 文章互动条 ---------- */
.act-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .1s;
}
.act-btn .icon { width: 17px; height: 17px; }
.act-btn:hover { color: var(--primary); border-color: var(--primary); }
.act-btn:active { transform: scale(0.96); }
.act-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.act-like.liked {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-50);
}
.act-like.liked .icon { fill: var(--accent); }
.act-slogan { margin: 0; width: 100%; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* ---------- 上一篇 / 下一篇 ---------- */
.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.pn-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s, transform .2s;
    min-width: 0;
}
a.pn-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.pn-card-empty { visibility: hidden; }
.pn-prev { text-align: left; }
.pn-next { text-align: right; }
.pn-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-3);
}
.pn-label .icon { width: 13px; height: 13px; }
.pn-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------- 目录 TOC ---------- */
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--text-2);
    border-left: 2px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
}
.toc-link:hover { color: var(--primary); background: var(--primary-50); }
.toc-link.active { color: var(--primary); background: var(--primary-50); border-left-color: var(--primary); font-weight: 600; }
.toc-h3 { padding-left: 24px; font-size: 13px; }

/* ---------- 价格徽章 ---------- */
.price-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: #e11d48;
    background: rgba(225, 29, 72, 0.09);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.price-badge.free {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}
html.dark .price-badge { color: #fb7185; background: rgba(244, 63, 94, 0.14); }
html.dark .price-badge.free { color: #34d399; background: rgba(16, 185, 129, 0.14); }

/* ---------- 付费卡：已售 / 划线价 / 会员提示 ---------- */
.paycard-sold {
    margin-left: auto;
    flex: none;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    white-space: nowrap;
}
.paycard-price-orig {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: line-through;
    font-weight: 500;
    margin-left: 6px;
    white-space: nowrap;
}
.paycard-hint { color: var(--primary); }

/* ---------- 首页榜单（tab + 序号排行） ---------- */
.sec-tabs { display: inline-flex; gap: 6px; }
.sec-tab {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}
.sec-tab:hover { color: var(--primary); }
.sec-tab.active {
    color: #fff;
    background: var(--grad);
    border-color: transparent;
    font-weight: 600;
}
.rank-area { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    transition: background .2s;
    min-width: 0;
}
.rank-item:hover { background: var(--primary-50); }
.rank-num {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-3);
    background: rgba(148, 163, 184, 0.14);
    font-style: italic;
    font-variant-numeric: tabular-nums;
}
.rank-top .rank-num { color: #fff; background: var(--grad); }
.rank-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rank-title {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-item:hover .rank-title { color: var(--primary); }
.rank-body .res-meta { gap: 10px; }
@media (max-width: 768px) {
    .rank-area { grid-template-columns: 1fr; }
}

/* ---------- 分享 / 二维码弹层 ---------- */
.share-card .uc-modal-title { margin-bottom: 6px; }
.share-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 4px;
}
.share-qr img {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 6px;
}
.share-tip { margin: 4px 0 10px; font-size: 12.5px; color: var(--text-3); text-align: center; }

/* ---------- 图片灯箱 ---------- */
.article-content img.zoomable { cursor: zoom-in; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 8, 9, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    cursor: zoom-out;
    animation: lbIn .18s ease;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ---------- 代码高亮（跟随深浅模式） ---------- */
.article-content code .c-cmt { color: #8a9199; font-style: italic; }
.article-content code .c-str { color: #16a34a; }
.article-content code .c-num { color: #e11d48; }
.article-content code .c-kw { color: #ea580c; font-weight: 600; }
.article-content code .c-fn { color: #0284c7; }
html.dark .article-content code .c-cmt { color: #6b7686; }
html.dark .article-content code .c-str { color: #4ade80; }
html.dark .article-content code .c-num { color: #fb7185; }
html.dark .article-content code .c-kw { color: #fbbf24; }
html.dark .article-content code .c-fn { color: #38bdf8; }

/* ---------- 导航「开通会员」按钮（zibll 风格 VIP 入口） ---------- */
.nav-vip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .2s, transform .2s;
}
.nav-vip .icon { width: 14px; height: 14px; }
.nav-vip:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
@media (max-width: 900px) {
    .nav-vip span { display: none; }
    .nav-vip { padding: 6px 9px; }
}

/* ---------- 会员悬浮卡（悬停"开通会员"弹出，展示各等级权益） ---------- */
.nav-vip-wrap { position: relative; display: inline-flex; }
.vip-pop {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 120;
    width: 320px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    animation: vipPopIn .18s ease-out;
}
.vip-pop::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: var(--card);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
@keyframes vipPopIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.vip-pop-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
.vip-pop-head .icon { width: 26px; height: 26px; color: var(--primary); flex-shrink: 0; }
.vip-pop-head b { display: block; font-size: 14.5px; color: var(--text); }
.vip-pop-head p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }
.vip-pop-levels { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-height: 320px; overflow-y: auto; }
.vip-pop-loading, .vip-pop-empty {
    margin: 8px 0; text-align: center; font-size: 12.5px; color: var(--text-3);
}
.vip-level {
    padding: 12px 14px;
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-sm);
    background: var(--primary-50);
}
.vip-level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vip-level-name { font-size: 14px; font-weight: 700; color: var(--text); }
.vip-level-price { font-size: 16px; font-weight: 800; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vip-level-price i { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.vip-level-perks {
    list-style: none; margin: 9px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 5px;
}
.vip-level-perks li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.vip-level-perks .icon { width: 12px; height: 12px; color: var(--primary); flex-shrink: 0; }
.vip-pop-cta {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 14px; padding: 11px 16px;
    border-radius: 10px;
    background: var(--grad);
    color: #fff; font-size: 13.5px; font-weight: 700;
    transition: opacity .2s, transform .2s;
}
.vip-pop-cta:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
.vip-pop-cta .icon { width: 14px; height: 14px; }
html.dark .vip-pop {
    border-color: var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 900px) {
    .vip-pop {
        position: fixed;
        top: 64px; right: 10px; left: 10px;
        width: auto;
    }
    .vip-pop::before { display: none; }
}

/* ==========================================================================
   会员价格页（/user/vip）
   ========================================================================== */
.vip-page { max-width: 860px; margin: 0 auto; }
.vip-page-hero {
    text-align: center;
    padding: 34px 20px 30px;
    margin-bottom: 26px;
    border-radius: var(--radius);
    background: var(--grad-soft);
    border: 1px solid var(--border);
    box-shadow: var(--edge-light);
}
.vip-page-crown {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 16px;
    background: var(--grad);
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.3);
    margin-bottom: 14px;
}
.vip-page-crown .icon { width: 28px; height: 28px; color: #fff; }
.vip-page-hero h1 { font-size: 26px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.vip-page-hero > p { font-size: 14px; color: var(--text-2); margin: 0; }
.vip-page-current {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 16px; padding: 9px 16px;
    border-radius: 999px;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    font-size: 13px; color: var(--text-2);
}
.vip-page-current b { color: var(--primary); }
.vip-page-current .icon { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
.vip-page-current-none { background: var(--card); border-color: var(--border); }
.vip-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}
.vip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), var(--edge-light);
    transition: transform .2s, box-shadow .2s;
}
/* 购买按钮固定在卡片最下方（权益列表高低不一时按钮仍对齐底部） */
.vip-card .vip-online-buy { margin-top: auto; }
.vip-card .vip-card-perks { margin-bottom: 16px; }
.vip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vip-card-primary { border-color: var(--primary-100); }
.vip-card-primary::before {
    content: '';
    position: absolute; top: 0; left: 18px; right: 18px; height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--grad);
}
.vip-card-name {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 800; color: var(--text);
    margin: 0 0 14px;
}
.vip-card-name .icon { width: 18px; height: 18px; color: var(--primary); }
.vip-card-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 16px; }
.vip-card-price b { font-size: 30px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.vip-card-price i { font-style: normal; font-size: 13px; color: var(--text-3); }
.vip-card-perks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 9px; }
.vip-card-perks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.vip-card-perks .icon { width: 13px; height: 13px; color: var(--primary); flex-shrink: 0; }
.vip-page-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.vip-page-note { text-align: center; font-size: 12.5px; color: var(--text-3); margin: 18px 0 0; }
@media (max-width: 640px) {
    .vip-page-hero h1 { font-size: 21px; }
    .vip-page-current { flex-wrap: wrap; border-radius: var(--radius-sm); text-align: left; }
}

/* ---------- 当前用户等级行高亮（价格卡 + 会员价格页） ---------- */
.paycard-levels li.paycard-level-mine {
    background: var(--card);
    border: 1.5px solid var(--primary);
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.12);
}
.paycard-level-mine span { color: var(--text); }
.paycard-level-tag {
    display: inline-block; font-style: normal;
    margin-left: 6px; padding: 1.5px 8px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.5;
    vertical-align: 1px;
}
html.dark .paycard-levels li.paycard-level-mine { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.vip-card { overflow: hidden; }
.vip-card-mine { border: 1.5px solid var(--primary); box-shadow: var(--shadow-lg); }
.vip-card-tag {
    position: absolute; top: 14px; right: -30px;
    padding: 3px 34px;
    background: var(--grad);
    color: #fff; font-size: 11px; font-weight: 700;
    transform: rotate(45deg);
}

/* ---------- 在线支付弹层（spec 005） ---------- */
.pay-card { max-width: 330px; }
.pay-channels { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 4px; }
.pay-chn-btn { width: 100%; }
.pay-status-text { font-size: 13px; color: var(--text-2); margin: 10px 0 0; }
.pay-qr-box {
    display: flex; justify-content: center; align-items: center;
    padding: 12px; background: #fff; border-radius: 12px;
    border: 1px solid var(--border); margin-top: 12px;
}
.pay-qr-box img { width: 190px; height: 190px; display: block; }
.paycard-buy-btn { margin-top: 12px; }
