/* --- 大厂风格变量 --- */
:root {
    --wx-green: #07c160;
    --wx-hover: #06ad56;
    --bg-gray: #f7f7f7;
    --text-main: #1a1a1a;
    --text-sub: #888888;
    --white: #ffffff;
    --section-gap: 30px;      /* 桌面端间距（适当缩小） */
    --mobile-gap: 10px;       /* 手机端间距（适当缩小） */
    --radius: 16px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* --- 基础重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; 
    background: var(--bg-gray); 
    color: var(--text-main); 
    line-height: 1.6;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- 头部导航 --- */
.header { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(15px); 
    min-height: 70px;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.flex-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 0; }
.logo-box { display: flex; align-items: center; }
.logo-box img { width: 38px; height: 38px; margin-right: 10px; border-radius: 8px; }
.logo-text h1 { font-size: 1.15rem; font-weight: 700; color: #000; }
.logo-text span { font-size: 10px; color: var(--text-sub); display: block; letter-spacing: 1px; }

.nav-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.menu-toggle { display: none; }
.nav-list { display: flex; gap: 30px; flex-wrap: wrap; }
.nav-list a { font-size: 15px; font-weight: 500; }
.nav-list a:hover { color: var(--wx-green); }

/* --- 立即充值板块：背景样式对齐副本 hero-card --- */
.recharge-hero {
    background: linear-gradient(135deg, #07c160 0%, #05a250 100%);
    border-radius: 28px;
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(7, 193, 96, 0.15);
    margin: 40px 0;
}
.recharge-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.recharge-hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.recharge-hero p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 35px;
}
.promo-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.btn-main {
    display: inline-block;
    background: white;
    color: var(--wx-green);
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.btn-main-icon { width: 22px; height: 22px; margin-right: 8px; vertical-align: middle; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- 充值弹窗 (Modal) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    z-index: 2000;
}
.modal-card {
    background: white; width: 90%; max-width: 400px;
    border-radius: 24px; padding: 40px 20px;
    text-align: center; position: relative;
    transform: scale(0.9); transition: 0.3s;
}
.modal-overlay.active { display: flex; }
.modal-overlay.active .modal-card { transform: scale(1); }

.qr-code-box {
    width: 200px; height: 200px; background: #f9f9f9;
    margin: 20px auto; border: 1px solid #eee;
    padding: 10px; border-radius: 12px;
}
.qr-code-box img { width: 100%; height: 100%; }
.close-modal {
    position: absolute; top: 20px; right: 20px;
    font-size: 24px; color: #ccc; cursor: pointer;
}

/* --- 新闻与板块间距 & 字号（对齐副本整体感觉） --- */
.section { padding: var(--section-gap) 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}
.section-header p {
    font-size: 14px;
    color: var(--text-sub);
}
.waterfall { column-count: 3; column-gap: 20px; }
.card { 
    break-inside: avoid; background: var(--white); border-radius: var(--radius); 
    margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
}
.card-link {
    display: block;
    color: inherit;
}
.card-link:hover { color: inherit; }
.card-body { padding: 20px; }
.card-body h3 {
    font-size: 17px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-body p {
    font-size: 14px;
    color: var(--text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- 流程与说明 --- */
.process-box { background: var(--white); border-radius: 24px; padding: 50px 30px; box-shadow: var(--shadow); }
.step-container { display: flex; justify-content: space-between; position: relative; }
.step-item { flex: 1; text-align: center; position: relative; z-index: 2; }
.step-circle { 
    width: 56px; height: 56px; background: var(--wx-green); color: #fff;
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-weight: 700;
}
.step-container::after {
    content: ""; position: absolute; top: 28px; left: 10%; right: 10%;
    height: 1px; border-top: 2px dashed #eee; z-index: 1;
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.info-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- 详情页：面包屑与文章 --- */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-sub);
}
.breadcrumb a { color: var(--text-main); }
.breadcrumb a:hover { color: var(--wx-green); }
.breadcrumb-sep { margin: 0 8px; opacity: 0.6; }
.breadcrumb-current { color: var(--text-sub); }

.article-detail {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}
.article-header {
    padding: 32px 32px 16px;
}
.article-header h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-main);
}
.article-header time {
    font-size: 14px;
    color: var(--text-sub);
}
.article-cover {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}
.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.article-body {
    padding: 24px 32px 32px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}
.article-body p {
    margin-bottom: 1em;
}
.article-body p:last-child {
    margin-bottom: 0;
}
.article-footer {
    padding: 0 32px 32px;
}
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--wx-green);
    border: 1px solid var(--wx-green);
    border-radius: 8px;
    transition: 0.3s;
}
.btn-back:hover {
    background: var(--wx-green);
    color: #fff;
}

/* --- 底部 --- */
.footer { background: #1a1a1a; color: #888; padding: 60px 0; text-align: center; font-size: 13px; }
.health-tips { margin-top: 30px; color: #444; border-top: 1px solid #2a2a2a; padding-top: 20px; }

/* --- 手机端优化 --- */
@media (max-width: 850px) {
    :root { --section-gap: 32px; }

    .header { min-height: auto; }
    .header .container { padding-left: 24px; padding-right: 24px; }
    .flex-header { padding: 14px 0; position: relative; }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #333;
        border-radius: 1px;
        transition: 0.3s;
    }
    .nav-toggle:checked ~ .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle:checked ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .nav-list { 
        width: 100%; 
        order: 10; 
        display: none;
        justify-content: center; 
        gap: 6px; 
        padding-top: 10px; 
        border-top: 1px solid rgba(0,0,0,0.06);
    }
    .nav-toggle:checked ~ .nav-list {
        display: flex;
    }
    .nav-list a { 
        font-size: 14px; 
        padding: 10px 14px; 
        min-height: 44px;
        display: inline-flex; 
        align-items: center; 
        justify-content: center;
        border-radius: 8px;
    }
    .nav-list a:hover { background: rgba(7, 193, 96, 0.08); }
    .nav-list a:active { background: rgba(7, 193, 96, 0.12); }

    /* 充值板块缩放（保持与副本风格相近） */
    .recharge-hero {
        padding: 40px 20px;
        border-radius: 20px;
    }
    .recharge-hero h2 { font-size: 32px; }
    .recharge-hero p { font-size: 14px; }

    /* 流程图变垂直 */
    .step-container { flex-direction: column; padding-left: 20px; }
    .step-container::after {
        width: 2px; height: 85%; top: 30px; left: 45px; border-left: 2px dashed #eee; border-top: none;
    }
    .step-item { display: flex; text-align: left; align-items: center; margin-bottom: 30px; }
    .step-circle { margin: 0 20px 0 0; min-width: 50px; height: 50px; border-radius: 14px; }

    /* 列表与说明 */
    .waterfall { column-count: 1; }
    .info-grid { grid-template-columns: 1fr; }

    /* 详情页 */
    .article-header, .article-body, .article-footer { padding-left: 20px; padding-right: 20px; }
    .article-header h1 { font-size: 22px; }
}
