/* ===== 全局样式 ===== */
:root {
    --primary: #c9a96e;
    --primary-dark: #a8884a;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text-main: #e8e8e8;
    --text-muted: #999;
    --text-light: #ccc;
    --border: #222;
    --danger: #ff4444;
    --success: #00cc66;
    --glow: 0 0 20px rgba(201, 169, 110, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: #fff;
}

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

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

/* ===== 顶部公告条 ===== */
.top-bar {
    background: linear-gradient(90deg, #1a0e02, #2a1a05, #1a0e02);
    border-bottom: 1px solid var(--primary-dark);
    padding: 8px 0;
    font-size: 13px;
    color: var(--primary);
    text-align: center;
    overflow: hidden;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.top-bar marquee {
    color: var(--primary);
}

/* ===== 头部 ===== */
.header {
    background: linear-gradient(180deg, #111, #0a0a0a);
    border-bottom: 2px solid var(--primary-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: #000;
    box-shadow: var(--glow);
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
    letter-spacing: 2px;
}

.logo-text span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===== 搜索框 ===== */
.search-box {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 5px;
    min-width: 300px;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
}

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #000;
    transition: transform 0.3s;
}

.search-box button:hover {
    transform: scale(1.1);
}

/* ===== 导航栏 ===== */
.nav-bar {
    background: #0d0d0d;
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 14px 20px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(201, 169, 110, 0.05);
}

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

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Banner 轮播 ===== */
.banner-section {
    margin-bottom: 30px;
}

.banner-slider {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    background: linear-gradient(135deg, #1a0a2e, #16213e, #0f3460);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 110, 0.15), transparent 60%);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #2e0a0a, #3e1616, #601010);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #0a2e1a, #163e25, #106030);
}

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

.banner-content h2 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 20px;
}

.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    font-weight: 700;
    border-radius: 30px;
    font-size: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 169, 110, 0.4);
    color: #000;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dot.active {
    background: var(--primary);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.section-title h2 span {
    color: var(--primary);
}

.section-more {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

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

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

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

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

.server-card:hover::before {
    opacity: 1;
}

.server-rank {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.server-rank.gold {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.server-rank.silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.server-rank.bronze {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.server-rank.normal {
    background: #1e1e1e;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.server-info {
    flex: 1;
    min-width: 0;
}

.server-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.server-name a {
    color: #fff;
}

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

.server-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.server-tag.hot {
    background: rgba(255, 68, 68, 0.15);
    color: #ff6666;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.server-tag.new {
    background: rgba(0, 204, 102, 0.15);
    color: #00ee77;
    border: 1px solid rgba(0, 204, 102, 0.3);
}

.server-tag.vip {
    background: rgba(201, 169, 110, 0.15);
    color: var(--primary);
    border: 1px solid rgba(201, 169, 110, 0.3);
}

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

.server-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.server-action {
    flex-shrink: 0;
}

.server-btn {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    white-space: nowrap;
}

.server-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(201, 169, 110, 0.4);
    color: #000;
}

/* ===== 侧边栏 ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.side-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.side-card-header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #111, #1a1a1a);
}

.side-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.side-card-header .icon {
    font-size: 18px;
}

.side-card-body {
    padding: 15px 18px;
}

/* ===== 排行榜 ===== */
.rank-list {
    list-style: none;
}

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

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

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

.rank-num.top {
    background: var(--primary);
    color: #000;
}

.rank-num.normal {
    background: #222;
    color: var(--text-muted);
}

.rank-info {
    flex: 1;
    min-width: 0;
}

.rank-info a {
    color: var(--text-light);
    font-size: 13px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 攻略卡片 ===== */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
    cursor: pointer;
}

.guide-item:hover {
    background: rgba(255,255,255,0.03);
}

.guide-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.guide-info {
    flex: 1;
    min-width: 0;
}

.guide-info h4 {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.guide-info h4:hover {
    color: var(--primary);
}

.guide-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 资讯列表 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}

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

.news-cate {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--primary);
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.news-date {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== 筛选标签 ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
}

/* ===== 攻略资讯区 ===== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

.guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.guide-card-img {
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.guide-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
}

.guide-card-body {
    padding: 15px;
}

.guide-card-cate {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--primary);
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 8px;
}

.guide-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.guide-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 10px;
}

.guide-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 700;
}

/* ===== 页脚 ===== */
.footer {
    background: #080808;
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-col h4 {
    font-size: 15px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

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

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

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

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

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

/* ===== 统计栏 ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary-dark);
    box-shadow: var(--glow);
}

.stat-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 5px;
}

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

/* ===== 回到顶部 ===== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    transform: scale(1.1);
}

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

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

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

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

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

.loading {
    animation: pulse 1.5s infinite;
}

/* ===== 特效 ===== */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(201, 169, 110, 0.5); }
    50% { text-shadow: 0 0 20px rgba(201, 169, 110, 0.8), 0 0 30px rgba(201, 169, 110, 0.3); }
}

.glow-text {
    animation: glow 2s infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}