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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    color: #e8d5a0;
    background: #0a0805;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

/* ===== 背景图层 ===== */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./../images/background.jpg') center center / cover no-repeat;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.65) 50%, 
        rgba(10, 8, 5, 0.85) 100%);
    z-index: -1;
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3));
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 10px;
}

.nav-item {
    color: #e8d5a0;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
}

.nav-item:hover {
    color: #ffd700;
    background: rgba(212, 175, 55, 0.15);
}

.nav-item.active {
    color: #ffd700;
    background: rgba(212, 175, 55, 0.2);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #d4af37;
    box-shadow: 0 0 6px #d4af37;
}

/* 汉堡菜单按钮(默认隐藏，移动端显示) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* 移动端遮罩(默认隐藏) */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== 主内容区 ===== */
.main-content {
    margin-top: 70px;
    padding: 30px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 70px - 120px);
}

.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
    flex: 1;
    flex-direction: column;
}

.page-section.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 首页 Hero ===== */
.hero {
    text-align: center;
    padding: 40px 0;
}

.game-title {
    font-size: 72px;
    font-weight: bold;
    color: transparent;
    background: linear-gradient(180deg, #fff5b8, #d4af37, #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    letter-spacing: 8px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.game-subtitle {
    font-size: 24px;
    color: #e8d5a0;
    margin-bottom: 25px;
    letter-spacing: 4px;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.game-desc {
    max-width: 700px;
    margin: 0 auto 35px;
    line-height: 1.8;
    color: #d4c89a;
    font-size: 16px;
    letter-spacing: 1px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    background: transparent;
}

.btn-download .btn-icon {
    font-size: 24px;
}

.btn-download .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-download .btn-text small {
    font-size: 11px;
    opacity: 0.8;
}

.btn-download .btn-text {
    font-size: 18px;
    font-weight: bold;
}

.btn-download.android {
    color: #1a1a1a;
    background: linear-gradient(180deg, #ffd700, #d4af37);
    border-color: #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-download.android:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.btn-download.ios {
    color: #e8d5a0;
    border-color: #8b5cf6;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-download.ios:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-download.h5 {
    color: #e8d5a0;
    border-color: #e63946;
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.25), rgba(230, 57, 70, 0.08));
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.35);
}

.btn-download.h5:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.35), rgba(230, 57, 70, 0.15));
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.55);
}

/* ===== 特性卡片 ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(20, 15, 5, 0.85));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

.feature-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.feature-card h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.feature-card p {
    color: #d4c89a;
    line-height: 1.7;
    font-size: 14px;
}

/* ===== 周年banner ===== */
.anniversary-banner {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.15), transparent);
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.anniversary-text {
    font-size: 20px;
    color: #ffd700;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* ===== 内容面板(攻略/专题/活动) ===== */
.content-panel {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(20, 15, 5, 0.9));
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.panel-title {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    color: #ffd700;
    padding: 18px 30px;
    font-size: 22px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 4px;
    flex-shrink: 0;
}

.panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.panel-list::-webkit-scrollbar {
    width: 8px;
}

.panel-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.panel-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}

.panel-list::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 12px 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.list-item:hover {
    background: rgba(212, 175, 55, 0.08);
    padding-left: 36px;
}

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

.list-tag {
    color: #ffd700;
    font-size: 18px;
    margin-right: 12px;
}

.list-title {
    flex: 1;
    color: #e8d5a0;
    font-size: 15px;
    transition: color 0.2s ease;
}

.list-item:hover .list-title {
    color: #ffd700;
}

.list-date {
    color: #8a7a5a;
    font-size: 13px;
    margin-left: 15px;
}

/* ===== 详情页 ===== */
.detail-panel {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(20, 15, 5, 0.9));
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* 返回按钮 */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    color: #d4af37;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    margin: 20px 20px 0;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 1px;
}

.btn-back:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateX(-4px);
}

.back-arrow {
    font-size: 16px;
}

/* 详情头部 */
.detail-header {
    padding: 20px 40px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-category {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    color: #ffd700;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.detail-title {
    color: #ffd700;
    font-size: 26px;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    margin-bottom: 12px;
    line-height: 1.4;
}

.detail-date {
    color: #8a7a5a;
    font-size: 13px;
    letter-spacing: 1px;
}

/* 封面图 */
.detail-cover {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-cover-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

/* 详情正文（可滚动） */
.detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px 40px;
    min-height: 0;
}

.detail-body::-webkit-scrollbar {
    width: 8px;
}

.detail-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.detail-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}

.detail-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

.detail-summary {
    font-size: 16px;
    color: #ffd700;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid #d4af37;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* 富文本样式 */
.rich-text {
    color: #d4c89a;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.5px;
}

.rich-text h3 {
    color: #ffd700;
    font-size: 18px;
    margin: 20px 0 12px;
    padding-left: 12px;
    border-left: 3px solid #d4af37;
    letter-spacing: 2px;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

.rich-text h3:first-child {
    margin-top: 0;
}

.rich-text p {
    color: #d4c89a;
    margin-bottom: 14px;
    line-height: 1.9;
}

.rich-text strong {
    color: #ffd700;
    font-weight: bold;
}

.rich-text em {
    color: #ff9966;
    font-style: italic;
}

.rich-text ul,
.rich-text ol {
    margin: 10px 0 16px 8px;
    padding-left: 24px;
}

.rich-text ul li,
.rich-text ol li {
    color: #d4c89a;
    margin-bottom: 8px;
    line-height: 1.8;
}

.rich-text ul li::marker {
    color: #d4af37;
}

.rich-text ol li::marker {
    color: #d4af37;
    font-weight: bold;
}

.rich-text blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid #d4af37;
    border-radius: 4px;
    color: #e8d5a0;
    font-style: italic;
    line-height: 1.8;
}

.rich-text blockquote::before {
    content: '💡 ';
    margin-right: 4px;
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 18px;
    font-size: 14px;
    overflow: hidden;
    border-radius: 6px;
}

.rich-text table th {
    background: rgba(212, 175, 55, 0.2);
    color: #ffd700;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
}

.rich-text table td {
    padding: 9px 12px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #d4c89a;
}

.rich-text table tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.2);
}

