:root {
    --bg-cosmos: #07080f;
    --bg-card: rgba(18, 20, 34, 0.72);
    --bg-card-solid: #121422;
    --border-subtle: rgba(226, 192, 141, 0.14);
    --border-hover: rgba(226, 192, 141, 0.45);
    --text-main: #f5f3ef;
    --text-muted: #9ca3af;
    --gold: #e2c08d;
    --gold-bright: #f5dcb3;
    --violet: #a78bfa;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-cosmos);
    color: var(--text-main);
    line-height: 1.65;
}

body { overflow-x: hidden; position: relative; min-height: 100vh; }

/* 衬线体标题，提升玄学高级感 */
.serif {
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
}

/* 星空与星云氛围背景 */
.nebula-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 10%, rgba(167, 139, 250, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 25%, rgba(226, 192, 141, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* 导航栏 */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(7, 8, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.94rem;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -6px; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* 按钮体系 */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3d7a8 0%, #c89f61 100%);
    color: #0b0c14;
    font-weight: 600;
    font-size: 0.94rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(226, 192, 141, 0.22);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(226, 192, 141, 0.36);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
    background: rgba(226, 192, 141, 0.08);
    border-color: var(--border-hover);
}

/* 通用标签与卡片 */
.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(226, 192, 141, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--gold);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(16px);
    transition: border-color 0.3s, transform 0.3s;
}

.glass-card.hoverable:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.section { padding: 72px 0; }

.section-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 48px;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.section-head p { color: var(--text-muted); font-size: 1rem; }

.text-gold-gradient {
    background: linear-gradient(90deg, #f5f3ef 0%, #e2c08d 55%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 表单控件（用于配对小工具） */
.select-box {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(7, 8, 15, 0.85);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.select-box:focus { border-color: var(--gold); }

/* 网格工具类 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* 导流解锁提示条 */
.unlock-teaser {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(226, 192, 141, 0.08));
    border: 1px dashed rgba(226, 192, 141, 0.35);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 三端下载横幅 */
.platform-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    background: linear-gradient(135deg, rgba(18, 20, 34, 0.92), rgba(28, 25, 48, 0.72));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 44px;
}

.platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* 页脚 */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* 弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 8, 0.82);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px; right: 18px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.qr-frame {
    background: #fff;
    padding: 12px;
    border-radius: 14px;
    width: 176px;
    margin: 0 auto 16px;
}

.qr-frame img { width: 100%; display: block; border-radius: 6px; }

/* 响应式 */
@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .platform-banner { flex-direction: column; text-align: center; padding: 32px 22px; }
    .platform-pills { justify-content: center; }
    .nav-inner { flex-wrap: wrap; padding: 12px 0; }
    .nav-links { order: 3; width: 100%; justify-content: center; gap: 20px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); }
}