/* ============================================
   麦子甜 - 现代潮流型主题
   大胆 · 活力 · 年轻 · 创意
   ============================================ */

/* 默认主题 - 高级轻奢风 */
:root {
    /* 主色调 - 宝石蓝（高级感） */
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-deep: #1E40AF;
    
    /* 强调色 - 皇家紫（轻奢感） */
    --accent: #7C3AED;
    --accent-light: #8B5CF6;
    --accent-dark: #6D28D9;
    
    /* 辅助色 - 优雅色系 */
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --tertiary: #06B6D4;
    --tertiary-light: #22D3EE;
    
    /* 功能色 - 柔和醒目 */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* 金色系 - 轻奢点缀 */
    --gold: #F59E0B;
    --gold-light: #FBBF24;
    --gold-dark: #D97706;
    --rose: #EC4899;
    
    /* 背景色 - 深邃质感 */
    --bg-dark: #0C0C0E;
    --bg-dark-elevated: #121214;
    --bg-card: #18181B;
    --bg-card-elevated: #1F1F23;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-light: rgba(255, 255, 255, 0.04);
    --bg-hover: rgba(37, 99, 235, 0.06);
    
    /* 文字色 - 柔和对比 */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;
    --text-muted: #52525B;
    
    /* 边框 - 精致细腻 */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(37, 99, 235, 0.3);
    --border-accent: rgba(124, 58, 237, 0.2);
    
    /* 阴影 - 层次丰富 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
    
    /* 发光效果 - 高级质感 */
    --glow-primary: 0 0 30px rgba(37, 99, 235, 0.3), 0 0 60px rgba(37, 99, 235, 0.15);
    --glow-accent: 0 0 30px rgba(124, 58, 237, 0.3), 0 0 60px rgba(124, 58, 237, 0.15);
    --glow-gold: 0 0 30px rgba(245, 158, 11, 0.3), 0 0 60px rgba(245, 158, 11, 0.15);
}

/* 清爽主题 - 高级亮色 */
[data-theme="fresh"] {
    /* 主色调 - 宝石蓝 */
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-deep: #1E40AF;
    
    /* 强调色 - 皇家紫 */
    --accent: #7C3AED;
    --accent-light: #8B5CF6;
    --accent-dark: #6D28D9;
    
    /* 辅助色 */
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --tertiary: #06B6D4;
    --tertiary-light: #22D3EE;
    
    /* 背景色 - 纯净质感 */
    --bg-dark: #FFFFFF;
    --bg-dark-elevated: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-card-elevated: #F4F4F5;
    --bg-glass: rgba(37, 99, 235, 0.03);
    --bg-glass-light: rgba(37, 99, 235, 0.05);
    --bg-hover: rgba(37, 99, 235, 0.06);
    
    /* 文字色 */
    --text-primary: #18181B;
    --text-secondary: #3F3F46;
    --text-tertiary: #71717A;
    --text-muted: #A1A1AA;
    
    /* 边框 */
    --border-color: rgba(0, 0, 0, 0.06);
    --border-glow: rgba(37, 99, 235, 0.2);
    --border-accent: rgba(124, 58, 237, 0.15);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.1);
    
    /* 发光 */
    --glow-primary: 0 0 30px rgba(37, 99, 235, 0.15), 0 0 60px rgba(37, 99, 235, 0.08);
    --glow-accent: 0 0 30px rgba(124, 58, 237, 0.15), 0 0 60px rgba(124, 58, 237, 0.08);
    --glow-gold: 0 0 30px rgba(245, 158, 11, 0.15), 0 0 60px rgba(245, 158, 11, 0.08);
}

