/* ========== 全局样式 & 重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(145deg, #f9f5ff 0%, #ede9fe 100%);
    color: #1e1b2e;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* 滚动条美观 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #a78bfa;
    border-radius: 10px;
}

/* ========== 通用容器与卡片 ========== */
.soda-arena,
.soda-download-wrap,
.faq-app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.2rem 2rem 2rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ========== 导航栏 (随机样式，卡片风格) ========== */
.header-nav,
.global-nav,
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.8rem 2rem;
    border-radius: 60px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.logo-area, .logo-brand, .header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: #5b21b6;
}

.brand-icon, .logo-icon, .music-note {
    font-size: 1.8rem;
}

.nav-links, .nav-menu, .faq-nav {
    display: flex;
    gap: 2rem;
}

.nav-item, .nav-menu a, .faq-nav a {
    font-weight: 500;
    padding: 0.4rem 0;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-item:hover, .nav-menu a:hover, .faq-nav a:hover,
.nav-item.active, .active-dl, .active-faq {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

/* ========== 按钮通用 ========== */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(124, 58, 237, 0.5);
}
.btn-secondary {
    background: white;
    color: #7c3aed;
    border: 1px solid #c4b5fd;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
}
.btn-secondary:hover {
    background: #f5f3ff;
    border-color: #7c3aed;
}

/* ========== 首页模块样式 ========== */
.hero-module {
    text-align: center;
    background: linear-gradient(120deg, #ffffff, #faf5ff);
    padding: 2.5rem;
    border-radius: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.hero-title {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #5b21b6, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
.hero-description p {
    font-size: 1.1rem;
    color: #2d2a3e;
    margin-bottom: 1rem;
}
.hero-cta {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    padding-left: 0.8rem;
    border-left: 5px solid #a855f7;
}
.grid-two-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}
.feature-card, .scene-item, .comp-col, .tip-item, .dl-card, .advice-card, .req-item {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    transition: all 0.2s;
    border: 1px solid rgba(167, 139, 250, 0.2);
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #c4b5fd;
}
.scene-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.scene-item {
    flex: 1 1 220px;
}
.comparison-card .comp-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.faq-preview {
    background: linear-gradient(115deg, #f1ebff, #ffffff);
    border-radius: 2rem;
    padding: 2rem;
    margin: 2rem 0;
}
.preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}
.preview-item {
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.link-arrow {
    color: #7c3aed;
    font-weight: 600;
}
.site-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd6fe;
    font-size: 0.85rem;
    color: #4b5563;
}

/* ========== 下载页专用 ========== */
.dl-hero {
    background: #faf7ff;
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 2rem;
}
.dl-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.version-tip {
    background: #ede9fe;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-top: 1rem;
}
.dl-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin: 2rem 0;
}
.dl-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}
.dl-btn-group {
    margin: 1rem 0;
}
.fake-dl-btn {
    background: #7c3aed;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    display: inline-block;
    font-weight: 600;
    transition: 0.2s;
}
.fake-dl-btn:hover {
    background: #6d28d9;
    transform: scale(0.98);
}
.file-size {
    font-size: 0.8rem;
    color: #6b7280;
    margin-left: 0.5rem;
}
.install-steps .steps-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}
.step-block {
    background: white;
    border-radius: 1.5rem;
    padding: 1.2rem;
    position: relative;
}
.step-num {
    display: inline-block;
    background: #a855f7;
    color: white;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
    border-radius: 2rem;
    margin-bottom: 0.8rem;
}
.sys-req .req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.problem-list {
    list-style: none;
    background: #fef9e3;
    border-radius: 1.5rem;
    padding: 1.2rem 2rem;
}
.problem-list li {
    margin: 0.8rem 0;
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
}
.advice-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.advice-card {
    flex: 1;
}
.security-commit {
    background: #e6f0ff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
}
.secure-badge {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.return-home {
    margin-top: 1rem;
}
.return-home a {
    color: #7c3aed;
    text-decoration: underline;
}

/* ========== FAQ页面 ========== */
.faq-hero {
    text-align: center;
    margin-bottom: 2rem;
}
.faq-hero h1 {
    font-size: 2.4rem;
    background: linear-gradient(135deg, #5b21b6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0 1.5rem;
    justify-content: center;
}
.cat-tag {
    background: #f1f5f9;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}
.cat-tag.active-cat, .cat-tag:hover {
    background: #7c3aed;
    color: white;
}
.faq-accordion {
    background: white;
    border-radius: 1.8rem;
    overflow: hidden;
    margin: 1rem 0;
}
.faq-item {
    border-bottom: 1px solid #e9e4ff;
}
.faq-question {
    background: #fefcfc;
    padding: 1.2rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
    position: relative;
    padding-right: 2.5rem;
}
.faq-question::after {
    content: "▼";
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #faf9fe;
    padding: 0 1.8rem;
    border-top: 1px solid transparent;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 1rem 1.8rem 1.5rem;
    border-top-color: #ddd6fe;
}
.faq-answer p {
    margin-bottom: 0.75rem;
}
.faq-answer a {
    color: #7c3aed;
    text-decoration: underline;
}
.troubleshoot-extra {
    background: #f3e8ff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}
.troubleshoot-extra h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.extra-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
}
.feedback-card {
    background: white;
    border-radius: 1.8rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
}
.btn-dl-now {
    background: #7c3aed;
    color: white;
    padding: 0.7rem 1.6rem;
    border-radius: 2rem;
    display: inline-block;
    margin: 0.8rem 0.5rem;
}
.btn-back {
    background: #e2e8f0;
    color: #334155;
    padding: 0.7rem 1.6rem;
    border-radius: 2rem;
}
.faq-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #5b5b7a;
}

/* ========== 响应式 ========== */
@media (max-width: 780px) {
    .soda-arena, .soda-download-wrap, .faq-app-container {
        padding: 1rem;
    }
    .grid-two-cols {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .nav-links, .nav-menu {
        gap: 1rem;
    }
    .header-nav, .global-nav, .faq-header {
        flex-direction: column;
        gap: 1rem;
        border-radius: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .dl-cards-grid {
        grid-template-columns: 1fr;
    }
}