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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    background: #f4f5f7;
}

a {
    color: #c0392b;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 头部 ===== */
.site-header {
    background: linear-gradient(135deg, #8b0000 0%, #c0392b 100%);
    color: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #5d0000;
}

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

.logo-text {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo-highlight {
    color: #ffd700;
}

.header-meta {
    font-size: 13px;
    display: flex;
    gap: 20px;
}

.header-meta strong {
    color: #ffd700;
    font-size: 18px;
}

/* ===== 主导航 ===== */
.main-nav {
    background: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
}

.nav-list li a {
    display: block;
    padding: 14px 20px;
    color: #ecf0f1;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li.active a {
    background: #34495e;
    color: #ffd700;
    text-decoration: none;
    border-bottom-color: #ffd700;
}

/* ===== 主体内容 ===== */
.main-content {
    padding: 25px 15px 40px;
}

.section {
    background: #fff;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.section-title {
    font-size: 20px;
    color: #8b0000;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ===== 开服列表表格 ===== */
.server-table-wrap {
    overflow-x: auto;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.server-table th,
.server-table td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.server-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
}

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

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

.tag-176 { background: #27ae60; }
.tag-180 { background: #2980b9; }
.tag-heji { background: #8e44ad; }
.tag-dan { background: #d35400; }
.tag-wei { background: #16a085; }

.hot {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
}

.hot-high { background: #e74c3c; }
.hot-mid { background: #f39c12; }

.btn-enter {
    display: inline-block;
    padding: 4px 14px;
    background: #c0392b;
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
}

.btn-enter:hover {
    background: #a93226;
    color: #fff;
    text-decoration: none;
}

/* ===== 分类卡片 ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.category-card:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.category-card h3 a {
    font-size: 16px;
    color: #2c3e50;
}

.category-card p {
    font-size: 13px;
    color: #666;
    margin: 8px 0;
    min-height: 40px;
}

.category-card .count {
    font-size: 12px;
    color: #c0392b;
    font-weight: 600;
}

/* ===== 文章列表 ===== */
.article-item {
    padding: 14px 0;
    border-bottom: 1px dashed #e5e7eb;
}

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

.article-item time {
    display: inline-block;
    font-size: 12px;
    color: #999;
    margin-right: 10px;
}

.article-item h3 {
    display: inline;
    font-size: 15px;
}

.article-item p {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
}

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

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

.copyright {
    margin-top: 12px;
}

.disclaimer {
    margin-top: 10px;
    font-size: 12px;
    color: #95a5a6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== 文章详情页样式 ===== */
.article-detail {
    background: #fff;
    padding: 28px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.article-detail h1 {
    font-size: 24px;
    color: #8b0000;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-meta {
    font-size: 13px;
    color: #999;
    border-bottom: 1px solid #eee;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.article-detail .content {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

.article-detail .content p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.article-detail .content h2 {
    font-size: 18px;
    color: #c0392b;
    margin: 22px 0 12px;
}

/* ===== 列表页样式 ===== */
.list-header {
    background: #fff;
    padding: 18px 22px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.list-header h1 {
    font-size: 22px;
    color: #8b0000;
}

.breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #c0392b;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .logo-text { font-size: 22px; }
    .header-meta { flex-direction: column; gap: 5px; }
    .nav-list li a { padding: 12px 14px; font-size: 14px; }
    .section-title { font-size: 17px; }
}
