﻿/* ===== 全局基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #000; color: #e5e7eb; font-family: 'Noto Sans SC', 'Inter', sans-serif; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; width: 16px; height: 16px; flex-shrink: 0; }

#page-bg { position: fixed; inset: 0; z-index: -1; background: #000; }
#bgCanvas { display: block; width: 100%; height: 100%; }

/* ===== 导航栏 ===== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    z-index: 50;
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
}
.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 48px;
    gap: 32px;
}
.nav-logo img { height: 22px; }
.nav-links { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-auth { display: flex; align-items: center; gap: 8px; }

/* 用户信息 */
.user-info { display: flex; align-items: center; gap: 10px; position: relative; cursor: pointer; }
.user-info.hidden { display: none; }
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10c296, #0891b2);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; font-weight: 500;
}
.user-name { font-size: 13px; color: #d1d5db; }
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 160px;
    background: rgba(17,20,30,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}
.user-info.open .user-dropdown { display: block; }
.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    color: #d1d5db;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.dropdown-item:first-child { border-top: none; }

/* ===== 按钮 ===== */
.btn-primary-green {
    display: inline-flex;
    align-items: center;
    padding: 11px 28px;
    border-radius: 8px;
    background: #10c296;
    color: white;
    font-weight: 500;
    font-size: 14px;
}
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: 11px 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #d1d5db;
    font-weight: 500;
    font-size: 14px;
}

/* ===== Hero ===== */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    margin-top: 80px;
    overflow: hidden;
}
.hero-left {
    width: 100%;
    max-width: 680px;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 60px 40px;
}
.hero-title { font-size: 48px; font-weight: 700; line-height: 1.15; }
.hero-title-line { display: block; color: white; white-space: nowrap; }
.hero-title-accent {
    display: inline;
    background: linear-gradient(90deg, #10c296, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { font-size: 15px; color: #9ca3af; line-height: 1.7; }
.hero-download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.hero-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 168px;
    padding: 13px 28px;
    border-radius: 8px;
    background: #10c296;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s, opacity 0.2s, transform 0.2s;
}
.hero-download-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-download-btn:hover { background: #0ea882; transform: translateY(-1px); }
.hero-download-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.hero-download-btn-outline {
    background: transparent;
    color: #d1d5db;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-download-btn-outline:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(16,194,150,0.5);
    color: #fff;
}

/* ===== 登录/注册弹窗 ===== */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}
.auth-modal.active { display: flex; }
.auth-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 16px;
    background: rgba(18,22,32,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 40px 36px 32px;
}
.auth-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: #6b7280;
}
.auth-modal-close svg { width: 18px; height: 18px; }
.auth-panel.hidden { display: none; }
.auth-mode-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.auth-mode-tab {
    border: none;
    padding: 0 0 8px;
    background: none;
    font-size: 14px;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.auth-mode-tab:hover { color: #e5e7eb; }
.auth-mode-tab.active {
    color: #10c296;
    border-bottom-color: #10c296;
    font-weight: 600;
}
.auth-panel-head { margin-bottom: 24px; }
.auth-panel-head h2 { font-size: 22px; font-weight: 700; color: white; margin-bottom: 6px; }
.auth-panel-head p { font-size: 13px; color: #9ca3af; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-field { display: flex; flex-direction: column; gap: 0; }
.auth-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 13px 14px;
    color: white;
    font-size: 14px;
    outline: none;
    width: 100%;
}
.auth-input:focus { border-color: rgba(16,194,150,0.5); }
.auth-input::placeholder { color: rgba(255,255,255,0.3); }
.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input {
    padding-right: 44px;
    font-family: Consolas, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}
.auth-input[type="password"]::-ms-reveal,
.auth-input[type="password"]::-ms-clear { display: none; }
.auth-input[type="password"]::-webkit-credentials-auto-fill-button { display: none; }
.auth-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #10c296;
    cursor: pointer;
    padding: 0;
}
.auth-eye-btn svg { width: 18px; height: 18px; fill: currentColor; }
.auth-error { font-size: 12px; color: #f87171; margin-top: 5px; display: none; }
.auth-row { display: flex; align-items: center; justify-content: flex-end; }
.auth-link { background: none; border: none; color: #10c296; font-size: 13px; cursor: pointer; padding: 0; }
.auth-submit {
    background: linear-gradient(135deg, #10c296, #0891b2);
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 13px;
    border-radius: 8px;
    width: 100%;
    margin-top: 4px;
}
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0;
    color: #4b5563; font-size: 12px;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
.auth-wechat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(7,193,96,0.35);
    background: rgba(7,193,96,0.06);
    color: #07c160;
    font-size: 14px;
    font-weight: 500;
}
.auth-wechat-btn svg { width: 20px; height: 20px; }
.auth-wechat-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-switch { font-size: 13px; color: #6b7280; text-align: center; margin-top: 20px; }
.auth-code-row { display: flex; gap: 8px; }
.auth-code-row .auth-input { flex: 1; }
.auth-code-btn {
    flex-shrink: 0;
    padding: 0 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    white-space: nowrap;
}
.auth-code-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 页脚 ===== */
#footer {
    padding: 24px 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}
#footer .footer-sep {
    margin: 0 10px;
    opacity: 0.5;
}
