/**
 * CouldInject WIKI - 主样式文件
 * wiki/css/wiki.css
 */

/* ==================== CSS 变量 ==================== */
:root {
    /* 主题色（可被PHP覆盖） */
    --theme-primary: #e84a7f;
    --theme-secondary: #6366f1;
    --theme-accent: #06b6d4;
    
    /* 基础色 */
    --primary: var(--theme-primary);
    --primary-dark: #c73a6a;
    --primary-light: #f472b6;
    --secondary: var(--theme-secondary);
    --accent: var(--theme-accent);
    
    /* 功能色 */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* 背景色 */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a24;
    --bg-input: #0d0d12;
    
    /* 边框色 */
    --border: #2a2a3a;
    --border-light: #3a3a4a;
    
    /* 文字色 */
    --text: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(232, 74, 127, 0.3);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 字体 */
    --font-main: 'Rajdhani', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Orbitron', var(--font-main);
    
    /* 布局 */
    --navbar-height: 70px;
    --sidebar-width: 280px;
    --container-max: 1400px;
}

/* ==================== 基础重置 ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 74, 127, 0.1);
}

ul,
ol {
    list-style: none;
}

/* ==================== 页面加载动画 ==================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.loader-logo span {
    color: var(--primary);
}

.loader-sub {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 6px;
    margin-bottom: 30px;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: loadingProgress 0.8s ease-out forwards;
}

@keyframes loadingProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* ==================== 节日特效容器 ==================== */
.seasonal-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* ==================== 导航栏 ==================== */
.wiki-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.wiki-navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.navbar-logo .logo-main {
    color: #fff;
}

.navbar-logo .logo-highlight {
    color: var(--primary);
}

.navbar-logo .logo-divider {
    color: var(--text-muted);
    margin: 0 8px;
    font-weight: 400;
}

.navbar-logo .logo-sub {
    color: var(--accent);
    font-size: 16px;
    letter-spacing: 3px;
}

/* 搜索栏 */
.navbar-search {
    flex: 1;
    max-width: 480px;
    height: 40px;      
    display: flex;     
    align-items: center;
}

.search-trigger {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-trigger:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.search-trigger i {
    font-size: 14px;
    color: var(--text-muted);
}

.search-trigger .search-placeholder {
    flex: 1;
    text-align: left;
}

.search-trigger kbd {
    padding: 4px 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    color: var(--text-muted);
}

/* 导航链接 */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(232, 74, 127, 0.1);
}

.nav-item i {
    font-size: 14px;
}

/* 右侧操作区 */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 语言切换 */
.lang-switch {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    color: #fff;
    background: var(--primary);
}

/* 通知按钮 */
.notification-wrapper {
    position: relative;
}

.notification-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 16px;
    transition: all var(--transition-fast);
}

