@charset "UTF-8";
/*
Theme Name: bzxzku_com
Theme URI: https://www.bzxzku.com/
Version: 1.0
Author: 标准下载库
Author URI: https://www.bzxzku.com/
Description: 面向资源下载与内容展示站点的现代化 Typecho 主题。采用响应式布局，支持明暗主题切换；集成 SEO（站点名、关键词、描述）、自定义 LOGO 与 favicon、顶部菜单与二级分类导航、首页轮播与公告、可视化首页内容区块（分类文章流、加载更多）、文章页侧栏、打赏与版权说明等；可与聚合登录、邮件等扩展配合使用。由标准下载库（bzxzku.com）设计与维护。
*/

/**
 * bzxzku_com — Typecho 主题
 *
 * @package bzxzku_com
 * @author 标准下载库
 * @link https://www.bzxzku.com/
 * @version 1.0
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Light Theme Colors */
    --background-primary: #ffffff;
    --background-secondary: #f5f7fb;
    --background-tertiary: #eef2f7;
    --text-primary: #1f2328;
    --text-secondary: #4b5563;
    --text-tertiary: #9aa4b2;
    --border-color: #e6eaf0;
    --border-color-light: #eef2f7;
    
    /* Brand Colors */
    --primary-color: #1677ff;
    --primary-hover: #0f5ed7;
    --primary-light: rgba(22, 119, 255, 0.12);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* Badges */
    --badge-bg: #ff4d4f;
    --badge-fg: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Layout */
    --header-height: 60px;
    --top-menu-height: 44px;
    --sidebar-width: 300px;
    --container-max-width: 1200px;
    --content-max-width: 800px;
    --top-menu-link-max-width: 9rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 999px;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --background-primary: #1b1b1d;
    --background-secondary: #242526;
    --background-tertiary: #2c2d2f;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-tertiary: #6e7681;
    --border-color: #30363d;
    --border-color-light: #21262d;
    --primary-light: rgba(22, 119, 255, 0.18);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: calc(var(--header-height) + var(--top-menu-height));
}

/* ==================== B2-like Shared UI ==================== */
.b2-icon-btn{
    appearance:none;
    border: 1px solid var(--border-color);
    background: var(--background-primary);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: all var(--transition-fast);
}
.b2-icon-btn:hover{
    border-color: rgba(22,119,255,.45);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.b2-modal{ position: fixed; inset: 0; display:none; z-index: 9999; }
.b2-modal.is-open{ display:block; }
.b2-modal-mask{ position:absolute; inset:0; background: rgba(0,0,0,.45); }
.b2-modal-panel{
    position:absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 24px));
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow:hidden;
}
/* 头部搜索：轻遮罩（在 .header 内、顶栏下方） */
.header-search-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(15, 23, 42, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    pointer-events: none;
}
.header-search-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
[data-theme="dark"] .header-search-backdrop {
    background: rgba(0, 0, 0, 0.45);
}

/* 头部搜索：下拉面板（对齐搜索按钮右侧，类似资讯站） */
.header-search-wrap {
    position: relative;
    z-index: 5;
}
.header-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(400px, calc(100vw - 20px));
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}
.header-search-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.header-search-dropdown-panel {
    position: relative;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
[data-theme="dark"] .header-search-dropdown-panel {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-color);
}
.header-search-dropdown-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.header-search-dropdown-close:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: scale(1.05);
}
.header-search-dropdown-body {
    padding: 40px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.header-search-hint{
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-tertiary);
    padding-top: 2px;
}
/* 弹窗内：胶囊搜索条 + 右侧实心「搜索」按钮（参考资讯站） */
.header-search-dropdown .header-search-combo {
    width: 100%;
    display: flex;
    align-items: stretch;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(30, 115, 190, 0.38);
    background: var(--background-primary);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(30, 115, 190, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
[data-theme="dark"] .header-search-dropdown .header-search-combo {
    border-color: rgba(22, 119, 255, 0.45);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.header-search-dropdown .header-search-combo:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.2), 0 2px 8px rgba(22, 119, 255, 0.12);
}
.header-search-dropdown .header-search-combo .search-icon {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
}
[data-theme="dark"] .header-search-dropdown .header-search-combo .search-icon {
    color: var(--text-tertiary);
}
.header-search-form{
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: stretch;
    width: 100%;
}
.header-search-dropdown .header-search-input {
    flex: 1;
    min-width: 0;
    width: auto;
    border: none;
    border-radius: 0;
    padding: 10px 12px 10px 2.85rem;
    font-size: 15px;
    background: transparent;
    box-shadow: none;
    color: var(--text-primary);
}
.header-search-dropdown .header-search-input::placeholder {
    color: #9ca3af;
}
[data-theme="dark"] .header-search-dropdown .header-search-input::placeholder {
    color: var(--text-tertiary);
}
.header-search-dropdown .header-search-input:focus {
    width: auto;
    outline: none;
}
.header-search-dropdown .header-search-submit {
    flex-shrink: 0;
    align-self: stretch;
    border: none;
    border-radius: 0;
    margin: 3px;
    margin-left: 0;
    padding: 0 22px;
    min-width: 88px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.03em;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, #2b8ae8 0%, #1e73be 52%, #1a6bab 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    transition: filter var(--transition-fast), transform 0.12s ease, box-shadow var(--transition-fast);
}
.header-search-dropdown .header-search-submit:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(30, 115, 190, 0.35);
}
.header-search-dropdown .header-search-submit:active {
    transform: scale(0.98);
}
[data-theme="dark"] .header-search-dropdown .header-search-submit {
    background: linear-gradient(180deg, var(--primary-color) 0%, #0f5ed7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
/* 避免文件后部通用 .search-input:focus { width } 覆盖胶囊输入框 */
#header-search-input,
#header-search-input:focus {
    width: auto !important;
    max-width: 100%;
}
@media (max-width: 480px) {
    .header-search-dropdown {
        right: 0;
        width: min(100vw - 16px, 400px);
    }
    .header-search-dropdown-body {
        padding: 38px 12px 10px;
    }
}
.b2-modal-head{
    padding: 12px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--background-secondary);
}
.b2-modal-head--search-only{
    justify-content: flex-end;
    border-bottom: none;
    padding-bottom: 8px;
    background: transparent;
}
.b2-modal-head-spacer{ flex: 1; min-width: 0; }
.b2-modal-body{ padding: 12px 14px; display:flex; flex-direction:column; gap: 10px; }
.header-search-rate-tip{
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #cf1322;
}
.b2-quick-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--background-secondary);
    color: var(--text-primary);
}
.b2-quick-item:hover{ border-color: rgba(22,119,255,.45); background: var(--primary-light); }

/* ==================== Mobile Tabbar (B2-like) ==================== */
.mobile-tabbar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    display:none;
    z-index: 9998;
}
[data-theme="dark"] .mobile-tabbar{
    background: rgba(27,27,29,.78);
}
.mobile-tabbar-item{
    flex: 1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 2px;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    cursor:pointer;
    text-decoration:none;
    font: inherit;
}
.mobile-tabbar-item.is-active{
    color: var(--primary-color);
}
.mobile-tabbar-item.is-action .mobile-tabbar-icon{
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), #52c41a);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 8px 18px rgba(22,119,255,.22);
    margin-top: -22px;
}
.mobile-tabbar-icon svg{ width: 22px; height: 22px; display:block; }
.mobile-tabbar-text{ font-size: 12px; font-weight: 700; line-height: 1; }

@media (max-width: 900px){
    .mobile-tabbar{ display:flex; }
    body{ padding-bottom: 78px; }
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== Layout ==================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-wrapper {
    display: flex;
    margin-top: var(--spacing-md);
    min-height: calc(100vh - var(--header-height) - var(--spacing-xl));
}

.content-wrapper {
    flex: 1;
    min-width: 0;
    padding-right: var(--spacing-xl);
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--background-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* 顶栏内容叠在搜索遮罩之上，下拉层再抬高 */
.header .header-inner {
    position: relative;
    z-index: 2;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-md);
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.header-logo img {
    height: 32px;
    width: auto;
}

/* 顶级菜单紧跟站点标识左侧排列；搜索/用户操作整体靠右 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 0 1 auto;
    min-width: 0;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.current {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
    margin-left: auto;
}

/* ==================== Header User ==================== */
.header-user {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-fg);
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
}

.badge-dot {
    width: 10px;
    min-width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    transition: background var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
}

.login-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff;
}

