/* ==================== 营销页面公共样式 ==================== */

/* 页面容器 */
.page-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    flex: 1;
    width: 100%;
}

.page-section {
    padding: 48px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-section-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    margin-bottom: 8px;
}

.page-section-subtitle {
    font-size: 15px;
    color: var(--text-sub);
    text-align: center;
    margin-bottom: 32px;
}

/* 导航栏 */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--btn-border);
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: content-box;
}

.site-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 86px !important;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.site-logo span {
    color: var(--primary);
}

.site-nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.site-nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.site-nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.site-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    padding: 4px 8px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 125, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(74, 125, 255, 0.35);
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: 14px;
    min-height: 56px;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 24px;
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* 页脚 */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid var(--btn-border);
    padding: 40px 20px 20px;
    margin-top: 0;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-sub);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--btn-border);
    text-align: center;
    font-size: 12px;
    color: var(--text-hint);
    line-height: 1.8;
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(180deg, #f0f4ff 0%, var(--bg) 100%);
    padding: 60px 20px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero-trust {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-hint);
    flex-wrap: wrap;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hero-hint {
    font-size: 13px;
    color: var(--text-hint);
}

.hero-preview {
    position: relative;
}

.hero-preview-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hero-badge {
    position: absolute;
    background: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-badge.green {
    color: #27ae60;
    background: #eafaf1;
}

.hero-badge.orange {
    color: #e67e22;
    background: #fff5e8;
}

/* 3列网格 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* 难度卡片 */
.diff-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.diff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.diff-card.elder {
    border-color: var(--primary);
    background: var(--primary-light);
}

.diff-card .badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.diff-card-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.diff-card-num span {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 400;
}

.diff-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.diff-card-desc {
    font-size: 12px;
    color: var(--text-hint);
    margin-bottom: 12px;
    line-height: 1.5;
}

.diff-card-btn {
    padding: 6px 20px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.diff-card-btn:hover {
    background: var(--primary-dark);
}

/* 数据卡片 */
.stats-section {
    background: linear-gradient(180deg, #eafaf1 0%, var(--bg) 100%);
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat-big-num {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.stat-big-num.green { color: #2d7a4f; }
.stat-big-num.orange { color: #e8843c; }
.stat-big-num.blue { color: #2d7a4f; }

.stat-desc {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 8px;
}

.stat-source {
    font-size: 11px;
    color: var(--text-hint);
    line-height: 1.5;
}

/* CTA 区块 */
.cta-section {
    background: linear-gradient(135deg, #2d7a4f 0%, #3d9a63 100%);
    text-align: center;
    color: #fff;
    padding: 56px 20px;
}

.cta-section .page-section-title {
    color: #fff;
    font-size: 30px;
    margin-bottom: 8px;
}

.cta-section .page-section-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: #f0f4ff;
}

/* 评价卡片 */
.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
}

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

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.review-meta {
    font-size: 12px;
    color: var(--text-hint);
}

.review-stars {
    color: #f1c40f;
    font-size: 14px;
    margin-bottom: 8px;
}

.review-content {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* FAQ */
.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-q {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.faq-q:hover {
    background: var(--btn-active);
}

.faq-q .arrow {
    transition: transform 0.2s;
    color: var(--text-hint);
    font-size: 12px;
}

.faq-item.open .faq-q .arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-item.open .faq-a {
    max-height: 500px;
}

.faq-a-inner {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* 公众号区块 */
.wechat-section {
    background: #f8f9fa;
}

.wechat-inner {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: center;
}

.wechat-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.wechat-list {
    list-style: none;
    padding: 0;
}

.wechat-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wechat-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.wechat-qr {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow);
    font-size: 12px;
    color: var(--text-hint);
    text-align: center;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-sub);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.15s;
}

.back-btn:hover {
    background: var(--btn-active);
    color: var(--text);
}

/* 页面标题区 */
.page-header {
    background: var(--bg);
    padding: 32px 20px 24px;
    border-bottom: 1px solid var(--btn-border);
}

.page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin: 12px 0 6px;
}

.page-header p {
    font-size: 15px;
    color: var(--text-sub);
}

/* 打印页面布局 */
.print-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.print-options-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.print-preview-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.print-group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.print-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--btn-border);
}

.print-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.print-group.batch-group {
    background: #fff5e8;
    padding: 16px;
    border-radius: 12px;
    border: none;
    margin: 0 -4px 24px;
}

.diff-select-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.diff-select-btn {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--btn-border);
    background: #fff;
    font-size: 13px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.15s;
}

.diff-select-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.per-page-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.per-page-btn {
    padding: 16px 8px;
    border-radius: 10px;
    border: 2px solid var(--btn-border);
    background: #fff;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.per-page-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.per-page-btn .icon {
    font-size: 20px;
    margin-bottom: 4px;
}

/* A4 预览 */
.a4-preview {
    width: 100%;
    aspect-ratio: 210 / 297;
    background: #fff;
    border: 1px solid var(--btn-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.a4-preview-label {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
}

/* 排行榜前三名 */
.rank-top3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}

.rank-top-item {
    text-align: center;
    flex: 1;
    max-width: 140px;
}

.rank-top-item.first {
    transform: translateY(-12px);
}

.rank-top-trophy {
    font-size: 40px;
    margin-bottom: 8px;
}

.rank-top-item.first .rank-top-trophy {
    font-size: 48px;
}

.rank-top-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.rank-top-time {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.rank-top-games {
    font-size: 12px;
    color: var(--text-hint);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .page-section {
        padding: 32px 16px;
    }

    .page-section-title {
        font-size: 22px;
    }

    .site-nav-inner {
        height: 48px;
        padding: 6px 16px;
    }

    .site-logo img {
        height: 60px !important;
    }

    .site-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 12px 20px;
        gap: 14px;
        border-bottom: 1px solid var(--btn-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .site-nav-link {
        font-size: 17px;
    }

    .site-nav-links.open {
        display: flex;
    }

    .site-nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 32px 16px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-preview {
        max-width: 280px;
        margin: 0 auto;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .print-layout {
        grid-template-columns: 1fr;
    }

    .print-preview-card {
        position: static;
    }

    .wechat-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-section .page-section-title {
        font-size: 24px;
    }

    .stat-big-num {
        font-size: 32px;
    }

    .rank-top3 {
        gap: 8px;
    }

    .rank-top-trophy {
        font-size: 32px;
    }

    .rank-top-item.first .rank-top-trophy {
        font-size: 38px;
    }
}

@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .diff-bar-page {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .diff-select-row {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .diff-select-btn {
        flex-shrink: 0;
    }
}
