/* ========== 基础：变量、重置、全局 ========== */
:root {
    --primary: #00ff9d;
    --bg-dark: #0a0a0a;
    --card-bg: #141414;
    --border: #2a2a2a;
    --text-dim: #888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
}

/* ========== 布局：导航、首屏、主容器 ========== */
.navbar {
    height: 70px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo-img {
    height: 28px;
    width: auto;
    margin-top: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
}

.hero-section {
    height: 450px;
    padding-top: 70px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)),
        url('../images/bg1.jpg') center/cover;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 2px;
}

/* 详情页 hero 标题缩小 50% */
.hero-section.article-hero .hero-content h1 {
    font-size: 24px;
}

.hero-content p {
    color: var(--primary);
    font-family: monospace;
    font-size: 14px;
}

.hero-recharge-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 16px 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #00cc7d 100%);
    color: #000;
    border: none;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    clip-path: polygon(60px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 60px) 100%, 0 100%, 0 5px);
    box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.4), 0 4px 0 rgba(0, 0, 0, 0.2);
    transition: 0.25s ease;
}

.hero-recharge-btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: contain;
}

.hero-recharge-btn:hover {
    background: linear-gradient(135deg, #fff 0%, #e0ffe8 100%);
    color: #000;
    box-shadow: 0 0 0 1px var(--primary), 0 0 24px rgba(0, 255, 157, 0.5), 0 4px 0 rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.hero-recharge-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 1px var(--primary), 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* 充值入口弹窗 */
.recharge-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.recharge-modal.is-open {
    display: flex;
}

.recharge-modal-backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.recharge-modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: rechargeModalIn 0.25s ease-out;
}

@keyframes rechargeModalIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.recharge-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 255, 157, 0.06);
}

.recharge-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.recharge-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: 0.2s;
}

.recharge-modal-close:hover {
    color: var(--primary);
}

.recharge-modal-body {
    padding: 24px;
    text-align: center;
}

.recharge-modal-tip {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--text-dim);
}
.recharge-modal-tip2{
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.recharge-modal-qr {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
}

.main-wrapper {
    max-width: 1200px;
    margin: -30px auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ========== 通用组件：卡片、区块标题、侧栏、FAQ ========== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section-header .step {
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 1px 6px;
    font-size: 12px;
    font-weight: bold;
}

.side-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px;
    margin-bottom: 20px;
}

.side-card h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item h5 {
    font-size: 13px;
    color: #ddd;
    margin-bottom: 4px;
}

.faq-item p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

.faq-section {
    margin-bottom: 40px;
}

/* ========== 下载游戏板块 ========== */
.download-section {
    margin-bottom: 40px;
}

.download-box {
    text-align: center;
    padding: 20px 0;
}

.download-qr {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #1a1a1a;
}

.download-tip {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-dim);
}

.faq-content {
    display: grid;
    gap: 20px;
}

.faq-content .faq-item {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 4px;
}

.faq-content .faq-item h5 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.faq-content .faq-item p {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

/* ========== 新闻板块 ========== */
.news-area .card {
    padding: 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

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

.news-item:hover {
    background: rgba(0, 255, 157, 0.03);
    padding-left: 8px;
    padding-right: 8px;
    margin: 0 -8px;
    border-radius: 4px;
}

.news-thumb {
    width: 100px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #1a1a1a;
}

.news-thumb img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

.news-body h4 {
    font-size: 16px;
    color: #eee;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
}

.news-body h4 a {
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

.news-body h4 a:hover {
    color: var(--primary);
}

.news-body p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ========== 文章详情页 ========== */
.article-body {
    font-size: 15px;
    line-height: 1.8;
    color: #ddd;
}

.article-body h1 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-body h2 {
    font-size: 20px;
    color: var(--primary);
    margin: 28px 0 14px;
    font-weight: 600;
}

.article-body h3 {
    font-size: 17px;
    color: #eee;
    margin: 20px 0 10px;
    font-weight: 600;
}

.article-body h4 {
    font-size: 15px;
    color: #ccc;
    margin: 14px 0 8px;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 14px;
    color: #ccc;
}

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

.article-body a:hover {
    text-decoration: underline;
}

.article-body .breadcrumb {
    margin-bottom: 16px;
}

.article-body .article-list {
    margin: 12px 0 20px 24px;
    padding: 0;
    color: #ccc;
}

.article-body .article-list li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ========== 页脚 ========== */
.footer {
    padding: 50px 20px 60px;
    text-align: center;
    color: #444;
    border-top: 1px solid #222;
}

.footer p {
    margin: 10px 0;
    font-size: 13px;
}

.footer-copy {
    font-size: 14px;
    color: #555;
}

.footer-links a,
.footer-icp a {
    color: #555;
    text-decoration: none;
}

.footer-links a:hover,
.footer-icp a:hover {
    color: var(--primary);
}

.footer-sep {
    margin: 0 10px;
    color: #333;
}

.footer-icp {
    font-size: 12px;
    color: #666;
}

.footer-note {
    font-size: 12px;
    color: #555;
    max-width: 560px;
    margin: 14px auto 0;
    line-height: 1.5;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .hero-section {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .news-item {
        grid-template-columns: 72px 1fr;
        gap: 12px;
        padding: 14px 0;
        align-items: center;
    }

    .news-thumb {
        width: 72px;
        flex-shrink: 0;
    }

    .news-thumb img {
        height: 56px;
    }

    .news-body {
        min-width: 0;
        overflow: hidden;
    }

    .news-body h4 {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 6px;
    }

    .news-body h4 a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-body p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
        margin-bottom: 0;
        word-break: break-all;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .hero-section.article-hero .hero-content h1 {
        font-size: 16px;
    }

    .card {
        padding: 25px 15px;
    }

    .faq-content .faq-item {
        padding: 15px;
    }

    .faq-content .faq-item h5 {
        font-size: 15px;
    }

    .faq-content .faq-item p {
        font-size: 13px;
    }

    .footer {
        padding: 30px 12px 40px;
    }

    .footer p {
        margin: 6px 0;
        font-size: 11px;
    }

    .footer-copy {
        font-size: 11px;
    }

    .footer-links,
    .footer-links a {
        font-size: 11px;
    }

    .footer-sep {
        margin: 0 6px;
        font-size: 10px;
    }

    .footer-icp,
    .footer-icp a {
        font-size: 10px;
    }
}