.rich-text table tr:hover td {
    background: rgba(212, 175, 55, 0.1);
}

/* 上一篇/下一篇导航 */
.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.btn-nav {
    flex: 1;
    max-width: 180px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    color: #d4af37;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.btn-nav:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(255, 215, 0, 0.7);
    color: #ffd700;
}

.btn-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-nav.prev {
    text-align: left;
}

.btn-nav.next {
    text-align: right;
}

/* ===== 底部 ===== */
.footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), #0a0805);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 25px 40px;
    text-align: center;
    flex-shrink: 0;
}

.footer-content p {
    color: #6a5a3a;
    font-size: 12px;
    line-height: 2;
    margin-bottom: 4px;
}

.footer-content .copyright {
    margin-top: 8px;
    color: #5a4a2a;
}

/* ===== 响应式 ===== */

/* 平板及以下：显示汉堡菜单，导航变抽屉 */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .header {
        padding: 0 20px;
        height: 60px;
    }

    .logo-img {
        height: 38px;
    }

    .logo-text {
        font-size: 18px;
    }

    /* 导航变为右侧抽屉 */
    .nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 240px;
        height: calc(100vh - 60px);
        flex-direction: column;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.97), rgba(20, 15, 5, 0.98));
        border-left: 1px solid rgba(212, 175, 55, 0.4);
        padding: 20px 0;
        gap: 5px;
        transition: right 0.3s ease;
        z-index: 100;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        padding: 14px 25px;
        font-size: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .nav-item.active::after {
        display: none;
    }

    .nav-item.active {
        border-left: 3px solid #d4af37;
    }

    .main-content {
        padding: 25px 30px;
        margin-top: 60px;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    .header {
        padding: 0 15px;
        height: 56px;
    }

    .logo {
        gap: 8px;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .nav {
        top: 56px;
        height: calc(100vh - 56px);
    }

    .main-content {
        padding: 20px 15px;
        margin-top: 56px;
    }

    /* 首页 Hero */
    .hero {
        padding: 25px 0;
    }

    .game-title {
        font-size: 36px;
        letter-spacing: 3px;
        margin-bottom: 10px;
    }

    .game-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

    .game-desc {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 25px;
        letter-spacing: 0;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .btn-download {
        width: 90%;
        justify-content: center;
        padding: 12px 24px;
    }

    .btn-download .btn-icon {
        font-size: 20px;
    }

    .btn-download .btn-text {
        font-size: 16px;
    }

    /* 特性卡片单列 */
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }

    .feature-card {
        padding: 0;
    }

    /* 周年banner */
    .anniversary-banner {
        padding: 15px 10px;
    }

    .anniversary-text {
        font-size: 15px;
        letter-spacing: 2px;
    }

    /* 内容面板 */
    .panel-title {
        padding: 14px 20px;
        font-size: 18px;
        letter-spacing: 2px;
    }

    .list-item {
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .list-item:hover {
        padding-left: 20px;
    }

    .list-tag {
        font-size: 14px;
        margin-right: 8px;
    }

    .list-title {
        font-size: 14px;
        line-height: 1.5;
    }

    .list-date {
        font-size: 11px;
        margin-left: 24px;
        margin-top: 4px;
        flex-basis: 100%;
    }

    /* 底部 */
    .footer {
        padding: 20px 15px;
    }

    .footer-content p {
        font-size: 11px;
        line-height: 1.8;
    }

    /* 详情页 */
    .btn-back {
        margin: 15px 15px 0;
        padding: 8px 15px;
        font-size: 13px;
    }

    .detail-header {
        padding: 15px 20px 12px;
    }

    .detail-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .detail-cover {
        max-height: 200px;
    }

    .detail-cover-img {
        max-height: 200px;
    }

    .detail-body {
        padding: 18px 20px;
    }

    .detail-summary {
        font-size: 14px;
        padding: 10px 15px;
    }

    .rich-text {
        font-size: 14px;
    }

    .rich-text h3 {
        font-size: 16px;
        margin: 16px 0 10px;
    }

    .rich-text table {
        font-size: 12px;
    }

    .rich-text table th,
    .rich-text table td {
        padding: 7px 9px;
    }

    .detail-nav {
        padding: 12px 20px;
        gap: 10px;
    }

    .btn-nav {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .header {
        padding: 0 12px;
    }

    .logo-img {
        height: 28px;
    }

    .logo-text {
        font-size: 13px;
    }

    .main-content {
        padding: 15px 12px;
    }

    .game-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .game-subtitle {
        font-size: 14px;
    }

    .game-desc {
        font-size: 13px;
    }

    .btn-download {
        width: 100%;
    }

    .panel-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .list-item {
        padding: 10px 15px;
    }

    .anniversary-text {
        font-size: 13px;
    }

    .footer-content p {
        font-size: 10px;
    }
}

/* 横屏适配 */
@media (max-width: 992px) and (orientation: landscape) and (max-height: 500px) {
    .nav {
        top: 56px;
        height: calc(100vh - 56px);
    }

    .hero {
        padding: 15px 0;
    }

    .game-title {
        font-size: 32px;
    }
}

/* 减少动画(节能模式) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
