/* 红色沙漠 Wiki - 全局样式 */
:root {
    /* 红色沙漠主题色 */
    --primary: #dc2626;          /* 沙漠红 */
    --primary-light: #ef4444;
    --primary-dark: #991b1b;
    --secondary: #f59e0b;        /* 沙金 */
    --accent: #fbbf24;           /* 强调色 */
    
    /* 环境色 */
    --desert: #d97706;           /* 沙漠黄 */
    --sand: #fbbf24;             /* 沙子 */
    --blood: #991b1b;            /* 血红 */
    --sunset: #ea580c;           /* 日落橙 */
    
    /* 界面颜色 */
    --bg-dark: #0a0a0f;          /* 深色背景 */
    --bg-card: #111118;          /* 卡片背景 */
    --bg-light: #1a1a24;         /* 浅背景 */
    --bg-section: #151520;       /* 分区背景 */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: rgba(220, 38, 38, 0.2);
    
    /* 状态颜色 */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    background: linear-gradient(180deg, rgba(17, 17, 24, 0.98) 0%, rgba(17, 17, 24, 0.95) 100%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.navbar-brand:hover {
    color: var(--primary-light);
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.navbar-nav a:hover {
    color: var(--primary-light);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 30%, #1a1515 60%, #0a0a0f 100%);
    padding: 120px 2rem 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-red_desert {
    border-bottom: 1px solid var(--border);
}

.game-logo {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   主内容区 - 单栏布局
   ======================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   分区样式
   ======================================== */
.section {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.section h2 {
    margin-top: 0;
}

/* ========================================
   模块导航卡片
   ======================================== */
.module-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(220, 38, 38, 0.2);
}

.module-card h3 {
    font-size: 1rem;
    margin: 0.75rem 0 0.5rem;
    color: var(--text-primary);
}

.module-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   特色卡片
   ======================================== */
.feature-card {
    background: rgba(220, 38, 38, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.feature-card h4 {
    margin: 0 0 0.5rem;
    color: var(--primary-light);
}

.feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   角色卡片
   ======================================== */
.character-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.character-card h4 {
    margin: 0 0 0.5rem;
    color: var(--primary-light);
}

.character-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   热门攻略卡片
   ======================================== */
.guide-card {
    display: block;
    background: rgba(220, 38, 38, 0.05);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(220, 38, 38, 0.2);
    text-decoration: none;
    transition: all 0.2s;
}

.guide-card:hover {
    border-color: var(--primary);
    background: rgba(220, 38, 38, 0.1);
}

.guide-card h4 {
    margin: 0;
    color: var(--primary-light);
    font-size: 1rem;
}

.guide-card p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================================
   通用样式
   ======================================== */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

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

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hero {
        padding: 100px 1rem 40px;
    }
    
    .game-logo {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section {
        padding: 1.25rem;
    }
}

/* ========================================
   滚动条
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

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

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

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

.module-card, .section {
    animation: fadeIn 0.4s ease-out;
}
