/* 基础样式 - 版本2.0 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

body {
    color: #fff;
    background-color: #0a0a1a;
    line-height: 1.6;
    background-image: url('/imegs/bj.png');
    background-attachment: fixed;
    background-size: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.logo-text span {
    color: #f8d347;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 70%;
}

.nav-menu li {
    margin: 0;
    position: relative;
    text-align: center;
}

.nav-menu li:first-child {
    margin-left: 0;
}

.nav-menu li:last-child {
    margin-right: 0;
}

.nav-menu li a {
    padding: 12px 8px;
    font-size: 22px;
    font-weight: 600;
    transition: color 0.3s;
    color: #ddd;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover {
    color: #f8d347;
    border-bottom: 3px solid #f8d347;
}

.nav-menu li a::after {
    display: none;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(10, 10, 26, 0.9), rgba(10, 10, 26, 0.5));
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #f8d347;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ddd;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.play-now, .register-btn, .download-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
}

.play-now {
    background-color: #f8d347;
    color: #333;
}

.play-now:hover {
    background-color: #ffea8a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(248, 211, 71, 0.3);
}

.register-btn {
    border: 2px solid #f8d347;
    color: #f8d347;
}

.register-btn:hover {
    background-color: rgba(248, 211, 71, 0.1);
}

.download-btn {
    background-color: #4CAF50;
    color: white;
}

.download-btn:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

/* 服务器状态 */
.server-status {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #f8d347;
    width: 300px;
}

.status-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #f8d347;
}

.status-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.status-name {
    color: #ddd;
}

.status-value {
    font-weight: bold;
}

.online {
    color: #4caf50;
}

.offline {
    color: #f44336;
}

/* 游戏特色 */
.features-section {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #f8d347;
}

.section-subtitle {
    color: #aaa;
    max-width: 700px;
    margin: 0 auto;
}

/* 特色内容容器 - 左右布局 */
.features-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* 视频容器 */
.video-container {
    flex: 1;
    max-width: 50%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(248, 211, 71, 0.3);
    border: 2px solid #f8d347;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* 特色网格 - 右侧2x2布局 */
.features-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s;
    border: 1px solid #333;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #f8d347;
}

/* LOGO图标 */
.logo .feature-icon {
    width: 70px;
    height: 70px;
    margin-right: 18px;
    background-color: #f8d347;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 36px;
    font-weight: bold;
}

/* 游戏特色图标 */
.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    margin-right: 0;
    background-color: #f8d347;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #f8d347;
}

.feature-desc {
    color: #ccc;
}

/* 玩家展示 */
.players-section {
    padding: 80px 0;
}

.players-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.players-slider::-webkit-scrollbar {
    height: 8px;
}

.players-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.players-slider::-webkit-scrollbar-thumb {
    background: #f8d347;
    border-radius: 4px;
}

.player-card {
    min-width: 280px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #333;
}

.player-card:hover {
    border-color: #f8d347;
}

.player-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.player-info {
    padding: 20px;
}

.player-name {
    font-size: 18px;
    margin-bottom: 5px;
    color: #f8d347;
}

.player-class {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

.player-quote {
    font-style: italic;
    color: #ddd;
}

/* 排行榜 */
.ranking-section {
    padding: 80px 0;
    background-color: rgba(0, 0, 0, 0.7);
}

.ranking-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ranking-card {
    background-color: rgba(26, 26, 46, 0.8);
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #333;
}

.ranking-card:hover {
    border-color: #f8d347;
}

.ranking-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f8d347;
    display: flex;
    align-items: center;
}

/* 排行榜图标 */
.ranking-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-color: #f8d347;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.ranking-list {
    list-style: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a3e;
}

.rank {
    width: 24px;
    height: 24px;
    background-color: #252540;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
}

.top-rank {
    background-color: #f8d347;
    color: #333;
}

.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    background-color: #333;
}

.player-details {
    flex: 1;
}

.player-rank-name {
    font-weight: bold;
}

.player-rank-level {
    font-size: 12px;
    color: #aaa;
}

.player-power {
    font-weight: bold;
    color: #f8d347;
}

/* 国家势力 */
.nations-section {
    padding: 80px 0;
}

.nations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.nation-card {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #333;
}

.nation-card:hover {
    transform: translateY(-5px);
    border-color: #f8d347;
}

.nation-banner {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.nation-info {
    padding: 20px;
    text-align: center;
}

.nation-name {
    font-size: 20px;
    margin-bottom: 20px;
    color: #f8d347;
}

.join-btn {
    display: block;
    text-align: center;
    padding: 12px 0;
    background-color: rgba(248, 211, 71, 0.2);
    border-radius: 5px;
    transition: background-color 0.3s;
    color: #f8d347;
    font-weight: bold;
}

.join-btn:hover {
    background-color: rgba(248, 211, 71, 0.4);
}

/* 页脚 */
footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 60px 0 30px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #f8d347;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f8d347;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #f8d347;
    color: #333;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #2a2a3e;
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-section {
        padding: 0 5%;
    }
    
    .nav-menu {
        width: 80%;
    }
    
    .server-status {
        position: static;
        transform: none;
        margin-top: 30px;
        width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 100%;
    }
    
    .nav-menu li a {
        font-size: 18px;
        padding: 8px 3px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 28px;
    }

    /* 移动端特色区域垂直布局 */
    .features-content {
        flex-direction: column;
    }

    .video-container {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 22px;
    }

    .nav-menu {
        display: none; /* 在移动端使用汉堡菜单替代 */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .ranking-container {
        grid-template-columns: 1fr;
    }
}