:root {
    /* 核心色板 */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.5);
    
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    
    --cyan: #06b6d4;
    
    /* 背景与层级 */
    --bg-deep: #030712;
    --bg-surface: #0f172a;
    --bg-glass: rgba(17, 24, 39, 0.7);
    --bg-glass-strong: rgba(17, 24, 39, 0.9);
    
    /* 文字 */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* 边框与装饰 */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* 字体 */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* 动画 */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 链接与按钮通用 */
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* 布局工具 */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.small-container { max-width: 800px; }

.section-padding { padding: 6rem 0; }

.text-center { text-align: center; }

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 背景氛围 */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-dark), transparent 70%);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--cyan), transparent 70%);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.05); }
    100% { transform: translate(-20px, 40px) scale(0.95); }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.highlight { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover { color: var(--text-main); }

.mobile-menu-btn { display: none; }

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-glow {
    position: relative;
    box-shadow: 0 0 20px -5px var(--primary-glow);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px -5px var(--primary-glow);
    background: var(--primary-dark);
}

/* Hero 区域 */
.hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 99px;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.meta-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.meta-info span { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background: #10b981; }
.dot.blue { background: #3b82f6; }

/* Hero Visual (Mockup) */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.app-mockup {
    background: #1e293b;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 
        0 20px 50px -10px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s var(--ease-out);
    position: relative;
    z-index: 2;
}

.hero-visual:hover .app-mockup {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

.window-controls {
    height: 36px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.control { width: 10px; height: 10px; border-radius: 50%; }
.close { background: #ef4444; }
.minimize { background: #eab308; }
.expand { background: #22c55e; }

.app-interface {
    height: 340px;
    display: flex;
    background: #0f172a;
}

.sidebar {
    width: 60px;
    border-right: 1px solid var(--border-light);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
}
.sidebar-item.active { background: var(--primary); }

.main-view { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.view-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skeleton-title { width: 120px; height: 20px; background: rgba(255,255,255,0.1); border-radius: 4px; }
.skeleton-actions { width: 80px; height: 20px; background: rgba(255,255,255,0.05); border-radius: 4px; }

.code-editor {
    flex: 1;
    background: #020617;
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border: 1px solid var(--border-light);
}

.line { margin-bottom: 0.25rem; }
.indent { padding-left: 1.5rem; }
.c-k { color: #c084fc; } /* keyword */
.c-f { color: #60a5fa; } /* function */
.c-s { color: #4ade80; } /* string */
.c-v { color: #f472b6; } /* variable */
.c-c { color: #64748b; } /* comment */

.stats-row { display: flex; gap: 1rem; height: 60px; }
.stat-box { flex: 1; background: rgba(255,255,255,0.03); border-radius: 6px; }

.reflection {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* 装饰元素 */
.decoration-circle {
    position: absolute;
    width: 200px; height: 200px;
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    right: -40px; bottom: -40px;
    z-index: 1;
}

.decoration-dots {
    position: absolute;
    top: -20px; left: -20px;
    width: 100px; height: 100px;
    background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 10px 10px;
    z-index: 1;
}

/* Bento Grid 特性区 */
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(240px, auto);
}

.bento-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
}

.bento-card.large { grid-column: span 2; }
.bento-card.wide { grid-column: span 3; }

.icon-box {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
}
.icon-box.purple { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.icon-box.blue { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.icon-box.green { color: #34d399; background: rgba(52, 211, 153, 0.1); }

.bento-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 600; }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.visual-mini-graph {
    margin-top: auto;
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 40px;
    padding-top: 1rem;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent), var(--primary));
    opacity: 0.7;
    border-radius: 4px;
    height: var(--h);
}

.bento-card.wide .card-content.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.plugin-icons { display: flex; gap: 1rem; }
.p-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; border: 1px dashed var(--text-muted); }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.02);
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid var(--border-light);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value small { font-size: 1.5rem; -webkit-text-fill-color: var(--text-muted); }
.stat-label { color: var(--text-muted); font-weight: 500; }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border-light);
}

.timeline-item { position: relative; padding-bottom: 3rem; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--bg-deep);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-date {
    position: absolute;
    left: -140px;
    top: 0.2rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: right;
    width: 100px;
}

.timeline-content {
    background: var(--bg-glass);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
}

.version-badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.timeline-content h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.timeline-content ul { list-style: none; }
.timeline-content li { margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding-top: 4rem;
    padding-bottom: 2rem;
    background: rgba(15, 23, 42, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand p { color: var(--text-dim); margin-top: 1rem; font-size: 0.9rem; }

.footer-links { display: flex; gap: 4rem; }
.link-group h5 { color: var(--text-main); margin-bottom: 1.5rem; font-size: 1rem; }
.link-group a { display: block; color: var(--text-muted); margin-bottom: 0.75rem; font-size: 0.9rem; }
.link-group a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.beian a:hover { color: var(--text-muted); text-decoration: underline; }

/* 响应式 */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-actions { align-items: center; }
    .hero-visual { display: none; /* 移动端简化 */ }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card.wide { grid-column: span 2; }
    .timeline-date { position: static; margin-bottom: 0.5rem; text-align: left; }
    .timeline { border-left: none; padding-left: 0; }
    .timeline-item::before { display: none; }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* 暂不实现移动端菜单展开逻辑，直接隐藏 */
    .mobile-menu-btn { display: block; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.large, .bento-card.wide { grid-column: span 1; }
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
}

/* 动画类 */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
