/* ========== 全局重置与变量 ========== */
:root {
    --primary: #c9a84c;
    --primary-dark: #8b6f2c;
    --primary-light: #f0d68a;
    --bg-dark: #0a0a0f;
    --bg-card: #141420;
    --bg-card-hover: #1c1c30;
    --text-main: #e8e8e8;
    --text-muted: #8888a0;
    --text-bright: #ffffff;
    --accent-red: #ff4757;
    --accent-green: #2ed573;
    --accent-blue: #1e90ff;
    --accent-purple: #a855f7;
    --accent-orange: #ff6b35;
    --accent-pink: #ff69b4;
    --border-color: #2a2a40;
    --shadow-glow: 0 0 20px rgba(201,168,76,0.3);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.4);
    --radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; }

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

/* ========== 顶部通知栏 ========== */
.top-bar {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--primary-light);
}

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

.top-date { color: var(--text-muted); }

/* ========== 主导航 ========== */
.main-header {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(201,168,76,0.5);
    white-space: nowrap;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 5px;
    flex: 1;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #000;
    font-weight: 700;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 5px 5px 5px 15px;
    min-width: 220px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    flex: 1;
    font-size: 14px;
}

.search-box button {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
}

/* ========== 英雄区域 ========== */
.hero-section {
    position: relative;
    padding: 80px 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.06) 0%, transparent 50%),
        var(--bg-dark);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-bright);
}

.hero-content .highlight {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 35px;
}

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

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(201,168,76,0.3);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(201,168,76,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #000;
}

/* 浮动卡片 */
.hero-visual {
    position: relative;
    height: 350px;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-card);
}

.floating-card .card-icon { font-size: 24px; }
.floating-card .card-text { font-size: 15px; }

.card-1 { top: 20px; left: 10%; animation-delay: 0s; border-color: var(--accent-red); }
.card-2 { top: 100px; right: 10%; animation-delay: 0.5s; border-color: var(--accent-blue); }
.card-3 { bottom: 100px; left: 20%; animation-delay: 1s; border-color: var(--accent-orange); }
.card-4 { bottom: 30px; right: 20%; animation-delay: 1.5s; border-color: var(--accent-purple); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ========== 通用区块标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-bright);
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

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

.section-more {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.section-more:hover { color: var(--primary-light); }

/* ========== 开服表 ========== */
.section-openserver { padding: 60px 0; }

.server-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

.server-table thead {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.server-table th {
    padding: 15px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-table td {
    padding: 14px 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(42,42,64,0.5);
    transition: var(--transition);
}

.server-table tbody tr:hover {
    background: rgba(201,168,76,0.05);
}

.server-table tbody tr:hover td {
    color: var(--text-bright);
}

.server-name { font-weight: 600; color: var(--text-bright); }

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.tag-red { background: rgba(255,71,87,0.15); color: var(--accent-red); }
.tag-blue { background: rgba(30,144,255,0.15); color: var(--accent-blue); }
.tag-green { background: rgba(46,213,115,0.15); color: var(--accent-green); }
.tag-purple { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.tag-orange { background: rgba(255,107,53,0.15); color: var(--accent-orange); }
.tag-pink { background: rgba(255,105,180,0.15); color: var(--accent-pink); }

.hot-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hot-bar::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.hot-bar {
    position: relative;
}

.hot-fill {
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-orange), var(--accent-red));
    border-radius: 3px;
    margin-right: 5px;
    min-width: 30px;
}

.status-online { color: var(--accent-red); font-weight: 600; }
.status-wait { color: var(--accent-green); font-weight: 600; }

.btn-play {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-play:hover { transform: scale(1.05); box-shadow: var(--shadow-glow); }

/* ========== 版本分类 ========== */
.section-categories { padding: 60px 0; background: rgba(20,20,32,0.5); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-card);
}

.cat-icon { font-size: 42px; margin-bottom: 15px; display: block; }

.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.cat-count {
    display: inline-block;
    background: rgba(201,168,76,0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ========== SEO内容区 ========== */
.section-seo-content { padding: 60px 0; }

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

.seo-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.seo-article:hover {
    border-color: var(--primary-dark);
    background: var(--bg-card-hover);
}

.seo-article h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.seo-article p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.8;
    text-align: justify;
}

.read-more {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.read-more:hover { color: var(--primary-light); }

/* ========== 热门推荐 ========== */
.section-hot { padding: 60px 0; background: rgba(20,20,32,0.5); }

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

.hot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px 20px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.hot-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(201,168,76,0.1) 50%);
}

.hot-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-card);
}

.hot-rank {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red), #ff6b81);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hot-card:nth-child(2) .hot-rank { background: linear-gradient(135deg, var(--accent-orange), #ffa502); }
.hot-card:nth-child(3) .hot-rank { background: linear-gradient(135deg, var(--accent-blue), #70a1ff); }
.hot-card:nth-child(4) .hot-rank { background: linear-gradient(135deg, var(--accent-green), #7bed9f); }

.hot-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.hot-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.hot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-hot {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    padding: 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.btn-hot:hover { box-shadow: var(--shadow-glow); transform: scale(1.02); }

/* ========== 攻略预览 ========== */
.section-guide-preview { padding: 60px 0; }

.guide-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guide-item {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 22px 25px;
    transition: var(--transition);
    position: relative;
}

.guide-item:hover {
    border-color: var(--primary-dark);
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.guide-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-right: 8px;
}

.tag-new { background: var(--accent-red); color: #fff; }
.tag-hot { background: var(--accent-orange); color: #fff; }
.guide-tag:not(.tag-new):not(.tag-hot) { background: var(--primary); color: #000; }

.guide-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 8px;
    line-height: 1.4;
}

.guide-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-date {
    font-size: 12px;
    color: var(--primary-dark);
}

/* ========== 底部 ========== */
.main-footer {
    background: #08080c;
    border-top: 2px solid var(--primary-dark);
    padding: 50px 0 20px;
    margin-top: 40px;
}

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

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.footer-col p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a { color: var(--primary-dark); }
.footer-bottom a:hover { color: var(--primary); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero-section .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .hot-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-grid { grid-template-columns: 1fr; }
    .guide-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .main-nav { flex-wrap: wrap; gap: 15px; }
    .nav-links { order: 3; width: 100%; overflow-x: auto; }
    .search-box { min-width: 150px; }
    .hero-content h1 { font-size: 28px; }
    .hero-stats { gap: 15px; }
    .stat-num { font-size: 24px; }
    .category-grid { grid-template-columns: 1fr; }
    .hot-grid { grid-template-columns: 1fr; }
    .server-table { font-size: 12px; }
    .server-table th, .server-table td { padding: 10px 6px; }
}