/* ============================================
   基础样式
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* 潮流背景 - 大色块渐变 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 120% 100% at 0% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 100% 120% at 100% 100%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 60% 60% at 0% 100%, rgba(236, 72, 153, 0.05) 0%, transparent 35%);
    pointer-events: none;
    z-index: -1;
    animation: bgFloat 25s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.92;
        transform: scale(1.015);
    }
}

[data-theme="fresh"] body::before {
    background: 
        radial-gradient(ellipse 120% 100% at 0% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 100% 120% at 100% 100%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(6, 182, 212, 0.03) 0%, transparent 40%),
        radial-gradient(ellipse 60% 60% at 0% 100%, rgba(236, 72, 153, 0.025) 0%, transparent 35%);
    animation: bgFloatFresh 20s ease-in-out infinite;
}

@keyframes bgFloatFresh {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.96;
        transform: scale(1.008);
    }
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

[data-theme="fresh"] .grid-bg {
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.watermark-item {
    position: absolute;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.2;
    white-space: nowrap;
    transform: rotate(-25deg);
    user-select: none;
    line-height: 1.6;
}

[data-theme="fresh"] .watermark-item {
    color: var(--text-tertiary);
    opacity: 0.15;
}

/* ============================================
   开关样式
   ============================================ */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: white;
}

