/* ============================================================
   C盘扫帚 — 暗色科技风样式
   ============================================================ */

:root {
    --bg-deep: #050508;
    --bg-surface: #0b0b12;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-primary: #e8e8ed;
    --text-secondary: #9b9bb5;
    --text-muted: #5b5b72;
    --accent: #0ec9ff;
    --accent-dim: rgba(14, 201, 255, 0.12);
    --accent-glow: rgba(14, 201, 255, 0.35);
    --purple: #a855f7;
    --gradient-hero: linear-gradient(135deg, #0ec9ff 0%, #a855f7 50%, #f43f5e 100%);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: var(--bg-deep);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* 微妙的网格噪点背景 */
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(14, 201, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(11, 11, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* ===== Hero ===== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 44px;
}

/* 下载按钮 — 发光科技感 */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 18px 56px;
    font-size: 18px;
    font-weight: 600;
    color: #050508;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow:
        0 0 24px var(--accent-glow),
        0 0 60px rgba(14, 201, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-download::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: var(--gradient-hero);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(12px);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 40px var(--accent-glow),
        0 0 80px rgba(14, 201, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-download:hover::after {
    opacity: 0.6;
}

.btn-download:active {
    transform: translateY(0);
}

.hero-version {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* 右侧视觉图形 — 旋转光环 */
.hero-visual {
    flex-shrink: 0;
}

.visual-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(14, 201, 255, 0.18);
    box-shadow:
        0 0 40px rgba(14, 201, 255, 0.08),
        inset 0 0 40px rgba(14, 201, 255, 0.04);
}

/* 旋转光环 */
.visual-circle::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(14, 201, 255, 0.25);
    border-right-color: rgba(168, 85, 247, 0.15);
    animation: spin 8s linear infinite;
}

.visual-circle::after {
    content: '';
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: rgba(14, 201, 255, 0.1);
    border-left-color: rgba(168, 85, 247, 0.08);
    animation: spin 12s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 页脚 ===== */
.footer {
    margin-top: auto;
    text-align: center;
    padding: 36px 24px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    letter-spacing: 0.3px;
}

/* ===== 会员码弹窗 — 玻璃质感 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 36px;
    width: 420px;
    max-width: 90vw;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(14, 201, 255, 0.06);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 28px;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 1px;
}

.modal-input::placeholder {
    color: var(--text-muted);
    letter-spacing: 0;
}

.modal-input:focus {
    border-color: rgba(14, 201, 255, 0.5);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.modal-error {
    color: #f87171;
    font-size: 14px;
    margin-top: 10px;
    min-height: 22px;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-confirm {
    background: var(--accent);
    color: #050508;
    font-weight: 600;
    box-shadow: 0 0 16px var(--accent-dim);
}

.btn-confirm:hover {
    box-shadow: 0 0 28px var(--accent-glow);
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 24px;
        gap: 48px;
    }

    .hero-title {
        font-size: 40px;
    }

    .visual-circle {
        width: 180px;
        height: 180px;
    }
}
