/* ========== 重置与基础样式 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4a90d9;
    --primary-dark: #3a7bc8;
    --primary-light: #e8f2fc;
    --accent: #f5a623;
    --accent-red: #e74c3c;
    --accent-green: #27ae60;
    --gradient-start: #5b9bd5;
    --gradient-end: #4ecdc4;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #bdc3c7;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #ecf0f1;
    --border: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 顶部导航 ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-icon-img {
    width: 36px;
    height: 36px;
    display: block;
    flex-shrink: 0;
}

.footer .logo-icon-img {
    filter: brightness(0) invert(1);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero 区域 ========== */
.hero {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-illustration {
    flex: 0 0 52%;
    max-width: 520px;
}

.hero-illustration img,
.hero-illustration svg {
    width: 100%;
    height: auto;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 14px;
    backdrop-filter: blur(5px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.92;
    margin-bottom: 18px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 36px;
    font-weight: 800;
    color: #ffd700;
    line-height: 1;
}

.hero-stat .label {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
}

/* ========== 区块标题 ========== */
.section {
    padding: 36px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ========== 平台列表 ========== */
.platform-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platform-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.platform-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--primary-light);
}

/* 排名标签 */
.rank-badge {
    position: absolute;
    top: 0;
    left: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    flex-shrink: 0;
}

.rank-badge.r1 { background: var(--accent-red); }
.rank-badge.r2 { background: #e67e22; }
.rank-badge.r3 { background: #d4a017; }
.rank-badge.rn { background: #e67e22; }

.platform-logo-wrap {
    flex-shrink: 0;
    margin-left: 36px;
}

.platform-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-sm);
}

.platform-logo-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    display: block;
}

.platform-logo-fallback {
    width: 80px;
    height: 80px;
}

.platform-info {
    flex: 1;
    min-width: 0;
}

.platform-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.platform-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.platform-tag {
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.tag-excellent { background: var(--accent); }
.tag-first { background: var(--accent-red); }
.tag-safe { background: var(--accent-green); }
.tag-new { background: var(--primary); }

.platform-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.stars {
    display: flex;
    gap: 1px;
}

.star {
    color: #ddd;
    font-size: 14px;
}

.star.filled {
    color: #f5a623;
}

.rating-text {
    font-size: 12px;
    color: var(--text-light);
}

.platform-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platform-action {
    flex-shrink: 0;
}

.btn-earn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-earn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

/* ========== 用户评价 ========== */
.reviews-section {
    background: var(--bg-primary);
    padding: 36px 0;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.review-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-user-info {
    display: flex;
    flex-direction: column;
}

.review-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.review-platform {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.review-platform-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.review-platform-logo-img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.review-platform-logo-fallback {
    width: 20px;
    height: 20px;
}

.review-platform-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.review-rating .stars .star {
    font-size: 14px;
}

.review-rating-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.review-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== 新手指南 ========== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.guide-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.guide-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.guide-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.guide-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== FAQ ========== */
.faq-section {
    background: var(--bg-primary);
    padding: 36px 0;
}

.faq-list {
    max-width: 100%;
    margin-top: 24px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question .arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-light);
    font-size: 12px;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== 页脚 ========== */
.footer {
    background: #2c3e50;
    color: #95a5a6;
    padding: 40px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 12px;
}

.footer-brand .logo span {
    color: var(--gradient-end);
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: #95a5a6;
}

.footer-col h4 {
    color: white;
    font-size: 15px;
    margin-bottom: 14px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #95a5a6;
    font-size: 13px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-disclaimer {
    background: #34495e;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.7;
    color: #7f8c8d;
    margin-bottom: 24px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

/* ========== 回到顶部 ========== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 16px;
        gap: 14px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-illustration {
        flex: none;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-stats {
        justify-content: center;
        gap: 18px;
    }

    .hero-stat .number {
        font-size: 28px;
    }

    .section {
        padding: 28px 0;
    }

    .section-title {
        font-size: 18px;
    }

    .platform-card {
        padding: 14px 14px;
        gap: 12px;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rank-badge {
        left: 12px;
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .platform-logo-wrap {
        margin-left: 0;
    }

    .platform-info {
        text-align: center;
        width: 100%;
    }

    .platform-name-row {
        justify-content: center;
    }

    .platform-rating {
        justify-content: center;
    }

    .platform-logo {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .platform-logo-img {
        width: 70px;
        height: 70px;
    }

    .platform-logo-fallback {
        width: 70px;
        height: 70px;
    }

    .platform-name {
        font-size: 15px;
    }

    .platform-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .platform-action {
        width: 100%;
        margin-left: 0;
    }

    .btn-earn {
        width: 100%;
        padding: 10px;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }

    .faq-question {
        font-size: 14px;
        padding: 14px 16px;
    }

    .faq-answer-inner {
        padding: 0 16px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 20px;
    }

    .platform-info {
        flex: 1 1 100%;
    }

    .review-list {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 16px;
    }

    .review-header {
        flex-direction: column;
    }
}
