/* Blog 设计系统 - 浅蓝主题 (优化版) */
:root {
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --bg-hover: #f8fafc;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #0ea5e9;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, .1), 0 8px 10px -6px rgba(15, 23, 42, .05);
    --shadow-xl: 0 20px 40px -8px rgba(15, 23, 42, .12), 0 12px 16px -6px rgba(15, 23, 42, .06);
    --transition: .2s cubic-bezier(.4, 0, .2, 1);
    --code-bg: #f1f5f9;
    --code-text: #475569;
    --kbd-bg: #f1f5f9;
    --kbd-border: #cbd5e1;
}

/* 修复 BUG #57: 暗色主题 - 自动跟随系统 + 手动切换支持 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f172a;
        --bg-card: #1e293b;
        --bg-sidebar: #0f172a;
        --border: #334155;
        --border-strong: #475569;
        --text: #e2e8f0;
        --text-secondary: #94a3b8;
        --text-tertiary: #64748b;
        --bg-hover: #334155;
        --primary: #3b82f6;
        --primary-hover: #60a5fa;
        --primary-light: #1e3a8a;
        --accent: #38bdf8;
        --danger: #ef4444;
        --success: #22c55e;
        --warning: #f59e0b;
        --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .2);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .4), 0 2px 4px -2px rgba(0, 0, 0, .3);
        --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, .5), 0 8px 10px -6px rgba(0, 0, 0, .3);
        --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, .6), 0 12px 16px -6px rgba(0, 0, 0, .4);
        --code-bg: #1e293b;
        --code-text: #cbd5e1;
        --kbd-bg: #334155;
        --kbd-border: #475569;
    }
}
/* 手动指定暗色主题(data-theme="dark") */
:root[data-theme="dark"] {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-sidebar: #0f172a;
    --border: #334155;
    --border-strong: #475569;
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --bg-hover: #334155;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: #1e3a8a;
    --accent: #38bdf8;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --code-bg: #1e293b;
    --code-text: #cbd5e1;
    --kbd-bg: #334155;
    --kbd-border: #475569;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    transition: background-color .25s ease, color .25s ease;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; }

/* 阅读进度条 + 返回顶部 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent), #06b6d4);
    z-index: 1000;
    transition: width .08s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(37, 99, 235, .4);
}
.back-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 17px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 12px rgba(37, 99, 235, .3); transform: translateY(-2px); }

/* 前台布局 - 全宽 */
.site-header {
    /* 双 fallback: 老浏览器读第一行 rgba, 现代浏览器覆盖第二行 color-mix */
    background: rgba(255, 255, 255, .92);
    background: color-mix(in srgb, var(--bg-card) 92%, transparent);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color .25s ease, border-color .25s ease;
}
.site-header .inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.logo {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.logo::before {
    content: '';
    width: 8px;
    height: 28px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    box-shadow: 0 2px 8px rgba(37, 99, 235, .3);
}
.logo span { color: var(--primary); }
.site-nav-wrap { flex: 1; min-width: 0; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
    color: var(--text);
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all .15s;
    font-weight: 500;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--primary); background: var(--bg); }
.site-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.site-search { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.site-search input {
    width: 150px; padding: 7px 12px; border: 1px solid var(--border);
    border-radius: 8px 0 0 8px; font-size: 14px; outline: none;
    transition: all var(--transition); border-right: none; background: var(--bg-hover);
}
.site-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: var(--bg-card); }
.site-search button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    border-radius: 0 8px 8px 0;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}
.site-search button:hover { background: var(--primary-hover); }
.site-user { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.site-user .user-name {
    color: var(--text); font-size: 14px; font-weight: 600;
    padding: 6px 10px; border-radius: 6px;
}
.site-user .user-name:hover { background: var(--bg); }
.site-user .user-link { color: var(--text-secondary); font-size: 14px; padding: 6px 8px; border-radius: 6px; }
.site-user .user-link:hover { background: var(--bg); color: var(--text); }
.btn-login {
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
}
.btn-login:hover { background: var(--primary-light); }
.btn-register {
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
}
.btn-register:hover { background: var(--primary-hover); }

/* 修复 BUG #47: 移动端最小字号 16px - iOS Safari < 14px 触发自动缩放 */
/* 修复 BUG #49: tap-highlight 颜色 - 移动端点击反馈更明显 */
/* 修复 BUG #41: skip-link 样式 - 屏幕阅读器/键盘用户可见 */
@media (max-width: 640px) {
    body { font-size: 16px; }
    input, button, select, textarea { font-size: 16px !important; }
}
* { -webkit-tap-highlight-color: rgba(37, 99, 235, 0.2); }
.skip-link {
    position: absolute; top: -40px; left: 0; z-index: 9999;
    background: var(--primary); color: #fff; padding: 8px 16px;
    text-decoration: none; font-weight: 600; border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 2px solid #fff; outline-offset: -4px; }

.container { max-width: 100%; margin: 0 auto; padding: 24px; }
.main-grid { display: grid; grid-template-columns: 4fr 1fr; gap: 24px; }
.main-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024px) { .main-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .main-grid { grid-template-columns: 1fr; }
    .container { padding: 16px; }
    .site-header .inner { padding: 0 16px; height: 56px; gap: 10px; }
    .site-search { margin-left: auto; }
    .site-search input { width: 100px; padding: 6px 10px; }
    .site-search button { padding: 6px 10px; }
    /* 主导航窄屏: 横向滚动, 不换行不压缩 */
    .site-nav-wrap {
        flex: 1;
        width: 100%;
        position: relative;
    }
    .site-nav-wrap::after {
        content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 30px;
        background: linear-gradient(90deg, transparent, var(--bg-card));
        pointer-events: none;
    }
    .site-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav a { white-space: nowrap; flex-shrink: 0; padding: 6px 8px; font-size: 13.5px; }
    .site-nav .nav-item { flex-shrink: 0; }
    .btn-login, .btn-register { padding: 5px 10px; font-size: 12.5px; }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
}

/* 文章列表 */
.post-item { padding: 20px 4px; border-bottom: 1px solid var(--border); transition: all var(--transition); display: flex; gap: 18px; align-items: flex-start; border-radius: 8px; }
.post-item:first-child { padding-top: 4px; }
.post-item:last-child { border-bottom: none; padding-bottom: 4px; }
.post-item:hover { background: var(--bg-hover); }
.post-item-body { flex: 1; min-width: 0; }
.post-cover {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    display: block;
    box-shadow: var(--shadow);
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.post-cover:hover img { transform: scale(1.06); }
@media (max-width: 640px) {
    .post-item { flex-direction: column; gap: 10px; }
    .post-cover { width: 100%; height: 160px; }
}
.post-item h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.6; }
.post-item h2 a { color: var(--text); transition: color var(--transition); letter-spacing: -.01em; }
.post-item h2 a:hover { color: var(--primary); }
.post-meta { color: var(--text-tertiary); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.post-meta .sep { color: #cbd5e1; }
.post-summary { color: #5b6b7f; font-size: 13.5px; line-height: 1.8; }
.share-bar { margin-left: auto; display: inline-flex; gap: 4px; }
.share-bar .share-link {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2px 12px;
    transition: all var(--transition);
    font-weight: 500;
}
.share-bar .share-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.badge-member {
    display: inline-block; background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 12px; margin-left: 8px; vertical-align: 2px;
    font-weight: 600; box-shadow: 0 1px 4px rgba(245, 158, 11, .3);
}
.badge-cat {
    display: inline-block; background: var(--primary-light); color: var(--primary);
    font-size: 11px; padding: 2px 10px; border-radius: 12px; font-weight: 500;
}

/* 侧栏 */
.sidebar .card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 0 0 8px 12px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    line-height: 1.4;
    color: var(--text);
    letter-spacing: .02em;
}
.sidebar ul { list-style: none; }
.sidebar li { padding: 5px 0; font-size: 13px; }
.sidebar .count { color: var(--text-secondary); float: right; }
.hot-list { list-style: none; counter-reset: none; }
.hot-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.hot-list .hot-rank {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hot-list .hot-rank.top { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.hot-list .hot-rank.mid { background: var(--primary-light); color: var(--primary); }
.sidebar li a { line-height: 1.5; display: block; word-break: break-all; transition: color var(--transition); padding: 2px 0; }
.sidebar li a:hover { color: var(--primary); }
.hot-list li a { line-height: 1.5; flex: 1; min-width: 0; word-break: break-all; transition: color var(--transition); }
.hot-list li a:hover { color: var(--primary); }
.tag-cloud a {
    display: inline-block; background: var(--bg); color: var(--text-secondary);
    padding: 4px 12px; border-radius: 14px; font-size: 12px; margin: 0 6px 8px 0;
    border: 1px solid transparent; transition: all var(--transition);
}
.tag-cloud a:hover { background: var(--primary-light); color: var(--primary); border-color: #bfdbfe; transform: translateY(-1px); }

/* 3D标签云 */
.tag-cloud-3d-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 500px;
    overflow: hidden;
    cursor: grab;
}
.tag-cloud-3d-item {
    position: absolute;
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--primary-light);
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    transform-origin: center center;
    will-change: transform, opacity;
}
.tag-cloud-3d-item:hover {
    color: #fff;
    background: var(--primary);
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-tertiary);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-strong); font-size: 11px; }
.breadcrumb .current { color: var(--text-secondary); word-break: break-all; font-weight: 500; }

/* TOC 目录 */
.toc {
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 0 0 24px;
    box-shadow: var(--shadow);
}
.toc-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.toc-title::before { content: '▤'; color: var(--primary); }
.toc ul { list-style: none; }
.toc li { padding: 4px 0; }
.toc li a {
    font-size: 13.5px;
    color: var(--text-secondary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}
.toc li a:hover { color: var(--primary); }
.toc li.toc-sub a { padding-left: 18px; font-size: 13px; position: relative; }
.toc li.toc-sub a::before { content: '·'; position: absolute; left: 6px; color: var(--border-strong); }
.toc li.toc-sub a { color: var(--text-tertiary); }

/* 文章详情 */
.post-detail h1 { font-size: 28px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; line-height: 1.35; color: var(--text); }
.post-detail .post-body { margin-top: 24px; font-size: 15.5px; line-height: 2; color: #334155; }
.post-detail .post-body p { margin-bottom: 16px; }
.post-detail .post-body h2 { font-size: 22px; margin: 28px 0 12px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.post-detail .post-body h3 { font-size: 18px; margin: 24px 0 10px; font-weight: 600; }
.post-detail .post-body pre {
    background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: var(--radius);
    overflow-x: auto; font-size: 13px; margin: 16px 0; border: 1px solid #1e293b;
}
.post-detail .post-body code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.post-detail .post-body pre code { background: none; padding: 0; }
.post-detail .post-body blockquote { border-left: 4px solid var(--primary); padding: 4px 14px; color: var(--text-secondary); margin: 14px 0; background: var(--primary-light); }
.post-detail .post-body img { border-radius: var(--radius); margin: 12px 0; max-width: 100%; height: auto; display: block; box-shadow: var(--shadow); }
.post-detail .post-body a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .3); text-underline-offset: 3px; transition: all var(--transition); }
.post-detail .post-body a:hover { text-decoration-color: var(--primary); }

/* 上一篇/下一篇 */
.post-nav {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.post-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    transition: all var(--transition);
    min-width: 0;
    box-shadow: var(--shadow);
}
.post-nav-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-nav-item.right { align-items: flex-end; text-align: right; }
.post-nav-item .nav-label { font-size: 12px; color: var(--text-tertiary); }
.post-nav-item .nav-title { font-size: 14px; font-weight: 600; word-break: break-all; }
.post-nav-item.disabled { opacity: .45; cursor: default; background: var(--bg-hover); }
.post-nav-item.disabled:hover { border-color: var(--border); box-shadow: none; }

/* 点赞 */
.post-like-bar { display: flex; justify-content: center; padding: 32px 0 8px; }
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 32px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    font-weight: 500;
}
.like-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.like-btn .like-icon { font-size: 16px; transition: transform .2s ease; }
.like-btn:hover .like-icon { transform: scale(1.2); }
.like-btn.liked {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

/* 附件下载模块 */
.download-box {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dl-title {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.dl-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.dl-item:last-child { border-bottom: none; }
.dl-item:hover { background: var(--bg-hover); }
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* 导航下拉(二级菜单) */
.nav-item { position: relative; }
.nav-caret { font-size: 10px; margin-left: 3px; opacity: .7; }
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    padding: 6px;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.nav-sub a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    color: var(--text);
    white-space: nowrap;
}
.nav-sub a:hover { background: var(--bg-hover); color: var(--primary); }
.nav-item.has-sub:hover .nav-sub { display: block; }

/* 密码可见性切换 */
.password-wrap { position: relative; }
.password-wrap .form-control { padding-right: 44px; }
.pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 4px 6px;
    opacity: .45;
    transition: opacity var(--transition);
    border-radius: 6px;
}
.pwd-toggle:hover { opacity: 1; background: var(--bg-hover); }
.pwd-toggle.active { opacity: .9; }

/* 代码块复制按钮 */
.post-body pre.code-block { position: relative; }
.code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #e2e8f0;
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s;
}
.post-body pre.code-block:hover .code-copy { opacity: 1; }
.code-copy:hover { background: rgba(255, 255, 255, .25); }

/* 广告位 */
.ad-slot { display: flex; flex-direction: column; gap: 10px; }
.ad-slot .ad-item img { max-width: 100%; border-radius: 8px; display: block; }
.ad-slot-top_banner { justify-content: center; }
.ad-banner-top {
    margin: 16px 0 4px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 10px;
    text-align: center;
}
.ad-sidebar { margin-bottom: 16px; }
.ad-in-post { margin: 18px 0; }
.ad-in-post-top { margin-bottom: 24px; }
.ad-in-post-bottom { margin-top: 24px; }
.ad-footer { text-align: center; }
.ad-code { text-align: center; }
.ad-code iframe, .ad-code img { max-width: 100%; }

/* 首页热门推荐 */
.hot-posts-card { margin-bottom: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.hot-posts-card .card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.hot-posts-card .card-head h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hot-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.hot-post-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    background: var(--bg-card);
}
.hot-post-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.hot-post-cover { flex-shrink: 0; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; }
.hot-post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hot-post-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; flex: 1; }
.hot-post-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-post-meta { font-size: 11.5px; color: var(--text-secondary); }
.hot-post-rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg);
    border-radius: 6px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 2px;
    border: 1px solid var(--border);
}
.hot-post-item.top .hot-post-rank { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; border: none; box-shadow: 0 2px 6px rgba(245, 158, 11, .3); }

