/* ===== 全局重置 & 变量 ===== */
:root {
    --primary: #F9C730;
    --primary-dark: #d6a820;
    --primary-light: #fad96a;
    --white: #ffffff;
    --dark: #222222;
    --gray: #888888;
    --light-gray: #f5f5f5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部导航 ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img {
    height: 44px;
    width: auto;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav a {
    font-size: 15px;
    color: #555;
    transition: color 0.3s;
    position: relative;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.nav .download-nav-btn {
    background: var(--primary);
    color: #222;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s, transform 0.2s;
}
.nav .download-nav-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
    color: #222;
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
}

/* ===== 英雄区 ===== */
.hero {
    background: linear-gradient(135deg, #fef9e7 0%, #fdf6d5 100%);
    padding: 50px 0 40px;
    border-bottom: 3px solid var(--primary);
}
.hero-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-left { flex: 1 1 45%; min-width: 280px; }
.hero-left h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
}
.hero-left h1 .highlight { color: var(--primary); }
.hero-left .subtitle {
    font-size: 18px;
    color: #666;
    margin: 16px 0 24px;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-badges span {
    background: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #222;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(249, 199, 48, 0.50);
    transition: transform 0.25s, box-shadow 0.25s;
    border: none;
    cursor: pointer;
}
.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 36px rgba(249, 199, 48, 0.60);
    color: #222;
}
.btn-download:active { transform: scale(0.96); }
.btn-download .icon { font-size: 26px; }
.btn-download-small { padding: 12px 30px; font-size: 16px; }
.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary);
    color: #222;
    box-shadow: 0 6px 20px rgba(249, 199, 48, 0.40);
}
.hero-right { flex: 1 1 40%; min-width: 240px; text-align: center; }
.hero-right img {
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.10);
    max-height: 400px;
    width: auto;
    margin: 0 auto;
}
.hero-right .qr-tip { font-size: 13px; color: #999; margin-top: 12px; }

/* ===== 通用区块 ===== */
.section { padding: 50px 0; }
.section-title {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #1a1a1a;
}
.section-title .highlight { color: var(--primary); }
.section-desc {
    text-align: center;
    color: #777;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 36px;
}

/* ===== 介绍区 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.about-grid .text {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}
.about-grid .text p { margin-bottom: 14px; }
.about-grid .text strong { color: var(--primary-dark); }
.about-grid .img-box { text-align: center; }
.about-grid .img-box img {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ===== 特色卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 10px;
}
.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.feature-card .icon {
    font-size: 40px;
    margin-bottom: 14px;
    display: block;
}
.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.feature-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* ===== 截图 ===== */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 10px;
}
.screenshot-grid .item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}
.screenshot-grid .item:hover { transform: scale(1.02); }
.screenshot-grid .item img {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #f0f0f0;
}
.screenshot-grid .item .label {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #555;
    background: #fafafa;
}

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}
.faq-item .q {
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
    transition: background 0.2s;
}
.faq-item .q:hover { background: #f0f0f0; }
.faq-item .q .arrow {
    transition: transform 0.3s;
    font-size: 18px;
    color: var(--primary);
}
.faq-item .q.open .arrow { transform: rotate(180deg); }
.faq-item .a {
    padding: 0 24px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    display: none;
}
.faq-item .a.show { display: block; }

/* ===== 评论 ===== */
.comment-list { max-width: 900px; margin: 0 auto; }
.comment-item {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: background 0.2s;
}
.comment-item:hover { background: #f5f5f5; }
.comment-item .comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
    font-size: 14px;
    color: #888;
}
.comment-item .comment-user { font-weight: 600; color: #333; }
.comment-item .comment-user i { color: var(--primary); margin-right: 4px; }
.comment-item .comment-time { font-size: 13px; color: #aaa; }
.comment-item .comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    word-break: break-word;
}
.comment-item .comment-content .highlight-key {
    color: var(--primary-dark);
    font-weight: 500;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 30px;
}
.pagination button {
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 40px;
}
.pagination button:hover { background: var(--primary); color: #222; }
.pagination button.active {
    background: var(--primary);
    color: #222;
    font-weight: 700;
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #eaeaea;
    color: #999;
}
.pagination .page-info {
    font-size: 14px;
    color: #888;
    margin: 0 12px;
}

/* ===== 底部 ===== */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 40px 0 30px;
    margin-top: 20px;
}
.footer .container { text-align: center; }
.footer .brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.footer .divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 12px auto;
    border-radius: 2px;
}
.footer .copyright {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}
.footer .copyright a { color: var(--primary-light); }
.footer .copyright a:hover { text-decoration: underline; }
.footer .non-official {
    background: rgba(249, 199, 48, 0.12);
    border: 1px solid rgba(249, 199, 48, 0.20);
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-block;
    margin: 12px auto 16px;
    font-size: 14px;
    color: #f5d46a;
    font-weight: 500;
}
.footer .stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px 40px;
    margin: 16px 0 10px;
    font-size: 14px;
}
.footer .stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
}
.footer .stats .stat-item .num {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 18px;
    min-width: 30px;
}

/* ===== 隐藏友情链接 ===== */
.hidden-links { display: none; }

/* ===== 悬浮下载按钮 ===== */
.float-download {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    z-index: 999;
    border-top: 2px solid var(--primary);
    flex-wrap: wrap;
}
.float-download .float-btn {
    padding: 10px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.float-download .float-btn:active { transform: scale(0.94); }
.float-download .float-btn-android {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #222;
    box-shadow: 0 4px 16px rgba(249, 199, 48, 0.40);
}
.float-download .float-btn-android:hover {
    box-shadow: 0 6px 24px rgba(249, 199, 48, 0.50);
    transform: translateY(-2px);
}
.float-download .float-btn-ios {
    background: #2b2b2b;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.float-download .float-btn-ios:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.20);
    transform: translateY(-2px);
}
.float-download .float-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
}
.float-download .float-close:hover { color: #333; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 16px 0 8px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }
    .nav.open { display: flex; }
    .nav a { font-size: 16px; padding: 6px 0; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 30px 0 28px; }
    .hero-left h1 { font-size: 28px; }
    .hero-left .subtitle { font-size: 15px; }
    .hero-btns .btn-download { padding: 14px 28px; font-size: 17px; }
    .hero-right img { max-height: 280px; }
    .about-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .screenshot-grid { grid-template-columns: repeat(3, 1fr); }
    .footer .stats { gap: 12px 20px; font-size: 13px; flex-direction: column; align-items: center; }
    .float-download { padding: 8px 12px; gap: 10px; }
    .float-download .float-btn { padding: 8px 20px; font-size: 14px; }
    .float-download .float-close { font-size: 18px; }
    .container { padding: 0 12px; }
}
@media (max-width: 480px) {
    .hero-left h1 { font-size: 24px; }
    .hero-btns .btn-download { padding: 12px 22px; font-size: 15px; width: 100%; justify-content: center; }
    .hero-btns { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
    .float-download .float-btn { padding: 8px 16px; font-size: 13px; flex: 1; justify-content: center; }
}