/* ===== 全局变量 ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22222f;
    --accent: #ff6b35;
    --accent-glow: rgba(255, 107, 53, 0.3);
    --accent-2: #6c5ce7;
    --text-primary: #f0f0f5;
    --text-secondary: #9a9ab0;
    --text-muted: #5a5a70;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-primary);
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img { max-width: 100%; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
    backdrop-filter: blur(0);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

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

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
}

/* ===== 英雄区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0a 40%, #0a0a1f 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 107, 53, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(108, 92, 231, 0.08) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
    display: block;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--accent), #ff8f65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: bounce 2s ease infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 0.5rem auto 0;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

/* ===== 通用区块 ===== */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 0.8rem;
    padding: 0.3rem 1rem;
    background: rgba(255, 107, 53, 0.08);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ===== 游戏模式 ===== */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.mode-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
    background: var(--bg-card-hover);
}

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

.mode-card.featured {
    border-color: rgba(255, 107, 53, 0.3);
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.06), var(--bg-card));
}

.mode-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.mode-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.mode-name {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.mode-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.mode-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    padding: 0.2rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mode-link {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.mode-link:hover {
    color: #ff8f65;
}

/* ===== 武器库 ===== */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.weapon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition);
}

.weapon-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.weapon-type {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}

.weapon-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.weapon-stats {
    margin-bottom: 1rem;
}

.weapon-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 32px;
    flex-shrink: 0;
}

.stat-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), #ff8f65);
    transition: width 1s ease;
}

.weapon-tip {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

/* ===== 地图详解 ===== */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: grid;
    grid-template-columns: 200px 1fr;
}

.map-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.map-image {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
    min-height: 160px;
}

.map-difficulty {
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

.map-info {
    padding: 1.5rem;
}

.map-info h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.map-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.map-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-tags span {
    padding: 0.2rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ===== 最新攻略 ===== */
.guides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.guide-featured {
    grid-row: span 2;
}

.guide-image {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 1rem;
}

.guide-featured .guide-image {
    height: 240px;
}

.guide-category {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.guide-content {
    padding: 1.5rem;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.guide-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.guide-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
}

.guide-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.guide-featured .guide-content h3 {
    font-size: 1.4rem;
}

.guide-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.guide-link {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.guide-link:hover {
    color: #ff8f65;
}

/* ===== S9赛季 ===== */
.season-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.season-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
}

.season-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 53, 0.2);
}

.season-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.season-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.season-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.season-tips {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.season-tips h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-list {
    max-width: 600px;
    margin: 0 auto;
}

.tip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.tip:last-child {
    border-bottom: none;
}

.tip-num {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tip span:last-child {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== 页脚 ===== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .weapons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .season-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .modes-grid {
        grid-template-columns: 1fr;
    }
    .weapons-grid {
        grid-template-columns: 1fr;
    }
    .maps-grid {
        grid-template-columns: 1fr;
    }
    .map-card {
        grid-template-columns: 1fr;
    }
    .map-image {
        min-height: 120px;
    }
    .guides-grid {
        grid-template-columns: 1fr;
    }
    .guide-featured {
        grid-row: auto;
    }
    .season-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        gap: 1.5rem;
    }
    .stat-num {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