/* 会员墙 */
.member-wall {
    text-align: center; padding: 52px 28px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fdf2f8 50%, #f0f9ff 100%);
    border: 1px dashed var(--primary); border-radius: var(--radius-lg); margin: 24px 0;
    position: relative; overflow: hidden;
}
.member-wall::before {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(37, 99, 235, .06);
}
.member-wall h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.member-wall p { color: var(--text-secondary); margin-bottom: 18px; }

/* 会员附件提示(正文公开, 仅附件限会员) */
.member-note {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: #b45309; background: #fffbeb;
    border: 1px solid #fde68a; border-radius: var(--radius);
    padding: 7px 14px; margin: 4px 0 14px;
}
.dl-member-wall {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: linear-gradient(135deg, var(--primary-light), #f0f9ff);
    border: 1px dashed var(--primary); border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 12px; font-size: 13.5px; color: var(--text);
}
.dl-badge-remote {
    display: inline-block; font-size: 11px; font-weight: 600; color: #0e7490;
    background: #ecfeff; border: 1px solid #a5f3fc; border-radius: 8px;
    padding: 1px 8px; margin-left: 4px; vertical-align: 1px;
}

/* 评论 */
.comment-list { margin-top: 16px; }
.comment-list .comment { border-bottom: 1px solid var(--border); padding: 16px 0; transition: background var(--transition); }
.comment-list .comment:last-child { border-bottom: none; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.comment-name { font-weight: 600; color: var(--text); }
.comment-time { color: var(--text-tertiary); font-size: 12px; }
.comment-content { font-size: 14px; line-height: 1.7; color: #475569; }
.comment-reply { font-size: 12px; color: var(--text-tertiary); cursor: pointer; padding: 2px 8px; border-radius: 6px; transition: all var(--transition); }
.comment-reply:hover { color: var(--primary); background: var(--primary-light); }
.comment-form textarea, .comment-form input {
    width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px; font-size: 14px; font-family: inherit; margin-bottom: 10px; outline: none;
}
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--primary); }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: var(--radius); cursor: pointer;
    padding: 9px 20px; font-size: 14px; font-family: inherit; font-weight: 500;
    transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 3px rgba(37, 99, 235, .2); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(37, 99, 235, .3); transform: translateY(-1px); }