.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.user-trigger:hover,
.header-user.is-open .user-trigger {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-avatar svg {
    width: 16px;
    height: 16px;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: inherit;
    flex-shrink: 0;
}

.user-caret svg {
    width: 16px;
    height: 16px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    border-radius: 12px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1200;
}

.header-user.is-open .user-dropdown {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

/* 左侧「图标 + 文案」与右侧角标统一结构，避免与行内 style 混用导致错位 */
.user-dropdown-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.user-dropdown-item-label {
    flex: 1;
    min-width: 0;
}

.user-dropdown-item .menu-ico{
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    color: var(--text-tertiary);
    flex-shrink: 0;
}
.user-dropdown-item .menu-ico svg{ width: 18px; height: 18px; display: block; }

.user-dropdown-item .badge {
    margin-left: 0;
    flex-shrink: 0;
}

.user-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.user-dropdown-item.is-vip{
    background: linear-gradient(90deg, rgba(255,77,79,.14), rgba(22,119,255,.12));
    border: 1px solid rgba(255,77,79,.20);
    color: var(--text-primary);
    font-weight: 900;
}
.user-dropdown-item.is-vip:hover{
    background: linear-gradient(90deg, rgba(255,77,79,.20), rgba(22,119,255,.16));
    color: var(--text-primary);
}
.user-dropdown-item.is-vip .badge{
    background: var(--badge-bg);
    color: var(--badge-fg);
    font-weight: 900;
}

.user-dropdown-item.is-danger {
    color: var(--danger-color);
}

.user-dropdown-item.is-danger:hover {
    background: rgba(220, 53, 69, 0.12);
    color: var(--danger-color);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 4px;
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-trigger{
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    height: 36px;
    padding-left: 40px;
    padding-right: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.search-trigger:hover{
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-input {
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 2.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--background-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 200px;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 280px;
}

.search-icon {
    position: absolute;
    left: var(--spacing-sm);
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--background-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm);
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-secondary);
    transition: all var(--transition-fast);
}

/* ==================== Hero Section ==================== */
.hero {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-primary) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Post Cards ==================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-tertiary);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.post-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-card-meta-item svg {
    width: 14px;
    height: 14px;
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--spacing-xl);
    padding: 0;
    list-style: none;
}

/* 处理 Typecho pageNav 输出的 ol/li 结构 */
.pagination ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-increment: none;
}

.pagination li::before {
    content: none;
}

.pagination a,
.pagination span,
.pagination li > a,
.pagination li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--background-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.pagination a:hover,
.pagination li > a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.pagination .current,
.pagination li > span.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
}

