/* ========== 全局变量 ========== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(22, 22, 32, 0.7);
    --bg-card-hover: rgba(30, 30, 45, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(138, 92, 246, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;
    --accent-1: #8a5cf6;
    --accent-2: #6366f1;
    --accent-3: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8a5cf6 0%, #6366f1 50%, #06b6d4 100%);
    --gradient-hero: linear-gradient(180deg, rgba(138, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 100%);
    --gradient-card: linear-gradient(135deg, rgba(138, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    --scratch-green: #4cbf56;
    --scratch-purple: #9966ff;
    --scratch-orange: #ffab19;
    --scratch-yellow: #ffbf00;
    --scratch-blue: #4c97ff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(138, 92, 246, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}
 
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
 
/* ========== 背景动画效果 ========== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(138, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center top, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center top, black 20%, transparent 80%);
}
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}
.glow-orb-1 { width: 500px; height: 500px; background: #1a98ec; top: -200px; left: -100px; }
.glow-orb-2 { width: 400px; height: 400px; background: #75c1c4; top: 30%; right: -150px; animation-delay: -7s; }
.glow-orb-3 { width: 350px; height: 350px; background: #6b20ed; bottom: -100px; left: 30%; animation-delay: -14s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
 
/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition);
}
.navbar.scrolled { padding: 12px 0; background: rgba(10, 10, 15, 0.9); }
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(138, 92, 246, 0.4); }
    50% { box-shadow: 0 0 30px rgba(138, 92, 246, 0.7); }
}
.logo-name {
     color: var(--text-primary); 
     font-size: 30px;
     font-weight:bold;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
    padding: 8px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 15px; font-weight: 500;
    transition: all var(--transition-fast);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta {
    padding: 10px 20px; border-radius: var(--radius-sm);
    background: var(--accent-gradient); color: white !important;
    font-weight: 600; font-size: 14px; transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(138, 92, 246, 0.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(138, 92, 246, 0.5); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
 
/* ========== Hero 区域 ========== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 0 80px; z-index: 1;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--gradient-hero); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-content { max-width: 600px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(138, 92, 246, 0.15);
    border: 1px solid rgba(138, 92, 246, 0.3);
    border-radius: 100px; font-size: 13px; color: var(--text-secondary);
    margin-bottom: 24px; backdrop-filter: blur(10px);
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-1); box-shadow: 0 0 12px var(--accent-1);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }
.hero-title {
    font-size: clamp(40px, 6vw, 72px); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 24px;
}
.title-line { display: block; opacity: 0; animation: slideUp 0.8s ease forwards; }
.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line.sub { font-size: 0.55em; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.02em; animation-delay: 0.3s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 36px; max-width: 520px; opacity: 0; animation: slideUp 0.8s ease 0.4s forwards; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; opacity: 0; animation: slideUp 0.8s ease 0.5s forwards; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 600; transition: all var(--transition);
    cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: 0 4px 20px rgba(138, 92, 246, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(138, 92, 246, 0.5); }
.btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--border-color-hover); transform: translateY(-2px); }
.btn-large { padding: 18px 36px; font-size: 17px; }
.hero-stats { display: flex; gap: 48px; opacity: 0; animation: slideUp 0.8s ease 0.6s forwards; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 32px; font-weight: 800; font-family: var(--font-mono); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.hero-preview { opacity: 0; animation: slideUp 0.8s ease 0.7s forwards; }
.window-frame {
    background: var(--bg-secondary); border-radius: var(--radius-lg);
    border: 1px solid var(--border-color); overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(138, 92, 246, 0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition);
}
.window-frame:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.window-header {
    display: flex; align-items: center; padding: 12px 16px;
    background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); gap: 12px;
}
.window-dots { display: flex; gap: 8px; }
.window-dots span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #28ca42; }
.window-title { flex: 1; text-align: center; font-size: 13px; color: var(--text-secondary); font-family: var(--font-mono); }
.window-body { display: grid; grid-template-columns: 80px 1fr 120px; padding: 16px; gap: 12px; min-height: 350px; }
.editor-sidebar { display: flex; flex-direction: column; gap: 8px; }
.sb-item {
    padding: 10px; background: var(--bg-tertiary); border-radius: var(--radius-sm);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 11px; color: var(--text-secondary); border: 1px solid transparent;
    transition: all var(--transition-fast);
}
.sb-item:hover, .sb-item.active { background: rgba(138, 92, 246, 0.1); border-color: var(--border-color-hover); color: var(--text-primary); }
.sb-icon { font-size: 20px; }
.editor-main { background: var(--bg-card); border-radius: var(--radius-md); padding: 16px; border: 1px solid var(--border-color); }
.stage-area { width: 100%; height: 100%; background: linear-gradient(135deg, #fff5d6 0%, #ffe0b3 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.sprite-preview { font-size: 40px; animation: spriteBounce 2s ease-in-out infinite; }
@keyframes spriteBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
 
/* ========== Section Header ========== */
section { position: relative; padding: 100px 0; z-index: 1; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-tag { display: inline-block; font-family: var(--font-mono); font-size: 14px; color: var(--accent-1); margin-bottom: 16px; letter-spacing: 0.05em; }
.section-title { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.6; }
 
/* ========== 功能特性 ========== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
    padding: 32px; background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); backdrop-filter: blur(10px);
    transition: all var(--transition); position: relative; overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient-card); opacity: 0; transition: opacity var(--transition); }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-color-hover); box-shadow: var(--shadow-md), var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; color: white; box-shadow: 0 4px 16px rgba(138, 92, 246, 0.4);
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
 
/* ========== 编辑器展示 ========== */
.editor-window { background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 1000px; margin: 0 auto; }
.ew-menu { display: flex; align-items: center; padding: 12px 20px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); gap: 20px; }
.ew-menu-left { display: flex; gap: 8px; }
.ew-dot { width: 10px; height: 10px; border-radius: 50%; }
.ew-dot-r { background: #ff5f57; }
.ew-dot-y { background: #ffbd2e; }
.ew-dot-g { background: #28ca42; }
.ew-menu-items { display: flex; gap: 4px; flex: 1; }
.ew-menu-item { padding: 6px 12px; font-size: 13px; color: var(--text-secondary); border-radius: 6px; cursor: pointer; transition: all var(--transition-fast); font-family: var(--font-mono); }
.ew-menu-item:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.ew-status { font-size: 12px; color: #4ade80; font-family: var(--font-mono); }
.ew-body { display: grid; grid-template-columns: 180px 1fr 200px; gap: 0; min-height: 400px; }
.ew-sidebar { background: var(--bg-card); padding: 20px 16px; border-right: 1px solid var(--border-color); overflow-y: auto; }
.ew-section-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 16px 0 10px; font-weight: 700; }
.ew-section-title:first-child { margin-top: 0; }
.ew-code-block { padding: 8px 12px; border-radius: 6px; font-size: 12px; color: white; font-weight: 600; margin-bottom: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2); }
.cw-green { background: var(--scratch-green); }
.cw-purple { background: var(--scratch-purple); }
.cw-orange { background: var(--scratch-orange); }
.cw-yellow { background: var(--scratch-yellow); color: #333; }
.ew-workspace {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    background-size: 20px 20px; padding: 30px; position: relative;
}
.ew-workspace::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(138, 92, 246, 0.1) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.ew-script-stack { display: inline-flex; flex-direction: column; position: relative; z-index: 1; }
.ew-script-block {
    padding: 12px 16px; border-radius: 8px; font-size: 14px; color: white; font-weight: 600;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: -2px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.2);
    transition: transform var(--transition-fast);
}
.ew-script-block:hover { transform: translateX(4px); }
.ew-script-block[data-block="event"] { background: var(--scratch-yellow); color: #333; }
.ew-script-block[data-block="control"] { background: var(--scratch-orange); flex-direction: column; align-items: flex-start; padding: 12px 16px 16px; }
.ew-script-block[data-block="motion"] { background: var(--scratch-blue); }
.ew-script-block[data-block="looks"] { background: var(--scratch-purple); }
.ew-block-label { line-height: 1; }
.ew-block-input { background: white; border: none; border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 600; color: #333; width: 60px; text-align: center; outline: none; }
.ew-block-input.text-input { width: auto; min-width: 80px; text-align: left; }
.ew-script-block.small { padding: 10px 14px; font-size: 13px; margin: 4px 0; width: 100%; }
.ew-script-nested { background: rgba(0,0,0,0.15); border-left: 3px solid rgba(0,0,0,0.2); padding: 6px 0 6px 14px; margin: 8px -16px -16px -16px; width: calc(100% + 32px); border-radius: 0 0 8px 8px; }
.ew-script-nested .ew-script-block { margin-left: 10px; }
.ew-stage { background: var(--bg-card); border-left: 1px solid var(--border-color); padding: 16px; display: flex; flex-direction: column; }
.ew-stage-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.ew-stage-actions { display: flex; gap: 4px; }
.ew-btn { padding: 4px 10px; background: var(--bg-tertiary); border-radius: 6px; cursor: pointer; transition: all var(--transition-fast); }
.ew-btn:hover { background: var(--accent-1); color: white; }
.ew-stage-area { flex: 1; background: linear-gradient(135deg, #fff5d6 0%, #ffe0b3 100%); border-radius: var(--radius-md); position: relative; min-height: 200px; overflow: hidden; }
.ew-sprite { position: absolute; animation: spriteWalk 8s ease-in-out infinite; }
.ew-sprite-body { font-size: 36px; animation: spriteBounce 1s ease-in-out infinite; }
@keyframes spriteWalk { 0%, 100% { left: 20%; top: 30%; } 25% { left: 60%; top: 20%; } 50% { left: 70%; top: 50%; } 75% { left: 30%; top: 60%; } }
.ew-sprite-list { display: flex; gap: 8px; margin-top: 12px; }
.ew-sprite-item { flex: 1; padding: 8px; background: var(--bg-tertiary); border-radius: 8px; font-size: 12px; text-align: center; color: var(--text-secondary); border: 2px solid transparent; transition: all var(--transition-fast); }
.ew-sprite-item.active { border-color: var(--accent-1); color: var(--text-primary); }
.ew-sprite-item:hover { background: rgba(138, 92, 246, 0.1); }
 
/* ========== AI 能力 ========== */
.ai-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 48px; }
.ai-card { padding: 32px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); backdrop-filter: blur(10px); transition: all var(--transition); }
.ai-card:hover { transform: translateY(-4px); border-color: var(--border-color-hover); box-shadow: var(--shadow-md); }
.ai-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ai-icon { font-size: 28px; width: 48px; height: 48px; background: var(--accent-gradient); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.ai-card h3 { font-size: 20px; font-weight: 700; }
.ai-card p { color: var(--text-secondary); font-size: 15px; margin-bottom: 20px; line-height: 1.7; }
.ai-card-preview { background: var(--bg-tertiary); border-radius: var(--radius-md); padding: 16px; font-family: var(--font-mono); font-size: 13px; }
.ai-input { background: rgba(138, 92, 246, 0.15); border: 1px solid rgba(138, 92, 246, 0.3); padding: 10px 14px; border-radius: 8px; color: var(--text-primary); margin-bottom: 12px; }
.ai-output { display: flex; flex-direction: column; gap: 6px; }
.ai-output-line { color: #4ade80; opacity: 0; animation: typeLine 0.5s ease forwards; }
.ai-output-line:nth-child(1) { animation-delay: 0.3s; }
.ai-output-line:nth-child(2) { animation-delay: 0.8s; }
.ai-output-line:nth-child(3) { animation-delay: 1.3s; }
@keyframes typeLine { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.ai-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ai-preview-item { aspect-ratio: 1; background: var(--bg-primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; border: 1px solid var(--border-color); transition: all var(--transition-fast); }
.ai-preview-item:hover { transform: scale(1.1); border-color: var(--accent-1); }
.ai-chat-bubble { padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.ai-chat-bubble.user { background: var(--accent-gradient); color: white; margin-left: 20%; border-bottom-right-radius: 4px; }
.ai-chat-bubble.bot { background: var(--bg-primary); border: 1px solid var(--border-color); margin-right: 20%; border-bottom-left-radius: 4px; color: var(--text-secondary); }
.ai-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 40px; background: linear-gradient(135deg, rgba(138, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%); border: 1px solid var(--border-color-hover); border-radius: var(--radius-xl); flex-wrap: wrap; }
.ai-banner-content h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.ai-banner-content p { color: var(--text-secondary); font-size: 15px; }
 
/* ========== 主题商店 ========== */
.themes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }
.theme-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; }
.theme-card:hover { transform: translateY(-4px); border-color: var(--border-color-hover); box-shadow: var(--shadow-md); }
.theme-preview { padding: 20px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.theme-block { height: 16px; border-radius: 4px; }
.theme-dark .theme-preview { background: #1a1a2e; }
.theme-dark .b1 { background: #8a5cf6; width: 60%; }
.theme-dark .b2 { background: #6366f1; width: 40%; }
.theme-dark .b3 { background: #06b6d4; width: 70%; }
.theme-midnight .theme-preview { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.theme-midnight .b1 { background: #3b82f6; width: 60%; }
.theme-midnight .b2 { background: #60a5fa; width: 40%; }
.theme-midnight .b3 { background: #93c5fd; width: 70%; }
.theme-minecraft .theme-preview { background: #3d3d3d; }
.theme-minecraft .b1 { background: #5a8a3a; width: 60%; border: 2px solid #2d4a1e; }
.theme-minecraft .b2 { background: #8b6f47; width: 40%; border: 2px solid #4a3f2a; }
.theme-minecraft .b3 { background: #708090; width: 70%; border: 2px solid #3a3a3a; }
.theme-scratch .theme-preview { background: #f9f9f9; }
.theme-scratch .b1 { background: #4c97ff; width: 60%; }
.theme-scratch .b2 { background: #9966ff; width: 40%; }
.theme-scratch .b3 { background: #4cbf56; width: 70%; }
.theme-gd .theme-preview { background: #1a1a2e; }
.theme-gd .b1 { background: linear-gradient(90deg, #ff6b6b, #feca57); width: 60%; }
.theme-gd .b2 { background: linear-gradient(90deg, #48dbfb, #0abde3); width: 40%; }
.theme-gd .b3 { background: linear-gradient(90deg, #ff9ff3, #f368e0); width: 70%; }
.theme-polytoria .theme-preview { background: #0f1419; }
.theme-polytoria .b1 { background: #e74c3c; width: 60%; }
.theme-polytoria .b2 { background: #3498db; width: 40%; }
.theme-polytoria .b3 { background: #2ecc71; width: 70%; }
.theme-breeze .theme-preview { background: #f0f4f8; }
.theme-breeze .b1 { background: #3da9fc; width: 60%; }
.theme-breeze .b2 { background: #5f6368; width: 40%; }
.theme-breeze .b3 { background: #9aa0a6; width: 70%; }
.theme-cosmos .theme-preview { background: linear-gradient(135deg, #0c0c1e 0%, #1a1a3e 100%); }
.theme-cosmos .b1 { background: #a855f7; width: 60%; }
.theme-cosmos .b2 { background: #ec4899; width: 40%; }
.theme-cosmos .b3 { background: #6366f1; width: 70%; }
.theme-jjk .theme-preview { background: #0a0a0f; }
.theme-jjk .b1 { background: #9333ea; width: 60%; }
.theme-jjk .b2 { background: #581c87; width: 40%; }
.theme-jjk .b3 { background: #c084fc; width: 70%; }
.theme-info { padding: 16px 20px; border-top: 1px solid var(--border-color); }
.theme-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.theme-info p { font-size: 13px; color: var(--text-secondary); }
.themes-more { text-align: center; }
.themes-more p { color: var(--text-secondary); margin-bottom: 16px; }
.theme-link { color: var(--accent-1); font-weight: 600; font-size: 15px; }
.theme-link:hover { color: var(--accent-3); }
 
/* ========== 打包器 ========== */
.packager-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.packager-left .section-tag { display: inline-block; margin-bottom: 16px; }
.packager-left .section-title { text-align: left; margin-bottom: 20px; }
.packager-left .section-desc { text-align: left; margin-bottom: 32px; }
.packager-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.pf-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: all var(--transition-fast); }
.pf-item:hover { border-color: var(--border-color-hover); transform: translateX(4px); }
.pf-icon { font-size: 24px; width: 44px; height: 44px; background: var(--accent-gradient); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pf-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pf-item p { font-size: 14px; color: var(--text-secondary); }
.packager-window { background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-lg); }
.pw-header { padding: 16px 20px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); }
.pw-title { font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); font-weight: 600; }
.pw-body { padding: 24px; }
.pw-step { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-card); border-radius: var(--radius-md); margin-bottom: 12px; border: 1px solid var(--border-color); transition: all var(--transition); opacity: 0.7; }
.pw-step.active { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3); opacity: 1; }
.pw-step:last-child { margin-bottom: 0; }
.pw-step-num { width: 36px; height: 36px; background: var(--bg-tertiary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-mono); flex-shrink: 0; }
.pw-step.active .pw-step-num { background: linear-gradient(135deg, #4ade80, #22c55e); color: white; box-shadow: 0 0 16px rgba(74, 222, 128, 0.4); }
.pw-step-text { font-size: 15px; color: var(--text-secondary); }
.pw-step.active .pw-step-text { color: var(--text-primary); font-weight: 600; }
 
/* ========== 开发者资源 ========== */
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.res-card { padding: 32px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: all var(--transition); display: block; backdrop-filter: blur(10px); }
.res-card:hover { transform: translateY(-4px); border-color: var(--border-color-hover); box-shadow: var(--shadow-md), var(--shadow-glow); }
.res-icon { font-size: 36px; margin-bottom: 20px; }
.res-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.res-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; line-height: 1.7; }
.res-link { color: var(--accent-1); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; }
 
/* ========== CTA ========== */
.cta-section { padding: 80px 0 120px; }
.cta-box {
    background: linear-gradient(135deg, rgba(138, 92, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid var(--border-color-hover); border-radius: var(--radius-xl);
    padding: 80px 60px; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; top: -50%; left: -10%; width: 400px; height: 400px; background: var(--accent-1); border-radius: 50%; filter: blur(120px); opacity: 0.2; z-index: 0; }
.cta-box::after { content: ''; position: absolute; bottom: -50%; right: -10%; width: 400px; height: 400px; background: var(--accent-3); border-radius: 50%; filter: blur(120px); opacity: 0.2; z-index: 0; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.cta-box > p { font-size: 18px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
 
/* ========== 页脚 ========== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 60px 0 30px; position: relative; z-index: 1; }
.footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-secondary); font-size: 15px; margin-top: 12px; }
.footer-brand .logo { margin-bottom: 8px; }
.footer-note { font-size: 13px !important; color: var(--text-muted) !important; margin-top: 16px !important; line-height: 1.7; }
.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { font-size: 14px; color: var(--text-secondary); transition: all var(--transition-fast); }
.footer-links a:hover { color: var(--accent-1); }
.footer-bottom { padding-top: 30px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
 
/* ========== 滚动动画 ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
 
/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 60px; }
    .hero-content { max-width: 100%; }
    .packager-content { grid-template-columns: 1fr; gap: 40px; }
    .packager-left .section-title, .packager-left .section-desc { text-align: center; }
    .packager-left { text-align: center; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); padding: 20px; border-bottom: 1px solid var(--border-color); }
    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: clamp(32px, 8vw, 48px); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    .features-grid, .ai-features, .themes-grid, .resource-grid { grid-template-columns: 1fr; }
    .ew-body { grid-template-columns: 1fr; }
    .ew-sidebar, .ew-stage { border: none; border-bottom: 1px solid var(--border-color); }
    .footer-links-group { grid-template-columns: 1fr; gap: 24px; }
    .cta-box { padding: 50px 30px; }
    .ai-banner { flex-direction: column; text-align: center; }
    .window-body { grid-template-columns: 60px 1fr; }
    .editor-stage { display: none; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-cta { padding: 8px 16px; font-size: 13px; }
    .stat-num { font-size: 24px; }
}
 
/* ========== 自定义滚动条 ========== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-1); }
 
/* ========== 选中文字样式 ========== */
::selection { background: rgba(138, 92, 246, 0.3); color: white; }
 
/* ========== 焦点样式 ========== */
:focus { outline: 2px solid var(--accent-1); outline-offset: 2px; }