.btn-outline { background: var(--bg-card); color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-danger { background: var(--bg-card); color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 5px 14px; font-size: 13px; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 14px; font-family: inherit; outline: none;
    transition: all var(--transition); background: var(--bg-card);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.form-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 28px 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
    padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card);
    color: var(--text-secondary); font-size: 13px; font-weight: 500;
    transition: all var(--transition); box-shadow: var(--shadow);
}
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(37, 99, 235, .25); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* 提示 */
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-4px);
    background: #1e293b; color: #fff; padding: 10px 24px; border-radius: var(--radius);
    font-size: 14px; z-index: 1000; opacity: 0; transition: all .3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .2); font-weight: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.toast.success { background: linear-gradient(135deg, #16a34a, #22c55e); }

/* 页脚 */
.site-footer {
    border-top: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-secondary); font-size: 13px; margin-top: 56px;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .04);
}
.footer-top {
    max-width: 100%; margin: 0 auto; padding: 36px 24px 28px;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap;
}
.footer-friend-module { min-width: 200px; max-width: 420px; flex: 1; }
.footer-friend-module .friend-links { margin-top: 0; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-link-title {
    font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px;
    padding-bottom: 8px; position: relative;
}
.footer-link-title::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 22px; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
.footer-link-list { display: flex; flex-direction: column; gap: 10px; }
.footer-link-list a { color: var(--text-secondary); font-size: 13px; transition: all var(--transition); width: fit-content; }
.footer-link-list a:hover { color: var(--primary); transform: translateX(3px); }
.footer-bottom {
    border-top: 1px solid var(--border); background: var(--bg);
    padding: 16px 24px; display: flex; justify-content: center; gap: 12px 20px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-secondary);
}
.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--primary); }
.footer-sep { opacity: .4; margin: 0 10px; }
.footer-perf {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px; color: var(--text-secondary); opacity: .6;
    order: 99; width: 100%; text-align: center;
    letter-spacing: .02em;
}
@media (max-width: 860px) {
    .footer-top { flex-direction: column; gap: 24px; padding: 28px 16px 20px; }
    .footer-links { gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; padding: 14px 16px; }
}

/* 空状态 */
.empty { text-align: center; color: var(--text-secondary); padding: 40px 20px; font-size: 14px; }

/* ===== 归档页 ===== */
.archive-header {
    text-align: center; padding: 32px 20px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 20px;
}
.archive-icon { font-size: 36px; margin-bottom: 8px; }
.archive-header h1 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.archive-header p { font-size: 13px; color: var(--text-secondary); }
.archive-group {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 20px 24px; margin-bottom: 16px;
}
.archive-group-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.archive-year {
    font-size: 16px; font-weight: 700; color: var(--primary);
    white-space: nowrap;
}
.archive-count {
    font-size: 12px; color: var(--text-tertiary);
    background: var(--bg); padding: 2px 10px; border-radius: 10px;
}
.archive-list { list-style: none; }
.archive-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 0; border-bottom: 1px dashed var(--border);
    font-size: 14px; transition: all var(--transition);
}
.archive-item:last-child { border-bottom: none; }
.archive-item:hover { padding-left: 4px; }
.archive-date {
    color: var(--text-tertiary); font-size: 12px; flex-shrink: 0;
    width: 48px; font-family: ui-monospace, monospace;
    font-weight: 500;
}
.archive-title {
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text); font-weight: 500; transition: color var(--transition);
}
.archive-title:hover { color: var(--primary); }
.archive-cat { flex-shrink: 0; font-size: 12px; }
.archive-views {
    font-size: 12px; color: var(--text-tertiary); flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .archive-item { gap: 10px; padding: 8px 0; }
    .archive-cat, .archive-views { display: none; }
    .archive-group { padding: 16px; }
}

/* ===== 标签页 ===== */
.tag-page-header {
    text-align: center; padding: 32px 20px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 20px;
}
.tag-page-icon { font-size: 36px; margin-bottom: 8px; }
.tag-page-header h1 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tag-page-header p { font-size: 13px; color: var(--text-secondary); }
.tag-cloud {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 24px; display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center; justify-content: center;
}
.tag-item {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text); font-weight: 500;
    transition: all var(--transition); text-decoration: none;
    white-space: nowrap;
}
.tag-item:hover {
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light); transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, .15);
}
.tag-count {
    font-size: 11px; color: var(--text-tertiary);
    background: rgba(0,0,0,.04); padding: 1px 6px; border-radius: 8px;
}
.tag-item:hover .tag-count { color: var(--primary); background: rgba(37,99,235,.08); }
.tag-sm { font-size: 13px; padding: 5px 12px; }
.tag-md { font-size: 14px; padding: 7px 16px; border-color: var(--border-strong); }
.tag-md .tag-count { font-weight: 600; }
.tag-lg {
    font-size: 15px; padding: 8px 18px; font-weight: 600;
    border-color: var(--primary); color: var(--primary);
    background: var(--primary-light);
}
.tag-lg .tag-count {
    background: var(--primary); color: #fff; font-weight: 600;
}

/* ===== 搜索结果标题 ===== */
.search-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.search-header .search-icon { font-size: 18px; }
.search-header h1 { font-size: 16px; font-weight: 600; color: var(--text); }
.search-header .search-keyword {
    color: var(--primary); font-weight: 700;
}

/* ===== 分类/标签列表标题 ===== */
.page-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); margin-bottom: 16px;
}
.page-header h1 { font-size: 16px; font-weight: 600; color: var(--text); }

/* ===== 评论区 ===== */
.comment-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.comment-header h3 { font-size: 15px; font-weight: 600; }
.comment-form { margin-bottom: 16px; }
.comment-form textarea {
    width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; resize: vertical;
    font-family: inherit; transition: border-color var(--transition);
    background: var(--bg-hover);
}
.comment-form textarea:focus { border-color: var(--primary); outline: none; background: var(--bg-card); }
.comment-form .comment-meta-row {
    display: flex; gap: 10px; margin-top: 10px;
}
.comment-form .comment-meta-row input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 13px; outline: none;
    transition: border-color var(--transition); background: var(--bg-hover);
}
.comment-form .comment-meta-row input:focus { border-color: var(--primary); background: var(--bg-card); }
.comment-form .captcha-row {
    display: flex; gap: 10px; align-items: center;
    margin-top: 10px;
}
.comment-form .captcha-row input {
    flex: 1; max-width: 160px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 13px; outline: none; background: var(--bg-hover);
}
.comment-form .captcha-row input:focus { border-color: var(--primary); background: var(--bg-card); }
.comment-form .captcha-question {
    font-size: 14px; color: var(--text); font-weight: 600;
    background: var(--bg); padding: 6px 14px;
    border-radius: var(--radius); border: 1px solid var(--border);
}
.comment-form .captcha-refresh {
    font-size: 12px; color: var(--text-secondary); cursor: pointer;
}
.comment-form .captcha-refresh:hover { color: var(--primary); }