/* ==================== Sidebar Widgets ==================== */
.widget {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.widget-list a:hover {
    color: var(--primary-color);
}

/* ==================== Post Detail ==================== */
.post {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.post-header {
    margin-bottom: var(--spacing-xl);
}

.post-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta-item svg {
    width: 16px;
    height: 16px;
}

/* ==================== Post Content ==================== */
.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-primary);
    /* 避免部分环境缺省西文字体导致中文与符号显示异常 */
    font-family: var(--font-family), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

/* Post content collapse */
.post-content.is-collapsed{
    max-height:520px;
    overflow:hidden;
    position:relative;
}
.post-content.is-collapsed::after{
    content:'';
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:96px;
    pointer-events:none;
    background:linear-gradient(to bottom, rgba(248,250,252,0), var(--background-primary));
}
.post-collapse-toggle{
    margin-top:12px;
    text-align:center;
}
.post-collapse-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 18px;
    border-radius:999px;
    border:1px solid var(--primary-color);
    background:var(--primary-color);
    color:#fff;
    font-size:0.9rem;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

/* Netdisk download boxes */
.netdisk-box{
    margin-top:12px;
}
.netdisk-main{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    border-radius:14px;
    background:var(--background-secondary);
    border:1px solid var(--border-color);
}
.netdisk-left{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.netdisk-top{
    display:flex;
    align-items:center;
    gap:8px;
}
.netdisk-label{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:0.85rem;
    font-weight:600;
    color:var(--primary-color);
}
/* 不用 emoji：部分系统/字体会将 📦☁️🚀 显示为「?」或方框 */
.netdisk-label::before{
    content:'';
    display:inline-block;
    width:6px;
    height:6px;
    border-radius:50%;
    background:currentColor;
    flex-shrink:0;
    opacity:.9;
}
.netdisk-url{
    font-size:0.8rem;
    color:var(--text-tertiary);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.netdisk-status{
    margin-top:2px;
    font-size:0.78rem;
    color:var(--text-tertiary);
}
.netdisk-status.is-ok{ color:#16a34a; }
.netdisk-status.is-bad{ color:#dc2626; }
.netdisk-report-btn{
    margin-left:8px;
    padding:2px 8px;
    font-size:0.78rem;
    border-radius:999px;
    border:1px solid rgba(37,99,235,.4);
    background:rgba(37,99,235,.06);
    color:#2563eb;
    cursor:pointer;
}
.netdisk-report-btn.is-done{
    border-color:rgba(22,163,74,.4);
    color:#16a34a;
    background:rgba(22,163,74,.06);
}
.netdisk-btn{
    flex-shrink:0;
    padding:6px 14px;
    border-radius:999px;
    background:var(--primary-color);
    color:#fff;
    font-size:0.85rem;
    text-decoration:none !important;
    white-space:nowrap;
}
.netdisk-btn:hover{
    text-decoration:none !important;
}
.netdisk-count{
    margin-left:8px;
    font-size:0.8rem;
    color:var(--text-tertiary);
}
.netdisk-baidu .netdisk-label::before{ background:#2563eb; opacity:1; }
.netdisk-quark .netdisk-label::before{ background:#00a0e9; opacity:1; }

.post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* 文章页：点赞/收藏/分享/二维码与元信息同一行（跟在「回复」后） */
.post-meta > .post-toolbar--inline {
    margin-top: 0;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
}
.post-meta > .post-toolbar--inline .post-toolbar-actions {
    gap: 6px;
}
.post-meta > .post-toolbar--inline .icon-btn {
    width: 32px;
    height: 32px;
}

.llbbs-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.llbbs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.llbbs-badge-gold {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.35);
    color: #b45309;
}

.post-reply-btn {
    height: 38px;
    padding: 0 18px;
}

.post-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.post-toolbar-actions .icon-btn.copied {
    background: var(--success-color);
    border-color: var(--success-color);
    color: #ffffff;
}

.llbbs-login-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding: 12px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-primary);
    margin-bottom: var(--spacing-md);
}

.llbbs-login-tip-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.llbbs-login-tip-actions {
    display: inline-flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.comment-submit-btn-inline{
    padding: 0 14px;
    height: 32px;
    font-size: 0.85rem;
}

.comment-form-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.comment-input-row{
    display:flex;
    gap:var(--spacing-md);
    align-items:stretch;
}
.comment-input-row .comment-textarea{
    flex:1 1 auto;
    min-height:150px;
}
.comment-submit-btn-side{
    flex-shrink:0;
    align-self:stretch;
    min-width:180px;
    margin-top:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-sm);
}

@media (max-width: 640px) {
    .comment-input-row{
        flex-direction:column;
        gap:var(--spacing-sm);
    }
    .comment-submit-btn-side{
        width:100%;
        min-width:0;
        height:48px;
    }
}

/* ==================== LLBBS Author Card ==================== */
.llbbs-author-card {
    padding: 14px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.llbbs-author-top {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.llbbs-author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    flex-shrink: 0;
}

.llbbs-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.llbbs-author-info {
    min-width: 0;
}

.llbbs-author-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.llbbs-author-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.llbbs-role,
.llbbs-level,
.llbbs-exp {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
}

.llbbs-role {
    background: var(--primary-light);
    border-color: rgba(22, 119, 255, 0.25);
    color: var(--primary-color);
}

.llbbs-author-metrics,
.llbbs-author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.llbbs-author-stats {
    grid-template-columns: repeat(2, 1fr);
}

.llbbs-metric,
.llbbs-stat {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    text-align: center;
}

.llbbs-metric-num,
.llbbs-stat-num {
    font-weight: 900;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.1;
}

.llbbs-metric-label,
.llbbs-stat-label {
    margin-top: 4px;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 700;
}

/* B2 vertical author card on post page */
.b2-author-vertical{
    padding:18px 18px 16px;
    background:var(--background-primary);
    border-radius:18px;
    box-shadow:0 14px 35px rgba(15,23,42,.08);
    position:relative;
    overflow:hidden;
}
.b2-author-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}
.b2-author-avatar{
    width:56px;
    height:56px;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
}
.b2-author-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.b2-author-main{
    display:flex;
    flex-direction:column;
    gap:4px;
}
.b2-author-name{
    font-weight:700;
    font-size:1rem;
    color:var(--text-primary);
}
.b2-author-role-line{
    display:flex;
    gap:6px;
    align-items:center;
}
.b2-author-role{
    font-size:0.75rem;
    padding:2px 8px;
    border-radius:999px;
    background:rgba(24,144,255,.08);
    color:#1890ff;
}
.b2-author-level{
    margin-bottom:14px;
}
.b2-level-badge{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:0.85rem;
    color:var(--text-secondary);
    margin-bottom:6px;
}
.b2-level-icon{
    width:22px;
    height:22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:#ffe7f1;
}
.b2-level-exp{
    font-size:0.75rem;
    color:var(--text-tertiary);
}
.b2-exp-bar{
    margin-top:4px;
    width:100%;
    height:6px;
    border-radius:999px;
    background:rgba(255,77,79,.08);
    overflow:hidden;
}
.b2-exp-inner{
    display:block;
    height:100%;
    background:linear-gradient(90deg,#ff9a9e,#ff4d4f);
}
.b2-author-stats{
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid var(--border-color);
}
.b2-stat-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:6px 10px;
    font-size:0.85rem;
    color:var(--text-secondary);
    background:#fff;
    border-radius:12px;
    border:1px solid rgba(148,163,184,.25);
    margin-top:6px;
}
.b2-stat-value{
    font-weight:700;
    color:var(--text-primary);
}
.b2-stat-icon{
    display:inline-block;
    margin-right:4px;
}
.b2-author-actions{
    margin-top:14px;
    display:flex;
    gap:8px;
}
.b2-author-btn{
    flex:1;
    text-align:center;
    padding:6px 0;
    font-size:0.85rem;
    border-radius:999px;
    border:1px solid var(--border-color);
    color:var(--text-secondary);
    text-decoration:none;
}
.b2-author-btn-primary{
    background:var(--primary-color);
    border-color:var(--primary-color);
    color:#fff;
}

.b2-author-downloads-card{
    margin-top:12px;
    padding:12px 16px;
    border-radius:16px;
    background:var(--background-secondary);
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.b2-author-downloads{
}
.b2-author-downloads-title{
    font-size:0.86rem;
    font-weight:700;
    color:var(--text-secondary);
    margin-bottom:4px;
}
.b2-author-downloads-list{
    max-height:96px;
    overflow:hidden;
}
.b2-author-downloads-item{
    font-size:0.8rem;
    color:var(--text-tertiary);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    line-height:1.8;
}
.b2-author-downloads-user{
    color:var(--text-primary);
    font-weight:700;
    margin-right:4px;
}

.b2-author-hot-list{
    list-style:none;
    padding:0;
    margin:4px 0 0;
    display:flex;
    flex-direction:column;
    gap:4px;
}
.b2-author-hot-item a{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:6px;
    font-size:0.82rem;
    color:var(--text-secondary);
    text-decoration:none;
}
.b2-author-hot-title{
    flex:1;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.b2-author-hot-meta{
    flex-shrink:0;
    font-size:0.78rem;
    color:var(--text-tertiary);
}

/* ==================== LLBBS Bottom Action Bar ==================== */
.llbbs-action-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.llbbs-action.is-active,
.llbbs-action-bar .llbbs-action.is-active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.llbbs-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.llbbs-action:hover {
    border-color: rgba(22, 119, 255, 0.35);
    background: var(--primary-light);
    color: var(--primary-color);
}

.llbbs-action.is-active {
    transform: translateY(-1px);
}

.llbbs-qr-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
}
.llbbs-qr-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.45);
}
.llbbs-qr-dialog{
    position:relative;
    z-index:1;
    width:280px;
    padding:16px 16px 14px;
    border-radius:18px;
    background:#fff;
    box-shadow:0 18px 45px rgba(15,23,42,.22);
    text-align:center;
}
.llbbs-qr-title{
    font-size:0.95rem;
    font-weight:800;
    margin-bottom:10px;
}
.llbbs-qr-body img{
    width:220px;
    height:220px;
    display:block;
    margin:0 auto 8px;
}
.llbbs-qr-close{
    margin-top:4px;
    padding:6px 16px;
    border-radius:999px;
    border:1px solid var(--border-color);
    background:var(--background-secondary);
    font-size:0.85rem;
    cursor:pointer;
}

.llbbs-share-body{
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    justify-content:space-between;
    margin-top:4px;
}
.llbbs-share-btn{
    padding:10px;
    width:52px;
    height:52px;
    border-radius:999px;
    border:1px solid var(--border-color);
    background:var(--background-secondary);
    font-size:0; /* 隐藏文字，只显示图标 */
    cursor:pointer;
}
.llbbs-share-btn::before{
    display:inline-block;
    font-size:1.1rem;
}
.llbbs-share-btn[data-share="qq"]::before{
    content:'Q';
}
.llbbs-share-btn[data-share="weibo"]::before{
    content:'微';
}
.llbbs-share-btn[data-share="facebook"]::before{
    content:'f';
}
.llbbs-share-btn[data-share="twitter"]::before{
    content:'t';
}
.llbbs-share-btn[data-share="copy"]::before{
    content:'L';
    font-size: 1rem;
    font-weight: 800;
}

.llbbs-share-close{
    position:absolute;
    top:8px;
    right:10px;
    margin-top:0;
    padding:0;
    width:26px;
    height:26px;
    border-radius:999px;
    line-height:24px;
    font-size:0.9rem;
}

/* ==================== VIP ==================== */
.vip-name{
    color:#ff4d4f !important;
    font-weight:900;
}

/* ==================== VIP Page ==================== */
.vip-hero{
    border:1px solid var(--border-color);
    border-radius:16px;
    padding:18px 18px;
    background: linear-gradient(135deg, rgba(255,77,79,.10), rgba(22,119,255,.10));
}
.vip-hero-title{
    font-size:1.3rem;
    font-weight:1000;
    letter-spacing:.2px;
}
.vip-hero-sub{
    margin-top:8px;
    color:var(--text-secondary);
    line-height:1.7;
}
.vip-perks{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:12px;
    margin-top:12px;
}
.vip-perk{
    border:1px solid var(--border-color);
    border-radius:14px;
    padding:12px 12px;
    background: var(--background-primary);
}
.vip-perk-title{
    font-weight:900;
    display:flex;
    align-items:center;
    gap:10px;
}
.vip-perk-ico{
    width:28px;height:28px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: var(--primary-light);
    color: var(--primary-color);
    flex-shrink:0;
}
.vip-perk-desc{ margin-top:8px; color:var(--text-tertiary); font-size:.92rem; line-height:1.7; }
.vip-packs{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:12px;
}
.vip-pack{
    border:1px solid var(--border-color);
    border-radius:16px;
    padding:14px 14px;
    background: var(--background-primary);
}
.vip-pack.is-hot{
    border-color: rgba(255,77,79,.35);
    box-shadow: 0 12px 26px rgba(255,77,79,.10);
}
.vip-pack-top{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.vip-pack-title{ font-weight:1000; }
.vip-pack-price{ font-weight:1000; color: var(--primary-color); font-size:1.2rem; }
.vip-pack-meta{ margin-top:8px; color: var(--text-tertiary); font-size:.92rem; }
.vip-pack--clickable{
    cursor:pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    outline:none;
}
.vip-pack--clickable:hover{
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(22,119,255,.12);
    transform: translateY(-2px);
}
.vip-pack--clickable:focus-visible{
    box-shadow: 0 0 0 3px var(--primary-light);
}
.vip-pack-hint{
    margin-top:14px;
    font-size:.85rem;
    color: var(--text-tertiary);
    font-weight:600;
}
.vip-pack-actions{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }
.vip-pay-modal{
    position:fixed;
    inset:0;
    z-index:5000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:16px;
    box-sizing:border-box;
}
.vip-pay-modal.vip-pay-modal--open{
    display:flex !important;
}
.vip-pay-modal__backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.45);
    cursor:pointer;
}
.vip-pay-modal__panel{
    position:relative;
    z-index:1;
    width:100%;
    max-width:420px;
    border-radius:16px;
    border:1px solid var(--border-color);
    background: var(--background-primary);
    padding:22px 20px 18px;
    box-shadow: var(--shadow-lg);
}
.vip-pay-modal__close{
    position:absolute;
    top:10px;
    right:12px;
    width:36px;
    height:36px;
    border:none;
    border-radius:999px;
    background: var(--background-secondary);
    color: var(--text-secondary);
    font-size:1.4rem;
    line-height:1;
    cursor:pointer;
}
.vip-pay-modal__title{ margin:0 36px 8px 0; font-size:1.15rem; font-weight:900; }
.vip-pay-modal__price{ margin:0 0 6px; color: var(--text-secondary); }
.vip-pay-modal__tip{ margin:0 0 14px; font-size:.88rem; color: var(--text-tertiary); }
.vip-pay-modal__actions{ display:flex; flex-direction:column; gap:10px; }
.vip-pay-modal__form{ margin:0; }
.vip-pay-modal__submit{ width:100%; height:42px; justify-content:center; }
.vip-methods{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:12px;
}
.vip-method{
    border:1px solid var(--border-color);
    border-radius:16px;
    padding:14px 14px;
    background: var(--background-primary);
}
.vip-method-title{ font-weight:1000; display:flex; align-items:center; gap:10px; }
.vip-method-desc{ margin-top:8px; color:var(--text-tertiary); font-size:.92rem; line-height:1.7; }
.vip-badge{
    display:inline-flex; align-items:center; justify-content:center;
    height:22px; padding:0 10px;
    border-radius:999px;
    background: rgba(255,77,79,.12);
    border:1px solid rgba(255,77,79,.20);
    color:#ff4d4f;
    font-weight:1000;
    font-size:.78rem;
}
@media (max-width: 900px){
    .vip-perks,.vip-packs,.vip-methods{ grid-template-columns: 1fr; }
}

/* ==================== Checkin Page / LLBBS User Center ==================== */
/* 用户中心由插件渲染，不输出主题侧栏；主区铺满 */
.main-wrapper.llbbs-no-sidebar .content-wrapper {
    padding-right: 0;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
/* 个人中心整体大气风格 */
.llbbs-user-center {
    padding-top: 4px;
    padding-bottom: var(--spacing-xl);
}
.llbbs-user-center .llbbs-uc,
.llbbs-user-center .b2-uc { max-width: 1200px; margin: 0 auto; }
.llbbs-user-center .llbbs-profile-header {
    padding: 20px 22px;
    border-radius: 18px;
    margin-bottom: 16px;
}
.llbbs-user-center .llbbs-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
}
.llbbs-user-center .llbbs-profile-name { font-size: 1.5rem; }
.llbbs-user-center .llbbs-profile-cards {
    gap: 14px;
    margin-top: 16px;
}
.llbbs-user-center .llbbs-profile-card {
    padding: 16px 14px;
    border-radius: 16px;
}
.llbbs-user-center .llbbs-profile-card .num { font-size: 1.35rem; }
.llbbs-user-center .llbbs-profile-card .label { font-size: 0.8rem; }
.llbbs-user-center .b2-uc-aside { padding-right: 20px; }
.llbbs-user-center .b2-uc-link {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
}
.llbbs-user-center .checkin-hero {
    padding: 22px 26px;
    border-radius: 18px;
    margin-bottom: 18px;
}
.llbbs-user-center .checkin-daily-card {
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 18px;
}
.llbbs-user-center .checkin-side-card {
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 16px;
}
.checkin-layout{
    max-width: none;
    width: 100%;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: clamp(16px, 2.2vw, 28px);
    align-items: start;
}
.checkin-main{}
.checkin-side{}
.checkin-hero{
    border-radius:16px;
    padding:18px 22px;
    background:linear-gradient(135deg, rgba(22,119,255,.08), rgba(99,102,241,.08));
    margin-bottom:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}
.checkin-hero-title{
    font-size:1.2rem;
    font-weight:900;
}
.checkin-hero-sub{
    margin-top:4px;
    color:var(--text-secondary);
    font-size:.9rem;
}
.checkin-hero-icon{
    width:40px;
    height:40px;
    border-radius:14px;
    background:rgba(22,119,255,.16);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#1677ff;
    flex-shrink:0;
}
.checkin-hero-icon svg{
    width:22px;
    height:22px;
}
.checkin-daily-card{
    border-radius:16px;
    border:1px solid var(--border-color);
    background:var(--background-primary);
    padding:16px;
    margin-bottom:14px;
}
.checkin-daily-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}
.checkin-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    border-radius:999px;
    background:var(--background-secondary);
    font-size:.8rem;
    color:var(--text-secondary);
}
.checkin-reward-tags{
    display:flex;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap;
    font-size:.82rem;
    color:var(--text-tertiary);
}
.checkin-reward-tags span{
    padding:3px 8px;
    border-radius:999px;
    background:var(--background-secondary);
}
/* 合并原多枚标签：单行摘要，避免与下方「当前积分」卡片重复 */
.checkin-reward-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-top:12px;
    padding:10px 12px;
    border-radius:12px;
    background:var(--background-secondary);
    border:1px solid var(--border-color);
    font-size:.86rem;
    color:var(--text-secondary);
}
.checkin-reward-summary-main strong{
    color:var(--primary-color);
    font-weight:900;
}
.checkin-reward-summary-hint{
    font-size:.8rem;
    color:var(--text-tertiary);
}
.checkin-cards-row{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:12px;
    margin-top:16px;
}
.checkin-stat-card{
    border-radius:12px;
    border:1px solid var(--border-color);
    background:var(--background-secondary);
    padding:10px 12px;
    text-align:center;
}
.checkin-stat-card--status{
    border-color:rgba(22,119,255,.35);
    background:linear-gradient(180deg, rgba(22,119,255,.08), var(--background-secondary));
    box-shadow:0 1px 0 rgba(22,119,255,.12);
}
.checkin-stat-label{
    font-size:.8rem;
    color:var(--text-tertiary);
}
.checkin-stat-num{
    margin-top:4px;
    font-weight:900;
    font-size:1rem;
}
.checkin-stat-num--status{
    font-size:1.05rem;
    color:var(--primary-color);
}
.checkin-records{
    border-radius:16px;
    border:1px solid var(--border-color);
    background:var(--background-primary);
    margin-top:14px;
}
.checkin-records-header{
    display:flex;
    align-items:center;
    gap:14px;
    padding:10px 14px;
    border-bottom:1px solid var(--border-color);
}
.checkin-records-tab{
    padding:4px 10px;
    border-radius:999px;
    font-size:.82rem;
    color:var(--text-secondary);
    cursor:pointer;
}
.checkin-records-tab.is-active{
    background:var(--primary-light);
    color:var(--primary-color);
}
.checkin-records-body{
    padding:12px 14px 14px;
}
.checkin-records-tip{
    margin:0;
    font-size:.86rem;
    color:var(--text-secondary);
    line-height:1.6;
}
.checkin-records-link{
    color:var(--primary-color);
    font-weight:700;
    text-decoration:none;
}
.checkin-records-link:hover{
    text-decoration:underline;
}
/* 签到日历 */
.checkin-calendar{ }
.checkin-calendar-month{ font-size:.9rem; color:var(--text-secondary); margin-bottom:8px; font-weight:700; }
.checkin-calendar-weekdays{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; margin-bottom:6px; text-align:center; font-size:.7rem; color:var(--text-tertiary); font-weight:700; }
.checkin-calendar-wd{ min-width:0; }
.checkin-calendar-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.checkin-calendar-day{ aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:800; color:var(--text-secondary); border-radius:8px; background:var(--background-secondary); min-width:0; }
.checkin-calendar-day.is-empty{ background:transparent; }
.checkin-calendar-day.is-signed{ background:linear-gradient(135deg,rgba(22,119,255,.2),rgba(99,102,241,.15)); color:var(--primary-color); border:1px solid rgba(22,119,255,.3); }
.checkin-calendar-day.is-today{ border:1.5px solid var(--primary-color); color:var(--primary-color); font-weight:900; box-shadow:0 0 0 1px rgba(22,119,255,.2); }
.checkin-calendar-day.is-signed.is-today{ background:linear-gradient(135deg,rgba(22,119,255,.35),rgba(99,102,241,.25)); }

