/* ==================== 基础样式文件 ==================== */
/* 荣耀战魂信息站 - 全局通用样式 */
/* 包含：CSS变量、全局重置、导航栏、侧边栏、页脚、通用组件 */
/* 创建日期：2025-10-24 */

/* ==================== CSS 变量定义 ==================== */
:root {
    --gold-primary: #FFD700; /* 主要金色：用于标题、重要元素的前景色 */
    --gold-secondary: #C5A456; /* 次级金色：用于次要元素、边框和装饰 */
    --bg-dark: #1A1A1A; /* 深色背景色：用于卡片、区块背景 */
    --bg-gradient: linear-gradient(135deg, #0F0C08 0%, #2D2418 100%); /* 背景渐变色：用于页面主体背景 */
    --text-primary: #E8E0D5; /* 主要文本色：用于正文内容 */
    --text-secondary: #A89A7D; /* 次级文本色：用于次要文本、说明性文字 */
    --border-gold: rgba(255, 215, 0, 0.3); /* 金色边框色：用于装饰性边框 */
}

/* ==================== 全局样式重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* ==================== 页面主体样式 ==================== */
body {
    font-family: 'Microsoft YaHei', 'Source Han Sans', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ==================== 容器样式 ==================== */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 4rem;
}

/* ==================== 智能导航栏样式 ==================== */
.smart-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 21, 16, 0.98);
    border-bottom: 2px solid var(--gold-primary);
    padding: 0.8rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.smart-nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.8rem;
}

.nav-logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.nav-title {
    color: var(--gold-primary);
    font-size: 1.4rem;
    font-weight: bold;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-item {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
    text-align: right;
    transition: all 0.3s ease;
}

.nav-item:hover {
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ==================== 侧边栏样式 ==================== */
.quick-sidebar {
    position: fixed;
    left: -300px;
    bottom: 20px;
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.quick-sidebar.active {
    left: 20px;
}

.sidebar-scroll {
    background: rgba(40, 35, 30, 0.95);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    width: 280px;
    max-height: 60vh;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.sidebar-content {
    padding: 20px;
    color: var(--text-primary);
}

.sidebar-content h3 {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(255,215,0,0.15);
    color: var(--gold-primary);
    transform: translateX(5px);
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

.sidebar-toggle {
    position: absolute;
    right: -60px;
    bottom: 0;
    background: rgba(40, 35, 30, 0.9);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--gold-primary);
    color: #1a1a1a;
}

/* ==================== 页脚样式 ==================== */
.main-footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border-gold);
    padding-top: 3rem;
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== 通用组件样式 ==================== */

/* 一级标题样式 - 统一所有页面使用 */
.gold-text {
    color: var(--gold-primary);
    font-size: 3.2rem;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    letter-spacing: 2px;
    text-align: center;
    margin: 2rem 0 1rem 0;
    font-weight: bold;
}

/* 一级标题下方分隔线 */
.header-divider {
    width: 200px;
    height: 2px;
    background: var(--border-gold);
    margin: 1.5rem auto;
    opacity: 0.5;
}

/* 二级标题样式 - 统一所有页面使用 */
.section-title {
    text-align: center;
    margin: 4rem 0 2rem 0;
    position: relative;
    color: var(--gold-primary);
    font-size: 2rem;
    font-weight: 600;
}

.section-title span {
    display: inline-block;
    padding: 0 2rem;
    background: var(--bg-gradient);
    position: relative;
    z-index: 1;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-gold);
}

/* 内容区块样式 */
.content-block {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(30, 25, 20, 0.6);
    border-left: 3px solid var(--gold-primary);
}

.content-block h3 {
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

/* 通用表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid var(--border-gold);
}

table th {
    background: rgba(255,215,0,0.1);
    color: var(--gold-primary);
    font-weight: 600;
}

table td {
    background: rgba(30, 25, 20, 0.8);
}

table tr:hover td {
    background: rgba(255, 215, 0, 0.05);
}

/* 状态标签样式 */
.status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.status-tag.updating { 
    background: rgba(255,215,0,0.1); 
    color: var(--gold-primary); 
}

.status-tag.verified { 
    background: rgba(0,255,0,0.1); 
    color: #7CFC00; 
}

.status-tag.warning {
    background: rgba(255, 165, 0, 0.1);
    color: #FFA500;
}

.status-tag.community {
    background: rgba(0, 191, 255, 0.1);
    color: #00BFFF;
}

.status-tag.new {
    background: rgba(50, 205, 50, 0.1);
    color: #32CD32;
}

.status-tag.environment {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-secondary);
}

/* 公告标签样式 */
.notice-tag {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    color: var(--gold-secondary);
    font-size: 0.9rem;
}

/* ==================== 通用滚动条样式 ==================== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.8) rgba(40, 35, 30, 0.8);
}

*::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

*::-webkit-scrollbar-track {
    background: rgba(40, 35, 30, 0.8);
    border-radius: 6px;
    border: 1px solid var(--border-gold);
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.8) 0%,
        rgba(197, 164, 86, 0.8) 100%);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg,
        var(--gold-primary) 0%,
        var(--gold-secondary) 100%);
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

*::-webkit-scrollbar-thumb:active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

*::-webkit-scrollbar-corner {
    background: rgba(40, 35, 30, 0.8);
    border: 1px solid var(--border-gold);
}

/* ==================== 响应式设计 - 导航栏 ==================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.8rem;
    }
    .nav-item {
        font-size: 1rem;
    }
}

/* ==================== 响应式设计 - 容器 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
}