/* ===== 会员中心 ===== */
.member-wrap { display: flex; gap: 0; align-items: stretch; min-height: calc(100vh - 56px); }
.member-nav {
    width: 220px; flex-shrink: 0; background: var(--sidebar-bg, #0f172a);
    padding: 16px 0; position: sticky; top: 56px; align-self: flex-start;
    border-radius: 0; border: none; box-shadow: none; overflow-y: auto;
}
.member-nav .nav-group {
    padding: 20px 20px 8px; font-size: 11px; color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
.member-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; color: rgba(255,255,255,.65); font-size: 13.5px;
    border-left: 3px solid transparent; transition: all var(--transition);
    text-decoration: none; margin: 1px 8px; border-radius: 6px;
}
.member-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.member-nav a.active {
    color: #fff; border-left-color: var(--primary); background: rgba(37,99,235,.28);
    font-weight: 600;
}
.member-content { flex: 1; min-width: 0; padding: 24px 28px; background: var(--bg, #f0f4f8); }

/* 概览顶部两栏 */
.overview-top-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.overview-top-row .profile-card { margin-bottom: 0; }
.overview-top-row .vip-status-card { margin-bottom: 0; }

/* 概览新布局 */
.ov-header {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 35%, #2563eb 100%);
    border-radius: 16px; padding: 22px 28px; color: #fff; margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .2);
}
.ov-avatar {
    width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; flex-shrink: 0;
    backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.15);
}
.ov-info { flex: 1; min-width: 0; }
.ov-name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ov-name .badge { font-size: 11px; padding: 2px 10px; background: rgba(255,255,255,.18); color: #fff; border-radius: 10px; font-weight: 600; }
.ov-name .badge.vip { background: rgba(250,204,21,.3); color: #fde047; }
.ov-meta { font-size: 13px; opacity: .75; margin-top: 4px; }
.ov-vip-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ov-vip-remain { font-size: 13px; color: rgba(255,255,255,.85); }
.ov-vip-remain b { font-size: 20px; font-weight: 800; color: #fff; }
.ov-vip-remain.warn b { color: #fbbf24; }
.ov-vip-remain.danger b { color: #f87171; }
.ov-vip-right .btn { font-size: 12px; padding: 5px 14px; }

/* 数据卡片行 */
.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.ov-stat-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 16px; text-align: center; transition: all var(--transition);
    text-decoration: none; color: inherit; display: block;
}
.ov-stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ov-stat-ic { font-size: 24px; margin-bottom: 8px; }
.ov-stat-num { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.ov-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* 两栏布局 */
.ov-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.ov-two-col .checkin-card { margin-bottom: 0; }

/* 快捷入口 */
.ov-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ov-quick-item {
    display: flex; align-items: center; gap: 8px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
    color: var(--text); text-decoration: none; transition: all var(--transition);
}
.ov-quick-item:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.ov-q-ic { font-size: 18px; }

/* 最近评论 */
.ov-recent-comments { display: flex; flex-direction: column; }
.ov-comment-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.ov-comment-item:last-child { border-bottom: none; }
.ov-comment-content { font-size: 13px; color: var(--text); line-height: 1.6; }
.ov-comment-meta { font-size: 11px; color: var(--text-secondary); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.ov-comment-meta a { color: var(--primary); text-decoration: none; }
.ov-more-link { display: block; text-align: center; font-size: 12px; color: var(--primary); text-decoration: none; padding: 10px 0 0; }
.ov-more-link:hover { text-decoration: underline; }

/* 权益网格 */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 18px; text-align: center; transition: all var(--transition);
}
.benefit-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit-ic { font-size: 32px; display: block; margin-bottom: 12px; }
.benefit-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.benefit-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.benefit-status {
    display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); font-weight: 500;
}
.benefit-status.unlocked { background: #f0fdf4; border-color: #bbf7d0; color: var(--success); }
@media (max-width: 860px) {
    .member-wrap { flex-direction: column; }
    .member-nav {
        width: 100%; min-width: 0; position: static; display: flex;
        overflow-x: auto; padding: 4px 0; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; border-radius: 0;
    }
    .member-nav::-webkit-scrollbar { display: none; }
    .member-nav .nav-group { display: none; }
    .member-nav a {
        border-left: none; border-bottom: 2px solid transparent;
        padding: 10px 16px; white-space: nowrap; flex-shrink: 0;
        margin: 0 2px; border-radius: 0;
    }
    .member-nav a.active { border-bottom-color: var(--primary); border-left: none; }
    .member-content { padding: 16px; }
    .ov-two-col { grid-template-columns: 1fr; }
    .ov-stats { grid-template-columns: repeat(2, 1fr); }
    .ov-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .ov-header { flex-wrap: wrap; }
    .ov-vip-right { width: 100%; justify-content: flex-end; margin-top: 4px; }
}
@media (max-width: 480px) {
    .ov-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ov-stat-card { padding: 14px 10px; }
    .ov-stat-num { font-size: 18px; }
    .ov-quick-grid { grid-template-columns: 1fr 1fr; }
}

/* 身份卡 */
.profile-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 35%, #2563eb 65%, #0ea5e9 100%);
    border-radius: 24px; padding: 40px 36px; color: #fff; position: relative; overflow: hidden; margin-bottom: 24px;
    box-shadow: 0 16px 40px rgba(37, 99, 235, .3);
}
.profile-card::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255,255,255,.06);
}
.profile-card::before {
    content: ''; position: absolute; right: 100px; bottom: -80px; width: 160px; height: 160px;
    border-radius: 50%; background: rgba(255,255,255,.04);
}
.profile-card .avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.1));
    border: 3px solid rgba(255,255,255,.45);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 700;
    transition: transform .3s ease;
}
.profile-card:hover .avatar { transform: scale(1.08); }
.profile-card .row { display: flex; align-items: center; gap: 22px; position: relative; z-index: 1; flex-wrap: wrap; }
.profile-card .name { font-size: 26px; font-weight: 800; letter-spacing: .01em; }
.profile-card .meta { font-size: 13px; opacity: .8; margin-top: 5px; }
.profile-card .badge {
    display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
    padding: 4px 16px; border-radius: 16px; font-size: 12px; margin-left: 12px; vertical-align: 3px;
    backdrop-filter: blur(6px); font-weight: 500;
}
.profile-card .badge.vip {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: none; color: #78350f; font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .45);
}

/* 签到卡片 */
.checkin-card {
    margin-bottom: 18px; background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fffbeb 100%);
    border: 1px solid #fde68a; border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(245, 158, 11, .08); padding: 24px;
    position: relative; overflow: hidden;
}
.checkin-card::after {
    content: ''; position: absolute; right: -20px; bottom: -20px; width: 100px; height: 100px;
    border-radius: 50%; background: rgba(245, 158, 11, .06);
}
.checkin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.checkin-head h3 { font-size: 16px; font-weight: 700; color: #92400e; }
.checkin-sub { font-size: 12.5px; color: #a16207; margin-top: 4px; }
.checkin-points {
    font-size: 13px; color: #92400e; background: rgba(245, 158, 11, .12);
    border: 1px solid #fde68a; padding: 8px 18px; border-radius: 22px; font-weight: 600;
}
.checkin-points b { color: #d97706; font-size: 18px; margin-left: 4px; font-weight: 800; }
.checkin-rewards { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 18px; }
.reward-day {
    text-align: center; border: 1px solid #fde68a; border-radius: 12px; padding: 12px 4px;
    transition: all var(--transition); background: rgba(255, 255, 255, .6);
}
.reward-day.today { border-color: #f59e0b; background: rgba(245, 158, 11, .1); box-shadow: 0 0 0 2px rgba(245, 158, 11, .15); }
.reward-day.done { border-color: var(--success); background: #f0fdf4; }
.reward-day .reward-num { font-size: 11.5px; color: #a16207; margin-bottom: 4px; font-weight: 500; }
.reward-day.today .reward-num { color: #d97706; font-weight: 700; }
.reward-day.done .reward-num { color: var(--success); }
.reward-day .reward-pts { font-size: 14px; font-weight: 700; color: #92400e; }
.reward-day.done .reward-pts { color: var(--success); }
.reward-day.done .reward-pts::after { content: ' ✓'; }
.checkin-calendar { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 18px; }
.cal-title { font-size: 12.5px; color: #a16207; margin-right: 10px; font-weight: 600; }
.cal-cell {
    flex: 1; text-align: center; padding: 10px 4px; border-radius: 10px;
    border: 1px solid #fde68a; font-size: 11.5px; transition: all var(--transition);
    background: rgba(255, 255, 255, .5);
}
.cal-cell .cal-day { color: #a16207; margin-bottom: 4px; font-weight: 500; }
.cal-cell.checked { background: rgba(245, 158, 11, .1); border-color: #f59e0b; }
.cal-cell.checked .cal-dot { color: #d97706; font-weight: 700; }
.cal-cell.today { border-color: #d97706; box-shadow: 0 0 0 2px rgba(245, 158, 11, .12); }
.cal-cell .cal-dot { color: #d4d4d8; font-size: 13px; }
.checkin-btn { width: 100%; padding: 13px 0; font-size: 15px; font-weight: 600; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #d97706); border: none; color: #fff; }
.checkin-btn:hover { box-shadow: 0 4px 14px rgba(245, 158, 11, .3); transform: translateY(-1px); }
.checkin-btn.done { background: var(--success); border-color: var(--success); }
.checkin-btn:disabled { cursor: not-allowed; opacity: .85; }
.checkin-msg { text-align: center; font-size: 12.5px; color: #92400e; margin-top: 12px; min-height: 18px; }
@media (max-width: 640px) {
    .checkin-rewards { gap: 4px; }
    .reward-day { padding: 8px 2px; }
    .reward-day .reward-num { font-size: 11px; }
}

/* 会员状态卡 */
.vip-status-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    border: 1px solid #bfdbfe; border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(37, 99, 235, .08); padding: 28px; margin-bottom: 18px;
    position: relative; overflow: hidden;
}
.vip-status-card::after {
    content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
    border-radius: 50%; background: rgba(37, 99, 235, .05);
}
.vip-status-card:hover { box-shadow: 0 8px 30px rgba(37, 99, 235, .12); }
.vip-status-card.current-sub {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 40%, #e0f2fe 100%);
    border-color: #93c5fd;
}
.vip-status-card .title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.vip-status-card .title-row h3 { font-size: 16px; font-weight: 700; color: var(--text); }
.vip-status { display: flex; align-items: center; gap: 10px; }
.vip-status .dot { width: 9px; height: 9px; border-radius: 50%; }
.vip-status .dot.active { background: var(--success); box-shadow: 0 0 0 4px rgba(22,163,74,.12); }
.vip-status .dot.inactive { background: var(--text-secondary); box-shadow: 0 0 0 4px rgba(100,116,139,.08); }
.vip-status .txt-active { color: var(--success); font-weight: 600; font-size: 14px; }
.vip-status .txt-inactive { color: var(--text-secondary); font-weight: 600; font-size: 14px; }
.vip-progress { background: var(--bg); border-radius: 8px; height: 8px; overflow: hidden; margin: 16px 0 8px; }
.vip-progress .bar {
    height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s cubic-bezier(.4,0,.2,1);
}
.vip-days { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-secondary); }
.vip-days .remain { color: var(--text); font-weight: 500; }
.vip-days .remain b { font-size: 17px; font-weight: 800; color: var(--primary); }
.vip-days .remain.warn { color: #d97706; }
.vip-days .remain.warn b { color: #d97706; }
.vip-days .remain.danger { color: #dc2626; font-weight: 600; }
.vip-days .remain.danger b { color: #dc2626; }
.vip-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 20px; }
.vip-info-item { background: var(--bg); border-radius: var(--radius); padding: 16px 18px; border: 1px solid transparent; transition: all var(--transition); }
.vip-info-item:hover { border-color: var(--border); box-shadow: var(--shadow); }
.vip-info-item .label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.vip-info-item .value { font-size: 16px; font-weight: 700; color: var(--text); }

/* 权益列表 */
.benefit-list { list-style: none; }
.benefit-list li {
    display: flex; align-items: center; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--border); font-size: 14px;
    transition: all var(--transition);
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li:hover { background: var(--bg-hover); margin: 0 -22px; padding: 14px 22px; border-radius: 8px; }
.benefit-list .ic {
    width: 38px; height: 38px; border-radius: 10px; background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .08);
}
.benefit-list .desc { color: var(--text-secondary); font-size: 12px; margin-top: 4px; }
.benefit-list .right { margin-left: auto; font-size: 12px; color: var(--success); font-weight: 600; padding: 3px 10px; background: #f0fdf4; border-radius: 10px; }

/* 会员中心移动端 */
@media (max-width: 860px) {
    .overview-top-row { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: 1fr; }
    .profile-card { padding: 28px 22px; border-radius: 16px; }
    .profile-card .avatar { width: 60px; height: 60px; font-size: 24px; }
    .profile-card .name { font-size: 20px; }
    .vip-status-card { padding: 22px; border-radius: 14px; }
    .vip-days { flex-wrap: wrap; gap: 6px; row-gap: 10px; }
    .vip-info-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .vip-info-item { padding: 14px 16px; }
    .member-nav { gap: 2px; }
    .member-nav a { padding: 11px 18px; font-size: 13.5px; }
    .plan-card { padding: 22px 18px; }
    .member-form { max-width: 100%; }
    .checkin-rewards { gap: 6px; }
    .reward-day { padding: 10px 3px; }
    .reward-day .reward-num { font-size: 11px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 套餐选择 */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-card {
    border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px 24px;
    background: var(--bg-card); position: relative; transition: border-color .15s, box-shadow .15s, transform .15s;
    display: flex; flex-direction: column;
}
.plan-card:hover { border-color: var(--primary); box-shadow: 0 6px 20px rgba(37,99,235,.12); transform: translateY(-2px); }
.plan-card.recommend {
    border-color: var(--primary); border-width: 2px;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: linear-gradient(180deg, #f8fbff 0%, var(--bg-card) 60%);
}
.plan-card .plan-tag {
    position: absolute; top: -12px; right: 18px; background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 12px; font-weight: 600; padding: 3px 14px; border-radius: 12px;
    box-shadow: 0 3px 8px rgba(37,99,235,.3);
}
.plan-card .plan-badge-free { position: absolute; top: 0; left: 0; width: 100%; height: 4px; border-radius: 16px 16px 0 0; background: var(--bg); }
.plan-card.recommend .plan-badge-free { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.plan-card .plan-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.plan-card .plan-price { font-size: 34px; font-weight: 800; color: var(--text); line-height: 1.2; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-card .plan-price span { font-size: 14px; font-weight: 400; color: var(--text-secondary); }
.plan-card .plan-original { font-size: 12.5px; color: #94a3b8; text-decoration: line-through; font-weight: 400; margin-left: 4px; }
.plan-card .plan-save {
    font-size: 11.5px; font-weight: 700; color: #d97706; background: #fef3c7;
    padding: 2px 8px; border-radius: 10px; margin-left: 2px;
}
.plan-monthly-avg { font-size: 12.5px; color: var(--text-secondary); margin: 4px 0 2px; }
.plan-card .plan-feats { margin: 16px 0 22px; list-style: none; flex: 1; }
.plan-card .plan-feats li {
    font-size: 13.5px; color: var(--text-secondary); padding: 6px 0;
    display: flex; align-items: center; gap: 8px;
}
.plan-card .plan-feats .feat-ic {
    width: 26px; height: 26px; border-radius: 7px; background: var(--primary-light);
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}
.plan-card .plan-btn { width: 100%; padding: 11px 0; font-size: 14px; border-radius: 8px; }
.plan-card.recommend .plan-feats li:has(.feat-ic) { color: var(--text); }

/* 权益对比表 */
.compare-wrap { margin-top: 28px; }
.compare-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.compare-row {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr;
    align-items: center; border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row .c-item { padding: 12px 16px; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.compare-row .c-item:not(:first-child) { justify-content: center; border-left: 1px solid var(--border); }
.compare-head { background: var(--bg); font-weight: 600; }
.compare-head .c-item { color: var(--text); }
.c-yes { color: var(--success); font-weight: 700; font-size: 15px; }
.c-no { color: #cbd5e1; font-size: 14px; }
@media (max-width: 640px) {
    .compare-row { grid-template-columns: 1.4fr 1fr 1fr; }
    .compare-row .c-item { padding: 10px 10px; font-size: 12.5px; }
}

/* ===== 项目库 ===== */
.software-page { max-width: 100%; }
.software-head { margin-bottom: 20px; }
.software-head h1 { font-size: 24px; font-weight: 800; }
.software-desc { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }
.software-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.software-cats a {
    padding: 6px 16px; border-radius: 18px; background: var(--bg-card);
    border: 1px solid var(--border); font-size: 13px; color: var(--text-secondary);
    cursor: pointer; transition: all .15s;
}
.software-cats a:hover { border-color: var(--primary); color: var(--primary); }
.software-cats a.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.software-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.soft-card {
    display: flex; gap: 14px; padding: 18px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 14px; text-decoration: none;
    transition: all .15s;
}
.soft-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(37,99,235,.1); transform: translateY(-2px); }
.soft-icon {
    width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
    background: var(--primary-light); display: flex; align-items: center; justify-content: center;
    font-size: 26px; overflow: hidden;
}
.soft-icon img { width: 100%; height: 100%; object-fit: cover; }
.soft-info { flex: 1; min-width: 0; }
.soft-name { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.soft-summary {
    font-size: 12.5px; color: var(--text-secondary); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.soft-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); margin-top: 8px; align-items: center; }
.soft-ver { color: var(--primary); font-weight: 600; }
.soft-price {
    margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--warning);
    background: #fef3c7; padding: 2px 10px; border-radius: 10px;
}
.soft-price.vip { color: var(--primary); background: var(--primary-light); }
.soft-price.free { color: var(--success); background: #f0fdf4; }
.soft-price.saas { color: #2563eb; background: #dbeafe; }
.badge-saas {
    display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb); padding: 2px 8px;
    border-radius: 6px; vertical-align: middle; margin-left: 6px;
}
.badge-saas-sm {
    display: inline-block; font-size: 10px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb); padding: 1px 6px;
    border-radius: 4px; vertical-align: middle; margin-left: 4px;
}
.soft-card-saas { border-color: #93c5fd; }
.soft-card-saas:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,.15); }
.soft-price-big { font-size: 28px; font-weight: 800; color: var(--text); }
.soft-price-big b { font-size: 34px; }
.soft-price-big span { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination a {
    padding: 6px 14px; border-radius: 8px; background: var(--bg-card);
    border: 1px solid var(--border); font-size: 13px; cursor: pointer; color: var(--text);
}
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.soft-grid-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.soft-grid-cat .soft-card { padding: 14px; }
@media (max-width: 640px) {
    .soft-grid-cat { grid-template-columns: 1fr; }
}
/* ===== 项目库分类页(大气版) ===== */
.soft-hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
    border-radius: 18px;
    padding: 36px 40px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .25);
}
.soft-hero-banner::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.soft-hero-banner::before {
    content: ''; position: absolute; right: 100px; bottom: -80px; width: 180px; height: 180px;
    border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.soft-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; flex-wrap: wrap; }
.soft-hero-left h1 { font-size: 30px; font-weight: 800; letter-spacing: .01em; }
.soft-hero-left p { font-size: 14px; opacity: .85; margin-top: 8px; }
.soft-hero-right { display: flex; gap: 16px; }
.soft-hero-stat {
    background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px; padding: 10px 22px; text-align: center; backdrop-filter: blur(4px);
}
.soft-hero-stat b { display: block; font-size: 24px; font-weight: 800; }
.soft-hero-stat span { font-size: 12px; opacity: .85; }

.soft-library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.soft-lib-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
    padding: 26px 22px; display: flex; flex-direction: column;
    text-decoration: none; transition: all .25s ease; position: relative;
}
.soft-lib-card::after {
    content: ''; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px;
    border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--primary), #0ea5e9);
    opacity: 0; transform: scaleX(.6); transition: all .25s ease;
}
.soft-lib-card:hover {
    border-color: var(--primary); box-shadow: 0 14px 34px rgba(37, 99, 235, .14);
    transform: translateY(-5px);
}
.soft-lib-card:hover::after { opacity: 1; transform: scaleX(1); }
.soft-lib-icon {
    width: 68px; height: 68px; border-radius: 18px; margin-bottom: 16px;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; overflow: hidden; border: 1px solid #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    transition: all .25s ease;
}
.soft-lib-card:hover .soft-lib-icon {
    border-color: #93c5fd; transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .16);
}
.soft-lib-icon img { width: 100%; height: 100%; object-fit: cover; }
.soft-lib-name {
    font-size: 16.5px; font-weight: 700; color: var(--text); margin-bottom: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.soft-lib-summary {
    font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.soft-lib-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-secondary); margin: 12px 0 16px; }
.soft-lib-ver {
    color: var(--primary); font-weight: 700; background: var(--primary-light);
    padding: 2px 10px; border-radius: 8px;
}
.soft-lib-rate { color: #d97706; }
.soft-lib-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; }
.soft-lib-price { font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 14px; }
.soft-lib-price.free { color: var(--success); background: #f0fdf4; }
.soft-lib-price.pay { color: #d97706; background: #fef3c7; }
.soft-lib-price.vip { color: var(--primary); background: var(--primary-light); }
.soft-lib-dl { font-size: 12px; color: var(--text-secondary); }
.soft-empty {
    text-align: center; padding: 70px 20px; background: var(--bg-card);
    border: 1px dashed var(--border); border-radius: 16px;
}
.soft-empty-icon { font-size: 44px; margin-bottom: 12px; }
.soft-empty div { font-size: 15px; font-weight: 600; color: var(--text); }
.soft-empty p { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }

/* ===== 侧边栏友情链接 ===== */
.friend-links { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-links a {
    padding: 5px 14px; border-radius: 16px; font-size: 12.5px;
    background: var(--bg); border: 1px solid var(--border);
    color: var(--text-secondary); text-decoration: none;
    transition: all .15s; max-width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.friend-links a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

/* 页脚友情链接 */
.footer-friend-links a {
    background: var(--bg); color: var(--text-secondary);
    font-size: 12px; padding: 4px 12px;
}
@media (max-width: 1024px) {
    .soft-library-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
    .soft-hero-banner { padding: 26px 20px; }
    .soft-hero-left h1 { font-size: 24px; }
    .soft-hero-inner { flex-direction: column; align-items: flex-start; }
    .soft-library-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .soft-lib-card { padding: 18px 14px; border-radius: 14px; }
    .soft-lib-icon { width: 54px; height: 54px; font-size: 24px; margin-bottom: 12px; }
}
@media (max-width: 480px) {
    .soft-library-grid { grid-template-columns: 1fr; }
}

/* 项目详情 */
.soft-hero {
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 24px; margin-bottom: 16px;
}
.soft-hero-icon {
    width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0;
    background: var(--primary-light); display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.soft-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.soft-hero-info { flex: 4; min-width: 220px; }
.soft-hero-info h1 { font-size: 22px; font-weight: 800; }
.soft-hero-summary { color: var(--text-secondary); font-size: 13.5px; margin: 6px 0 10px; }
.soft-hero-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-secondary); }
.soft-tag { background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.soft-rating em { font-style: normal; font-size: 11.5px; }
.soft-site { color: var(--primary); font-size: 13px; }
.soft-hero-dl { text-align: center; flex: 1; min-width: 180px; }
.soft-cur-ver { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.soft-cur-ver b { color: var(--primary); font-size: 15px; }
.soft-dl-btn { padding: 11px 28px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.soft-size { font-size: 12px; color: var(--text-secondary); margin-top: 8px; }
.soft-rate-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 18px; font-size: 13px; color: var(--text-secondary);
}
.soft-rate-row .star { font-size: 22px; color: #d1d5db; cursor: pointer; transition: color .15s, transform .15s; }
.soft-rate-row .star:hover { color: #f59e0b; transform: scale(1.2); }
.soft-rate-hint { color: var(--primary); font-size: 12.5px; }
.soft-desc-card h3, .soft-vers-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.soft-desc { line-height: 1.8; font-size: 14px; }
.soft-desc p { margin-bottom: 10px; }
.soft-vers { display: flex; flex-direction: column; gap: 10px; }
.soft-ver-row {
    display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
    border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; transition: border-color .15s;
}
.soft-ver-row:hover { border-color: var(--primary); }
.soft-ver-row.current { border-color: var(--primary); background: var(--primary-light); }
.soft-ver-num { font-size: 15px; font-weight: 700; color: var(--text); }
.soft-ver-current { margin-left: 8px; font-size: 11px; color: var(--primary); background: var(--bg-card); padding: 1px 8px; border-radius: 8px; border: 1px solid var(--primary); }
.soft-ver-time { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.soft-ver-log { font-size: 13px; color: var(--text-secondary); margin-top: 8px; white-space: pre-line; }
.soft-ver-right { text-align: right; flex-shrink: 0; }
.soft-ver-rule { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
@media (max-width: 640px) {
    .soft-hero { flex-direction: column; align-items: flex-start; }
    .soft-hero-dl { text-align: left; width: 100%; }
    .soft-grid { grid-template-columns: 1fr; }
}

/* 弹窗(前台) */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 16px;
    overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
    padding: 32px;
    max-width: 460px;
    width: 100%;
    position: relative;
    margin: auto; /* 垂直水平居中: 留有余量时居中, 过高时上边可滚 */
    animation: modalIn .25s cubic-bezier(.4, 0, .2, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

/* 支付弹窗 */
.pay-modal { max-width: 420px; }
.pay-modal h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.pay-summary {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--primary-light); border: 1px solid #bfdbfe; border-radius: 10px;
    padding: 14px 18px; margin-bottom: 20px;
}
.pay-summary-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pay-summary-price b { font-size: 20px; color: var(--primary); margin-right: 4px; }
.pay-summary-price span { font-size: 12px; color: var(--text-secondary); }
.pay-channel-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.pay-channel-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pay-channel-item {
    display: flex; align-items: center; gap: 12px;
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: 13px 16px; cursor: pointer; transition: all .15s;
}
.pay-channel-item:hover { border-color: var(--primary); background: var(--primary-light); }
.pay-channel-item.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.pay-channel-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border); flex-shrink: 0; transition: all .15s;
    position: relative;
}
.pay-channel-item.selected .pay-channel-radio { border-color: var(--primary); }
.pay-channel-item.selected .pay-channel-radio::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%;
    background: var(--primary);
}
.vhost-payway { display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid var(--border); border-radius:8px; cursor:pointer; transition: all .15s; }
.vhost-payway:hover { border-color: var(--primary); background: var(--primary-light); }
.vhost-payway.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.pay-channel-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pay-channel-tag {
    margin-left: auto; font-size: 11px; color: var(--warning); background: #fef3c7;
    padding: 1px 8px; border-radius: 8px; font-weight: 600;
}
/* 付款方式(易支付子选项) */
.pay-method-wrap { margin-bottom: 20px; }
.pay-method-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-method-item {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: 12px 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text);
    transition: all .15s;
}
.pay-method-item:hover { border-color: var(--primary); }
.pay-method-item.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.pay-method-icon { font-size: 16px; }
.pay-submit { width: 100%; padding: 12px 0; font-size: 15px; font-weight: 600; border-radius: 10px; }
.pay-secure { text-align: center; font-size: 12px; color: var(--text-secondary); margin-top: 14px; }

/* 资料表单 */
.member-form { max-width: 520px; }
.member-form .form-group { margin-bottom: 20px; }
.member-form label { font-weight: 500; }

/* 我的主机列表 */
.vhost-my-list { display: grid; gap: 14px; }
.vh-my-item {
    display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px 22px; box-shadow: var(--shadow); transition: all var(--transition);
}
.vh-my-item:hover { box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.vh-my-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vh-my-domain { font-size: 17px; font-weight: 700; }
.vh-my-domain a { color: var(--text); text-decoration: none; transition: color var(--transition); }
.vh-my-domain a:hover { color: var(--primary); }
.vh-my-info {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 12.5px; color: var(--text-secondary);
}
.vh-my-plan { font-weight: 600; color: var(--text); background: var(--bg); padding: 2px 10px; border-radius: 8px; }
.vh-my-node { color: var(--text-secondary); }
.vh-my-tags { display: inline-flex; gap: 4px; }
.vh-tag {
    font-size: 11px; padding: 1px 8px; border-radius: 8px;
    background: var(--primary-light); color: var(--primary); font-weight: 500;
}
.vh-my-expire { color: var(--text-tertiary); }
.vh-my-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vh-my-extra { font-size: 12px; color: var(--text-secondary); }
.vh-my-expired { font-size: 12px; color: var(--danger); font-weight: 500; }
.vh-my-actions {
    display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
    align-items: flex-end; justify-content: center; min-width: 110px;
}
.vh-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.vh-action:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.vh-action.primary {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(37, 99, 235, .2);
}
.vh-action.primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
.vh-pending-hint { font-size: 12px; color: var(--text-tertiary); font-style: italic; }
@media (max-width: 640px) {
    .vh-my-item { flex-direction: column; gap: 14px; padding: 18px 16px; }
    .vh-my-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; align-items: flex-start; }
}

/* 钱包卡片 */
.wallet-balance-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
    border-radius: 20px; color: #fff; padding: 32px; margin-bottom: 20px;
    box-shadow: 0 12px 32px rgba(37, 99, 235, .25); position: relative; overflow: hidden;
}
.wallet-balance-card::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
    border-radius: 50%; background: rgba(255,255,255,.07);
}
.wallet-balance-card .wallet-label { font-size: 13px; opacity: .85; font-weight: 500; }
.wallet-balance-card .wallet-amount { font-size: 42px; font-weight: 800; margin: 8px 0 6px; letter-spacing: -.02em; }
.wallet-balance-card .wallet-hint { font-size: 12px; opacity: .7; }

/* 充值金额选择 */
.wallet-amount-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.wallet-amount-grid .btn { min-width: 80px; }
.wallet-amount-grid .btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 余额明细列表 */
.wallet-record-list { display: grid; gap: 0; }
.wallet-record-item {
    display: flex; align-items: center; gap: 14px; padding: 13px 4px;
    border-bottom: 1px solid var(--border); transition: background var(--transition);
}
.wallet-record-item:last-child { border-bottom: none; }
.wallet-record-item:hover { background: var(--bg-hover); }
.wallet-record-info { flex: 1; min-width: 0; }
.wallet-record-title { font-size: 14px; font-weight: 600; color: var(--text); }
.wallet-record-time { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.wallet-record-amount { font-weight: 700; font-size: 15px; white-space: nowrap; }
.wallet-record-balance { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* 发票申请 */
.invoice-list { display: grid; gap: 0; }
.invoice-item {
    padding: 16px 0; border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.invoice-item:last-child { border-bottom: none; }
.invoice-item:hover { background: var(--bg-hover); margin: 0 -22px; padding: 16px 22px; border-radius: 8px; }
.inv-item-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inv-item-title { font-size: 15px; font-weight: 600; color: var(--text); }
.inv-type-tag {
    font-size: 11px; font-weight: 600; padding: 2px 8px;
    background: var(--primary-light); color: var(--primary); border-radius: 10px; margin-left: 6px;
}
.inv-item-meta {
    display: flex; gap: 16px; font-size: 13px; color: var(--text-secondary);
    margin-top: 8px; flex-wrap: wrap;
}
.inv-item-meta b { color: var(--text); font-weight: 700; }
.inv-item-remark { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.inv-reject-reason { font-size: 12px; color: var(--danger); margin-top: 6px; }
.inv-no { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* 我的服务 */
.my-services-list { display: flex; flex-direction: column; gap: 0; }
.svc-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.svc-item:last-child { border-bottom: none; }
.svc-item:hover { background: var(--bg-hover); margin: 0 -22px; padding: 14px 22px; border-radius: 8px; }
.svc-icon { font-size: 28px; flex-shrink: 0; width: 40px; text-align: center; }
.svc-info { flex: 1; min-width: 0; }
.svc-name { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.svc-meta { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.svc-meta b { color: var(--text); font-weight: 600; }
.svc-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.svc-group-title {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    padding: 12px 0 4px; border-top: 1px solid var(--border);
    margin-top: 8px;
}
.inv-amount-preview {
    padding: 12px 16px; background: var(--primary-light); border-radius: 8px;
    font-size: 14px; color: var(--primary); margin-bottom: 16px;
}
.inv-amount-preview b { font-size: 18px; }
.invoice-type-toggle { display: flex; gap: 16px; }
.radio-label {
    display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer;
}
.radio-label input[type="radio"] { accent-color: var(--primary); }
.invoice-modal { max-width: 480px; }
.section-title-row {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}

/* 评论列表(会员中心) */
.my-comment-item {
    padding: 16px 0; border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.my-comment-item:last-child { border-bottom: none; }
.my-comment-item:hover { background: var(--bg-hover); margin: 0 -22px; padding: 16px 22px; border-radius: 8px; }
.my-comment-content { font-size: 14px; line-height: 1.7; color: #475569; }
.my-comment-meta {
    font-size: 12px; color: var(--text-secondary); margin-top: 8px;
    display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}

/* 状态标签 */
.status-tag {
    display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 10px; font-weight: 500;
}
.status-tag.pending { background: #fef3c7; color: #92400e; }
.status-tag.approved { background: #f0fdf4; color: #166534; }
.status-tag.spam { background: #fef2f2; color: #991b1b; }
.status-tag.trash { background: var(--bg); color: var(--text-secondary); }
.status-tag.draft { background: var(--bg); color: var(--text-secondary); }
.status-tag.danger { background: #fef2f2; color: var(--danger); }
.status-tag.processing { background: #eff6ff; color: #1d4ed8; }
.status-tag.done { background: #f0fdf4; color: #166534; }
.status-tag.rejected { background: #fef2f2; color: #991b1b; }

/* 认证页 */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px; }
.auth-card h1 { font-size: 22px; margin-bottom: 26px; text-align: center; font-weight: 700; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-secondary); }

/* ===== 虚拟主机购买页 ===== */
.vhost-page { margin: 0; }
.vhost-page .card, .vhost-page .modal, .vhost-page .form-control, .vhost-page .btn, .vhost-page .plan-card { max-width: none; }

/* Hero */
.vhost-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
    border-radius: 20px; padding: 46px 44px; color: #fff;
    position: relative; overflow: hidden; margin-bottom: 28px;
    box-shadow: 0 16px 40px rgba(30, 58, 138, .28);
}
.vhost-hero::before, .vhost-hero::after {
    content: ''; position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.vhost-hero::before { width: 300px; height: 300px; right: -80px; top: -120px; }
.vhost-hero::after { width: 200px; height: 200px; left: 42%; bottom: -110px; }
.vhost-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.vhost-hero-badge {
    display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
    padding: 4px 14px; border-radius: 20px; font-size: 12px; margin-bottom: 14px;
}
.vhost-hero-left h1 { font-size: 40px; font-weight: 800; letter-spacing: .01em; margin-bottom: 10px; }
.vhost-hero-left p { font-size: 15px; opacity: .85; margin-bottom: 18px; }
.vhost-hero-points { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.vhost-hero-points span { opacity: .95; }
.vhost-hero-right { display: flex; gap: 14px; }
.vhost-hero-stat {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px; padding: 12px 22px; text-align: center; backdrop-filter: blur(4px);
}
.vhost-hero-stat b { display: block; font-size: 26px; font-weight: 800; }
.vhost-hero-stat span { font-size: 12px; opacity: .8; }

/* 机房区域切换 */
.vhost-region-bar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.vhost-region-label { font-size: 14px; font-weight: 700; color: var(--text); }
.vhost-region-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.vhost-region-note-wrap { width: 100%; padding: 2px 0 0; }
.vhost-region-tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 10px 22px; border-radius: 12px; cursor: pointer;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all .18s;
}
.vhost-region-tab b { font-size: 14px; color: var(--text); }
.vhost-region-tab span { font-size: 11px; color: var(--text-secondary); }
.vhost-region-tab:hover { border-color: var(--primary); transform: translateY(-1px); }
.vhost-region-tab.active {
    background: linear-gradient(135deg, var(--primary), #0ea5e9); border-color: transparent; color: #fff;
    box-shadow: 0 6px 18px rgba(37,99,235,.28);
}
.vhost-region-tab.active b, .vhost-region-tab.active span { color: #fff; }
.vhost-region-note { font-size: 14px; font-weight: 600; color: var(--text-secondary); line-height: 1.6; padding: 6px 0; }
.vhost-region-note-wrap { padding: 4px 0 10px; }
.vhost-empty-tip { padding: 60px 20px; text-align: center; color: var(--text-secondary); font-size: 14px; width: 100%; }

/* 套餐格子(大气) */
.vhost-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-bottom: 24px; }
.vhost-plan-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
    padding: 26px 24px; display: flex; flex-direction: column; position: relative;
    transition: all .22s ease;
}
.vhost-plan-card:hover { border-color: var(--primary); box-shadow: 0 16px 36px rgba(37,99,235,.14); transform: translateY(-5px); }
.vhost-plan-card.disabled { opacity: .6; }
.vhost-plan-card.disabled:hover { transform: none; box-shadow: none; }
.vhost-plan-card.recommend { border-color: var(--primary); box-shadow: 0 12px 28px rgba(37,99,235,.16); }
.vhost-plan-card.recommend::before {
    content: '🔥 推荐'; position: absolute; top: -12px; right: 16px;
    background: linear-gradient(135deg, var(--primary), #0ea5e9); color: #fff;
    font-size: 11px; font-weight: 600; padding: 3px 12px; border-radius: 12px;
}
.vhost-plan-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.vhost-plan-name { font-size: 19px; font-weight: 800; color: var(--text); }
.vhost-plan-region { font-size: 12px; color: var(--text-secondary); background: var(--bg); border: 1px solid var(--border); padding: 2px 10px; border-radius: 12px; }
.vhost-plan-price { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.vhost-plan-price-row {
    display:flex; align-items:center; gap:8px; line-height:1.3;
}
.vhost-plan-price-row + .vhost-plan-price-row { margin-top: 4px; }
.vhost-upstream-label,
.vhost-agent-label {
    font-size: 11px; padding: 1px 6px; border-radius: 3px; flex-shrink: 0;
}
.vhost-upstream-label {
    color: var(--text-tertiary); border: 1px solid var(--border);
}
.vhost-upstream-price {
    font-size: 12px; color: var(--text-tertiary); text-decoration: line-through;
}
.vhost-agent-row { color: var(--text); }
.vhost-agent-row b {
    font-size: 28px; font-weight: 800; color: var(--text); margin-right: 2px;
}
.vhost-agent-label {
    color: var(--danger); border: 1px solid var(--danger);
    background: rgba(220, 38, 38, .05); font-weight: 700;
}
.vhost-cap { display: inline-block; font-size: 12px; color: var(--primary); background: var(--primary-light); padding: 3px 10px; border-radius: 8px; margin-bottom: 12px; }
.vhost-plan-feats { list-style: none; margin: 6px 0 18px; flex: 1; }
.vhost-plan-feats li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13.5px; color: var(--text); border-bottom: 1px dashed var(--border); }
.vhost-plan-feats li span { width: 20px; text-align: center; }
.vhost-plan-feats .vhost-plan-desc { color: var(--text-secondary); font-size: 12px; border-bottom: none; }
.vhost-plan-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.vhost-tag { font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 2px 10px; border-radius: 10px; }
.vhost-full-hint { font-size: 12px; color: var(--danger); margin-bottom: 10px; }
.vhost-buy-btn {
    width: 100%; padding: 12px 0; font-size: 14px; font-weight: 700; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #0ea5e9); color: #fff; border: none;
    transition: all .18s; cursor: pointer;
}
.vhost-buy-btn:hover { box-shadow: 0 8px 20px rgba(37,99,235,.3); }
.vhost-buy-btn:disabled { background: var(--border); color: var(--text-secondary); cursor: not-allowed; box-shadow: none; }

/* 图例 + 底部说明 */
.vhost-legend { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: var(--text-secondary); padding: 8px 0 26px; }
.vhost-footer-note { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; margin-top: 10px; }
.vhost-note-item { display: flex; gap: 12px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.vhost-note-item .ic { font-size: 24px; }
.vhost-note-item b { font-size: 14px; color: var(--text); }
.vhost-note-item p { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; line-height: 1.6; }

@media (max-width: 680px) {
    .vhost-hero { padding: 30px 20px; }
    .vhost-hero-left h1 { font-size: 28px; }
    .vhost-hero-inner { flex-direction: column; align-items: flex-start; }
    .vhost-plan-grid { grid-template-columns: 1fr; }
}

/* === 分类页 === */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat-card {
    display: block; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.cat-card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cat-card-name .badge-cat { margin-left: 6px; }
.cat-card-desc { font-size: 12px; color: var(--text-secondary); }
.cat-card-children {
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border);
    display: flex; flex-wrap: wrap; gap: 6px;
}
.cat-card-child {
    background: var(--bg); border-radius: 12px; padding: 2px 10px;
    font-size: 12px; color: var(--text-secondary);
}

/* === 认证页 === */
.auth-btn-full { width: 100%; }
.auth-remember-row {
    text-align: right; margin-top: 10px; font-size: 12.5px;
}
.auth-remember-label {
    color: var(--text-secondary); cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
}
.auth-optional { color: var(--text-secondary); font-weight: normal; }
.auth-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; }
.auth-done { text-align: center; }
.auth-done-icon { font-size: 44px; margin-bottom: 12px; }
.auth-done-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.auth-done-msg { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.auth-dev-link-box { display: none; margin: 12px 0; }
.auth-dev-link { font-size: 12px; word-break: break-all; }
.auth-done-back { margin-top: 8px; }

/* === 会员中心 === */
.section-title {
    font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text);
}
.section-title-lg { margin-bottom: 22px; }
.section-title-md { margin-bottom: 18px; }
.vip-value { font-size: 13px; font-weight: 600; }
.vip-hint { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.sub-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sub-note { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

/* 下载列表 */
.dl-grid { display: grid; gap: 10px; }
.dl-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
}
.dl-info { flex: 1; min-width: 0; }
.dl-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }

/* 钱包 */
.wallet-amt-input { max-width: 280px; }
.wallet-form-gap { margin-bottom: 16px; }
.wallet-card { margin-bottom: 18px; }

/* 支付弹窗 */
.pay-modal { max-width: 420px; text-align: center; }
.pay-modal-wide { max-width: 420px; }
.pay-icon { font-size: 48px; margin-bottom: 8px; }

/* 会员表单标题 */
.member-form-title { font-size: 16px; font-weight: 700; margin-bottom: 22px; color: var(--text); }
.pay-result-msg { color: var(--text-secondary); font-size: 13px; margin: 8px 0 20px; }
.pay-result-qr { margin: 0 auto 16px; text-align: center; display: none; }
.pay-qr-img { width: 220px; height: 220px; border: 1px solid var(--border); border-radius: 10px; }
.pay-qr-hint { color: var(--text-secondary); font-size: 12px; margin-top: 6px; }
.vhost-panel-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.vhost-panel-hint { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.renew-summary { font-size: 13px; color: var(--text-secondary); margin: 2px 0 14px; }
.renew-ways { display: flex; flex-direction: column; gap: 6px; }
.renew-qr { margin-top: 14px; text-align: center; display: none; }
.renew-qr-img { width: 200px; height: 200px; border-radius: 10px; border: 1px solid var(--border); }
.err-msg { color: var(--danger); font-size: 12px; }
.wallet-ways { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.wallet-qr { margin-top: 16px; display: none; text-align: center; }
.loading-hint { color: var(--text-secondary); font-size: 13px; }
.primary-text { color: var(--primary); }

/* 404页 */
.err-page { text-align: center; }
.err-code { font-size: 56px; font-weight: 800; color: var(--primary); }
.err-msg { color: var(--text-secondary); margin: 12px 0 24px; }

/* 评论关闭 */
.comment-closed {
    padding: 18px; text-align: center; color: var(--text-secondary);
    font-size: 13px; background: var(--bg-hover); border-radius: 8px;
}
.comment-disabled { color: var(--text-secondary); font-size: 13px; }

/* 项目分类 */
.software-related { margin-top: 24px; }
.software-related-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.software-related-list { list-style: none; }
.software-related-item {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; gap: 12px;
}
.software-related-link {
    color: var(--text); font-size: 14px; flex: 1; min-width: 0; word-break: break-all;
}
.software-related-date { color: var(--text-secondary); font-size: 12px; flex-shrink: 0; }

/* 侧栏 */
.sidebar-sub-list {
    margin: 4px 0 0 14px; border-left: 1px solid var(--border); padding-left: 10px;
}
.sidebar-empty { color: var(--text-secondary); }
.ad-footer-wrap { margin-bottom: 14px; }
.friend-empty { color: var(--text-secondary); font-size: 13px; }