.checkin-side-card{
    border-radius:16px;
    border:1px solid var(--border-color);
    background:var(--background-primary);
    padding:16px 16px;
    margin-bottom:16px;
}
.checkin-rank-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:6px 0;
}
.checkin-rank-left{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
}
.checkin-rank-num{
    width:22px;height:22px;
    border-radius:999px;
    background:var(--background-secondary);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:.78rem;
    color:var(--text-tertiary);
}
.checkin-rank-name{
    font-size:.88rem;
    color:var(--text-secondary);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.checkin-rank-score{
    font-size:.82rem;
    color:var(--text-tertiary);
}
.checkin-rule-item{
    font-size:.86rem;
    color:var(--text-secondary);
    margin-bottom:4px;
}
@media (max-width: 900px){
    .checkin-layout{ grid-template-columns: 1fr; }
    .checkin-hero{ flex-direction:row; align-items:center; }
    .checkin-cards-row{ grid-template-columns: repeat(2,1fr); }
}

.llbbs-action-icon {
    font-size: 1rem;
}

.llbbs-action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .llbbs-action-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== LLBBS Author/Profile Page ==================== */
.llbbs-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--background-primary);
    box-shadow: var(--shadow-sm);
}

.llbbs-profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.llbbs-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.llbbs-profile-avatar img { width:100%; height:100%; object-fit:cover; display:block; }

