/* ===== 移动端优先样式 ===== */

:root {
    --primary-color: #c41e3a;
    --secondary-color: #8b0000;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-light: #e0e0e0;
    --text-muted: #888;
    --gold: #d4af37;
    --font-size-base: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--font-size-base); -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; padding-bottom: 60px; }
.container { width: 100%; padding: 0 16px; margin: 0 auto; }
.btn { display: inline-block; min-height: 44px; min-width: 44px; padding: 12px 24px; border-radius: 8px; text-align: center; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #b8960c); color: #1a1a1a; font-weight: bold; }

/* ===== 顶部导航 ===== */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); padding: 8px 0; border-bottom: 1px solid rgba(196, 30, 58, 0.3); }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 48px; width: auto; }
.mobile-menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text-light); transition: 0.3s; }
.mobile-menu-panel { display: none; position: fixed; top: 60px; left: 0; right: 0; background: var(--bg-dark); border-bottom: 2px solid var(--primary-color); padding: 16px; z-index: 999; }
.mobile-menu-panel.active { display: block; }
.mobile-nav-menu { list-style: none; }
.mobile-nav-menu li a { display: block; padding: 14px 0; color: var(--text-light); text-decoration: none; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.desktop-nav { display: none; }

/* ===== Hero Banner ===== */
.hero-section { position: relative; min-height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-title { font-size: 1.8rem; font-weight: bold; color: #fff; text-shadow: 0 2px 10px rgba(196, 30, 58, 0.6); margin-bottom: 12px; }
.hero-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }

/* ===== 福利卡片 ===== */
.welfare-card { background: var(--bg-card); border-radius: 12px; padding: 16px; border: 1px solid rgba(196, 30, 58, 0.2); text-align: center; }
.welfare-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.welfare-card .title { font-size: 0.9rem; font-weight: bold; color: var(--gold); margin-bottom: 6px; }
.welfare-card .desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* ===== 下载区 ===== */
.download-section { padding: 40px 0; background: linear-gradient(180deg, var(--bg-dark), #1a0a0a); }
.download-btns { display: flex; flex-direction: column; gap: 12px; max-width: 280px; margin: 0 auto; }

/* ===== 页脚 ===== */
.site-footer { background: #050505; padding: 24px 0 80px; text-align: center; font-size: 0.75rem; color: var(--text-muted); line-height: 1.8; }

/* ===== 移动端底部固定导航 ===== */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: rgba(10, 10, 10, 0.98); border-top: 1px solid rgba(196, 30, 58, 0.3); z-index: 1000; padding: 6px 0; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; color: var(--text-muted); font-size: 0.7rem; transition: 0.2s; }
.nav-item.active { color: var(--primary-color); }
.nav-icon { font-size: 1.3rem; margin-bottom: 2px; }

/* ===== 通用区块标题 ===== */
.section-title { font-size: 1.4rem; font-weight: bold; color: var(--gold); text-align: center; margin: 30px 0 20px; }

/* ===== 游戏特色 ===== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-item { background: var(--bg-card); padding: 16px; border-radius: 8px; border-left: 3px solid var(--primary-color); }
.feature-item h3 { color: var(--gold); font-size: 1rem; margin-bottom: 6px; }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== 真红快讯区块 ===== */
.news-section {
    position: relative;
    width: 100%;
    background-color: #1a0f0c;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 28vw 15px 12vw;
    overflow: hidden;
}
.news-container { position: relative; width: 100%; display: flex; flex-direction: column; gap: 20px; }

.news-left { position: relative; width: 100%; padding-top: 56.25%; border: 2px solid var(--gold); border-radius: 4px; overflow: hidden; background: #000; }
.news-left::before,
.news-left::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); z-index: 5; pointer-events: none; }
.news-left::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.news-left::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }

.news-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.news-slide.active { opacity: 1; pointer-events: auto; }
.news-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-slide-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 15px 12px; color: #fff; font-size: 1rem; font-weight: bold; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); }
.news-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #666; font-size: 0.9rem; text-align: center; padding: 20px; }
.news-dots { position: absolute; bottom: 10px; right: 15px; display: flex; gap: 6px; z-index: 10; }
.news-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.4); border: 1px solid var(--gold); transform: rotate(45deg); cursor: pointer; transition: 0.3s; }
.news-dot.active { background: var(--gold); }

