:root {
    --primary: #0f2557;
    --accent: #e8a33d;
    --dark: #0a1329;
    --light: #f4f6fb;
    --muted: #6b7280;
    --border: #e2e6ef;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #1f2937;
    background: var(--light);
    margin: 0;
}

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

a:hover {
    color: var(--accent);
}

/* 导航 */
.site-nav {
    background: var(--dark);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand em {
    color: var(--accent);
    font-style: normal;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    padding: 6px 0;
    display: inline-block;
    min-height: 44px;
    line-height: 32px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #fff;
}

/* 主体容器 */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: #fff;
}

.section-head {
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
    position: relative;
    padding-bottom: 12px;
}

.section-head h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--accent);
}

.section-head p {
    color: var(--muted);
    margin: 0;
    font-size: 0.98rem;
}

/* 首页 Hero */
.hero {
    background: linear-gradient(135deg, #0a1329 0%, #122a55 100%);
    color: #fff;
    padding: 88px 0 76px;
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.3;
    margin: 0 0 18px;
    font-weight: 700;
}

.hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    max-width: 640px;
    margin: 0 0 28px;
    line-height: 1.85;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.96rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.btn-solid {
    background: var(--accent);
    color: #0a1329;
}

.btn-solid:hover {
    background: #f0b95c;
    color: #0a1329;
}

.btn-line {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-line:hover {
    border-color: #fff;
    color: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 数据条 */
.metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.metric {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}

.metric strong {
    display: block;
    font-size: 1.7rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1.2;
}

.metric span {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.65);
}

/* 游戏卡片 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.game-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}

.game-card:hover {
    box-shadow: 0 8px 24px rgba(15, 37, 87, 0.08);
    transform: translateY(-3px);
}

.game-card img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    background: #eef1f7;
}

.game-card .card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-cat {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--primary);
    background: #eaf0fb;
    padding: 3px 9px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 9px;
}

.game-card h3 {
    font-size: 1.02rem;
    margin: 0 0 6px;
    color: #111827;
}

.game-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}

.game-card .more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* 新闻条目 */
.news-list {
    display: grid;
    gap: 0;
}

.news-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

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

.news-date {
    font-size: 0.84rem;
    color: var(--muted);
    min-width: 96px;
}

.news-row h3 {
    font-size: 1rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.news-row h3 a {
    color: #111827;
}

.news-row h3 a:hover {
    color: var(--primary);
}

/* 详情页 */
.detail-head {
    background: var(--primary);
    color: #fff;
    padding: 52px 0 44px;
}

.detail-head h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    margin: 0 0 10px;
    font-weight: 700;
}

.detail-head .lead {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-size: 1rem;
    max-width: 720px;
}

.breadcrumb {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.detail-body {
    padding: 48px 0 64px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
}

.detail-grid img {
    width: 100%;
    border-radius: 8px;
    display: block;
    border: 1px solid var(--border);
}

.detail-text h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 28px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.detail-text h2:first-child {
    margin-top: 0;
}

.detail-text p {
    margin: 0 0 14px;
    color: #374151;
}

.detail-text ul {
    margin: 0 0 18px;
    padding-left: 20px;
    color: #374151;
}

.detail-text li {
    margin-bottom: 8px;
}

.faq-block {
    margin-top: 44px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

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

.faq-item h3 {
    font-size: 1rem;
    color: #111827;
    margin: 0 0 8px;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

/* 作者与日期 */
.byline {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.byline strong {
    color: #374151;
}

/* 页脚 */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 48px 0 28px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    margin-bottom: 32px;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.98rem;
    margin: 0 0 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 9px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
}

.site-footer a:hover {
    color: var(--accent);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.45);
}

/* 响应式 */
@media (max-width: 820px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero {
        padding: 64px 0 56px;
    }

    .section {
        padding: 48px 0;
    }

    .news-row {
        flex-direction: column;
        gap: 4px;
    }
}