.llbbs-profile-meta { min-width:0; }
.llbbs-profile-name { font-size: 1.35rem; font-weight: 900; color: var(--text-primary); line-height:1.2; }
.llbbs-profile-level { margin-top: 6px; display:inline-flex; padding: 3px 10px; border-radius:999px; border:1px solid var(--border-color); background: var(--background-secondary); color: var(--text-secondary); font-weight:800; font-size:0.85rem; }
.llbbs-profile-join { margin-top:6px; color: var(--text-tertiary); font-size:0.85rem; font-weight:600; }

.llbbs-profile-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.llbbs-profile-card {
    padding: 12px 10px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    text-align: center;
}
.llbbs-profile-card .num { font-weight: 900; color: var(--text-primary); font-size: 1.15rem; line-height:1.1; }
.llbbs-profile-card .label { margin-top: 4px; color: var(--text-tertiary); font-size: 0.75rem; font-weight: 800; }

.llbbs-expbox {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-primary);
}
.llbbs-exp-row { display:flex; justify-content:space-between; color: var(--text-tertiary); font-weight:700; font-size:0.85rem; }
.llbbs-exp-bar { margin-top:10px; height:10px; border-radius:999px; background: var(--background-tertiary); border:1px solid var(--border-color); overflow:hidden; }
.llbbs-exp-fill { height:100%; background: var(--primary-color); width:0; }
.llbbs-exp-tip { margin-top: 10px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 600; }

.llbbs-profile-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.llbbs-profile-tabs .tab {
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.9rem;
}
.llbbs-profile-tabs .tab.is-active {
    background: var(--primary-light);
    border-color: rgba(22, 119, 255, 0.35);
    color: var(--primary-color);
}

.llbbs-profile-section {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-primary);
}

.llbbs-empty { color: var(--text-tertiary); padding: 12px 0; font-weight: 700; }
.llbbs-list { list-style: none; padding: 0; margin: 0; }
.llbbs-list li { display:flex; justify-content:space-between; gap: 10px; padding: 10px 0; border-bottom:1px dashed var(--border-color); }
.llbbs-list li:last-child { border-bottom: none; }
.llbbs-list a { color: var(--text-primary); font-weight: 700; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.llbbs-list span { color: var(--text-tertiary); font-size:0.85rem; font-weight:600; flex-shrink:0; }

.llbbs-feed { list-style:none; padding:0; margin:0; }
.llbbs-feed-item { padding: 10px 0; border-bottom:1px dashed var(--border-color); }
.llbbs-feed-item:last-child { border-bottom:none; }
.llbbs-feed-item .meta { color: var(--text-tertiary); font-size: 0.85rem; font-weight: 700; }
.llbbs-feed-item .meta a { color: var(--text-secondary); text-decoration:none; }
.llbbs-feed-item .text { margin-top: 6px; font-weight: 800; color: var(--text-primary); }
.llbbs-feed-item .text a { color: inherit; text-decoration:none; }
.llbbs-feed-item .tag { display:inline-flex; padding: 2px 8px; border-radius:999px; border:1px solid var(--border-color); background: var(--background-secondary); color: var(--text-secondary); font-size:0.75rem; font-weight:900; }

.llbbs-feed-card {
    margin-top: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
}
.llbbs-feed-card .card-title {
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.25;
}
.llbbs-feed-card .card-title a { color: inherit; text-decoration:none; }
.llbbs-feed-card .card-excerpt {
    margin-top: 8px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

/* ==================== B2-like User Center Layout ==================== */
.b2-uc-layout{
    display:flex;
    gap: 16px;
    align-items:flex-start;
}
.b2-uc-aside{
    width: 240px;
    flex-shrink:0;
    position: sticky;
    top: calc(var(--header-height) + 12px);
}
.b2-uc-menu{
    border: 1px solid var(--border-color);
    background: var(--background-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow:hidden;
}
.b2-uc-group{ padding: 10px 10px 12px; border-bottom: 1px solid var(--border-color); }
.b2-uc-group:last-child{ border-bottom:none; }
.b2-uc-group-title{
    font-weight: 900;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: .02em;
    padding: 0 6px 8px;
}
.b2-uc-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 10px 10px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 800;
    text-decoration:none;
}
.b2-uc-link:hover{ background: var(--background-secondary); color: var(--text-primary); }
.b2-uc-link.is-active{ background: var(--primary-light); color: var(--primary-color); }
.b2-uc-main{ flex:1; min-width:0; }

@media (max-width: 900px){
    .b2-uc-layout{ flex-direction: column; }
    .b2-uc-aside{ position: static; width: 100%; }
    .b2-uc-menu{ display:flex; gap: 6px; padding: 10px; overflow:auto; }
    .b2-uc-group{ border-bottom:none; padding: 0; display:flex; gap: 6px; }
    .b2-uc-group-title{ display:none; }
    .b2-uc-link{ white-space:nowrap; }
}

.llbbs-userlist { list-style:none; padding:0; margin:0; }
.llbbs-useritem { display:flex; align-items:center; justify-content:space-between; gap: 10px; padding: 10px 0; border-bottom:1px dashed var(--border-color); }
.llbbs-useritem:last-child { border-bottom:none; }
.llbbs-useritem .u { display:flex; align-items:center; gap: 10px; min-width:0; text-decoration:none; color: var(--text-primary); font-weight: 900; }
.llbbs-useritem .av { width: 34px; height: 34px; border-radius: 10px; overflow:hidden; border:1px solid var(--border-color); background: var(--background-secondary); flex-shrink:0; }
.llbbs-useritem .av img { width:100%; height:100%; object-fit:cover; display:block; }
.llbbs-useritem .nm { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.llbbs-useritem .tm { color: var(--text-tertiary); font-size:0.85rem; font-weight:700; flex-shrink:0; }

.llbbs-kv { display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.llbbs-kv .kv { display:flex; justify-content:space-between; padding: 10px 12px; border-radius: 12px; border:1px solid var(--border-color); background: var(--background-secondary); font-weight:800; }
.llbbs-kv .kv span { color: var(--text-secondary); }
.llbbs-kv .kv b { color: var(--text-primary); }

@media (max-width: 900px) {
    .llbbs-profile-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .llbbs-profile-header { flex-direction: column; align-items: flex-start; }
    .llbbs-profile-cards { grid-template-columns: repeat(2, 1fr); }
    .llbbs-kv { grid-template-columns: 1fr; }
}

.comments-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.comments-title-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.comments-title-count {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==================== Post Navigation ==================== */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.post-nav-prev,
.post-nav-next {
    flex: 1 1 0;
}

.post-nav-prev a,
.post-nav-next a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    min-width: 0;
}

.post-nav-prev a:hover,
.post-nav-next a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.post-nav-prev a::before {
    content: "上一篇：";
    margin-right: 0.25rem;
}

.post-nav-next a::before {
    content: "下一篇： ";
    margin-left: 0.25rem;
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

.llbbs-rand-box{
    margin-top: var(--spacing-2xl);
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: var(--background-secondary);
}
.llbbs-rand-title{
    margin:0 0 8px;
    font-size:0.98rem;
    font-weight:700;
    color:var(--text-secondary);
}
.llbbs-rand-list{
    list-style:none;
    margin:0;
    padding:0;
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap:12px;
    row-gap:6px;
}
.llbbs-rand-item a{
    display:block;
    font-size:0.9rem;
    color:var(--text-secondary);
    text-decoration:none;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    padding:4px 8px;
    border-radius:999px;
    background:rgba(148,163,184,.08);
}
.llbbs-rand-item a:hover{
    color:var(--primary-color);
    background:rgba(59,130,246,.08);
}

@media (max-width: 640px){
    .llbbs-rand-list{
        grid-template-columns: 1fr;
    }
}

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.post-content p {
    margin-bottom: var(--spacing-md);
}

.post-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content ul,
.post-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xl);
}

.post-content li {
    margin-bottom: var(--spacing-xs);
}

.post-content blockquote {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--primary-color);
    background-color: var(--background-secondary);
    border-radius: var(--radius-md);
}

.post-content code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 0.2em 0.4em;
    background-color: var(--background-tertiary);
    border-radius: var(--radius-sm);
}

.post-content pre {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-md);
    background-color: var(--background-tertiary);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.9375rem;
}

.post-content table {
    width: 100%;
    margin-bottom: var(--spacing-md);
    border-collapse: collapse;
    overflow: hidden;
}

.post-content th,
.post-content td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.post-content th {
    background-color: var(--background-secondary);
    font-weight: 600;
}

