/* ===================================
   剑网世界 官网样式
   武侠风格设计
   =================================== */

/* --- 基础变量 --- */
:root {
    /* 主色调 - 中国风 */
    --color-primary: #8B0000;      /* 朱红 */
    --color-primary-dark: #5c0000;
    --color-secondary: #1a1a2e;    /* 墨黑 */
    --color-accent: #d4af37;       /* 金色 */
    
    /* 背景色 */
    --bg-paper: #f5f0e6;           /* 宣纸白 */
    --bg-dark: #0f0f1a;
    --bg-ink: #1a1a2e;
    
    /* 文字色 */
    --text-primary: #2c2c2c;
    --text-secondary: #666;
    --text-light: #f5f5f5;
    --text-gold: #d4af37;
    
    /* 尺寸 */
    --container-width: 1200px;
    --header-height: 70px;
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-paper);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 水墨纹理背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 容器 --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   导航栏
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--color-primary);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-light);
    font-family: "Kaiti SC", "STKaiti", serif;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-light);
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-gold);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
}

/* 语言切换器 */
.lang-switcher {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--text-gold);
    border-color: var(--color-primary);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 15px;
    }
    
    .lang-buttons {
        justify-content: center;
    }
}

/* ===================================
   英雄区
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.2) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 水墨山峦背景 */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: 
        linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,160 Q150,100 300,160 T600,160 T900,160 T1200,160 L1200,320 L0,320 Z' fill='rgba(255,255,255,0.05)'/%3E%3Cpath d='M0,200 Q200,140 400,200 T800,200 T1200,200 L1200,320 L0,320 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: 80px;
    font-weight: bold;
    color: var(--text-light);
    font-family: "Kaiti SC", "STKaiti", serif;
    letter-spacing: 10px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--text-gold);
    font-family: "Kaiti SC", "STKaiti", serif;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: "Kaiti SC", "STKaiti", serif;
    letter-spacing: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(139, 0, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 12px 30px;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--text-light);
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

.scroll-hint span {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    margin: 0 auto;
}

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

/* ===================================
   通用区块样式
   =================================== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Kaiti SC", "STKaiti", serif;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 48px;
}

.section-desc {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-more {
    text-align: center;
    margin-top: 50px;
}

/* ===================================
   江湖情怀区
   =================================== */
.wuxia-spirit {
    background: linear-gradient(180deg, var(--bg-paper) 0%, #e8e0d0 100%);
}

.spirit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.spirit-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(139, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.spirit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.spirit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.spirit-card:hover::before {
    transform: scaleX(1);
}

.spirit-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.spirit-card h3 {
    font-size: 24px;
    color: var(--color-secondary);
    margin-bottom: 15px;
    font-family: "Kaiti SC", "STKaiti", serif;
}

.spirit-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   游戏特色
   =================================== */
.features-preview {
    background: var(--bg-dark);
    color: var(--text-light);
}

.features-preview .section-title {
    color: var(--text-light);
}

.features-preview .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--text-gold);
    margin-bottom: 15px;
    font-family: "Kaiti SC", "STKaiti", serif;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* ===================================
   江湖门派
   =================================== */
.factions-preview {
    background: linear-gradient(180deg, #e8e0d0 0%, var(--bg-paper) 100%);
}

.factions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.faction-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.faction-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

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

.faction-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2);
}

.faction-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.faction-card h3 {
    font-size: 26px;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-family: "Kaiti SC", "STKaiti", serif;
}

.faction-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* 门派特定颜色 */
.faction-card.gaibang:hover { border-color: #8B4513; }
.faction-card.shaolin:hover { border-color: #FFD700; }
.faction-card.emei:hover { border-color: #FF69B4; }
.faction-card.mingjiao:hover { border-color: #DC143C; }
.faction-card.wudang:hover { border-color: #4169E1; }

/* ===================================
   新闻公告
   =================================== */
.news-preview {
    background: var(--bg-paper);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.news-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(10px);
}

.news-item.notice:hover { border-left-color: #e74c3c; }
.news-item.event:hover { border-left-color: #f39c12; }
.news-item.guide:hover { border-left-color: #3498db; }

.news-tag {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    color: white;
    min-width: 60px;
    text-align: center;
}

.news-tag.notice { background: #e74c3c; }
.news-tag.event { background: #f39c12; }
.news-tag.guide { background: #3498db; }

.news-item h3 {
    flex: 1;
    font-size: 18px;
    color: var(--color-secondary);
}

.news-date {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===================================
   下载引导
   =================================== */
.download-cta {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d44 100%);
    color: var(--text-light);
    text-align: center;
}

.download-cta .section-title {
    color: var(--text-light);
}

.download-cta .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.download-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: var(--transition);
    min-width: 180px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.dl-icon {
    font-size: 50px;
}

.dl-text {
    font-size: 18px;
    font-weight: bold;
    font-family: "Kaiti SC", "STKaiti", serif;
}

/* ===================================
   页脚
   =================================== */
.footer {
    background: var(--bg-ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-info h4 {
    color: var(--text-light);
    font-size: 20px;
    margin-bottom: 10px;
    font-family: "Kaiti SC", "STKaiti", serif;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.footer-license {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-license p {
    margin-bottom: 5px;
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 1024px) {
    .spirit-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .factions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .spirit-grid,
    .features-grid,
    .factions-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* ===================================
   动画效果
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
