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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #e0e0e0;
    background: #0a0a1a;
    overflow-x: hidden;
}

a {
    color: #d4a843;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffd700;
}

ul {
    list-style: none;
}

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

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

/* ========== 顶部公告栏 ========== */
.top-bar {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1057 100%);
    border-bottom: 1px solid #3a1a6e;
    padding: 8px 0;
    font-size: 12px;
    color: #b8a9d9;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .notice {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar .notice::before {
    content: "📢";
    font-size: 14px;
}

/* ========== 导航栏 ========== */
.header {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #d4a843;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(212, 168, 67, 0.2);
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #d4a843, #ffd700, #d4a843);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo p {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.nav ul {
    display: flex;
    gap: 5px;
}

.nav li a {
    display: block;
    padding: 10px 18px;
    color: #ccc;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav li a:hover,
.nav li.active a {
    color: #fff;
    background: linear-gradient(135deg, #d4a843, #b8860b);
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.4);
}

.search-box form {
    display: flex;
    gap: 0;
}

.search-box input {
    width: 200px;
    padding: 8px 15px;
    border: 1px solid #3a3a5e;
    border-radius: 20px 0 0 20px;
    background: #1a1a3e;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #d4a843;
}

.search-box button {
    padding: 8px 18px;
    border: none;
    border-radius: 0 20px 20px 0;
    background: linear-gradient(135deg, #d4a843, #b8860b);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: linear-gradient(135deg, #ffd700, #d4a843);
}

/* ========== 主横幅区 ========== */
.hero-banner {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(138, 43, 226, 0.06) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.hero-banner .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: none;
    letter-spacing: 3px;
}

.hero-content > p {
    font-size: 18px;
    color: #b8a9d9;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item .num {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.stat-item .label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

/* ========== 主要内容区 ========== */
.main-content {
    padding: 40px 0;
    background: #0a0a1a;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.content-left {
    flex: 1;
    min-width: 0;
}

/* ========== 区块通用样式 ========== */
.section-block {
    background: #12122a;
    border: 1px solid #1e1e4a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1e1e4a;
}

.section-header h3 {
    font-size: 20px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3::before {
    content: "🔥";
    font-size: 22px;
}

.more-link {
    font-size: 13px;
    color: #d4a843;
    padding: 4px 12px;
    border: 1px solid #d4a843;
    border-radius: 15px;
    transition: all 0.3s;
}

.more-link:hover {
    background: #d4a843;
    color: #0a0a1a;
}

/* ========== 服务器列表 ========== */
.server-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: #1a1a3e;
    border: 1px solid #2a2a5e;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.05), transparent);
    transition: left 0.5s;
}

.server-item:hover::before {
    left: 100%;
}

.server-item:hover {
    border-color: #d4a843;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 168, 67, 0.15);
}

.server-item.featured {
    border-color: #d4a843;
    background: linear-gradient(135deg, #1a1a3e, #2a2a4e);
}

.server-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    background: #d4a843;
    color: #0a0a1a;
}

.server-tag.hot {
    background: #ff4500;
    color: #fff;
}

.server-tag.new {
    background: #00c853;
    color: #fff;
}

.server-info {
    flex: 1;
}

.server-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.server-info h4 a {
    color: #fff;
}

.server-info h4 a:hover {
    color: #ffd700;
}

.server-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    line-height: 1.6;
}

.server-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.server-meta span {
    font-size: 12px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 4px;
}

.server-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.btn-play {
    padding: 10px 24px;
    background: linear-gradient(135deg, #d4a843, #b8860b);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-play:hover {
    background: linear-gradient(135deg, #ffd700, #d4a843);
    color: #fff;
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.4);
}

.btn-detail {
    padding: 6px 18px;
    border: 1px solid #d4a843;
    color: #d4a843;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-detail:hover {
    background: #d4a843;
    color: #0a0a1a;
}

/* ========== 资讯网格 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-item {
    padding: 15px;
    background: #1a1a3e;
    border: 1px solid #2a2a5e;
    border-radius: 8px;
    transition: all 0.3s;
}

.news-item:hover {
    border-color: #d4a843;
}

.news-item.main-news {
    grid-column: 1 / -1;
    display: flex;
    gap: 20px;
}

.news-thumb {
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, #2a2a5e, #1a1a3e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-item h4 a {
    color: #fff;
}

.news-item h4 a:hover {
    color: #ffd700;
}

.news-item p {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* ========== 版本分类 ========== */
.version-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.version-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #1a1a3e;
    border: 1px solid #2a2a5e;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.version-cat:hover {
    border-color: #d4a843;
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(212, 168, 67, 0.15);
}

.cat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.version-cat h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.version-cat p {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.cat-count {
    font-size: 12px;
    color: #d4a843;
    font-weight: 600;
}

/* ========== 开服时间表 ========== */
.schedule-table {
    overflow-x: auto;
}

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

.schedule-table th {
    background: #2a2a5e;
    color: #d4a843;
    padding: 12px 15px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #1e1e4a;
    font-size: 13px;
    color: #ccc;
}

.schedule-table tr:hover td {
    background: #1a1a3e;
}

.status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status.hot {
    background: #ff4500;
    color: #fff;
}

.status.new {
    background: #00c853;
    color: #fff;
}

.status.wait {
    background: #555;
    color: #ccc;
}

.btn-mini {
    padding: 4px 12px;
    background: #d4a843;
    color: #0a0a1a;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.btn-mini:hover {
    background: #ffd700;
    color: #0a0a1a;
}

/* ========== 深度专题 ========== */
.feature-articles {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-article {
    padding: 20px;
    background: #1a1a3e;
    border: 1px solid #2a2a5e;
    border-radius: 10px;
    border-left: 4px solid #d4a843;
}

.feature-article h4 {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.feature-article h4 a {
    color: #fff;
}

.feature-article h4 a:hover {
    color: #ffd700;
}

.article-body p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.9;
    margin-bottom: 12px;
    text-align: justify;
}

.article-body strong {
    color: #d4a843;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #2a2a5e;
    font-size: 12px;
    color: #666;
}

/* ========== 侧边栏 ========== */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.side-block {
    background: #12122a;
    border: 1px solid #1e1e4a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e1e4a;
}

.side-header h3 {
    font-size: 16px;
    color: #ffd700;
}

.side-more {
    font-size: 12px;
    color: #d4a843;
}

/* 排行榜 */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s;
}

.rank-item:hover {
    background: #1a1a3e;
}

.rank-num {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    background: #2a2a5e;
    color: #ccc;
    flex-shrink: 0;
}

.rank-item.rank-1 .rank-num {
    background: #ffd700;
    color: #0a0a1a;
}

.rank-item.rank-2 .rank-num {
    background: #c0c0c0;
    color: #0a0a1a;
}

.rank-item.rank-3 .rank-num {
    background: #cd7f32;
    color: #fff;
}

.rank-info {
    display: flex;
    flex-direction: column;
}

.rank-info a {
    font-size: 13px;
    color: #ccc;
    font-weight: 600;
}

.rank-info a:hover {
    color: #ffd700;
}

.rank-online {
    font-size: 11px;
    color: #00c853;
}

/* 最新开服 */
.latest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.latest-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #1e1e4a;
}

.latest-list li:last-child {
    border-bottom: none;
}

.latest-list .time {
    font-size: 11px;
    color: #d4a843;
    background: #2a2a1e;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.latest-list a {
    font-size: 13px;
    color: #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 5px 12px;
    background: #1a1a3e;
    border: 1px solid #2a2a5e;
    border-radius: 15px;
    font-size: 12px;
    color: #aaa;
    transition: all 0.3s;
}

.tag:hover {
    background: #d4a843;
    color: #0a0a1a;
    border-color: #d4a843;
}

/* 活动列表 */
.event-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #1a1a3e;
    border-radius: 8px;
    transition: all 0.3s;
}

.event-item:hover {
    background: #2a2a4e;
}

.event-date {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4a843, #b8860b);
    color: #0a0a1a;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.event-info h5 {
    font-size: 13px;
    margin-bottom: 4px;
}

.event-info h5 a {
    color: #fff;
}

.event-info p {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

/* 玩家点评 */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    padding: 12px;
    background: #1a1a3e;
    border-radius: 8px;
    border-left: 3px solid #d4a843;
}

.reviewer {
    font-size: 12px;
    color: #d4a843;
    font-weight: 600;
    margin-bottom: 5px;
}

.review-text {
    font-size: 12px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 5px;
}

.review-rating {
    font-size: 13px;
    color: #ffd700;
}

/* ========== 底部 ========== */
.footer {
    background: #050510;
    border-top: 2px solid #1e1e4a;
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-section h4 {
    font-size: 15px;
    color: #d4a843;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e1e4a;
}

.footer-section p {
    font-size: 12px;
    color: #777;
    line-height: 1.8;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section ul a {
    font-size: 12px;
    color: #888;
}

.footer-section ul a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #1e1e4a;
}

.footer-bottom p {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item.main-news {
        flex-direction: column;
    }
    
    .news-thumb {
        width: 100%;
    }
    
    .version-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }
    
    .nav ul {
        gap: 0;
    }
    
    .nav li a {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .search-box {
        order: 2;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-item .num {
        font-size: 24px;
    }
    
    .server-item {
        flex-direction: column;
    }
    
    .server-action {
        flex-direction: row;
    }
    
    .version-categories {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}