/* 现代风格CSS样式 - 统一站点样式 */
:root {
    /* 主色调 */
    --primary-color: #1e90ff;
    --primary-dark: #0066cc;
    --primary-light: #4da6ff;
    
    /* 背景色 - 蓝色主题 */
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --bg-tertiary: #1e3a5f;
    
    /* 卡片和容器背景 */
    --card-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.1);
    
    /* 边框颜色 */
    --border-color: rgba(255, 255, 255, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    
    /* 按钮颜色 */
    --btn-primary-bg: #1e90ff;
    --btn-primary-hover: #4da6ff;
    --btn-secondary-bg: rgba(30, 144, 255, 0.1);
    --btn-secondary-hover: rgba(30, 144, 255, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

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

/* 统一的头部样式 - 所有页面通用 */
.header {
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 144, 255, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 主内容区域样式 */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23000" width="1200" height="800"/><circle fill="%23ff6b6b" opacity="0.1" cx="200" cy="200" r="300"/><circle fill="%234ecdc4" opacity="0.1" cx="1000" cy="400" r="250"/></svg>') center/cover;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #b8b8b8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* 统计卡片 */
.stats-section {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #b8b8b8;
    font-size: 0.9rem;
}

/* 服务器状态 */
.server-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.status-online {
    background: #4ecdc4;
}

.status-offline {
    background: #ff6b6b;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 游戏说明 */
.game-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4ecdc4;
}

.info-item h3 {
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

/* 注册表单 */
.register-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(30, 144, 255, 0.3);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

.btn {
    background: var(--btn-primary-bg);
    color: var(--text-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--btn-primary-bg);
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: #b8b8b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* 排行榜页面样式 */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ranking-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.ranking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #4ecdc4;
}

.ranking-card h3 {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ranking-card p {
    color: #b8b8b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ranking-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.nav-buttons {
    text-align: center;
    margin-top: 2rem;
}

.nav-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

/* 排行榜表格样式 */
.ranking-table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th {
    background: rgba(30, 144, 255, 0.2);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(30, 144, 255, 0.3);
}

.ranking-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 排名样式 */
.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border-left: 4px solid #ffd700;
}

.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(192, 192, 192, 0.1));
    border-left: 4px solid #c0c0c0;
}

.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(205, 127, 50, 0.1));
    border-left: 4px solid #cd7f32;
}

.rank-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: white;
}

/* 综合战力样式 */
.power-score {
    font-weight: bold;
    color: #4ecdc4;
    font-size: 1.1rem;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 3rem;
    color: #b8b8b8;
    font-size: 1.1rem;
}

/* 游戏信息框 */
.game-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.game-info p {
    color: #b8b8b8;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        margin: 0;
    }
    
    .ranking-table {
        overflow-x: auto;
    }
    
    .ranking-table table {
        min-width: 600px;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}