.notification-btn:hover {
    color: #fff;
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 通知下拉 */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.notification-wrapper:hover .notification-dropdown,
.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.dropdown-header a {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.dropdown-header a:hover {
    text-decoration: underline;
}

.dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.dropdown-loading {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* 用户菜单 */
.user-wrapper {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.user-btn:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-btn i {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.user-wrapper:hover .user-btn i {
    transform: rotate(180deg);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.user-wrapper:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.dropdown-user-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-username {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.dropdown-role {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(232, 74, 127, 0.1);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

.dropdown-role.role-admin { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.dropdown-role.role-staff { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.dropdown-role.role-mod { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.dropdown-role.role-svip { color: #a855f7; background: rgba(168, 85, 247, 0.1); }
.dropdown-role.role-vip { color: #06b6d4; background: rgba(6, 182, 212, 0.1); }

.dropdown-user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-dark);
}

.user-stat {
    text-align: center;
}

.user-stat .stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.user-stat .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.dropdown-item .item-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--primary);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.dropdown-item .item-badge.warning {
    background: var(--warning);
}

.dropdown-item.text-danger {
    color: var(--danger);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* 登录按钮 */
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-fast);
}

.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
}

.mobile-nav-body {
    padding: 12px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item i {
    width: 20px;
    text-align: center;
}

.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}
/* ==================== 主内容区 ==================== */
.wiki-main {
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

/* ==================== Hero 区域 ==================== */
.wiki-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    overflow: hidden;
}

/* Hero 背景 */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(232, 74, 127, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at center bottom, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

/* 网格背景已移除 - 使用纯净渐变背景 */
.hero-grid {
    display: none;
}

/* 渐变光球 */
.hero-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    bottom: -10%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #a855f7, var(--primary));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* 粒子效果 - 优化为平滑自然的飘动 */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation: particleFloat 18s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* 不同粒子的变体样式 */
.particle:nth-child(odd) {
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-duration: 22s;
}

.particle:nth-child(3n) {
    width: 6px;
    height: 6px;
    animation-duration: 25s;
}

.particle:nth-child(5n) {
    width: 2px;
    height: 2px;
    animation-duration: 16s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
        transform: translateY(90vh) translateX(5px) scale(1);
    }
    25% {
        transform: translateY(65vh) translateX(-8px) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(40vh) translateX(10px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(15vh) translateX(-5px) scale(0.8);
        opacity: 0.4;
    }
    95% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-10vh) translateX(3px) scale(0.3);
        opacity: 0;
    }
}

/* Hero 内容 */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

/* Hero 徽章 - 增强版 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(232, 74, 127, 0.15), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(232, 74, 127, 0.3);
    border-radius: 30px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: badgePulse 3s ease-in-out infinite, fadeInDown 0.8s ease;
    backdrop-filter: blur(10px);
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(232, 74, 127, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(232, 74, 127, 0.4);
    }
}

.hero-badge i {
    font-size: 14px;
}

/* Hero 标题 - 增强版 */
.hero-title {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title .title-main {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(36px, 8vw, 64px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 0 40px rgba(232, 74, 127, 0.3);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 50%, var(--primary-light) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.hero-title .title-sub {
    display: block;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 1px;
    animation: subtitleFade 1s ease 0.3s both;
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        letter-spacing: 10px;
    }
    to {
        opacity: 1;
        letter-spacing: 1px;
    }
}

/* Hero 描述 */
.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    animation: fadeIn 0.8s ease 0.2s both;
}

/* Hero 统计 - 增强版 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stats .stat-item:hover {
    background: rgba(232, 74, 127, 0.08);
    border-color: rgba(232, 74, 127, 0.2);
    transform: translateY(-4px);
}

.hero-stats .stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.hero-stats .stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* Hero 按钮 - 增强版 */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(232, 74, 127, 0.5);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
    border-color: var(--primary);
    background: rgba(232, 74, 127, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(232, 74, 127, 0.2);
}

/* 滚动指示器 */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* 动画关键帧 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 通用 Section ==================== */
.wiki-section {
    padding: 80px 24px;
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Section 头部 */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-title-wrapper {
    flex: 1;
}

.section-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 视图切换 */
.view-toggle {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
    color: #fff;
    background: var(--primary);
}

.view-btn + .view-btn {
    border-left: 1px solid var(--border);
}

/* 创建按钮 */
.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-fast);
}

.btn-create:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

/* Section 底部 */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition);
}

.btn-view-all:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(232, 74, 127, 0.05);
}

.btn-view-all i {
    transition: transform var(--transition-fast);
}

.btn-view-all:hover i {
    transform: translateX(4px);
}

/* ==================== 游戏卡片网格 ==================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 游戏卡片 */
.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition);
    animation: cardFadeIn 0.6s ease forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(232, 74, 127, 0.1);
}

/* 游戏封面 */
.game-cover {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.game-card:hover .game-cover img {
    transform: scale(1.1);
}

.game-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-dark));
    font-size: 48px;
    color: var(--border-light);
}

.game-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
}