.post-content img {
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.post-content hr {
    margin: var(--spacing-xl) 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* ==================== Code Copy Button ==================== */
.code-block-wrapper {
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.25rem 0.5rem;
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.code-copy-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.code-copy-btn.copied {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: #ffffff;
}

/* ==================== Table of Contents ==================== */
.toc-container {
    position: sticky;
    top: calc(var(--header-height) + var(--spacing-lg));
    max-height: calc(100vh - var(--header-height) - var(--spacing-2xl));
    overflow-y: auto;
    padding: var(--spacing-lg);
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
}

.toc-item {
    margin-bottom: var(--spacing-xs);
}

.toc-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-left: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    background-color: var(--primary-light);
}

.toc-sub {
    margin-left: var(--spacing-md);
}

/* ==================== Comments ==================== */
.comments-section {
    margin-top: var(--spacing-lg);
    padding-top: 0;
    border-top: none;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

/* Pagination */
.comments-pagination-top,
.comments-pagination-bottom {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

/* Empty comments */
.no-comments,
.comments-closed {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
    color: var(--text-tertiary);
}

/* Comment List */
.comment-list {
    list-style: none;
}

/* ========================================
   NESTED COMMENT STRUCTURE
   ======================================== */

/* Base comment item */
.comment-item {
    position: relative;
}

/* ========================================
   LEVEL 0: Main Comments (Top Level)
   ======================================== */
.comment-item.comment-parent,
.comment-list > .comment-item {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

.comment-item.comment-parent .comment-wrapper,
.comment-list > .comment-item .comment-wrapper {
    padding-left: 0;
}

/* ========================================
   LEVEL 1: First Nested Comments (Green Theme)
   ======================================== */
.comment-children > .comment-list > .comment-item,
.comment-item.comment-child {
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-top: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    border-left: 4px solid #6ee7b7;
    border-radius: 0 4px 4px 0;
}

/* ========================================
   LEVEL 2: Second Nested Comments
   ======================================== */
.comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
.comment-children .comment-item.comment-child {
    margin-left: 1rem;
    border-left-color: #34d399;
}

/* ========================================
   LEVEL 3+: Deep Nested Comments
   ======================================== */
.comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
.comment-children .comment-children .comment-item {
    margin-left: 2rem;
    border-left-color: #059669;
}

.comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
.comment-children .comment-children .comment-children .comment-item {
    margin-left: 3rem;
    border-left-color: #047857;
}

/* ========================================
   COMMENT WRAPPER & CONTENT AREA
   ======================================== */
.comment-wrapper {
    width: 100%;
}

/* ========================================
   COMMENT HEADER (Single Row Layout)
   ======================================== */
.comment-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xs);
}

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.comment-floor {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.author-badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    background-color: var(--primary-color);
    color: #ffffff;
    margin-left: 4px;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-left: 0;
}

.comment-time:hover {
    color: var(--text-secondary);
}

.comment-reply-link {
    font-size: 0.75rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    border: 1px solid rgba(22, 119, 255, 0.25);
    display: inline-flex;
    align-items: center;
}

.comment-reply-link a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
}

.comment-reply-link:hover {
    background: rgba(22, 119, 255, 0.18);
    border-color: var(--primary-color);
}

/* ========================================
   COMMENT TEXT
   ======================================== */
.comment-text {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.comment-text p {
    margin-bottom: 0.25rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   AUTHOR COMMENT HIGHLIGHTING
   ======================================== */
.comment-by-author {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-color) !important;
}

/* ========================================
   COMMENT CHILDREN CONTAINER
   ======================================== */
.comment-children {
    margin-top: var(--spacing-xs);
}

.comment-children .comment-list {
    list-style: none;
}

/* ========================================
   COMMENT FORM
   ======================================== */
.comment-form-container {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: var(--background-secondary);
    border-radius: var(--radius-md);
}

.comment-form-hint {
    margin: 0 0 var(--spacing-sm);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-tertiary);
}

.comment-form-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.logged-in-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.logged-in-user a {
    color: var(--primary-color);
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.comment-input {
    width: 100%;
    padding: 0.5rem var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-input-full {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.comment-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    min-height: 140px;
    margin-bottom: 0;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08), var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.comment-textarea::placeholder {
    color: var(--text-tertiary);
}

.comment-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light), inset 0 1px 2px rgba(15, 23, 42, 0.08);
    background-color: var(--background-primary);
}

.comment-submit-btn {
    padding: 0.5rem var(--spacing-lg);
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.comment-submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light), var(--shadow-md);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }
    
    .comment-header {
        gap: var(--spacing-xs);
    }
    
    .comment-time {
        margin-left: 0;
    }
    
    /* Reduce indentation on mobile */
    .comment-children > .comment-list > .comment-item,
    .comment-item.comment-child {
        margin-left: 0;
    }
    
    .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
    .comment-children .comment-item.comment-child {
        margin-left: 0.5rem;
    }
    
    .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
    .comment-children .comment-children .comment-item {
        margin-left: 1rem;
    }
    
    .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
    .comment-children .comment-children .comment-children .comment-item {
        margin-left: 1.5rem;
    }
}

/* ========================================
   DARK THEME ADJUSTMENTS (Green Theme)
   ======================================== */
[data-theme="dark"] .comment-item.comment-parent,
[data-theme="dark"] .comment-list > .comment-item {
    background-color: var(--background-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .comment-children > .comment-list > .comment-item,
[data-theme="dark"] .comment-item.comment-child {
    border-left-color: #6ee7b7;
}

[data-theme="dark"] .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
[data-theme="dark"] .comment-children .comment-item.comment-child {
    border-left-color: #34d399;
}

[data-theme="dark"] .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
[data-theme="dark"] .comment-children .comment-children .comment-item {
    border-left-color: #059669;
}

[data-theme="dark"] .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item > .comment-children > .comment-list > .comment-item,
[data-theme="dark"] .comment-children .comment-children .comment-children .comment-item {
    border-left-color: #047857;
}

/* Comment Form */
.comment-form {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--background-secondary);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--background-primary);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:hover {
    background-color: var(--primary-hover);
}

/* ==================== Footer ==================== */
.footer {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--background-primary) 0%, var(--background-secondary) 55%, var(--background-secondary) 100%);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 15%, var(--border-color) 85%, transparent);
    opacity: 0.85;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

/* 页脚扩展区：考试倒计时 / 关于我们 / 友情链接（参考标准下载库类站点） */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0 var(--spacing-md);
    margin-top: 0;
    border-top: 1px solid var(--border-color-light);
    align-items: start;
}
.footer-widget {
    min-width: 0;
}
.footer-widget-title {
    margin: 0 0 var(--spacing-sm);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    width: 100%;
}
/* 考试倒计时：单框叠放 + 自动轮播（多条时） */
.footer-countdown-slider {
    position: relative;
    min-width: 0;
}
.footer-countdown-track {
    display: grid;
    grid-template-areas: 'stack';
    align-items: start;
    min-width: 0;
}
.footer-exam-slide {
    grid-area: stack;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    z-index: 0;
}
.footer-exam-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.footer-countdown-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.footer-countdown-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}
.footer-countdown-dot:hover {
    background: var(--text-tertiary);
    transform: scale(1.15);
}
.footer-countdown-dot.is-active {
    background: var(--primary-color);
    width: 22px;
    border-radius: 999px;
}
/* 考试卡片：顶栏品牌色 + 绿徽章 / 中间日期 / 底部浅绿引言（参考标准下载类站点） */
.footer-exam-card {
    --exam-head-bg: #4a77b5;
    --exam-badge-bg: #2ecc71;
    --exam-foot-bg: #f0f9f4;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.footer-exam-card:hover {
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.08);
}
.footer-exam-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: var(--exam-head-bg);
    color: #fff;
}
.footer-exam-card__head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.footer-exam-card__head-ico {
    display: flex;
    flex-shrink: 0;
    opacity: 0.95;
}
.footer-exam-card__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}
.footer-exam-card__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--exam-badge-bg);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.footer-exam-card__badge-ico {
    display: flex;
    opacity: 0.95;
}
.footer-exam-card__badge-num {
    font-variant-numeric: tabular-nums;
}
.footer-exam-card__badge-unit {
    font-weight: 800;
}
.footer-exam-card__badge--done {
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
}
.footer-exam-card__body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
}
.footer-exam-card--no-quote .footer-exam-card__body {
    border-bottom: none;
}
.footer-exam-card__body-ico {
    flex-shrink: 0;
    color: #64748b;
    opacity: 0.9;
}
.footer-exam-card__date-big {
    font-size: 1.28rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.03em;
}
.footer-exam-card__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--exam-foot-bg);
    min-width: 0;
}
.footer-exam-card__foot-ico {
    flex-shrink: 0;
    color: #16a34a;
    opacity: 0.9;
}
.footer-exam-card__quote {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #475569;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme='dark'] .footer-exam-card {
    border-color: var(--border-color);
    --exam-head-bg: #3d6194;
    --exam-foot-bg: rgba(22, 163, 74, 0.14);
}
[data-theme='dark'] .footer-exam-card__body {
    background: var(--background-secondary);
    border-bottom-color: var(--border-color);
}
[data-theme='dark'] .footer-exam-card__date-big {
    color: var(--text-primary);
}
[data-theme='dark'] .footer-exam-card__body-ico {
    color: var(--text-tertiary);
}
[data-theme='dark'] .footer-exam-card__quote {
    color: var(--text-secondary);
}
@media (prefers-reduced-motion: reduce) {
    .footer-exam-slide {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
}
.footer-about-body {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-secondary);
}
.footer-about-body p {
    margin: 0 0 0.75em;
}
.footer-about-body p:last-child {
    margin-bottom: 0;
}
.footer-friend-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    font-size: 0.875rem;
    line-height: 1.6;
}
.footer-friend-sep {
    color: var(--border-color);
    font-weight: 300;
    user-select: none;
    margin: 0 2px;
}
.footer-friend-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-friend-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-sm) 0 var(--spacing-md);
    }
}

