/* ============================================================
   GM668单机资源站 · 前台样式（蓝白主题）
   ============================================================ */

:root {
    --bg: #f5f7fc;
    --bg-soft: #eef4ff;
    --panel: #ffffff;
    --panel-2: #f7faff;
    --line: #e8edf6;
    --line-strong: #d8e1ef;
    --text: #16233d;
    --muted: #6b7b96;
    --muted-2: #93a0b5;
    --primary: #1e6bff;
    --primary-600: #1557e0;
    --primary-700: #0f47bd;
    --primary-soft: #eef4ff;
    --primary-line: #d3e2ff;
    --green: #1a9c5b;
    --red: #d9433b;
    --radius: 12px;
    --shadow-sm: 0 2px 10px rgba(22, 35, 61, 0.04);
    --shadow-md: 0 12px 32px rgba(30, 107, 255, 0.1);
    --max: 1200px;
}

* , *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 420px at 50% -160px, rgba(30, 107, 255, 0.07), transparent 70%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

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

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: none;
}

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 50px; padding: 0 32px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-gold {
    background: linear-gradient(135deg, #3d82ff 0%, #1e6bff 55%, #1355d8 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(30, 107, 255, 0.26);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(30, 107, 255, 0.34); }

.btn-ghost {
    border-color: var(--line-strong);
    color: #43526d;
    background: #fff;
}
.btn-ghost:hover { border-color: var(--primary-line); color: var(--primary-600); background: var(--primary-soft); }

.btn-outline {
    border-color: var(--primary-line);
    color: var(--primary-600);
    background: var(--primary-soft);
}
.btn-outline:hover { background: #e2edff; border-color: #b9d2ff; }

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

.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #4a8bff, #1557e0);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(30, 107, 255, 0.26);
}

.brand-text { min-width: 0; }
.brand-text strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text em { display: block; font-style: normal; font-size: 10px; color: var(--muted-2); letter-spacing: 0.16em; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #4b5b76;
    transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--primary-600); background: var(--primary-soft); }
.nav-links a.on { color: var(--primary-600); background: var(--primary-soft); font-weight: 500; }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* 账号菜单：鼠标悬停 / 键盘聚焦时弹出 */
.nav-user-menu { position: relative; }
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px 0 4px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.nav-user-btn:hover,
.nav-user-menu:focus-within .nav-user-btn { background: #f2f7ff; border-color: var(--primary-line); color: var(--text); }
.nu-avatar {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b8bff, #1557e0);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(30, 107, 255, 0.22);
}
.nu-name { white-space: nowrap; }
.nu-caret { color: #9aa8be; transition: transform 0.18s ease; }
.nav-user-menu:hover .nu-caret,
.nav-user-menu:focus-within .nu-caret { transform: rotate(180deg); }

.user-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(22, 35, 61, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 70;
}
/* 按钮与面板之间的悬停过渡区，避免鼠标移动时闪烁 */
.user-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-user-menu:hover .user-pop,
.nav-user-menu:focus-within .user-pop { opacity: 1; visibility: visible; transform: translateY(0); }

.up-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed #e6edf8; }
.up-avatar { width: 38px; height: 38px; font-size: 15px; }
.up-id { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.up-id strong { max-width: 100%; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-quota {
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #e2edff;
    border-radius: 8px;
    background: #f2f7ff;
    font-size: 12px;
    color: var(--primary-700);
}
.up-links { display: grid; gap: 2px; margin-top: 6px; }
.up-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #43536f;
    transition: background 0.16s ease, color 0.16s ease;
}
.up-links a::after { content: '›'; font-size: 15px; line-height: 1; color: #b9c5d8; }
.up-links a:hover { background: #f3f8ff; color: var(--primary-600); }
.up-links a:hover::after { color: var(--primary); }
.up-links a.is-quit:hover { background: #fff3f2; color: var(--red); }
.up-links a.is-quit:hover::after { color: var(--red); }
.up-cta {
    display: block;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4b8bff, #1557e0);
    box-shadow: 0 6px 14px rgba(30, 107, 255, 0.25);
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}
.up-cta:hover { filter: brightness(1.06); }

.brand-logo { height: 44px; width: auto; display: block; }

/* ---------- 首页大 banner ---------- */
.hero-home {
    position: relative;
    padding: 78px 0 132px;
    text-align: center;
    color: #fff;
    background: #1a5cf5 url("../img/hero-bg.png") center center / cover no-repeat;
    overflow: hidden;
}
.hero-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 32, 96, 0.42) 0%, rgba(10, 44, 132, 0.14) 46%, rgba(7, 30, 92, 0.42) 100%);
    pointer-events: none;
}
.hero-home-inner { position: relative; z-index: 1; }
.hero-home h1 {
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    text-shadow: 0 8px 26px rgba(3, 18, 64, 0.35);
}
.hero-sub { margin-top: 14px; font-size: 15.5px; color: rgba(255, 255, 255, 0.88); }

.hero-search {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 660px;
    margin: 32px auto 0;
    padding: 7px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(4, 22, 82, 0.3);
}
.hero-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: #16233d;
}
.hero-search input::placeholder { color: #9aa7bb; }
.hero-search-btn {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 30px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #3d82ff, #1e6bff 58%, #1355d8);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hero-search-btn:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(9, 45, 130, 0.32); }

.hero-hot { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.hero-hot span { margin-right: 6px; }
.hero-hot a {
    display: inline-block;
    margin: 0 4px;
    padding: 3px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12.5px;
    transition: background 0.2s ease;
}
.hero-hot a:hover { background: rgba(255, 255, 255, 0.26); }

.hero-nums { margin-top: 22px; font-size: 12.5px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.68); }
.hero-nums b { color: #fff; font-weight: 600; font-size: 14px; padding: 0 2px; }

/* ---------- 搜索 ---------- */
.page-search { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.page-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
}
.page-search input:focus { border-color: #8fb7ff; box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12); }
.page-search .btn { height: 40px; padding: 0 20px; }

.empty-hot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.empty-hot a {
    padding: 4px 12px;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: 12.5px;
}
.empty-hot a:hover { background: #e2edff; }

/* ---------- 首页大图 ---------- */
.hero {
    position: relative;
    padding: 84px 0 64px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(720px 380px at 82% 6%, rgba(30, 107, 255, 0.12), transparent 70%),
        radial-gradient(620px 340px at 4% 90%, rgba(94, 152, 255, 0.1), transparent 70%),
        linear-gradient(180deg, #eef5ff 0%, #f8fbff 62%, #f5f7fc 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 107, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 107, 255, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at 60% 10%, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at 60% 10%, #000 0%, transparent 68%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-600);
    font-size: 12px;
    letter-spacing: 0.12em;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(36px, 5.2vw, 60px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f1c36;
}

.hero h1 span {
    background: linear-gradient(115deg, #4a8bff 0%, #1e6bff 48%, #0f47bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead { max-width: 600px; color: #5b6b87; font-size: 16px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 64px; margin-top: 56px; }
.hero-stat strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-600);
    font-variant-numeric: tabular-nums;
}
.hero-stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- 区块 ---------- */
.section { padding: 62px 0; }
.section-tight { padding: 20px 0 56px; }

/* ---------- 板块分类筛选 ---------- */
.filter-bar {
    margin-bottom: 16px;
    padding: 4px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
}
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}
.filter-row:last-child { border-bottom: 0; }
.filter-label {
    flex: none;
    min-width: 76px;
    height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: 12.5px;
    line-height: 26px;
    text-align: center;
}
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-opt {
    height: 26px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: #43526d;
    font-size: 12.5px;
    line-height: 24px;
    transition: all 0.15s ease;
}
.filter-opt:hover { border-color: var(--primary-line); color: var(--primary-600); background: var(--primary-soft); }
.filter-opt.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.filter-reset { justify-content: flex-end; padding: 8px 0 10px; border-bottom: 0; }
.filter-reset a { font-size: 12.5px; color: var(--primary-600); }
.filter-reset a:hover { text-decoration: underline; }
@media (max-width: 640px) {
    .filter-row { flex-direction: column; gap: 8px; }
    .filter-label { min-width: 0; }
}

/* ---------- 首页广告位（小卡片） ---------- */
.ad-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.ad-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(25, 42, 70, 0.04);
    font-family: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.ad-card:hover {
    transform: translateY(-2px);
    border-color: #b9d3ff;
    box-shadow: 0 10px 22px rgba(30, 107, 255, 0.1);
}
.ad-badge {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #eef4ff;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}
.ad-badge.is-qq { background: #e9f8ef; color: #16a34a; }
.ad-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ad-text strong { font-size: 13px; font-weight: 600; line-height: 1.35; color: #17253f; }
.ad-text em { font-style: normal; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-arrow { flex: none; margin-left: auto; font-size: 12px; color: #b9c5d8; }
.ad-card:hover .ad-arrow { color: var(--primary); }
.ad-qq-card:hover { border-color: #a7e0c0; box-shadow: 0 10px 22px rgba(22, 163, 74, 0.12); }
.ad-qq-card:hover .ad-arrow { color: #16a34a; }
.ad-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 9999;
    transform: translate(-50%, -14px);
    padding: 9px 20px;
    border-radius: 8px;
    background: rgba(15, 28, 54, 0.92);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.ad-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 平板与手机端广告卡片：减少列数，避免文字挤在一起 */
@media (max-width: 1024px) {
    .ad-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ad-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
    .ad-card { padding: 10px; gap: 8px; border-radius: 10px; }
    .ad-badge { width: 30px; height: 30px; font-size: 11px; }
    .ad-text strong { font-size: 12.5px; }
    .ad-text em { font-size: 11px; }
    .ad-arrow { font-size: 11px; }
    .ad-toast { width: max-content; max-width: calc(100% - 32px); text-align: center; }
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}
.section-head h2 { font-size: 24px; font-weight: 600; letter-spacing: 0.01em; color: #10203d; }
.section-head h2 i {
    display: inline-block;
    width: 4px;
    height: 18px;
    margin-right: 12px;
    border-radius: 2px;
    background: linear-gradient(180deg, #4a8bff, #1557e0);
    vertical-align: -1px;
}
.section-head p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.section-head .more { font-size: 13px; color: var(--primary); }
.section-head .more:hover { color: var(--primary-700); }

/* ---------- 板块卡片（豆包设计版） ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 20px;
}

.cat-card {
    /* 豆包设计主色，所有卡片统一蓝 */
    --cat-accent: #2563eb;
    --cat-accent-dark: #1e4fd0;
    --cat-cover-from: #2563eb;
    --cat-cover-to: #1d4ed8;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    text-decoration: none;
}
.cat-card:hover {
    transform: translateY(-2px);
    border-color: #d1d5db;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.1);
}

/* 左侧封面方块 */
.cat-cover {
    flex: 0 0 96px;
    width: 96px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--cat-cover-from) 0%, var(--cat-cover-to) 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}
/* 封面图（后台上传/URL 配置的图片） */
.cat-cover.has-img {
    background: #000 no-repeat center / cover;
}
.cat-cover.has-img::before {
    display: none;
}
/* 封面内柔光 */
.cat-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.22), transparent 55%);
    pointer-events: none;
}
.cat-cover svg { position: relative; z-index: 1; }

/* 中间信息区 */
.cat-info {
    flex: 1 1 auto;
    min-width: 0;
}
.cat-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-count-row {
    margin-top: 10px;
    font-size: 12.5px;
    color: #94a3b8;
}
.cat-count-row::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    margin-right: 7px;
    vertical-align: middle;
}

/* 右侧按钮（豆包同款） */
.cat-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 20px;
    background: #2563eb;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.12s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}
.cat-btn:hover { background: #1d4ed8; }
.cat-card:hover .cat-btn { transform: scale(1.03); }

/* 清理之前的等级色覆盖——豆包统一蓝 */
.cat-card::before { display: none; }
.cat-card::after { display: none; }
.cat-card:hover::after { display: none; }
.cat-p0, .cat-p1, .cat-p2, .cat-p3,
.cat-c-green, .cat-c-blue, .cat-c-purple, .cat-c-orange,
.cat-c-cyan, .cat-c-pink, .cat-c-teal, .cat-c-slate {
    --cat-accent: #2563eb;
    --cat-accent-dark: #1e4fd0;
    --cat-cover-from: #2563eb;
    --cat-cover-to: #1d4ed8;
}

/* ---------- 权限徽标 ---------- */
.perm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.perm-1 { color: #1557e0; border-color: #cfe0ff; background: #eef4ff; }
.perm-2 { color: #5b45d6; border-color: #ddd6ff; background: #f2efff; }
.perm-3 { color: #b26a06; border-color: #ffe2b0; background: #fff7e8; }

/* ---------- 列表行（首页最新） ---------- */
.res-lines {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    padding: 4px 24px;
}
.res-line {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 2px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}
.res-line:last-child { border-bottom: 0; }
.res-line:hover { background: #f8fbff; }
.res-line-main { min-width: 0; flex: 1; }
.res-line-main h4 { font-size: 15px; font-weight: 500; color: #17253f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-line-main p { margin-top: 4px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-line-meta { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.res-line-meta .date { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding: 40px 44px;
    border-radius: 16px;
    background:
        radial-gradient(560px 240px at 92% 0%, rgba(255, 255, 255, 0.2), transparent 70%),
        linear-gradient(120deg, #2f7bff 0%, #1e6bff 46%, #1049c4 100%);
    box-shadow: 0 18px 40px rgba(30, 107, 255, 0.22);
}
.cta-band h2 { font-size: 23px; font-weight: 600; color: #fff; }
.cta-band p { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.82); }
.cta-band .btn-gold {
    background: #fff;
    color: var(--primary-700);
    box-shadow: 0 10px 24px rgba(9, 36, 92, 0.24);
}
.cta-band .btn-gold:hover { box-shadow: 0 14px 30px rgba(9, 36, 92, 0.3); }

/* ---------- 会员页 ---------- */
.member-note {
    margin-bottom: 22px;
    padding: 14px 20px;
    border: 1px solid var(--primary-line);
    border-radius: 10px;
    background: var(--primary-soft);
    font-size: 13px;
    color: #4b5b76;
}
.member-note strong { margin-right: 10px; color: var(--primary-700); }

.vip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }

.vip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 28px 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}
.vip-card:hover { transform: translateY(-4px); border-color: var(--primary-line); box-shadow: var(--shadow-md); }

.vip-card.featured {
    border-color: #b9d2ff;
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 46%);
    box-shadow: 0 0 0 1px rgba(30, 107, 255, 0.14), 0 20px 46px rgba(30, 107, 255, 0.14);
}

.vip-flag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #4a8bff, #1557e0);
}

.vip-head { display: flex; align-items: baseline; gap: 10px; }
.vip-name { font-size: 19px; font-weight: 600; color: #13213c; }
.vip-sub { font-size: 12px; color: var(--muted-2); }

.vip-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin: 22px 0 8px;
    color: var(--primary-600);
}
.vip-price em { font-style: normal; font-size: 20px; line-height: 1.6; }
.vip-price strong { font-size: 46px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.vip-price span { font-size: 12px; color: var(--muted-2); margin-left: 8px; padding-bottom: 6px; }

.vip-list { flex: 1; margin: 20px 0 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.vip-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: #4b5b76;
}
.vip-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a8bff, #1557e0);
}
.vip-list li.off { color: #a4afc1; }
.vip-list li.off::before { background: #d5dce8; }

.notice-panel {
    margin-top: 30px;
    padding: 26px 30px;
    border: 1px dashed var(--primary-line);
    border-radius: 12px;
    background: #f8fbff;
}
.notice-panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; color: #13213c; }
.notice-panel p { font-size: 13.5px; color: var(--muted); }
.notice-panel .steps { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 16px; }
.notice-panel .steps span { font-size: 13px; color: #43526d; }
.notice-panel .steps b { color: var(--primary); font-weight: 600; margin-right: 6px; }

/* ---------- 内页通用 ---------- */
.page { padding: 40px 0 72px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { color: #c6cfdd; }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 30px; font-weight: 600; color: #0f1c36; }
.page-head p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    padding: 28px;
}
.panel-title { font-size: 17px; font-weight: 600; margin-bottom: 18px; }

/* ---------- 板块列表页 ---------- */
.list-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 30px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(30, 107, 255, 0.12), transparent 70%),
        linear-gradient(120deg, #eef5ff, #ffffff);
    box-shadow: var(--shadow-sm);
}
.list-banner h1 { font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #0f1c36; }
.list-banner p { margin-top: 6px; font-size: 13px; color: var(--muted); }

.res-list { display: grid; gap: 16px; }

.res-card {
    display: flex;
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-sm);
    transition: all 0.22s ease;
}
.res-card:hover {
    border-color: var(--primary-line);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.res-thumb {
    flex: 0 0 210px;
    height: 132px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf2ff, #f7faff);
    border: 1px solid var(--line);
    position: relative;
}
.res-thumb img { width: 100%; height: 100%; object-fit: cover; }
.res-thumb .ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #9bc0ff;
    letter-spacing: 0.2em;
}

.res-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.res-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.res-top h3 { font-size: 17px; font-weight: 600; line-height: 1.5; color: #17253f; }
.res-body p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.res-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    font-size: 12px;
    color: var(--muted-2);
}
.res-foot .go { color: var(--primary); }

/* ---------- 板块内搜索与显示模式 ---------- */
.perm-0 { color: #12784a; border-color: #bfe9d3; background: #edfbf4; }

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.cat-search { display: flex; gap: 8px; flex: 1; min-width: 0; max-width: 460px; }
.cat-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
}
.cat-search input:focus { border-color: #8fb7ff; box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12); }
.cat-search .btn { height: 40px; padding: 0 18px; white-space: nowrap; }

.toolbar-info { font-size: 13px; color: var(--muted); }
.toolbar-info strong { color: var(--primary-600); }

.view-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}
.view-switch a { padding: 7px 16px; border-radius: 7px; font-size: 13px; color: var(--muted); transition: all 0.18s ease; }
.view-switch a:hover { color: var(--primary-600); }
.view-switch a.active { background: var(--primary-soft); color: var(--primary-600); font-weight: 600; }

.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.res-tile {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s ease;
}
.res-tile:hover { transform: translateY(-2px); border-color: var(--primary-line); box-shadow: var(--shadow-md); }
.tile-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf2ff, #f7faff);
    border-bottom: 1px solid var(--line);
}
.tile-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.res-tile:hover .tile-thumb img { transform: scale(1.04); }
.tile-thumb .ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: #9bc0ff;
    letter-spacing: 0.2em;
}
.tile-body { padding: 14px 16px 16px; }
.tile-body h3 {
    min-height: 45px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #17253f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--muted-2); }

.res-text-list { display: grid; gap: 12px; }
.res-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: all 0.22s ease;
}
.res-row:hover { border-color: var(--primary-line); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.res-row-main { flex: 1; min-width: 0; }
.res-row-main p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.res-row-meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 12px;
    color: var(--muted-2);
}
.res-row-meta .go { color: var(--primary); }

/* ---------- 详情页 ---------- */
.detail-grid { display: block; }

.detail-head { margin-bottom: 22px; }
.detail-head h1 { margin: 14px 0 12px; font-size: 27px; line-height: 1.4; font-weight: 600; color: #0f1c36; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--muted-2); }
.detail-meta a { color: var(--primary); }

.detail-cover {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #eaf2ff, #f7faff);
    margin-bottom: 26px;
    min-height: 200px;
    display: grid;
    place-items: center;
}
.detail-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.detail-cover .ph { padding: 74px 0; font-size: 30px; color: #a8c8ff; letter-spacing: 0.3em; }

.detail-desc h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--primary); color: #13213c; }
.detail-desc .text { font-size: 14.5px; color: #4b5b76; line-height: 1.95; word-break: break-word; }

/* 未登录时的简介锁定提示 */
.desc-locked { padding: 26px 20px; text-align: center; background: #f7faff; border: 1px dashed #c9dbf5; border-radius: 10px; }
.desc-locked p { font-size: 14px; color: #6b7b96; }
.desc-locked .dl-actions { margin-top: 14px; display: flex; justify-content: center; gap: 10px; }

/* 简介里的代码块消耗次数解锁 */
.code-lock { margin: 14px 0; padding: 18px 20px; text-align: center; background: linear-gradient(180deg, #f6faff, #eef5ff); border: 1px dashed #b9d3f2; border-radius: 10px; }
.code-lock .cl-title { font-size: 14px; font-weight: 600; color: #33476b; }
.code-lock .cl-note { margin-top: 6px; font-size: 12.5px; color: #7b89a3; }
.code-lock .cl-actions, .code-lock .cl-form { margin-top: 12px; display: flex; justify-content: center; }

/* ---------- 资源截图（大图 + 缩略图切换 + 全屏） ---------- */
.detail-video,
.detail-gallery { margin: 28px 0 8px; padding-top: 22px; border-top: 1px dashed var(--line-strong); }
.detail-video h2,
.detail-gallery h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--primary); color: #13213c; }
.video-frame {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border: 1px solid #1c2635;
    border-radius: 10px;
    background: #000;
}
.video-frame iframe,
.video-frame video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    background: #000;
}
.shot-stage {
    position: relative;
    border: 1px solid #1c2635;
    border-radius: 10px;
    background: #0d1420;
    overflow: hidden;
}
.shot-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.shot-main {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: #0d1420;
}
.shot-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 60px;
    border: 0;
    background: rgba(6, 12, 22, 0.62);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 3;
}
.shot-arrow:hover { background: rgba(6, 12, 22, 0.88); }
.shot-prev { left: 0; border-radius: 0 6px 6px 0; }
.shot-next { right: 0; border-radius: 6px 0 0 6px; }
.shot-counter {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    background: rgba(10, 17, 28, 0.7);
    color: #eaf1fb;
    font-size: 12px;
    z-index: 2;
}
.shot-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.shot-thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 62px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--panel-2);
    opacity: 0.58;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.shot-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-thumb:hover { opacity: 0.88; }
.shot-thumb.is-on { border-color: var(--primary); opacity: 1; }

/* 全屏放大 */
.shot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 18, 0.94);
}
.shot-lightbox.is-on { display: flex; }
.shot-lb-img {
    max-width: 94vw;
    max-height: 88vh;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.shot-lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.shot-lb-close:hover { background: rgba(255, 255, 255, 0.24); }
.shot-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 74px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.shot-lb-arrow:hover { background: rgba(255, 255, 255, 0.22); }
.shot-lb-prev { left: 18px; }
.shot-lb-next { right: 18px; }
.shot-lb-counter {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: #cfd8e6;
    font-size: 13px;
    letter-spacing: 0.05em;
}
body.shot-lock { overflow: hidden; }

/* ---------- 简介代码块（深色高亮） ---------- */
.code-block {
    margin: 14px 0;
    border: 1px solid #2b3444;
    border-radius: 10px;
    overflow: hidden;
    background: #1e2430;
    box-shadow: 0 8px 22px rgba(15, 24, 40, 0.14);
}
.code-block .code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 38px;
    padding: 0 12px;
    background: #171d27;
    border-bottom: 1px solid #2b3444;
}
.code-block .code-lang {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #8fa6c9;
    text-transform: uppercase;
}
.code-block .code-copy {
    height: 26px;
    padding: 0 12px;
    border: 1px solid #38455c;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #b8c7de;
    font-size: 12px;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.code-block .code-copy:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.code-block pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.code-block code {
    display: block;
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.85;
    color: #d7e0ee;
    white-space: pre;
    word-break: normal;
    tab-size: 4;
}
.code-block code.lang-text { font-family: inherit; font-size: 13.5px; letter-spacing: 0.2px; }
.c-com { color: #6c7f99; font-style: italic; }
.c-str { color: #96d86a; }
.c-num { color: #f0a35e; }
.c-kw { color: #6ea8ff; }
.c-var { color: #e6c07b; }

.download-box {
    display: block;
    margin-top: 30px;
    padding: 20px 22px 22px;
    border: 1px solid var(--primary-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #f6faff, #ffffff 120px);
    box-shadow: 0 6px 20px rgba(30, 107, 255, 0.06);
}
.dl-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2eaf8;
}
.dl-title-row { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.dl-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #4b8bff, #1557e0);
    color: #fff;
    box-shadow: 0 6px 14px rgba(30, 107, 255, 0.28);
}
.download-box .dl-label { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; }
.download-box .dl-note { margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.dl-quota {
    align-self: flex-start;
    padding: 6px 12px;
    border: 1px solid #d6e6ff;
    border-radius: 999px;
    background: #eef5ff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-700);
    white-space: nowrap;
}
.dl-group { margin-top: 16px; }
.dl-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #43536f;
}
.dl-section-title::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--primary);
}
.dl-count {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-600);
}
.dl-list { display: grid; gap: 8px; }
.dl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6edf8;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.dl-item:hover { border-color: #b9d3ff; box-shadow: 0 6px 18px rgba(30, 107, 255, 0.1); }
.dl-item-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary-600);
}
.dl-item-icon.is-file { background: #fff5e8; color: #d97706; }
.dl-item-info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dl-item-info strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.dl-item-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.dl-size {
    padding: 1px 8px;
    border-radius: 999px;
    background: #f2f5fa;
    font-size: 11.5px;
    color: var(--muted);
}
.dl-code { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dl-code b { font-family: Consolas, Menlo, monospace; font-size: 12.5px; letter-spacing: 0.06em; color: var(--text); }
.dl-copy {
    padding: 2px 9px;
    border: 1px solid var(--primary-line);
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: 11.5px;
    font-family: inherit;
    line-height: 1.6;
    cursor: pointer;
    transition: background 0.2s ease;
}
.dl-copy:hover { background: #e2edff; }
.dl-item-action { flex: 0 0 auto; display: flex; align-items: center; }
.dl-item-action .btn { white-space: nowrap; }
.dl-disabled { cursor: not-allowed; opacity: 0.65; }
.dl-empty {
    margin-top: 14px;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: #fafcff;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* ---------- 次数用完弹窗 ---------- */
.quota-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 26, 48, .55);
    backdrop-filter: blur(2px);
}
.quota-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 30px 26px 26px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 26, 48, .25);
    animation: quota-pop .22s ease-out;
}
@keyframes quota-pop {
    from { transform: translateY(14px) scale(.96); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.quota-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #98a5bb;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.quota-close:hover { background: #f1f5fb; color: var(--text); }
.quota-ico {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff4e5;
    border: 1px solid #ffe0b8;
    color: #d97706;
    margin-bottom: 14px;
}
.quota-card h3 { font-size: 17px; font-weight: 700; color: var(--text); }
.quota-card p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.quota-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

/* ---------- 免责声明 ---------- */
.disclaimer {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9fd;
}
.disclaimer h2 {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #5b6b85;
}
.disclaimer ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 32px;
}
.disclaimer li.warn { grid-column: 1 / -1; }
.disclaimer li {
    position: relative;
    padding-left: 15px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--muted);
    word-break: break-word;
}
.disclaimer li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 11px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-2);
}
.disclaimer li.warn { padding-left: 20px; color: #b26a06; }
.disclaimer li.warn::before {
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    content: "⚠️";
    font-size: 12px;
}


/* ---------- 登录 / 注册 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 68px 24px 92px; }
.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 38px 36px 34px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 20px 50px rgba(22, 35, 61, 0.08);
}
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .brand-mark { margin: 0 auto 16px; width: 46px; height: 46px; flex: none; font-size: 22px; }
.auth-logo { height: 46px; width: auto; margin: 0 auto 16px; }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { height: 46px; padding: 0 16px; white-space: nowrap; }
.auth-tip { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted-2); }
.auth-head h1 { font-size: 22px; font-weight: 600; color: #0f1c36; }
.auth-head p { margin-top: 8px; font-size: 13px; color: var(--muted); }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--primary); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; color: #43526d; }
.field .hint { margin-top: 6px; font-size: 12px; color: var(--muted-2); }

.input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: #a9b4c5; }
.input:focus { border-color: #8fb7ff; box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.7; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7d8ca4 50%), linear-gradient(135deg, #7d8ca4 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- 提示 ---------- */
.alert {
    margin: 22px 0 0;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    border: 1px solid transparent;
}
.alert-ok { color: #12784a; border-color: #bfe9d3; background: #edfbf4; }
.alert-err { color: #b32d26; border-color: #f6cdca; background: #fef2f1; }

.form-tip { margin-bottom: 20px; padding: 11px 16px; border-radius: 8px; font-size: 13px; border: 1px solid var(--primary-line); background: var(--primary-soft); color: var(--primary-700); }

/* ---------- 用户中心 ---------- */
.user-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.user-card { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-600);
}
.user-card h2 { font-size: 20px; font-weight: 600; color: #0f1c36; }
.user-card .tags { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.kv { margin-top: 6px; }
.kv > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--text); text-align: right; }

/* 等级徽标 */
.lv-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    border: 1px solid var(--line-strong);
    color: #6b7b96;
    background: #f6f8fc;
}
.lv-1 { color: #1557e0; border-color: #cfe0ff; background: #eef4ff; }
.lv-2 { color: #5b45d6; border-color: #ddd6ff; background: #f2efff; }
.lv-3 { color: #b26a06; border-color: #ffe2b0; background: #fff7e8; }

/* ---------- 分页 ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; }
.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 13px;
    color: #4b5b76;
    background: #fff;
    transition: all 0.2s ease;
}
.pager a:hover { border-color: #8fb7ff; color: var(--primary-600); background: var(--primary-soft); }
.pager .cur { border-color: var(--primary); background: var(--primary); color: #fff; }
.pager .dots { border: 0; background: none; color: var(--muted-2); }

/* ---------- 空状态 ---------- */
.empty { padding: 64px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty strong { display: block; margin-bottom: 8px; font-size: 16px; color: #43526d; font-weight: 500; }

/* ---------- 页脚 ---------- */
.site-foot { margin-top: 40px; padding: 40px 0 44px; border-top: 1px solid var(--line); background: #f2f6fd; }
.foot-inner { text-align: center; }
.foot-brand { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: #2b3b58; }
.foot-inner p { margin-top: 10px; font-size: 12.5px; color: var(--muted-2); }
.foot-links { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--muted-2); }
.foot-links a, .foot-links span { white-space: nowrap; }
.foot-links a:hover { color: var(--primary); }
.foot-copy { margin-top: 16px; font-size: 12px; color: #a4afc1; }

/* ---------- 下载工具页 ---------- */
.tools-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid var(--primary-line);
    border-radius: 14px;
    background: linear-gradient(120deg, #eef5ff, #fbfdff);
}
.tools-hero h1 { font-size: 22px; font-weight: 700; color: #13213c; }
.tools-hero p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.tools-hero-count {
    flex: 0 0 auto;
    padding: 6px 14px;
    border: 1px solid var(--primary-line);
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-700);
    white-space: nowrap;
}
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.tool-card:hover {
    border-color: #b9d3ff;
    box-shadow: 0 10px 24px rgba(30, 107, 255, 0.12);
    transform: translateY(-2px);
}
.tool-ico {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #4b8bff, #1557e0);
    color: #fff;
    box-shadow: 0 6px 14px rgba(30, 107, 255, 0.25);
}
.tool-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tool-main strong { font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; }
.tool-host {
    font-size: 12px;
    font-style: normal;
    color: var(--muted-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tool-go {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--primary-line);
    border-radius: 8px;
    background: var(--primary-soft);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-600);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.tool-card:hover .tool-go { background: var(--primary); border-color: var(--primary); color: #fff; }
.tools-tip { margin-top: 16px; font-size: 12px; color: var(--muted-2); line-height: 1.8; }
.tools-empty { border: 1px dashed var(--line-strong); border-radius: 12px; background: #fff; }

/* ---------- 协议 / 声明单页 ---------- */
.policy-card { padding: 30px 34px; }
.policy-card h1 { font-size: 22px; font-weight: 700; color: #13213c; margin-bottom: 20px; padding-left: 12px; border-left: 3px solid var(--primary); }
.policy-text { font-size: 14.5px; line-height: 2; color: #4b5b76; word-break: break-word; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
    .user-grid { grid-template-columns: 1fr; }
    .vip-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-stats { gap: 36px; }
    .res-line-meta .date { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .policy-card { padding: 20px 18px; }
    .policy-card h1 { font-size: 18px; }
    .nav-inner { height: 62px; gap: 10px; }
    .brand { gap: 8px; min-width: 0; }
    .brand-logo { height: 34px; }
    .brand-mark { width: 32px; height: 32px; flex: 0 0 32px; font-size: 16px; border-radius: 8px; }
    .brand-text strong { font-size: 14px; max-width: 132px; }
    .brand-text em { display: none; }
    .nav-actions { gap: 6px; flex: 0 0 auto; }
    .nav-actions .btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }
    .nav-user-btn { padding: 0 2px; border-color: transparent; }
    .nu-name, .nu-caret { display: none; }
    .user-pop { position: fixed; top: 70px; left: 12px; right: 12px; width: auto; }
    .hero-home { padding: 44px 0 84px; }
    .hero-home h1 { font-size: 29px; }
    .hero-sub { font-size: 13px; line-height: 1.7; }
    .hero-search { margin-top: 24px; padding: 5px; }
    .hero-search input { height: 42px; padding: 0 12px; font-size: 13.5px; }
    .hero-search-btn { height: 42px; padding: 0 14px; font-size: 13px; }
    .hero-hot { font-size: 12px; }
    .hero-hot a { margin: 3px 3px; padding: 2px 9px; }
    .hero-nums { margin-top: 16px; font-size: 11.5px; }
    .page-search { max-width: none; }
    .list-toolbar { gap: 10px; }
    .cat-search { max-width: none; width: 100%; }
    .cat-search .btn { padding: 0 14px; font-size: 13px; }
    .view-switch { width: 100%; }
    .view-switch a { flex: 1; text-align: center; padding: 7px 0; }
    .res-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tile-body { padding: 10px 12px 12px; }
    .tile-body h3 { min-height: 39px; font-size: 13px; }
    .tile-meta { font-size: 11px; }
    .tile-meta .perm-badge { padding: 2px 7px; font-size: 10px; }
    .res-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 16px; }
    .res-row-meta { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
    .hero { padding: 56px 0 46px; }
    .hero-stats { margin-top: 40px; gap: 30px; }
    .hero-stat strong { font-size: 26px; }
    .section { padding: 44px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .cta-band { padding: 28px; }
    .cat-grid { grid-template-columns: 1fr; }
    .res-card { flex-direction: column; }
    .res-thumb { flex: none; width: 100%; height: 168px; }
    .res-lines { padding: 2px 18px; }
    .auth-card { padding: 30px 22px; }
    .panel { padding: 22px; }
    .list-banner { padding: 22px; }
    .download-box { padding: 16px 14px 18px; border-radius: 12px; text-align: left; }
    .dl-head { flex-direction: column; align-items: stretch; }
    .dl-quota { align-self: flex-start; }
    .dl-item { flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px; }
    .dl-item-info { flex: 1 1 0; }
    .dl-item-action { width: 100%; }
    .dl-item-action .btn { width: 100%; text-align: center; justify-content: center; }
    .dl-copy { padding: 4px 10px; }
    .tools-hero { padding: 18px; align-items: flex-start; }
    .tools-hero h1 { font-size: 19px; }
    .tools-hero-count { padding: 4px 12px; font-size: 12px; }
    .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .tool-card { padding: 14px; gap: 12px; }
    .tool-ico { width: 40px; height: 40px; border-radius: 10px; }
    .tool-go { padding: 6px 10px; font-size: 12px; }

    /* 板块卡片：豆包设计缩小版 */
    .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .cat-card { padding: 14px 16px; border-radius: 12px; gap: 14px; }
    .cat-cover { width: 72px; height: 56px; flex-basis: 72px; border-radius: 8px; }
    .cat-cover svg { width: 26px; height: 26px; }
    .cat-info h3 { font-size: 15px; }
    .cat-desc { font-size: 12px; }
    .cat-btn { padding: 7px 14px; font-size: 12px; border-radius: 16px; }
    .disclaimer { margin-top: 20px; padding: 15px 16px; }
    .disclaimer ul { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .disclaimer li.warn { grid-column: auto; }
    .code-block pre { padding: 12px; }
    .code-block code { font-size: 12.5px; line-height: 1.8; }
    .detail-head h1 { font-size: 22px; }
    .shot-main { max-height: 260px; }
    .shot-arrow { width: 26px; height: 44px; font-size: 18px; }
    .shot-thumb { width: 74px; height: 48px; }
    .shot-lb-arrow { width: 36px; height: 58px; font-size: 20px; }
    .shot-lb-prev { left: 8px; }
    .shot-lb-next { right: 8px; }
    .shot-lb-close { top: 12px; right: 12px; }
}

/* ---------- 右侧悬浮在线咨询 ---------- */
.side-qq {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 70;
    width: 132px;
    overflow: hidden;
    border: 1px solid var(--primary-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(22, 35, 61, 0.16);
    text-align: center;
}
.side-qq-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    background: linear-gradient(135deg, var(--primary), #4b93ff);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.side-qq-head svg { flex: 0 0 auto; }
.side-qq-body { padding: 12px 10px 14px; }
.side-qq-label { display: block; font-size: 11.5px; color: var(--muted); }
.side-qq-num {
    display: block;
    margin: 2px 0 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--primary-700);
}
.side-qq-btn {
    display: block;
    padding: 7px 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    transition: background 0.2s ease;
}
.side-qq-btn:hover { background: var(--primary-600); }
.side-qq-copy {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 5px 0;
    border: 1px solid var(--primary-line);
    border-radius: 7px;
    background: var(--primary-soft);
    color: var(--primary-600);
    font-size: 11.5px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}
.side-qq-copy:hover { background: #e2edff; }

@media (max-width: 1439px) {
    .side-qq {
        right: 10px;
        top: auto;
        bottom: 14px;
        transform: none;
        display: flex;
        align-items: center;
        width: auto;
        border-radius: 999px;
    }
    .side-qq-head {
        padding: 8px 2px 8px 12px;
        background: none;
        color: var(--primary-700);
        font-size: 12px;
    }
    .side-qq-body { display: flex; align-items: center; gap: 6px; padding: 0 8px 0 0; }
    .side-qq-label,
    .side-qq-copy { display: none; }
    .side-qq-num { margin: 0; font-size: 13px; }
    .side-qq-btn { padding: 6px 12px; border-radius: 999px; font-size: 12px; }
}
