/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    background: #f5f5f5;
}

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

a:hover {
    color: #c81623;
}

ul {
    list-style: none;
}

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

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

/* ========== Header ========== */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.logo-sub {
    font-size: 12px;
    color: #aaa;
}

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

.main-nav a {
    display: block;
    padding: 8px 18px;
    color: #ccc;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav .active a,
.main-nav a:hover {
    color: #fff;
    background: rgba(200,22,35,0.8);
}

.search-box form {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.search-box input {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    width: 180px;
}

.search-box input::placeholder {
    color: #999;
}

.search-box button {
    padding: 8px 18px;
    border: none;
    background: #c81623;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #a0121c;
}

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

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="rgba(255,215,0,0.05)"/></svg>') repeat;
}

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

.banner-content h1 {
    font-size: 36px;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
}

.banner-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #c81623, #e63946);
    color: #fff;
    box-shadow: 0 4px 15px rgba(200,22,35,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,22,35,0.5);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #ffd700;
    border-color: #ffd700;
}

.btn-outline:hover {
    background: #ffd700;
    color: #1a1a2e;
}

/* ========== Section ========== */
.section {
    padding: 50px 0;
}

.section-alt {
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.section-header h2 {
    font-size: 22px;
    color: #1a1a2e;
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background: #c81623;
    border-radius: 3px;
}

.more-link {
    color: #999;
    font-size: 13px;
}

.more-link:hover {
    color: #c81623;
}

/* ========== Server Table ========== */
.server-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

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

.server-table th {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ffd700;
    padding: 14px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.server-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.server-table tr:hover {
    background: #fafafa;
}

.server-table a {
    color: #c81623;
    font-weight: 500;
}

.hot {
    color: #f39c12;
    letter-spacing: 2px;
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
}

.status-new {
    background: #27ae60;
}

.status-hot {
    background: #e74c3c;
}

.status-wait {
    background: #f39c12;
}

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

.news-card {
    background: #fff;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.news-meta time {
    color: #999;
    font-size: 13px;
}

.news-meta .cat {
    background: #fde8e9;
    color: #c81623;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.news-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-card p {
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

/* ========== Guide Grid ========== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guide-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.guide-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.guide-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.guide-card p {
    color: #777;
    font-size: 13px;
}

/* ========== Rank List ========== */
.rank-list {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.3s;
}

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

.rank-item:hover {
    background: #fafafa;
}

.rank-num {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
    font-size: 16px;
}

.rank-1 .rank-num {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

.rank-2 .rank-num {
    background: linear-gradient(135deg, #c0c0c0, #808080);
    color: #fff;
}

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

.rank-info h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.rank-info p {
    color: #999;
    font-size: 13px;
}

/* ========== Feature Grid ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.feature-card p {
    color: #777;
    font-size: 14px;
}

/* ========== Footer ========== */
.site-footer {
    background: #0f0f1a;
    color: #999;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #ffd700;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.8;
}

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

.footer-col ul a {
    color: #999;
    font-size: 13px;
}

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

.friend-links li {
    display: inline-block;
    margin-right: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #666;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #c81623;
}

.breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

/* ========== Article Page ========== */
.article-page {
    padding: 30px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.article-main {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-title {
    font-size: 26px;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    font-size: 13px;
    color: #999;
}

.article-content {
    font-size: 15px;
    line-height: 2;
    color: #444;
}

.article-content h2 {
    font-size: 20px;
    color: #1a1a2e;
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid #c81623;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
    list-style: disc;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 8px;
    color: #666;
}

.article-tags a:hover {
    background: #c81623;
    color: #fff;
}

/* ========== Sidebar ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul a {
    color: #555;
}

.sidebar-widget ul a:hover {
    color: #c81623;
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

.pagination .current {
    background: #c81623;
    color: #fff;
    border-color: #c81623;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .banner-content h1 {
        font-size: 24px;
    }

    .news-grid,
    .guide-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

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

    .server-table {
        overflow-x: auto;
    }
}