.footer-bottom {
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color-light);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    line-height: 1.65;
    text-align: center;
}

.footer-copyright a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-copyright a:hover {
    color: var(--primary-color);
}

.footer-site-name {
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-copy-sep {
    display: inline-block;
    margin: 0 0.5em;
    color: var(--border-color);
    font-weight: 700;
}

.footer-icp {
    white-space: nowrap;
}

@media (min-width: 769px) {
    .footer-copyright {
        text-align: left;
    }
}

/* ==================== 404 Page ==================== */
.error-page {
    text-align: center;
    padding: var(--spacing-2xl);
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    margin: var(--spacing-lg) 0;
    color: var(--text-primary);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.error-home-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.error-home-link:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

/* ==================== Breadcrumbs ==================== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.breadcrumbs a {
    color: var(--text-secondary);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

/* ==================== Top Menu Bar ==================== */
.top-menu-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: var(--top-menu-height);
    background: transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.top-menu-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
    height: 100%;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.top-menu-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 0;
}

.top-menu-label {
    flex: 0 0 auto;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.top-menu-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    overflow-x: auto;
    scrollbar-width: none;
}

.top-menu-links::-webkit-scrollbar { display: none; }

.top-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    background: transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-size: 0.85rem;
    line-height: 1.2;
    max-width: none;
    overflow: visible;
    text-overflow: initial;
}

@media (max-width: 768px) {
    .top-menu-link {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
    }
}

.top-menu-link:hover {
    background: var(--background-tertiary);
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .top-menu-inner { gap: var(--spacing-md); }
    .top-menu-label { display: none; }
}

/* ==================== Tags ==================== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: rgba(37,99,235,.06);
    border: 1px solid rgba(37,99,235,.18);
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .content-wrapper {
        padding-right: var(--spacing-md);
    }
    
    .sidebar-wrapper {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .content-wrapper {
        padding-right: 0;
        order: 1;
    }
    
    .sidebar-wrapper {
        width: 100%;
        order: 2;
        margin-top: var(--spacing-xl);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(var(--header-height) + var(--top-menu-height));
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--background-primary);
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* 移动端：仅保留放大镜图标，点击打开下拉（与桌面同一套交互） */
    .header-search-wrap > .search-box {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    .header-search-wrap > .search-box .search-icon {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        pointer-events: none;
    }
    .header-search-wrap > .search-box .search-trigger {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-width: 0;
        padding: 0;
        font-size: 0;
        color: transparent;
        border-radius: var(--radius-md);
    }

    .user-name {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .toc-container {
        display: none;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.3s ease;
}


/* ==================== Top Banner ==================== */
.top-banner {
    width: 100%;
    background: #f0f2f5;
    text-align: center;
    overflow: hidden;
    max-height: 120px;
}
.top-banner img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    display: block;
}

/* ==================== Header Search ==================== */
.search-box form {
    display: flex;
    align-items: center;
    gap: 0;
}
.search-input {
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 180px;
    transition: all var(--transition-fast);
}
.search-input:focus { outline: none; border-color: var(--primary-color); width: 220px; }
.search-btn {
    padding: 6px 14px;
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.875rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}
.search-btn:hover { background: var(--primary-hover); }

/* ==================== Home Wrapper ==================== */
.home-wrapper {
    width: 100%;
}

/* ==================== Slider ==================== */
.slider-wrap {
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/5;
    background: #000;
    overflow: hidden;
}
.slide {
    display: none;
    width: 100%;
    height: 100%;
}
.slide.active { display: block; }
.slide a { display: block; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,.55));
    color: #fff;
    font-size: 0.9375rem;
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-prev:hover, .slider-next:hover { background: rgba(0,0,0,.6); }
.slider-dots {
    position: absolute;
    bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.slider-dot.active { background: #fff; }

/* ==================== Category Cards ==================== */
.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    color: var(--text-primary);
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.category-card-img {
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
}
.category-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}
.category-card:hover .category-card-img img { transform: scale(1.04); }
.category-card-name {
    padding: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
}

/* ==================== Home Body Layout ==================== */
.home-body {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}
.home-content {
    flex: 1;
    min-width: 0;
}

/* ==================== Home Block ==================== */
.home-block {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
}
.home-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 2px solid var(--primary-color);
    background: var(--background-secondary);
}
.home-block-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    line-height: 1.35;
}
.home-block-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 1.05em;
    flex-shrink: 0;
    align-self: center;
    background: var(--primary-color);
    border-radius: 2px;
}
.home-block-more {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}
.home-block-more:hover { color: var(--primary-color); }
.home-block-more-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.home-block-list {
    padding: 6px 8px;
}
.home-block-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--spacing-sm);
}
.home-block-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-bottom: 1px dashed var(--border-color);
    min-width: 0;
}
.home-block-item:last-child { border-bottom: none; }
.home-block-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.home-block-link:hover { color: var(--primary-color); }
.home-block-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}
.home-block-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-block-count {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-left: 6px;
}

/* ==================== Home Grid ==================== */
.home-grid{
    --home-grid-cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--home-grid-cols), minmax(0, 1fr));
    gap: 10px;
    padding: 12px 12px 14px;
}
.home-grid-card{
    display:block;
    padding: 12px 12px;
    border-radius: 14px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    min-width: 0;
}
.home-grid-card:hover{
    border-color: rgba(22, 119, 255, 0.45);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.home-grid-title{
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.home-grid-meta{
    margin-top: 8px;
    display:flex;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    align-items:center;
}
.home-grid-cat{
    color: var(--primary-color);
    background: rgba(22,119,255,.10);
    border: 1px solid rgba(22,119,255,.18);
    padding: 2px 8px;
    border-radius: 999px;
    max-width: 60%;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-grid-empty{
    grid-column: 1 / -1;
    padding: 12px;
}

/* ==================== Home Compact Grid（多列紧凑列表，参考「标准下载」） ==================== */
.home-block--compact .home-block-header {
    border-bottom: 2px solid var(--primary-color);
}
.home-block-footer--compact {
    padding: 10px 16px 12px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--background-primary);
}
.home-compact-loadmore {
    color: var(--primary-color);
}
.home-compact-loadmore:hover {
    text-decoration: underline;
}
.home-compact-grid {
    --home-compact-cols: 3;
    display: grid;
    grid-template-columns: repeat(var(--home-compact-cols), minmax(0, 1fr));
    column-gap: 1.75rem;
    row-gap: 0.5rem;
    padding: 14px 16px 16px;
}
.home-compact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 8px;
    color: inherit;
    transition: background var(--transition-fast);
}
.home-compact-item:hover {
    background: var(--background-secondary);
}
.home-compact-dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--primary-color);
    flex-shrink: 0;
}
.home-compact-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}
.home-compact-item:hover .home-compact-title {
    color: var(--primary-color);
}
.home-compact-age {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-left: 4px;
    white-space: nowrap;
}
.home-compact-empty,
.home-compact-grid .home-grid-empty {
    grid-column: 1 / -1;
    padding: 10px 2px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}
@media (max-width: 992px) {
    .home-compact-grid {
        --home-compact-cols: 2 !important;
        column-gap: 1.25rem;
    }
}
@media (max-width: 576px) {
    .home-compact-grid {
        --home-compact-cols: 1 !important;
        row-gap: 0.375rem;
    }
}

