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

:root {
    --primary: #ff4400;
    --primary-dark: #cc3700;
    --gold: #ffd700;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --text-light: #e0e0e0;
    --text-muted: #999;
    --border-color: #2a2a4a;
    --success: #00c853;
    --hot: #ff1744;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'WenQuanYi Micro Hei', sans-serif;
    background: #0f0f1a;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary);
}

ul {
    list-style: none;
}

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

/* ===== 顶部通知栏 ===== */
.top-bar {
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
}

/* ===== 头部 ===== */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-bottom: 3px solid var(--primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 26px;
    font-weight: 900;
}

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

.logo .highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.logo .domain {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* 导航 */
.main-nav ul {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.main-nav li a {
    display: block;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.main-nav li a:hover,
.main-nav li.active a {
    background: var(--primary);
    color: #fff;
}

/* ===== 搜索区域 ===== */
.search-section {
    background: var(--bg-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--primary);
    border-radius: 25px 0 0 25px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 25px 25px 0;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ===== 主内容 ===== */
.main-content {
    padding: 20px 0 40px;
}

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

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

/* ===== 区块标题 ===== */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.title-icon {
    font-size: 20px;
    margin-right: 8px;
}

.title-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.title-date {
    margin-left: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.more-link {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.more-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ===== 推荐卡片 ===== */
.hero-section {
    margin-bottom: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
}

.hero-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255,68,0,0.3);
    border-color: var(--primary);
}

.hero-card-large {
    grid-row: 1 / 3;
}

.card-image {
    height: 140px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-large .card-image {
    height: 100%;
    min-height: 280px;
}

.tag-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--hot);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.tag-version {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.card-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hero-card-large .card-info h3 {
    font-size: 18px;
}

.card-info h3 a {
    color: #fff;
}

.card-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.open-time {
    font-size: 11px;
    color: var(--gold);
}

.btn-play {
    background: var(--primary);
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

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

/* ===== 开服表格 ===== */
.server-table-section {
    margin-bottom: 30px;
}

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

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

.server-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 10px 8px;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

.server-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.server-table tbody tr:hover {
    background: rgba(255,68,0,0.1);
}

.server-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
}

.status-badge.open {
    background: var(--success);
    color: #fff;
}

.status-badge.soon {
    background: var(--gold);
    color: #333;
}

.status-badge.wait {
    background: var(--text-muted);
    color: #fff;
}

/* ===== 双栏布局 ===== */
.double-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.column-box {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.column-box.full-width {
    margin-bottom: 25px;
}

.column-title {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.column-title a:first-of-type {
    color: #fff;
    font-weight: 700;
}

.column-title a:first-of-type:hover {
    color: var(--primary);
}

.column-icon {
    margin-right: 6px;
}

.column-title .more {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.column-title .more:hover {
    color: var(--primary);
}

/* 服务器列表 */
.server-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

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

.list-tag {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 6px;
    min-width: 18px;
    text-align: center;
}

.list-tag.tag-new {
    background: var(--success);
    color: #fff;
}

.list-tag.tag-hot {
    background: var(--hot);
    color: #fff;
}

.list-name {
    flex: 1;
    font-size: 13px;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-time {
    font-size: 11px;
    color: var(--gold);
    margin-left: 8px;
    white-space: nowrap;
}

/* 3列网格卡片 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mini-card {
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.mini-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.mini-card-img {
    height: 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6278 100%);
    position: relative;
}

.mini-card-info {
    padding: 10px;
}

.mini-card-info h4 {
    font-size: 13px;
    margin-bottom: 5px;
    line-height: 1.3;
}

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

.mini-card-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* 详细列表 */
.server-list-detailed li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

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

.list-num {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

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

.list-content h4 {
    font-size: 14px;
    margin-bottom: 3px;
}

.list-content h4 a {
    color: #fff;
}

.list-content p {
    font-size: 12px;
    color: var(--text-muted);
}

.list-online {
    font-size: 12px;
    color: var(--success);
    white-space: nowrap;
}

.btn-enter {
    background: var(--primary);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

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

/* ===== SEO内容区 ===== */
.seo-content {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.seo-content h2 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.seo-content h3 {
    font-size: 15px;
    color: var(--gold);
    margin: 15px 0 8px;
}

.seo-content p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #ccc;
}

.seo-content ul {
    margin: 10px 0;
    padding-left: 0;
}

.seo-content li {
    padding: 4px 0;
    list-style: none;
    color: #ccc;
}

.seo-content b {
    color: var(--primary);
}

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

.side-box {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.side-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* 登录 */
.login-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
    font-size: 13px;
}

.login-input:focus {
    border-color: var(--primary);
}

.btn-login {
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

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

.login-links {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.login-links a {
    color: var(--text-muted);
}

/* 排行 */
.rank-list {
    counter-reset: rank;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 8px;
}

.rank-item:last-child {
    border-bottom: none;
}

.rank-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-1 .rank-num {
    background: #ffd700;
    color: #333;
}

.rank-2 .rank-num {
    background: #c0c0c0;
    color: #333;
}

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

.rank-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-hot {
    font-size: 11px;
    color: var(--primary);
    white-space: nowrap;
}

/* 最新列表 */
.latest-list li {
    display: flex;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}

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

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 8px;
    flex-shrink: 0;
}

/* 礼包 */
.gift-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b00 100%);
    border-color: var(--gold);
}

.gift-tip {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 10px;
}

.gift-list li {
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.gift-list code {
    background: rgba(255,215,0,0.15);
    color: var(--gold);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 12px;
}

.gift-list a {
    margin-left: auto;
    font-size: 11px;
    color: var(--primary);
}

.btn-gift {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    background: var(--gold);
    color: #333 !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}

/* 友情链接 */
.friend-links li {
    padding: 5px 0;
    font-size: 13px;
}

.friend-links a:hover {
    color: var(--primary);
}

/* ===== 底部 ===== */
.footer {
    background: #0a0a15;
    padding: 25px 0 20px;
    border-top: 2px solid var(--primary);
}

.footer-links {
    text-align: center;
    margin-bottom: 12px;
    font-size: 13px;
}

.footer-links a {
    margin: 0 8px;
    color: #aaa;
}

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

.footer-info {
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 25px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    color: #ccc;
    background: var(--bg-card);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: #555;
}

.breadcrumb .current {
    color: var(--primary);
}

/* ===== 资讯列表 ===== */
.news-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

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

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 14px;
}

.news-title a {
    color: #ddd;
}

.news-tag {
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 10px;
    background: var(--primary);
    color: #fff;
    white-space: nowrap;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-card-large {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .main-nav ul {
        justify-content: center;
    }
    .double-column {
        grid-template-columns: 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-card-large {
        grid-column: 1 / 2;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .server-table {
        font-size: 12px;
    }
    .server-table th:nth-child(4),
    .server-table td:nth-child(4) {
        display: none;
    }
}

/* ===== 动画 ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tag-hot {
    animation: pulse 2s infinite;
}