.slider.round {
    border-radius: 26px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ============================================
   导航栏
   ============================================ */

.navbar {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

[data-theme="fresh"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar-content {
    max-width: 2600px;
    margin: 0 auto;
    padding: 0 16px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 0 20px;
        height: 72px;
        gap: 12px;
    }
    
    .logo {
        gap: 12px;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 0 16px;
        height: 68px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-subtitle {
        display: none;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.4);
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

[data-theme="fresh"] .logo-text {
    color: var(--primary);
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* 主题切换器 */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

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

.theme-btn.active {
    background: var(--primary);
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .user-menu {
        gap: 10px;
    }
    
    .theme-switcher {
        padding: 4px;
    }
    
    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .badge-vip {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .badge-vip span {
        display: none;
    }
    
    .user-info {
        gap: 8px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .user-name {
        display: none;
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .user-menu {
        gap: 8px;
    }
    
    .theme-switcher {
        padding: 3px;
    }
    
    .theme-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .badge-vip {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 17px;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .user-menu {
        gap: 6px;
    }
    
    .theme-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .badge-vip {
        padding: 4px 8px;
        font-size: 0;
    }
    
    .badge-vip i {
        font-size: 16px;
    }
    
    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
    
    .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    .user-menu {
        gap: 5px;
    }
    
    .theme-switcher {
        padding: 2px;
    }
    
    .theme-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 15px;
        border-radius: 8px;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.user-info:hover .user-avatar {
    transform: scale(1.05);
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 20px;
}

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

/* ============================================
   侧边栏
   ============================================ */

.main-container {
    width: 100%;
    display: flex;
    min-height: calc(100vh - 80px);
    padding: 0;
}

.sidebar {
    width: 260px;
    padding: 24px 16px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-dark-elevated);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
}

[data-theme="fresh"] .sidebar {
    background: #F8F9FA;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item i {
    font-size: 18px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.nav-sub-item {
    padding-left: 36px;
    font-size: 13px;
    gap: 10px;
}

.nav-sub-item i {
    font-size: 16px;
}

.nav-sub-item.active {
    background: var(--primary-light);
    color: white;
    padding: 10px 14px 10px 36px;
    font-size: 13px;
}

.nav-sub-item.active::before {
    width: 2px;
    height: 16px;
    background: var(--accent-light);
}

.nav-parent {
    cursor: pointer;
}

.nav-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.nav-parent.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-sub-nav {
    overflow: hidden;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

/* ============================================
   主内容区
   ============================================ */

.content {
    flex: 1;
    padding: 32px 24px;
    min-height: calc(100vh - 80px);
}

.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* ============================================
   卡片
   ============================================ */

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-glow);
}

[data-theme="fresh"] .card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="fresh"] .card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* ============================================
   功能卡片网格
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card:hover::before {
    opacity: 1;
}

[data-theme="fresh"] .feature-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="fresh"] .feature-card:hover {
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: white;
    transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-icon.purple {
    background: var(--primary);
}

.feature-icon.cyan {
    background: var(--accent);
}

.feature-icon.green {
    background: var(--success);
}

.feature-icon.pink {
    background: var(--secondary);
}

.feature-icon.orange {
    background: var(--warning);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   统计卡片
   ============================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.stat-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(40, 40, 60, 0.5) 100%);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(150%);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

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

[data-theme="fresh"] .stat-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

[data-theme="fresh"] .stat-card:hover {
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   按钮
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: 12px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   表单
   ============================================ */

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.required {
    color: var(--danger);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

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

.input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.input::placeholder {
    color: var(--text-muted);
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

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

/* ============================================
   表格
   ============================================ */

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-buttons .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-dark-elevated);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-dark-elevated);
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: var(--bg-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   徽章
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge-vip {
    background: var(--gold);
    color: #0A0A0B;
    border: none;
}

.badge-primary {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-color: rgba(0, 102, 255, 0.2);
}

.badge-success {
    background: rgba(0, 214, 143, 0.1);
    color: var(--success);
    border-color: rgba(0, 214, 143, 0.2);
}

.badge-danger {
    background: rgba(255, 59, 92, 0.1);
    color: var(--danger);
    border-color: rgba(255, 59, 92, 0.2);
}

.badge-warning {
    background: rgba(255, 214, 10, 0.1);
    color: var(--warning);
    border-color: rgba(255, 214, 10, 0.2);
}

/* ============================================
   登录页面
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-logo p {
    color: var(--text-muted);
    font-size: 15px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background: var(--bg-glass);
    padding: 8px;
    border-radius: 18px;
}

.tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.4s ease;
}

.tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.25);
}

.tab:hover:not(.active) {
    color: var(--text-primary);
}

/* ============================================
   提示框
   ============================================ */

.alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 16px;
    font-size: 15px;
    margin-bottom: 28px;
}

.alert-success {
    background: rgba(110, 231, 183, 0.08);
    color: var(--success);
    border: 1px solid rgba(110, 231, 183, 0.15);
}

.alert-danger {
    background: rgba(252, 165, 165, 0.08);
    color: var(--danger);
    border: 1px solid rgba(252, 165, 165, 0.15);
}

.alert-warning {
    background: rgba(252, 211, 77, 0.08);
    color: var(--warning);
    border: 1px solid rgba(252, 211, 77, 0.15);
}

/* ============================================
   加载动画
   ============================================ */

.loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 48px;
    color: var(--text-muted);
}

/* ============================================
   动画效果
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================
   结果展示
   ============================================ */

.result-box {
    margin-top: 28px;
    padding: 28px;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
    
    .content {
        padding: 28px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 0 20px;
        height: 72px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .user-name {
        display: none;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .card {
        padding: 28px;
    }
    
    .login-card {
        padding: 40px 28px;
    }
}

/* ============================================
   滚动条美化
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   文字选中效果
   ============================================ */

::selection {
    background: rgba(167, 139, 250, 0.25);
    color: var(--text-primary);
}

/* ============================================
   过渡动画
   ============================================ */

* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

/* ============================================
   文章复刻页面样式
   ============================================ */

.recreate-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}

.recreate-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.recreate-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-method-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.input-method-tab {
    flex: 1;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.input-method-tab:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.input-method-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
}

.input-method-content {
    display: none;
}

.input-method-content.active {
    display: block;
}

.input-group {
    display: flex;
    gap: 12px;
}

.input-group .input {
    flex: 1;
}

.article-preview {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
    min-height: 300px;
}

.preview-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* ============================================
   会员套餐卡片
   ============================================ */

.package-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 36px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.package-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 6px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.package-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.package-price {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.package-price span {
    font-size: 18px;
    font-weight: 400;
}

.package-duration {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin-bottom: 28px;
}

.package-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.package-features li i {
    color: var(--success);
}

/* ============================================
   支付成功页面
   ============================================ */

.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.success-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 64px;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(32px);
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 48px;
    color: white;
    box-shadow: 0 8px 32px rgba(110, 231, 183, 0.3);
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ============================================
   设置页面
   ============================================ */

.settings-section {
    margin-bottom: 32px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section h3 i {
    color: var(--primary);
}

.api-key-input {
    display: flex;
    gap: 12px;
}

.api-key-input .input {
    flex: 1;
}

.api-key-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.api-key-status.connected {
    color: var(--success);
}

.api-key-status.error {
    color: var(--danger);
}

/* ============================================
   搜索结果样式
   ============================================ */

.search-results {
    margin-top: 24px;
}

.search-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-item:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.search-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.search-item-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

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

/* ============================================
   分析报告样式
   ============================================ */

.analysis-report {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.report-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.report-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.report-section {
    margin-bottom: 24px;
}

.report-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.report-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.report-tag {
    padding: 8px 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ============================================
   工具提示
   ============================================ */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* ============================================
   空状态
   ============================================ */

.empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.empty-content i {
    font-size: 64px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 24px;
}

.empty-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-content p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 400px;
}

/* ============================================
   进度条
   ============================================ */

.progress-bar {
    height: 8px;
    background: var(--bg-glass);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ============================================
   文章内容样式
   ============================================ */

.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content h1,
.article-content h2,
.article-content h3 {
    color: var(--text-primary);
    margin: 24px 0 16px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   标签页
   ============================================ */

.tabs-container {
    margin-bottom: 32px;
}

.tabs-list {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.tab-item {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -1px;
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding-top: 24px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ============================================
   下拉菜单
   ============================================ */

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item i {
    font-size: 18px;
}

/* ============================================
   模态框
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    max-width: 560px;
    width: 90%;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

/* ============================================
   骨架屏
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-hover) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 12px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 200px;
    border-radius: 20px;
}

/* ============================================
   通知提示
   ============================================ */

.toast-container {
    position: fixed;
    top: 100px;
    right: 32px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: toastIn 0.4s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    font-size: 20px;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

.toast-message {
    font-size: 14px;
    color: var(--text-primary);
}

/* ============================================
   文章列表
   ============================================ */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-item {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-item:hover {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.article-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.article-item-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.article-item-date {
    font-size: 13px;
    color: var(--text-muted);
}

.article-item-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item-footer {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-item-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   分页
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   仪表盘统计
   ============================================ */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.purple {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.stat-icon.cyan {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, var(--success) 0%, var(--accent) 100%);
}

.stat-icon.gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #1a1a2e;
}

.stat-info h4 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   响应式补充
   ============================================ */

@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recreate-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .toast-container {
        right: 16px;
        left: 16px;
    }
    
    .toast {
        min-width: auto;
    }
}

/* ============================================
   页脚
   ============================================ */

.site-footer {
    background: var(--bg-dark-elevated);
    border-top: 1px solid var(--border-color);
    padding: 28px 16px;
    margin-top: auto;
}

[data-theme="fresh"] .site-footer {
    background: #FAFAFA;
}

.footer-content {
    max-width: 2600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-item:hover {
    color: var(--primary);
}

.footer-item i {
    font-size: 16px;
    color: var(--primary);
}

.footer-divider {
    width: 1px;
    height: 16px;
    background: var(--border-color);
}

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

.footer-slogan {
    font-style: italic;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-divider {
        display: none;
    }
    
    .site-footer {
        padding: 20px 16px;
    }
}

/* ============================================
   麦子甜社群页面
   ============================================ */

.top-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.top-post-item {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.top-post-item:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.top-post-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0A0A0B;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-post-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.top-post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.top-post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

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

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.post-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.post-card-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px 0;
    flex-wrap: wrap;
}

.badge-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
}

.post-card-body {
    padding: 16px 20px;
    flex: 1;
}

.post-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.post-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.post-card-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.post-stats i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .top-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card-footer {
        flex-wrap: wrap;
    }
    
    .post-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   帖子详情页
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb i {
    font-size: 16px;
}

.post-detail {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
}

.post-detail-header {
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
}

.post-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.post-detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.post-detail-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-link-section {
    padding: 20px 32px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
}

.post-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    text-decoration: none;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.post-link:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.post-link span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-detail-content {
    padding: 32px;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.post-detail-content p {
    margin-bottom: 16px;
}

.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4,
.post-detail-content h5,
.post-detail-content h6 {
    margin: 24px 0 16px;
    color: var(--text-primary);
}

.post-detail-content ul,
.post-detail-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.post-detail-content li {
    margin-bottom: 8px;
}

.post-attachments {
    padding: 24px 32px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-color);
}

.post-attachments h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.attachment-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.attachment-info i {
    font-size: 24px;
    color: var(--primary);
}

.attachment-details {
    flex: 1;
}

.attachment-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.attachment-size {
    font-size: 13px;
    color: var(--text-tertiary);
}

.post-detail-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid var(--border-color);
}

.comments-section {
    margin-bottom: 30px;
}

.comment-form {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.comment-form .form-group {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.comment-form .form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form .form-control::placeholder {
    color: var(--text-muted);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

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

.comment-time {
    font-size: 13px;
    color: var(--text-tertiary);
}

.comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.related-posts {
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.related-post-item {
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-post-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.related-post-item a {
    text-decoration: none;
    color: inherit;
}

.related-post-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

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

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
    .post-detail-header {
        padding: 24px 20px;
    }
    
    .post-detail-title {
        font-size: 22px;
    }
    
    .post-detail-content {
        padding: 24px 20px;
    }
    
    .post-attachments {
        padding: 20px;
    }
    
    .post-detail-actions {
        padding: 20px;
        flex-direction: column;
    }
    
    .post-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   会员学习进度管理页面
   ============================================ */

.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.recent-learning-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-learning-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.recent-learning-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.learning-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 8px;
}

.learning-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.learning-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.learning-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.learning-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-not_started {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
}

.status-in_progress {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.learning-progress {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.learning-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.learning-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-dark-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.category-progress-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-stats {
    font-size: 13px;
    color: var(--text-tertiary);
}

.category-percent {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.achievement-card {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-2px);
}

.achievement-card.unlocked {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #0A0A0B;
}

.achievement-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.achievement-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.achievement-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.achievement-progress .progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-dark-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.achievement-progress .progress-text {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.achievement-unlocked,
.achievement-locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.achievement-unlocked {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.achievement-locked {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
}

.weekly-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.weekly-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.weekly-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
}

.weekly-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.weekly-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.daily-stats {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.daily-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.daily-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.daily-bar {
    width: 40px;
    height: 120px;
    background: var(--bg-dark-elevated);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.daily-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 6px;
    transition: height 0.3s ease;
}

.daily-time {
    font-size: 11px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .progress-overview {
        grid-template-columns: 1fr;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .weekly-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .daily-stats {
        justify-content: flex-start;
    }
}

/* ============================================
   首页常用栏目和学习统计
   ============================================ */

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 16px;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-nav-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.quick-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.quick-nav-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.quick-nav-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-nav-count {
    font-size: 12px;
    color: var(--text-tertiary);
}

.learning-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.learning-stat-section {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.learning-stat-section:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.learning-stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.learning-stat-content {
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.learning-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.learning-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.learning-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.recent-learning-list-home {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.recent-learning-item-home {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.recent-learning-item-home:hover {
    background: var(--bg-hover);
}

.learning-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.learning-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.learning-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.learning-item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.learning-item-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.learning-item-progress {
    font-size: 12px;
    color: var(--text-secondary);
}

.learning-item-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.learning-item-progress-bar {
    width: 80px;
    height: 6px;
    background: var(--bg-dark-elevated);
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .learning-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-stat-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .recent-learning-item-home {
        flex-wrap: wrap;
    }
    
    .learning-item-progress-bar {
        width: 100%;
        order: 3;
    }
}

/* ============================================
   管理后台学习系统管理页面
   ============================================ */

.admin-tabs {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 12px;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-tab:hover {
    border-color: var(--primary-light);
    color: var(--text-primary);
}

.admin-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.admin-tab i {
    font-size: 20px;
}

.admin-tab span {
    font-size: 14px;
}

.study-time {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   知识仓库页面
   ============================================ */

.search-box {
    margin-bottom: 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.category-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: white;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.warehouse-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.warehouse-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.warehouse-card-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px 0;
    flex-wrap: wrap;
}

.badge-top {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0A0A0B;
    border: none;
}

.badge-essence {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    border: none;
}

.badge-file {
    background: linear-gradient(135deg, var(--tertiary) 0%, var(--tertiary-light) 100%);
    color: white;
    border: none;
}

.warehouse-card-body {
    padding: 16px 20px;
    flex: 1;
}

.warehouse-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.warehouse-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.meta-item i {
    font-size: 14px;
}

.warehouse-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.warehouse-card-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.pagination-link {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0 16px;
}

.pagination-link:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

.pagination-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-color: transparent;
    color: white;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .warehouse-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
    }
    
    .category-filter {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .warehouse-card-footer {
        flex-direction: column;
    }
    
    .warehouse-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
}