.news-right { position: relative; width: 100%; background: rgba(30, 15, 12, 0.75); border: 2px solid var(--gold); border-radius: 4px; padding: 16px; }
.news-right::before,
.news-right::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); z-index: 5; pointer-events: none; }
.news-right::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.news-right::after { bottom: -8px; right: -8px; border-left: none; border-top: none; }

.news-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid rgba(212, 175, 55, 0.3); padding-bottom: 12px; margin-bottom: 14px; }
.news-tabs .tab { flex: 1; padding: 8px 4px; background: none; border: none; color: #bbb; font-size: 0.95rem; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.news-tabs .tab.active { color: var(--gold); font-weight: bold; }
.news-tabs .more { color: #fff; font-size: 0.75rem; padding: 4px 10px; background: rgba(255,255,255,0.1); border-radius: 10px; text-decoration: none; white-space: nowrap; }

.news-panel { display: none; }
.news-panel.active { display: block; }

.news-feature { display: flex; align-items: center; background: rgba(212, 175, 55, 0.12); border-left: 3px solid var(--gold); padding: 10px 12px; margin-bottom: 14px; border-radius: 2px; }
.feature-tag { color: #fff; background: #d87a3b; font-size: 0.75rem; padding: 2px 8px; margin-right: 10px; border-radius: 2px; flex-shrink: 0; }
.feature-title { flex: 1; color: #fff; text-decoration: none; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feature-title:hover { color: var(--gold); }
.feature-date { color: #aaa; font-size: 0.75rem; margin-left: 10px; flex-shrink: 0; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.news-item a { color: #ddd; text-decoration: none; font-size: 0.9rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item a:hover { color: var(--gold); }
.news-item .news-date { color: #888; font-size: 0.8rem; margin-left: 12px; flex-shrink: 0; }

/* ===== 职业介绍区块 ===== */
.classes-section { position: relative; width: 100%; background: #1a0f0c; overflow: hidden; padding-bottom: 40px; }
.classes-title { text-align: center; padding-top: 30px; }
.classes-title img { width: 70%; max-width: 400px; height: auto; }

.classes-container { position: relative; width: 100%; }

.classes-slider { position: relative; width: 100%; min-height: auto; overflow: hidden; }

.class-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.class-slide.active { position: relative; opacity: 1; pointer-events: auto; z-index: 2; }

.class-video-wrap { position: absolute; top: 10%; left: 40%; width: 60%; height: 80%; z-index: 1; overflow: hidden; }
.class-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.class-img { position: relative; display: block; width: 100%; height: auto; z-index: 5; pointer-events: none; }

.class-video-btn {
    position: absolute;
    top: 50%;
    left: 68%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(4px);
    z-index: 20;
    cursor: pointer;
}
.class-video-btn .play-icon { font-size: 1.2rem; margin-left: 4px; }

.classes-btn-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; padding: 0 12px; }
.classes-arrow { color: rgba(212, 175, 55, 0.5); font-size: 0.9rem; cursor: pointer; padding: 6px; flex-shrink: 0; }
.classes-icons { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.classes-icons::-webkit-scrollbar { display: none; }
.class-icon { display: flex; flex-direction: column; align-items: center; cursor: pointer; color: rgba(255, 255, 255, 0.4); transition: 0.3s; flex-shrink: 0; }
.class-icon.active { color: #d4af37; }
.class-icon .icon-shape {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    transform: rotate(45deg);
    margin-bottom: 6px;
    transition: 0.3s;
}
.class-icon.active .icon-shape {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.class-icon .icon-shape > span { transform: rotate(-45deg); }
.class-icon .icon-text { font-size: 0.7rem; color: inherit; }

/* ===== 平板适配 (≥768px) ===== */
@media (min-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .download-btns { flex-direction: row; justify-content: center; max-width: none; }
    .mobile-bottom-nav { display: none; }
    body { padding-bottom: 0; }
}

/* ===== 文章详情页美化 ===== */
.single-post,
.page-content { background: #131110; padding: 20px 0 60px; }
.single-post .container,
.page-content .container { max-width: 780px; padding: 0 18px; margin: 0 auto; }

.entry-header { padding-bottom: 20px; border-bottom: 1px solid rgba(212, 175, 55, 0.15); margin-bottom: 28px; }
.entry-title { font-size: 1.5rem; line-height: 1.4; font-weight: 700; color: #f5e6c8; margin-bottom: 14px; position: relative; padding-left: 14px; }
.entry-title::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; background: linear-gradient(to bottom, #d4af37, #8b6914); border-radius: 2px; }

.entry-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: #8a8a8a; padding-left: 14px; }
.entry-meta span,
.entry-meta a { color: #8a8a8a; text-decoration: none; position: relative; }
.entry-meta a:hover { color: #d4af37; }
.entry-meta .post-date::before { content: '📅 '; margin-right: 4px; font-size: 0.85em; }
.entry-meta .post-category::before { content: '🏷 '; margin-right: 4px; font-size: 0.85em; }

.entry-content { font-size: 1rem; line-height: 1.9; color: #d6d3cf; letter-spacing: 0.02em; }
.entry-content p { margin: 0 0 18px 0; text-align: justify; }
.entry-content h2 { font-size: 1.25rem; font-weight: 700; color: #d4af37; margin: 32px 0 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(212, 175, 55, 0.2); position: relative; }
.entry-content h2::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: #d4af37; }
.entry-content h3 { font-size: 1.05rem; font-weight: 600; color: #e8d9b0; margin: 24px 0 12px; padding-left: 12px; border-left: 3px solid #d4af37; }

.entry-content ul,
.entry-content ol { margin: 0 0 18px 0; padding-left: 4px; list-style: none; }
.entry-content ul li,
.entry-content ol li { position: relative; padding-left: 22px; margin-bottom: 8px; line-height: 1.75; }
.entry-content ul li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; background: #d4af37; transform: rotate(45deg); border-radius: 1px; }
.entry-content ol { counter-reset: ol-counter; }
.entry-content ol li { counter-increment: ol-counter; }
.entry-content ol li::before { content: counter(ol-counter); position: absolute; left: 0; top: 2px; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 0.75rem; font-weight: bold; color: #1a0f0c; background: #d4af37; border-radius: 50%; }

.entry-content strong { color: #f0d67a; font-weight: 700; }
.entry-content a { color: #d4af37; text-decoration: none; border-bottom: 1px dashed rgba(212, 175, 55, 0.4); transition: all 0.2s; padding-bottom: 1px; }
.entry-content a:hover { color: #f5e6c8; border-bottom-color: #f5e6c8; }

.entry-content img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
.entry-content figcaption,
.entry-content .wp-caption-text { text-align: center; font-size: 0.8rem; color: #8a8a8a; margin-top: -14px; margin-bottom: 20px; }
.entry-content blockquote { margin: 20px 0; padding: 14px 18px; background: rgba(212, 175, 55, 0.06); border-left: 3px solid #d4af37; border-radius: 0 4px 4px 0; color: #c8c4be; font-style: italic; }
.entry-content hr { border: none; height: 1px; background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent); margin: 28px 0; }
.entry-content pre,
.entry-content code { background: #1f1a17; color: #f0d67a; padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }

.post-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(212, 175, 55, 0.15); }
.post-navigation a { flex: 1; padding: 12px 14px; background: #1f1a17; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 6px; color: #c8c4be; font-size: 0.85rem; text-decoration: none; line-height: 1.5; transition: 0.3s; }
.post-navigation a:hover { background: #2a1f1a; border-color: #d4af37; color: #d4af37; }

.entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(212, 175, 55, 0.15); font-size: 0.82rem; color: #8a8a8a; }
.entry-footer .tag-links a { display: inline-block; margin: 4px 6px 4px 0; padding: 4px 10px; background: rgba(212, 175, 55, 0.1); color: #d4af37; border-radius: 12px; text-decoration: none; font-size: 0.78rem; }
.entry-footer .tag-links a:hover { background: #d4af37; color: #1a0f0c; }

.rank-math-breadcrumb { font-size: 0.82rem; color: #8a8a8a; padding: 12px 0 20px; margin-bottom: 8px; border-bottom: 1px solid rgba(212, 175, 55, 0.1); line-height: 1.6; word-break: break-all; }
.rank-math-breadcrumb p { margin: 0; padding: 0; }
.rank-math-breadcrumb a { color: #b0aaa2; text-decoration: none; transition: color 0.2s; }
.rank-math-breadcrumb a:hover { color: #d4af37; }
.rank-math-breadcrumb .separator { margin: 0 8px; color: #4a4540; }
.rank-math-breadcrumb .last { color: #d4af37; font-weight: 500; }
.rank-math-breadcrumb a:first-child::before { content: '🏠 '; margin-right: 2px; }

.archive-list .archive-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.archive-list .entry-title a { color: var(--text-light); text-decoration: none; font-size: 1rem; }
.archive-list .entry-title a:hover { color: var(--primary-color); }