/* style.css - 完整样式（星空、流星、响应式卡片等） */
:root {
    --bg-primary: #0a0a14;
    --bg-secondary: #0f0f1e;
    --bg-card: #141428;
    --text-primary: #e8e8f0;
    --text-secondary: #b0b0c0;
    --text-muted: #7a7a90;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.4);
    --star-color: #ffffff;
    --gradient-1: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #fd79a8 100%);
    --gradient-2: linear-gradient(180deg, rgba(108, 92, 231, 0.15) 0%, rgba(10, 10, 20, 0) 100%);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-card: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 80px rgba(108, 92, 231, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: var(--star-color);
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    25% { opacity: 0.9; transform: scale(1.6); }
    50% { opacity: 0.3; transform: scale(1); }
    75% { opacity: 0.7; transform: scale(1.3); }
}

.meteor {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    box-shadow: 0 0 6px 2px rgba(162, 155, 254, 0.8), 0 0 20px 6px rgba(108, 92, 231, 0.5);
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(162, 155, 254, 0.9), rgba(162, 155, 254, 0.3), transparent);
    right: 100%;
    border-radius: 1px;
}

.meteor.active {
    animation: meteorFall var(--meteor-duration, 1.2s) linear forwards;
}

@keyframes meteorFall {
    0% { opacity: 0; transform: translate(0, 0) rotate(-35deg); }
    5% { opacity: 1; }
    25% { opacity: 0.9; }
    60% { opacity: 0.4; }
    100% { opacity: 0; transform: translate(600px, 400px) rotate(-35deg); }
}

.main-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}
.nav-logo:hover { color: var(--accent-light); }
.nav-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
    overflow: hidden;
}
.nav-cta {
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 18px var(--accent-glow);
}
.nav-cta:hover { background: #7d6ff0; transform: translateY(-2px); }

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin-top: 60px;
}

.theme-preview-card {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    transition: var(--transition-smooth);
}
.theme-preview-card:hover {
    box-shadow: var(--shadow-card), 0 0 120px rgba(108, 92, 231, 0.35);
    transform: translateY(-4px);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}
.browser-dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }
.browser-url {
    flex: 1;
    margin: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100% - 48px);
    padding: 20px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
}
.preview-mockup { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.preview-title-bar { width: 180px; height: 8px; border-radius: 4px; background: var(--accent); opacity: 0.7; }
.preview-line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); }
.preview-line:nth-child(2) { width: 260px; }
.preview-line:nth-child(3) { width: 220px; }
.preview-line:nth-child(4) { width: 200px; opacity: 0.5; }

.preview-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 4px;
    box-shadow: 0 4px 20px var(--accent-glow);
    animation: badgePulse 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 4px 36px rgba(108, 92, 231, 0.7); }
}

.typing-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(108, 92, 231, 0.25);
    min-width: 180px;
}
.typing-text { display: inline-block; white-space: nowrap; overflow: hidden; }
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-light);
    animation: cursorBlink 0.8s infinite;
    margin-left: 2px;
}
@keyframes cursorBlink { 0%,100%{ opacity:1; } 50%{ opacity:0; } }

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}
.glow-orb.purple {
    width: 300px; height: 300px;
    background: rgba(108, 92, 231, 0.2);
    top: -80px; right: -60px;
    animation: floatOrb 8s ease-in-out infinite;
}
.glow-orb.pink {
    width: 200px; height: 200px;
    background: rgba(253, 121, 168, 0.15);
    bottom: -50px; left: -40px;
    animation: floatOrb 10s ease-in-out infinite reverse;
}
@keyframes floatOrb {
    0%,100%{ transform: translate(0,0); }
    33%{ transform: translate(30px, -20px); }
    66%{ transform: translate(-20px, 15px); }
}

.hero-title-group { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 32px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 50px;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(162, 155, 254, 0.25);
    font-size: 0.8rem; color: var(--accent-light);
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #28c840; animation: badgePulse 2s ease-in-out infinite; }
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-secondary); max-width: 500px; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.feature-tag {
    padding: 10px 18px; border-radius: 50px; background: var(--bg-card);
    border: 1px solid var(--border-card); font-size: 0.85rem;
    color: var(--text-secondary); text-decoration: none;
    transition: var(--transition-smooth); display: inline-flex; align-items: center; gap: 6px;
}
.feature-tag:hover { border-color: rgba(162, 155, 254, 0.4); color: var(--text-primary); background: rgba(108, 92, 231, 0.1); transform: translateY(-2px); }

.cta-group { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.btn-primary, .btn-secondary {
    padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 1rem;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition-smooth);
}
.btn-primary {
    background: var(--gradient-1); color: #fff;
    box-shadow: 0 6px 28px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(108, 92, 231, 0.6); }
.btn-secondary {
    background: transparent; color: var(--text-primary);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover { border-color: rgba(162, 155, 254, 0.5); background: rgba(108, 92, 231, 0.08); transform: translateY(-2px); }

.footer-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    width: 100%; max-width: 500px; justify-content: center;
}
.footer-brand .brand-name { font-weight: 700; background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; color: transparent; }

.filing-info {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; flex-wrap: wrap; margin-top: 20px;
    padding: 18px 28px; border-radius: var(--radius-md);
    background: rgba(20, 20, 40, 0.5); border: 1px solid var(--border-subtle);
    backdrop-filter: blur(8px);
}
.filing-item {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 0.8rem;
    text-decoration: none; transition: var(--transition-smooth);
}
.filing-item:hover { color: var(--accent-light); }
.filing-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.12); }

@media (max-width: 768px) {
    .top-nav { position: fixed; background: rgba(10,10,20,0.9); backdrop-filter: blur(12px); padding: 14px 20px; z-index: 100; }
    body { padding-top: 70px; }
    .hero-section { margin-top: 10px; }
    .feature-tag { padding: 8px 14px; font-size: 0.78rem; }
    .cta-group { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }
    .filing-divider { display: none; }
}