/* ============================================
   传奇私服发布网 - 主样式表
   Core Keyword: 传奇私服发布网
   ============================================ */

/* 重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c8102e;
    --primary-dark: #8b0a20;
    --secondary: #f5a623;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e0e0e0;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: var(--light);
}

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

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

/* 顶部公告条 */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}

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

.top-bar a {
    color: #ffd700;
}

.update-time {
    color: #ffb3b3;
}

/* 头部 */
.site-header {
    background: var(--dark);
    padding: 20px 0;
    border-bottom: 3px solid var(--primary);
}

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

.logo h1 {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
}

.logo h1 span {
    color: var(--secondary);
}

.logo p {
    color: #aaa;
    font-size: 13px;
    margin-top: 4px;
}

/* 导航 */
.main-nav {
    background: var(--darker);
    border-bottom: 2px solid var(--primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 14px 28px;
    color: #ddd;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

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

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1a1a2e 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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"><path d="M30 5L35 25L55 30L35 35L30 55L25 35L5 30L25 25Z" fill="%23c8102e" fill-opacity="0.05"/></svg>');
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
}

.hero h2 span {
    color: var(--secondary);
}

.hero p {
    font-size: 16px;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto 25px;
    position: relative;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.keyword-tags a {
    background: rgba(200, 16, 46, 0.2);
    border: 1px solid var(--primary);
    color: #ff9999;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
}

.keyword-tags a:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* 统计数据 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: -30px auto 30px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary);
}

.stat-card .num {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.stat-card .label {
    color: var(--gray);
    font-size: 13px;
    margin-top: 5px;
}

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

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* 文章卡片 */
.article-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.article-card h4 {
    font-size: 17px;
    margin: 20px 0 10px;
    color: var(--primary-dark);
}

.article-card p {
    margin-bottom: 12px;
    text-align: justify;
}

.article-card ul, .article-card ol {
    margin: 10px 0 15px 20px;
}

.article-card li {
    margin-bottom: 6px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.data-table th {
    background: var(--dark);
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    font-weight: 500;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:nth-child(even) {
    background: #fafafa;
}

.data-table tr:hover {
    background: #fff5f5;
}

.status-open {
    color: var(--success);
    font-weight: bold;
}

.status-hot {
    color: var(--primary);
    font-weight: bold;
}

.status-soon {
    color: var(--warning);
    font-weight: bold;
}

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

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

.sidebar-widget h4 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--dark);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

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

.rank-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    color: #fff;
}

.rank-1 { background: #ffd700; color: #333; }
.rank-2 { background: #c0c0c0; color: #333; }
.rank-3 { background: #cd7f32; }
.rank-other { background: var(--gray); }

/* FAQ 手风琴 */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    list-style: none;
    position: relative;
    padding-right: 25px;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 18px;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item .faq-content {
    padding-top: 10px;
    color: #555;
    font-size: 14px;
}

/* 版本卡片 */
.version-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.version-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.version-card h4 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.version-card .tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.version-card ul {
    margin: 10px 0 0 18px;
    font-size: 14px;
}

.version-card .suitable {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--gray);
}

/* 筛选栏 */
.filter-bar {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-group select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
}

/* 评分条 */
.score-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

/* 页脚 */
.site-footer {
    background: var(--darker);
    color: #999;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-col h5 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
}

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

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

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

.footer-col a:hover {
    color: var(--secondary);
}

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

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

/* SEO 段落 */
.seo-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.seo-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
}

.seo-section p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    text-align: justify;
}

/* 面包屑 */
.breadcrumb {
    background: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--gray);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

/* 响应式 */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .version-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
    }
    .main-nav a {
        padding: 10px 15px;
        font-size: 14px;
    }
    .hero h2 {
        font-size: 24px;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
