/* ============================================
   魔兽世界主题官网 - 公共样式表
   W3C CSS3 标准 | 响应式布局 | 魔幻风格
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #0b101b;
    color: #e2e2e2;
    line-height: 1.8;
    min-height: 100vh;
}

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

a:hover {
    color: #ffd97a;
}

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

ul, ol {
    padding-left: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部导航 ========== */
header {
    background: linear-gradient(180deg, #151d2f 0%, #0b101b 100%);
    border-bottom: 2px solid #b88628;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 26px;
    color: #ffcc5c;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 204, 92, 0.3);
}

.logo:hover {
    color: #ffd97a;
}

nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
}

nav a {
    color: #e2e2e2;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: #ffcc5c;
    border-bottom-color: #b88628;
}

/* ========== 横幅区域 ========== */
.banner {
    background: linear-gradient(135deg, #1a2540 0%, #0d1424 50%, #1a1f35 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #27334e;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(184, 134, 40, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.banner h1 {
    font-size: 42px;
    color: #ffcc5c;
    margin-bottom: 16px;
    position: relative;
    text-shadow: 0 2px 20px rgba(255, 204, 92, 0.2);
}

.banner p {
    max-width: 750px;
    margin: 0 auto 30px;
    font-size: 18px;
    color: #c0c0c0;
    position: relative;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(180deg, #c9952e 0%, #b88628 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #d4a03a;
    box-shadow: 0 4px 15px rgba(184, 134, 40, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(180deg, #d4a03a 0%, #c9952e 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 40, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: #ffcc5c;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #b88628;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(184, 134, 40, 0.1);
    color: #ffd97a;
}

/* ========== 区块通用 ========== */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 30px;
    color: #ffcc5c;
    margin-bottom: 12px;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 15px;
    margin-bottom: 40px;
}

.bg-dark {
    background-color: #101726;
}

.bg-darker {
    background-color: #080c14;
}

/* ========== 卡片网格 ========== */
.grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 28px;
}

.card {
    background-color: #151d2f;
    padding: 28px;
    border: 1px solid #27334e;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #b88628;
    box-shadow: 0 8px 30px rgba(184, 134, 40, 0.1);
    transform: translateY(-3px);
}

.card h3 {
    color: #ffcc5c;
    margin-bottom: 12px;
    font-size: 20px;
}

.card h4 {
    color: #e2c98a;
    margin: 16px 0 8px;
    font-size: 16px;
}

.card p {
    margin-bottom: 10px;
    color: #c0c0c0;
}

.card ul {
    color: #c0c0c0;
}

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

/* 新闻卡片 */
.news-card {
    background-color: #151d2f;
    padding: 28px;
    border: 1px solid #27334e;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: #b88628;
    box-shadow: 0 8px 30px rgba(184, 134, 40, 0.1);
}

.news-date {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-tag {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(184, 134, 40, 0.15);
    color: #ffcc5c;
    border-radius: 3px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-card h3 {
    color: #ffcc5c;
    margin-bottom: 12px;
    font-size: 19px;
    line-height: 1.5;
}

.news-card p {
    color: #c0c0c0;
    margin-bottom: 12px;
}

.news-more {
    color: #ffcc5c;
    font-size: 14px;
    font-weight: bold;
}

/* ========== 文章详情页 ========== */
.article-header {
    background: linear-gradient(135deg, #1a2540 0%, #0d1424 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #27334e;
}

.article-header h1 {
    font-size: 36px;
    color: #ffcc5c;
    margin-bottom: 16px;
}

.article-meta {
    color: #888;
    font-size: 14px;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-content h2 {
    color: #ffcc5c;
    font-size: 26px;
    margin: 36px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #27334e;
}

.article-content h3 {
    color: #e2c98a;
    font-size: 20px;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
    color: #d0d0d0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 16px;
    color: #d0d0d0;
}

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

.article-content strong {
    color: #ffcc5c;
}

.article-content blockquote {
    border-left: 4px solid #b88628;
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(184, 134, 40, 0.05);
    color: #c0c0c0;
    font-style: italic;
}

/* 表格 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #151d2f;
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #27334e;
}

.article-content th {
    background: #1a2540;
    color: #ffcc5c;
    font-weight: bold;
}

.article-content tr:nth-child(even) {
    background: #121a2a;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #999;
}

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

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

/* ========== 页脚 ========== */
footer {
    background-color: #070b13;
    text-align: center;
    padding: 40px 20px 30px;
    border-top: 1px solid #27334e;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
}

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

footer p {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

/* ========== 提示框 ========== */
.notice {
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}

.notice-warning {
    background: rgba(200, 150, 50, 0.08);
    border-color: #c89632;
    color: #e2c98a;
}

.notice-info {
    background: rgba(70, 130, 200, 0.08);
    border-color: #4682c8;
    color: #a0c0e0;
}

.notice-success {
    background: rgba(80, 180, 100, 0.08);
    border-color: #50b464;
    color: #a0d0a8;
}

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #27334e;
    border-radius: 4px;
    color: #c0c0c0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #b88628;
    color: #ffcc5c;
}

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

/* ========== 下载页面专属 ========== */
.download-box {
    background: linear-gradient(135deg, #1a2540 0%, #0d1424 100%);
    border: 1px solid #27334e;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 30px 0;
}

.download-box h2 {
    color: #ffcc5c;
    font-size: 28px;
    margin-bottom: 12px;
}

.download-box p {
    color: #c0c0c0;
    margin-bottom: 24px;
}

.download-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.download-stat {
    text-align: center;
}

.download-stat .num {
    font-size: 32px;
    color: #ffcc5c;
    font-weight: bold;
}

.download-stat .label {
    font-size: 13px;
    color: #888;
}

/* 系统要求 */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.spec-card {
    background: #151d2f;
    border: 1px solid #27334e;
    border-radius: 8px;
    padding: 24px;
}

.spec-card h4 {
    color: #ffcc5c;
    margin-bottom: 16px;
    font-size: 18px;
}

.spec-card ul {
    list-style: none;
    padding: 0;
}

.spec-card li {
    padding: 8px 0;
    border-bottom: 1px solid #1f2a40;
    color: #c0c0c0;
    font-size: 14px;
}

.spec-card li:last-child {
    border-bottom: none;
}

.spec-card li strong {
    color: #e2c98a;
    display: inline-block;
    min-width: 80px;
}

/* ========== 社区页面专属 ========== */
.forum-list {
    background: #151d2f;
    border: 1px solid #27334e;
    border-radius: 8px;
    overflow: hidden;
}

.forum-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #1f2a40;
    transition: background 0.3s ease;
}

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

.forum-item:hover {
    background: rgba(184, 134, 40, 0.05);
}

.forum-info h4 {
    color: #ffcc5c;
    margin-bottom: 4px;
    font-size: 16px;
}

.forum-info p {
    color: #888;
    font-size: 13px;
    margin: 0;
}

.forum-stats {
    text-align: right;
    font-size: 13px;
    color: #888;
}

.forum-stats .count {
    color: #ffcc5c;
    font-weight: bold;
    font-size: 18px;
}

/* ========== 游戏介绍页面专属 ========== */
.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #c9952e, #b88628);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.race-item {
    background: #151d2f;
    border: 1px solid #27334e;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.race-item:hover {
    border-color: #b88628;
}

.race-item h5 {
    color: #ffcc5c;
    margin-bottom: 6px;
    font-size: 15px;
}

.race-item p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.faction-alliance {
    border-left: 3px solid #4a90d9;
}

.faction-horde {
    border-left: 3px solid #d94a4a;
}

/* ========== 返回顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #b88628;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(184, 134, 40, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top:hover {
    background: #c9952e;
    transform: translateY(-3px);
    color: #fff;
}

/* ========== 响应式适配 ========== */
@media (max-width: 992px) {
    .grid-wrap,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
        gap: 16px;
    }

    nav ul {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 14px;
    }

    .banner {
        padding: 60px 20px;
    }

    .banner h1 {
        font-size: 28px;
    }

    .banner p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    section {
        padding: 40px 0;
    }

    .card,
    .news-card {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    .download-box {
        padding: 24px;
    }

    .download-stats {
        gap: 20px;
    }

    .forum-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .forum-stats {
        text-align: left;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }

    nav ul {
        gap: 12px;
    }

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

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .grid-3,
    .race-grid {
        grid-template-columns: 1fr;
    }
}