/* 游戏徽章 */
.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.game-badge.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.game-badge.new {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

/* 游戏信息 */
.game-info {
    position: relative;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-icon-wrapper {
    position: absolute;
    top: -28px;
    left: 20px;
}

.game-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 24px;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.game-card:hover .game-icon {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(232, 74, 127, 0.3);
}

.game-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.game-card:hover .game-name {
    color: var(--primary);
}

.game-name-en {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.game-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* 游戏统计 */
.game-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.game-stat i {
    font-size: 12px;
    color: var(--text-muted);
}

/* 悬停效果层 */
.game-hover-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 74, 127, 0.05), rgba(99, 102, 241, 0.05));
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.game-card:hover .game-hover-effect {
    opacity: 1;
}

/* ==================== 空状态 ==================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 32px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.empty-state.small {
    padding: 40px 20px;
}

.empty-state.small .empty-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.empty-state.small h3 {
    font-size: 16px;
}

.empty-state.mini {
    padding: 20px;
}

.empty-state.mini p {
    margin-bottom: 0;
    font-size: 13px;
}

/* 通用按钮 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}
/* ==================== 内容区域布局 ==================== */
.content-section {
    background: linear-gradient(to bottom, transparent, rgba(232, 74, 127, 0.02), transparent);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

/* 主内容区 */
.content-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 内容块 */
.content-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.block-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.block-title i {
    font-size: 18px;
    color: var(--primary);
}

.block-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.block-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.block-more:hover {
    color: var(--primary);
}

.block-more i {
    font-size: 12px;
    transition: transform var(--transition-fast);
}

.block-more:hover i {
    transform: translateX(4px);
}

/* ==================== 文章卡片网格 ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 24px;
}

/* 文章卡片 */
.article-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.article-link {
    display: block;
}

/* 文章封面 */
.article-cover {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-cover img {
    transform: scale(1.05);
}

/* 文章内容 */
.article-body {
    padding: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.article-game {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(232, 74, 127, 0.1);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
}

.article-game i {
    font-size: 10px;
}

.article-time {
    font-size: 12px;
    color: var(--text-muted);
}

.article-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.article-card:hover .article-title {
    color: var(--primary);
}

.article-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author span {
    font-size: 12px;
    color: var(--text-secondary);
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.article-stats i {
    font-size: 11px;
}

/* ==================== 更新列表 ==================== */
.updates-list {
    padding: 8px 0;
}

.update-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--transition);
}

.update-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.update-item:last-child {
    border-bottom: none;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 更新图标 */
.update-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

.update-icon.create {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.update-icon.edit {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
}

.update-icon.translate {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

/* 更新内容 */
.update-content {
    flex: 1;
    min-width: 0;
}

.update-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.update-title:hover {
    color: var(--primary);
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.update-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.update-user:hover {
    color: var(--primary);
}

.update-user img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.update-action {
    color: var(--text-muted);
}

.update-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.update-time i {
    font-size: 11px;
}

.update-summary {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 更新游戏标签 */
.update-game {
    flex-shrink: 0;
}

.game-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.game-tag i {
    font-size: 10px;
}

/* ==================== 侧边栏 ==================== */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--navbar-height) + 24px);
}

/* 侧边栏块 */
.sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.sidebar-title i {
    font-size: 14px;
    color: var(--primary);
}

.sidebar-body {
    padding: 16px 20px;
}

.sidebar-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.sidebar-more:hover {
    color: var(--primary);
}

.sidebar-more i {
    font-size: 11px;
    transition: transform var(--transition-fast);
}

.sidebar-more:hover i {
    transform: translateX(4px);
}

/* ==================== 贡献者列表 ==================== */
.contributors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.contributor-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.contributor-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-dark);
}

.contributor-rank.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
}

.contributor-rank.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
}

.contributor-rank.rank-3 {
    background: linear-gradient(135deg, #cd7c2f, #a16207);
    color: #fff;
}

.contributor-rank i {
    font-size: 10px;
}

.contributor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.contributor-info {
    flex: 1;
    min-width: 0;
}

.contributor-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contributor-points {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

.contributor-points i {
    font-size: 10px;
    color: #fbbf24;
}

.contributor-level {
    padding: 3px 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.contributor-level.level-1 { color: #94a3b8; }
.contributor-level.level-2 { color: #22c55e; }
.contributor-level.level-3 { color: #06b6d4; }
.contributor-level.level-4 { color: #a855f7; }
.contributor-level.level-5 { color: #fbbf24; }

/* ==================== 标签云 ==================== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tag-item:hover {
    border-color: var(--tag-color, var(--primary));
    color: var(--tag-color, var(--primary));
    background: rgba(232, 74, 127, 0.05);
}

.tag-item i {
    font-size: 10px;
    color: var(--tag-color, var(--text-muted));
}

.tag-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-count {
    padding: 2px 6px;
    background: var(--bg-card);
    border-radius: 10px;
    font-size: 10px;
    color: var(--text-muted);
}

/* ==================== 快速链接 ==================== */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.quick-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.quick-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.quick-link:hover i {
    color: var(--primary);
}

.quick-link.external i:last-child {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.5;
}

/* ==================== CTA 区块 ==================== */
.cta-block {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(232, 74, 127, 0.05), rgba(99, 102, 241, 0.05));
}

.cta-block .cta-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    font-size: 24px;
    color: #fff;
}

.cta-block .cta-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.cta-block .cta-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all var(--transition-fast);
}

.btn-cta:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

.cta-block .cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

/* 用户 CTA */
.cta-block.user-cta {
    text-align: left;
}

.cta-block.user-cta .cta-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.cta-block.user-cta .cta-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    font-size: 20px;
}

.cta-block.user-cta .cta-title-group {
    flex: 1;
}

.cta-block.user-cta .cta-title {
    margin-bottom: 2px;
}

.cta-block.user-cta .cta-level {
    font-size: 12px;
    color: var(--accent);
}

/* 我的统计网格 */
.my-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.my-stat {
    text-align: center;
    padding: 10px 4px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
}

.my-stat.highlight {
    background: rgba(232, 74, 127, 0.1);
}

.my-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.my-stat.highlight .my-stat-value {
    color: var(--primary);
}

.my-stat-label {
    font-size: 10px;
    color: var(--text-muted);
}

/* 等级进度条 */
.level-progress {
    margin-bottom: 16px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width var(--transition-slow);
}

.progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* CTA 操作按钮 */
.cta-actions {
    display: flex;
    gap: 10px;
}

.btn-cta-outline {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all var(--transition-fast);
}

.btn-cta-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cta-actions .btn-cta {
    flex: 1;
    width: auto;
    padding: 10px 16px;
    font-size: 13px;
}
/* ==================== 页脚 ==================== */
.wiki-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center top, rgba(232, 74, 127, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 60px 24px 30px;
    position: relative;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

/* 页脚品牌区 */
.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 16px;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 0.85;
}

.footer-logo .logo-main {
    color: #fff;
}

.footer-logo .logo-highlight {
    color: var(--primary);
}

.footer-logo .logo-divider {
    color: var(--text-muted);
    margin: 0 8px;
    font-weight: 400;
}

.footer-logo .logo-sub {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 2px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-desc-en {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(232, 74, 127, 0.1);
}

.social-link.discord:hover {
    border-color: #5865f2;
    background: rgba(88, 101, 242, 0.1);
    color: #5865f2;
}

.social-link.github:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.social-link.qq:hover {
    border-color: #12b7f5;
    background: rgba(18, 183, 245, 0.1);
    color: #12b7f5;
}

/* 页脚导航 */
.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-nav-title i {
    color: var(--primary);
    font-size: 12px;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-link {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-nav-link:hover {
    color: var(--primary);
}

.footer-nav-link i {
    margin-right: 8px;
    font-size: 12px;
}

/* 页脚底部 */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    flex-wrap: wrap;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.copyright-icon {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-link i {
    font-size: 11px;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ==================== 搜索模态框 ==================== */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    margin: 0 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(232, 74, 127, 0.1);
    transform: translateY(-20px) scale(0.95);
    transition: transform var(--transition);
    overflow: hidden;
}

.search-modal.active .search-modal-content {
    transform: translateY(0) scale(1);
}

/* 搜索输入区 */
.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.search-input-wrapper > i {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.search-close-btn:hover {
    border-color: var(--border-light);
    color: var(--text);
}

/* 搜索过滤器 */
.search-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.filter-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 4px;
}

.filter-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--border-light);
    color: var(--text);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 搜索结果 */
.search-results {
    max-height: 50vh;
    overflow-y: auto;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* 搜索占位符 */
.search-placeholder {
    padding: 50px 20px;
    text-align: center;
}

.search-placeholder i {
    font-size: 40px;
    color: var(--border-light);
    margin-bottom: 16px;
}

.search-placeholder h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.search-placeholder p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 搜索加载 */
.search-loading {
    padding: 50px 20px;
    text-align: center;
}

.search-loading .spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.search-loading p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 搜索结果分组 */
.search-section {
    padding: 8px 0;
}

.search-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 搜索结果项 */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(255, 255, 255, 0.03);
}

.result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.result-icon.game {
    color: var(--primary);
    background: rgba(232, 74, 127, 0.1);
    border-color: rgba(232, 74, 127, 0.2);
}

.result-icon.article {
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.result-icon.tag {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-title mark {
    background: rgba(232, 74, 127, 0.3);
    color: var(--primary-light);
    padding: 0 2px;
    border-radius: 2px;
}

.result-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.result-arrow {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
}

.search-result-item:hover .result-arrow {
    opacity: 1;
}

/* 搜索无结果 */
.search-empty {
    padding: 50px 20px;
    text-align: center;
}

.search-empty i {
    font-size: 40px;
    color: var(--border-light);
    margin-bottom: 16px;
}

.search-empty h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.search-empty p {
    font-size: 13px;
    color: var(--text-muted);
}

.search-empty a {
    color: var(--primary);
}

.search-empty a:hover {
    text-decoration: underline;
}

/* 搜索底部 */
.search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.search-tips {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-tip {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.search-tip kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 10px;
    color: var(--text-muted);
}

.search-advanced {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    transition: opacity var(--transition-fast);
}

.search-advanced:hover {
    opacity: 0.8;
}

.search-advanced i {
    font-size: 10px;
}

/* ==================== 返回顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(232, 74, 127, 0.1);
    box-shadow: var(--shadow-glow);
}

/* ==================== 通知提示 ==================== */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 20px);
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9998;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.toast.success .toast-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.toast.info .toast-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-muted);
}

.toast-close {
    padding: 4px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--text);
}

/* ==================== 工具提示 ==================== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==================== 加载状态 ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 20px;
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 160px;
}

/* ==================== 响应式设计 ==================== */

/* 大屏幕 */
@media (max-width: 1400px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕 */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }
    
    .footer-main {
        grid-template-columns: 1.2fr repeat(3, 1fr);
        gap: 32px;
    }
}

/* 平板 */
@media (max-width: 1024px) {
    :root {
        --navbar-height: 64px;
    }
    
    .navbar-search {
        display: none;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-nav {
        display: block;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

/* 小平板 */
@media (max-width: 768px) {
    .wiki-section {
        padding: 60px 16px;
    }
    
    .wiki-hero {
        min-height: 60vh;
        padding: 60px 16px;
    }
    
    .hero-title .title-main {
        font-size: 36px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .hero-stats .stat-number {
        font-size: 24px;
    }
    
    .hero-stats .stat-divider {
        height: 30px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .search-modal {
        padding: 80px 16px 16px;
    }
    
    .search-modal-content {
        max-height: calc(100vh - 100px);
    }
    
    .search-filters {
        flex-wrap: wrap;
    }
    
    .search-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-tips {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* 手机 */
@media (max-width: 480px) {
    :root {
        --navbar-height: 60px;
    }
    
    .navbar-container {
        padding: 0 16px;
    }
    
    .navbar-logo {
        font-size: 16px;
    }
    
    .navbar-logo .logo-divider,
    .navbar-logo .logo-sub {
        display: none;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-cover {
        height: 140px;
    }
    
    .hero-badge {
        font-size: 10px;
        padding: 6px 14px;
    }
    
    .hero-title .title-main {
        font-size: 28px;
    }
    
    .hero-title .title-sub {
        font-size: 14px;
    }
    
    .hero-desc {
        font-size: 14px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .block-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .update-item {
        padding: 14px 16px;
    }
    
    .update-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .my-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .toast-container {
        left: 16px;
        right: 16px;
    }
    
    .toast {
        width: 100%;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .wiki-navbar,
    .wiki-footer,
    .back-to-top,
    .search-modal,
    .toast-container,
    .hero-scroll-indicator {
        display: none !important;
    }
    
    .wiki-main {
        padding-top: 0;
    }
    
    .wiki-hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-bg {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    .game-card,
    .article-card,
    .sidebar-block {
        break-inside: avoid;
    }
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg-dark);
}

/* ==================== 选中文本样式 ==================== */
::selection {
    background: var(--primary);
    color: #fff;
}

::-moz-selection {
    background: var(--primary);
    color: #fff;
}

/* ==================== 焦点样式 ==================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ==================== 减少动画（无障碍） ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==================== 游戏页面样式 ==================== */
.game-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.game-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.game-hero-bg .hero-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-hero-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 50%, rgba(0,0,0,0.5) 100%);
}

.game-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
}

.game-hero-info {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 1.5rem 0;
}

.game-icon-large {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.game-hero-text {
    flex: 1;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.game-title-en {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.75rem;
}

.game-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 1rem;
}

.game-meta-stats {
    display: flex;
    gap: 2rem;
}

.meta-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-stat i {
    color: var(--primary);
}

.game-hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition);
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition);
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

/* ==================== 深色模式强制（已是深色） ==================== */
@media (prefers-color-scheme: light) {
    /* 保持深色主题，不做改变 */
}

/* ==================== 分区卡片样式 ==================== */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.section-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.section-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.section-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(232, 74, 127, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.section-card-content {
    flex: 1;
    min-width: 0;
}

.section-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.section-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-card-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.section-card-count i {
    margin-right: 0.25rem;
}

.section-card-arrow {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.section-card:hover .section-card-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ==================== 用户页面样式 ==================== */
.page-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title i {
    color: var(--primary);
}

/* 草稿列表 */
.drafts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.draft-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.draft-item:hover {
    border-color: var(--border-light);
}

.draft-content {
    flex: 1;
    min-width: 0;
}

.draft-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.draft-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.draft-actions {
    display: flex;
    gap: 0.5rem;
}

/* 徽章 */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge.new {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge.edit {
    background: rgba(99, 102, 241, 0.2);
    color: var(--secondary);
}

/* 按钮样式 */
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-sm:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

/* 只影响直接子元素的图标，不影响按钮内的图标 */
.empty-state > i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

/* 按钮内的图标保持正常大小 */
.empty-state .btn-primary i,
.empty-state .btn-secondary i,
.empty-state a i,
.empty-state button i {
    font-size: 0.875rem;
    color: inherit;
    margin-bottom: 0;
    display: inline;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 贡献时间线 */
.contributions-timeline {
    position: relative;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 1rem 0 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.timeline-icon.type-create {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.timeline-icon.type-edit {
    background: rgba(99, 102, 241, 0.2);
    color: var(--secondary);
}

.timeline-icon.type-translate {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent);
}

.timeline-content {
    flex: 1;
}

.timeline-header {
    margin-bottom: 0.5rem;
}

.action-type {
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.article-link {
    color: var(--primary);
    text-decoration: none;
}

.article-link:hover {
    text-decoration: underline;
}

.timeline-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-meta .points {
    color: var(--success);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 收藏页面布局 */
.favorites-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
}

.favorites-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.folder-item:hover,
.folder-item.active {
    background: var(--bg-card);
    color: var(--text);
}

.folder-item.active {
    color: var(--primary);
}

.folder-item .count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.favorites-content {
    min-height: 300px;
}

.folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.favorite-title a {
    color: var(--text);
    text-decoration: none;
}

.favorite-title a:hover {
    color: var(--primary);
}

.favorite-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.favorite-meta .game {
    margin-right: 1rem;
}

.favorite-actions {
    display: flex;
    gap: 0.5rem;
}

/* 设置页面布局 */
.settings-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.settings-nav .nav-item:hover,
.settings-nav .nav-item.active {
    background: var(--bg-card);
    color: var(--text);
}

.settings-nav .nav-item.active {
    color: var(--primary);
}

.settings-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h2 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.setting-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.setting-control select {
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* Toggle 开关 */
.toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: all var(--transition);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition);
}

.toggle input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background: #fff;
}

/* 通知页面 */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.notification-item.unread {
    border-left: 3px solid var(--primary);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.type-comment { color: var(--info); }
.notification-icon.type-like { color: var(--danger); }
.notification-icon.type-mention { color: var(--secondary); }
.notification-icon.type-review { color: var(--warning); }
.notification-icon.type-system { color: var(--text-muted); }

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.notification-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-link {
    color: var(--primary);
    padding: 0.5rem;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* 提示框 */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* 用户资料页面 */
.profile-page {
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    position: relative;
    margin-bottom: 2rem;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 0 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: -60px;
    position: relative;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
    margin-top: -60px;
}

.profile-details {
    flex: 1;
    padding: 1rem 0;
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-role {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.profile-joined {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-edit-profile {
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    margin-bottom: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.contributions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contribution-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.contribution-type {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.contribution-type.type-create { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.contribution-type.type-edit { background: rgba(99, 102, 241, 0.2); color: var(--secondary); }
.contribution-type.type-translate { background: rgba(6, 182, 212, 0.2); color: var(--accent); }

.contribution-title {
    flex: 1;
    color: var(--text);
    text-decoration: none;
}

.contribution-title:hover {
    color: var(--primary);
}

.contribution-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contribution-points {
    font-size: 0.75rem;
    color: var(--success);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ==================== 搜索页面样式 ==================== */
.search-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem;
}

.search-header {
    margin-bottom: 2rem;
}

.search-form-large {
    margin-bottom: 1rem;
}

.search-input-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.search-input-large i {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-input-large input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1.125rem;
    color: var(--text);
    outline: none;
}

.search-input-large input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-search:hover {
    background: var(--primary-dark);
}

.search-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.search-info strong {
    color: var(--primary);
}

.search-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

/* 搜索筛选侧边栏 - 仅用于搜索页面布局 */
.search-layout > .search-filters,
.search-page .search-sidebar .search-filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.filter-title {
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.filter-option:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.filter-option.active {
    background: rgba(232, 74, 127, 0.1);
    color: var(--primary);
}

.filter-option i {
    width: 18px;
    text-align: center;
}

.filter-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* 搜索结果列表 */
.search-results {
    min-height: 400px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.result-item:hover {
    border-color: var(--primary);
}

.result-link {
    display: block;
    padding: 1.25rem;
    text-decoration: none;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.result-game {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(232, 74, 127, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

.result-section {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
    transition: color var(--transition);
}

.result-item:hover .result-title {
    color: var(--primary);
}

.result-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.result-meta .meta-views i {
    margin-right: 0.25rem;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .game-hero {
        min-height: 300px;
        padding: 2rem 1rem;
    }

    .game-hero-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .game-meta-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .favorites-layout,
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-layout {
        grid-template-columns: 1fr;
    }

    .search-filters {
        order: 2;
    }

    .search-results {
        order: 1;
    }
}
