/* ===== CSS Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #0a0e1a;
    color: #e0e6ed;
    line-height: 1.6;
    min-height: 100vh;
}
a { color: #6c8cff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #a78bfa; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header / Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 140, 255, 0.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6c8cff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
    color: #b0bec5;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #6c8cff; }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    color: #b0bec5;
    font-size: 0.9rem;
}
.dropdown-menu a:hover { background: rgba(108, 140, 255, 0.1); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-buy {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6c8cff, #a78bfa);
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    -webkit-text-fill-color: #fff;
}
.btn-buy:hover { opacity: 0.9; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e0e6ed;
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(108, 140, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 30%, #6c8cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .subtitle {
    font-size: 1.2rem;
    color: #8892a4;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.download-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 24px; }
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108, 140, 255, 0.3); }
.btn-primary {
    background: linear-gradient(135deg, #6c8cff, #a78bfa);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
.btn-secondary {
    background: rgba(108, 140, 255, 0.12);
    border: 1px solid rgba(108, 140, 255, 0.3);
    color: #6c8cff !important;
}
.btn-download .meta { font-size: 0.75rem; color: rgba(255,255,255,0.6); display: block; text-align: left; }
.version-banner {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(108, 140, 255, 0.08);
    border: 1px solid rgba(108, 140, 255, 0.2);
    border-radius: 24px;
    font-size: 0.9rem;
    color: #8892a4;
    margin-top: 16px;
}
.version-banner a { color: #6c8cff; }

/* ===== Section Common ===== */
.section { padding: 60px 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #fff;
}
.section-desc {
    text-align: center;
    color: #8892a4;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Updates Section ===== */
.updates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.update-card {
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}
.update-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 16px; }
.update-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.update-item:last-child { border-bottom: none; }
.update-item .version { color: #6c8cff; font-weight: 600; font-size: 0.9rem; }
.update-item .date { color: #5a6577; font-size: 0.8rem; margin-left: 12px; }
.update-item p { color: #8892a4; font-size: 0.9rem; margin-top: 8px; }
.update-item a { font-size: 0.85rem; }

/* ===== Download Matrix ===== */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card {
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.1);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}
.platform-card:hover { border-color: rgba(108, 140, 255, 0.4); transform: translateY(-4px); }
.platform-icon { font-size: 2.5rem; margin-bottom: 12px; }
.platform-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.platform-card .version { color: #5a6577; font-size: 0.8rem; margin-bottom: 16px; }
.platform-card .btn-dl {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #6c8cff, #a78bfa);
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    -webkit-text-fill-color: #fff;
}
.platform-card .hash-info {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #5a6577;
    word-break: break-all;
}
.platform-card .tutorial-link { display: block; margin-top: 8px; font-size: 0.85rem; }

/* ===== Articles / News ===== */
.article-list { display: grid; gap: 20px; }
.article-item {
    display: flex;
    gap: 20px;
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s;
}
.article-item:hover { border-color: rgba(108, 140, 255, 0.3); }
.article-thumb {
    width: 160px;
    min-width: 160px;
    height: 100px;
    background: rgba(108, 140, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c8cff;
    font-size: 2rem;
}
.article-content { flex: 1; }
.article-content h3 { font-size: 1.1rem; color: #fff; margin-bottom: 8px; }
.article-content h3 a { color: #fff; }
.article-content h3 a:hover { color: #6c8cff; }
.article-content p { color: #8892a4; font-size: 0.9rem; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: 12px; align-items: center; font-size: 0.8rem; color: #5a6577; }
.article-tag {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(108, 140, 255, 0.1);
    color: #6c8cff;
    border-radius: 4px;
    font-size: 0.75rem;
}
.load-more {
    display: block;
    text-align: center;
    padding: 14px 32px;
    margin: 32px auto 0;
    background: rgba(108, 140, 255, 0.1);
    border: 1px solid rgba(108, 140, 255, 0.2);
    border-radius: 8px;
    color: #6c8cff;
    font-weight: 600;
    width: fit-content;
}
.load-more:hover { background: rgba(108, 140, 255, 0.2); }

/* ===== Quick Start ===== */
.steps-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
}
.step-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.1);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6c8cff, #a78bfa);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.step-card h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.step-card p { color: #8892a4; font-size: 0.85rem; }
.step-icon { font-size: 2.5rem; margin-bottom: 12px; }
.steps-cta { text-align: center; margin-top: 24px; }
.steps-cta a {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(108, 140, 255, 0.12);
    border: 1px solid rgba(108, 140, 255, 0.3);
    color: #6c8cff;
    border-radius: 8px;
    font-weight: 600;
}

/* ===== FAQ Section ===== */
.faq-list { display: grid; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}
.faq-item h3 { font-size: 1.05rem; color: #fff; margin-bottom: 12px; }
.faq-item .faq-answer { color: #8892a4; font-size: 0.9rem; }
.faq-item .faq-answer ol { padding-left: 20px; list-style: decimal; }
.faq-item .faq-answer ol li { margin-bottom: 6px; }

/* ===== Footer ===== */
.site-footer {
    background: #0d1117;
    border-top: 1px solid rgba(108, 140, 255, 0.1);
    padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #8892a4; font-size: 0.85rem; margin-bottom: 8px; }
.footer-col a:hover { color: #6c8cff; }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #5a6577;
    font-size: 0.8rem;
}
.footer-links { display: flex; justify-content: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.footer-links a { color: #5a6577; font-size: 0.8rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #151b2e;
        padding: 20px;
        border-bottom: 1px solid rgba(108, 140, 255, 0.15);
    }
    .hero h1 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 1rem; }
    .download-buttons { flex-direction: column; align-items: center; }
    .updates-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; min-width: auto; height: 140px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { padding: 0 12px; }
    .container { padding: 0 12px; }
}

/* ===== Sub Page Header ===== */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(108, 140, 255, 0.05) 0%, transparent 100%);
}
.page-header h1 { font-size: 2.2rem; color: #fff; margin-bottom: 12px; }
.page-header p { color: #8892a4; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ===== Tutorial Content ===== */
.tutorial-content { max-width: 800px; margin: 0 auto; }
.tutorial-content h2 { font-size: 1.4rem; color: #fff; margin: 32px 0 16px; }
.tutorial-content p { color: #b0bec5; margin-bottom: 16px; }
.tutorial-content ol { padding-left: 24px; margin-bottom: 16px; }
.tutorial-content ol li { color: #b0bec5; margin-bottom: 8px; }
.tutorial-content .note {
    background: rgba(108, 140, 255, 0.08);
    border-left: 3px solid #6c8cff;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    color: #8892a4;
    font-size: 0.9rem;
}

/* ===== Subscribe Page ===== */
.subscribe-steps { max-width: 800px; margin: 0 auto; }
.subscribe-step {
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.1);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}
.subscribe-step h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.subscribe-step p { color: #8892a4; font-size: 0.9rem; }
.subscribe-step ol { padding-left: 20px; margin-top: 12px; }
.subscribe-step ol li { color: #b0bec5; margin-bottom: 6px; font-size: 0.9rem; }

/* ===== FAQ Full Page ===== */
.faq-page-list { max-width: 800px; margin: 0 auto; display: grid; gap: 20px; }
.faq-page-item {
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.1);
    border-radius: 12px;
    padding: 28px;
}
.faq-page-item h3 { color: #fff; font-size: 1.1rem; margin-bottom: 16px; }
.faq-page-item .answer { color: #8892a4; font-size: 0.9rem; }
.faq-page-item .answer ol { padding-left: 20px; list-style: decimal; }
.faq-page-item .answer ol li { margin-bottom: 8px; }

/* ===== Download Page ===== */
.download-page-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.download-page-card {
    background: #151b2e;
    border: 1px solid rgba(108, 140, 255, 0.1);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
}
.download-page-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.download-page-card .platform-icon { font-size: 3rem; margin-bottom: 16px; }
.download-page-card .version-info { color: #5a6577; font-size: 0.85rem; margin-bottom: 16px; }
.download-page-card .btn-dl {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #6c8cff, #a78bfa);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    -webkit-text-fill-color: #fff;
}
.download-page-card .hash { margin-top: 12px; font-size: 0.75rem; color: #5a6577; word-break: break-all; }
@media (max-width: 768px) {
    .download-page-grid { grid-template-columns: 1fr; }
}