/* ==================== Home: Nav / HTML / Shop Blocks ==================== */
.home-html{ padding: 12px 14px; }
.home-nav{
    padding: 12px 14px 14px;
    display:grid;
    gap: 10px;
}
.home-nav-item{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-primary);
    min-width: 0;
}
.home-nav-item:hover{ border-color: rgba(22,119,255,.45); background: var(--primary-light); }
.home-nav-icon{ width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex-shrink:0; }
.home-nav-name{ font-weight: 800; font-size: 0.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-nav-empty{ grid-column: 1 / -1; padding: 8px 2px; }

.home-shop{
    padding: 12px 14px 14px;
    display:grid;
    gap: 10px;
}
.home-shop-card{
    display:flex;
    flex-direction:column;
    gap: 6px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
    color: var(--text-primary);
    min-width: 0;
    transition: all var(--transition-fast);
}
.home-shop-card:hover{ border-color: rgba(22,119,255,.45); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.home-shop-title{ font-weight: 900; font-size: 0.95rem; line-height: 1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.home-shop-desc{ color: var(--text-secondary); font-size: 0.85rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.home-shop-price{ margin-top:auto; color: var(--primary-color); font-weight: 900; font-size: 0.85rem; }
.home-shop-empty{ grid-column: 1 / -1; padding: 8px 2px; }

/* ==================== Post List (archive/search) ==================== */
.post-list-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}
.post-list-item:last-child { border-bottom: none; }
.post-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.post-list-title a { color: var(--text-primary); }
.post-list-title a:hover { color: var(--primary-color); }
.post-list-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.post-list-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Thread List (LLBBS-like) ==================== */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--spacing-xl);
}

.thread-item {
    display: flex;
    gap: var(--spacing-md);
    padding: 14px 16px;
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.thread-item:hover {
    border-color: rgba(22, 119, 255, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.thread-main {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 6px;
}

.thread-title a {
    color: var(--text-primary);
}

.thread-title a:hover {
    color: var(--primary-color);
}

.thread-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.thread-meta-sep {
    color: var(--border-color);
}

.thread-excerpt {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-thumb {
    flex-shrink: 0;
    width: 96px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--background-secondary);
}

.thread-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== Home Sidebar ==================== */
.home-body .sidebar-wrapper {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
    .category-cards { grid-template-columns: repeat(2, 1fr); }
    .home-body { flex-direction: column; }
    .home-body .sidebar-wrapper { width: 100%; }
}
@media (max-width: 600px) {
    .category-cards { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-sm); }
    .home-block-row { grid-template-columns: 1fr; }
    .slider { aspect-ratio: 16/7; }
    .slider-item img { height: 220px; }
    .slider-thumbs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-notices-item { height: 32px; }
}

/* ==================== Top Banner ==================== */
.top-banner {
    width: 100%;
    text-align: center;
    background: var(--background-secondary);
}
.top-banner img { width: 100%; max-height: 90px; object-fit: cover; display: block; }

/* ==================== Home Slider ==================== */
.home-slider {
    position: relative;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    background: var(--background-tertiary);
}
.home-slider .slider-stage{
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
}
.slider-track { position: relative; width: 100%; }
.slider-item { display: none; }
.slider-item.active { display: block; }
.slider-item img { width: 100%; height: 320px; object-fit: cover; display: block; }
.slider-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}
.slider-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
}
.slider-btn:hover { background: rgba(0,0,0,0.7); }
.slider-prev { left: var(--spacing-md); }
.slider-next { right: var(--spacing-md); }

.slider-thumbs{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.slider-thumb{
    appearance: none;
    border: 1px solid var(--border-color);
    background: var(--background-primary);
    border-radius: 12px;
    padding: 8px;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 0;
}
.slider-thumb:hover{
    border-color: rgba(22, 119, 255, 0.45);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.slider-thumb.active{
    border-color: rgba(22, 119, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(22,119,255,.12);
}
.slider-thumb-img{
    display:block;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--background-tertiary);
    border: 1px solid var(--border-color);
}
.slider-thumb-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
}
.slider-thumb-title{
    display:block;
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== Home Notices ==================== */
.home-notices {
    display: flex;
    align-items: stretch;
    gap: var(--spacing-sm);
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--background-tertiary);
    margin-bottom: var(--spacing-lg);
}

.home-notices-label {
    flex-shrink: 0;
    padding: 0 var(--spacing-sm);
    border-radius: 999px;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.home-notices-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.home-notices-track {
    transition: transform 450ms ease;
    will-change: transform;
}

.home-notices-item {
    height: 36px;
    display: flex;
    align-items: center;
}

.home-notices-item-content {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.home-notices-item-content p {
    margin: 0;
    display: inline;
}

.home-notices-item-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.home-notices-item-content a:hover {
    text-decoration: underline;
}

/* ==================== Category Cards ==================== */
.category-cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}
.category-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.category-card:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.category-card img { width: 20px; height: 20px; object-fit: cover; border-radius: 4px; }

/* ==================== Post List (Home) ==================== */
.post-list { display: flex; flex-direction: column; gap: var(--spacing-md); }
.post-list-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.post-list-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}
.post-list-thumb {
    flex-shrink: 0;
    width: 100px; height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-body { flex: 1; min-width: 0; }
.post-list-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-list-title a { color: var(--text-primary); }
.post-list-title a:hover { color: var(--primary-color); }
.post-list-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.post-list-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ==================== Archive Grid (4-col) ==================== */
.archive-header { margin-bottom: var(--spacing-lg); }
.archive-title { font-size: 1.75rem; font-weight: 700; margin-bottom: var(--spacing-xs); }
.archive-count { color: var(--text-tertiary); font-size: 0.9rem; }

.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}
.archive-card {
    background: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}
.archive-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}
.archive-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--background-tertiary);
}
.archive-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}
.archive-card:hover .archive-card-thumb img { transform: scale(1.05); }
.archive-card-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-tertiary);
}
.archive-card-thumb-placeholder svg { width: 40px; height: 40px; }
.archive-card-body { padding: var(--spacing-sm); flex: 1; display: flex; flex-direction: column; }
.archive-card-cats {
    font-size: 0.75rem;
    color: var(--primary-color);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.archive-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.archive-card-title a { color: var(--text-primary); }
.archive-card-title a:hover { color: var(--primary-color); }
.archive-card-excerpt {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0 0 var(--spacing-xs);
}
.archive-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: auto;
    padding-top: var(--spacing-xs);
    border-top: 1px solid var(--border-color);
}

/* ==================== Responsive additions ==================== */
@media (max-width: 1024px) {
    .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-item img { height: 200px; }
    .home-slider { margin-bottom: var(--spacing-md); }
    .post-list-thumb { width: 80px; height: 56px; }
}
@media (max-width: 480px) {
    .archive-grid { grid-template-columns: 1fr; }
}

/* ==================== 登录 / 注册页（必应壁纸 + 彩虹聚合登录） ==================== */
.auth-shell {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - var(--header-height) - var(--top-menu-height) - 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0 48px;
    margin: 0;
    background: linear-gradient(145deg, #5b7cfa 0%, #8b5cf6 45%, #a855f7 100%);
    background-image: var(--auth-bg-img, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.auth-shell__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
}
[data-theme='dark'] .auth-shell__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}
.auth-shell__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}
.auth-card {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    overflow: hidden;
    backdrop-filter: blur(12px);
}
[data-theme='dark'] .auth-card {
    background: rgba(30, 32, 36, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.auth-card__head {
    padding: 22px 22px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color-light);
    background: linear-gradient(180deg, rgba(22, 119, 255, 0.06), transparent);
}
.auth-card__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.auth-card__sub {
    margin: 6px 0 0;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}
.auth-card__body {
    padding: 20px 22px 22px;
}
.auth-form .auth-label {
    display: block;
    margin: 14px 0 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
}
.auth-form .auth-label:first-of-type {
    margin-top: 0;
}
.auth-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    background: var(--background-primary);
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.auth-form__row {
    margin-top: 12px;
}
.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    cursor: pointer;
}
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}
.auth-btn--primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.auth-btn--primary:hover {
    filter: brightness(1.06);
}
.auth-btn--block {
    width: 100%;
    margin-top: 18px;
    min-height: 46px;
}
.auth-btn--ghost {
    background: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.auth-btn--ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.auth-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.auth-card__links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.875rem;
}
.auth-card__links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.auth-card__links a:hover {
    text-decoration: underline;
}
.auth-oauth {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--border-color);
}
.auth-oauth__divider {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.auth-oauth__divider span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.94);
}
[data-theme='dark'] .auth-oauth__divider span {
    background: rgba(30, 32, 36, 0.92);
}
.auth-oauth__divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}
.auth-oauth__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.auth-oauth__btn {
    flex: 1;
    min-width: 108px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: filter 0.15s ease, transform 0.1s ease;
}
.auth-oauth__btn:hover {
    filter: brightness(1.08);
}
.auth-oauth__hint {
    margin: 12px 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-tertiary);
    text-align: center;
}
.auth-oauth__hint a {
    color: var(--primary-color);
}
@media (max-width: 480px) {
    .auth-shell {
        min-height: auto;
        padding: 16px 0 32px;
    }
    .auth-card__head,
    .auth-card__body {
        padding-left: 16px;
        padding-right: 16px;
    }
}
