/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #1e1e2e;
  --bg-alt: #252538;
  --card: #2a2a3e;
  --card-hover: #32324a;
  --border: #3a3a52;
  --text: #e4e4f0;
  --text-dim: #9898b0;
  --primary: #ff9f43;
  --primary-dark: #e88a2e;
  --accent: #4ecdc4;
  --accent-dark: #3db8b0;
  --danger: #ff6b6b;
  --warning: #ffd93d;
  --success: #6bcf7f;
  --radius: 8px;
  --pixel-font: 'Press Start 2P', 'Noto Sans SC', monospace;
  --body-font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(30,30,46,.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  transition: background .3s;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.nav-logo:hover { color: var(--text); }
.logo-icon { image-rendering: pixelated; }
.logo-text { font-family: var(--pixel-font); font-size: 14px; color: var(--primary); }
.logo-cn { font-family: var(--body-font); font-size: 14px; color: var(--text); font-weight: 700; margin-left: 4px; }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
  color: var(--text-dim); padding: 8px 14px; border-radius: 4px;
  font-size: 14px; font-weight: 500; transition: all .2s;
}
.nav-links a:hover { color: var(--primary); background: rgba(255,159,67,.1); }
.nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: var(--bg) !important;
  padding: 8px 20px; border-radius: 4px; font-weight: 700; font-size: 14px;
  transition: all .2s;
}
.nav-cta:hover { background: var(--primary-dark); color: var(--bg) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: all .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 120px 0 80px;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(78,205,196,.12); color: var(--accent);
  border: 1px solid rgba(78,205,196,.3); padding: 6px 16px; border-radius: 20px;
  font-size: 13px; margin-bottom: 24px;
}
.hero-title {
  font-family: var(--pixel-font); font-size: 42px; line-height: 1.3;
  color: var(--primary); margin-bottom: 12px;
}
.hero-title-cn { font-family: var(--body-font); font-size: 36px; color: var(--text); }
.hero-subtitle { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.hero-desc { font-size: 15px; color: var(--text-dim); margin-bottom: 28px; max-width: 520px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 4px; font-size: 13px; color: var(--text-dim);
}
.tag svg { image-rendering: pixelated; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: 4px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  transition: all .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-dark); color: var(--bg); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,159,67,.3); }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; }

/* Mock Window */
.hero-visual { position: relative; }
.mock-window {
  background: #2d2d44; border: 2px solid var(--border); border-radius: 8px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4);
  image-rendering: pixelated;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #252538; border-bottom: 1px solid var(--border);
}
.mock-dot { width: 12px; height: 12px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }
.mock-title { margin-left: 12px; font-size: 12px; color: var(--text-dim); }
.mock-body { display: flex; height: 280px; }
.mock-toolbar {
  width: 44px; background: #252538; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px; padding: 8px 6px;
}
.tool {
  width: 32px; height: 32px; border-radius: 4px; background: #3a3a52;
  border: 1px solid transparent; cursor: pointer;
}
.tool.active { background: var(--primary); border-color: var(--primary-dark); }
.tool:nth-child(1) { clip-path: polygon(20% 80%,80% 20%,80% 35%,35% 80%); background: var(--text-dim); }
.tool:nth-child(2) { background: var(--text-dim); clip-path: polygon(30% 30%,70% 30%,70% 50%,60% 50%,60% 70%,40% 70%,40% 50%,30% 50%); }
.tool:nth-child(3) { background: var(--text-dim); border-radius: 50%; }
.tool:nth-child(4) { background: var(--text-dim); }
.tool:nth-child(5) { background: var(--text-dim); border: 2px dashed; }
.tool:nth-child(6) { background: var(--text-dim); clip-path: polygon(50% 20%,80% 50%,50% 80%,20% 50%); }
.tool.active { background: var(--primary) !important; }
.mock-canvas-area { flex: 1; display: flex; align-items: center; justify-content: center; background: #1a1a2a; overflow: hidden; }
.mock-canvas {
  display: grid; grid-template-columns: repeat(16, 1fr); gap: 0;
  width: 192px; height: 192px; image-rendering: pixelated;
}
.mock-canvas .px { width: 12px; height: 12px; }
.mock-right { width: 120px; background: #252538; border-left: 1px solid var(--border); padding: 8px; display: flex; flex-direction: column; gap: 12px; }
.mock-panel-title { font-size: 10px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; }
.palette-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.palette-grid .swatch { width: 12px; height: 12px; border-radius: 2px; }
.preview-box {
  width: 100%; height: 60px; background: #1a1a2a; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.preview-box canvas { image-rendering: pixelated; }
.mock-timeline {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; background: #252538; border-top: 1px solid var(--border);
}
.timeline-label { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
.timeline-frames { display: flex; gap: 6px; }
.frame {
  width: 40px; height: 36px; background: #1a1a2a; border: 2px solid var(--border);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
}
.frame.active { border-color: var(--primary); }
.frame-thumb { width: 28px; height: 24px; display: grid; grid-template-columns: repeat(7,1fr); }
.frame-thumb .fpx { width: 4px; height: 4px; }

.hero-pixels {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,159,67,.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(78,205,196,.06) 0%, transparent 50%);
}

/* ===== Stats ===== */
.stats { background: var(--bg-alt); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { font-family: var(--pixel-font); font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text); font-weight: 500; }
.stat-label small { color: var(--text-dim); font-size: 12px; font-weight: 400; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-family: var(--pixel-font); font-size: 24px; color: var(--primary);
  margin-bottom: 12px; line-height: 1.5;
}
.section-subtitle { font-size: 16px; color: var(--text-dim); }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: all .3s; cursor: default;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.feature-icon {
  width: 48px; height: 48px; margin-bottom: 16px; border-radius: 8px;
  background: rgba(255,159,67,.12); display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { image-rendering: pixelated; }
.feature-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.feature-link { font-size: 13px; font-weight: 500; color: var(--accent); }
.feature-link:hover { color: var(--primary); }

/* Pixel icons using CSS */
.pixel-icon-pencil { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Crect x='2' y='11' width='3' height='3' fill='%23ff9f43'/%3E%3Crect x='5' y='8' width='3' height='3' fill='%23ff9f43'/%3E%3Crect x='8' y='5' width='3' height='3' fill='%23ff9f43'/%3E%3Crect x='11' y='2' width='3' height='3' fill='%23ff9f43'/%3E%3C/svg%3E") center/24px no-repeat; }
.pixel-icon-timeline { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Crect x='1' y='5' width='3' height='6' fill='%23ff9f43'/%3E%3Crect x='5' y='3' width='3' height='8' fill='%23ff9f43'/%3E%3Crect x='9' y='6' width='3' height='5' fill='%23ff9f43'/%3E%3Crect x='13' y='4' width='2' height='7' fill='%23ff9f43'/%3E%3C/svg%3E") center/24px no-repeat; }
.pixel-icon-onion { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Ccircle cx='6' cy='8' r='4' fill='none' stroke='%23ff9f43' stroke-width='1'/%3E%3Ccircle cx='10' cy='8' r='4' fill='none' stroke='%23ff6b6b' stroke-width='1'/%3E%3C/svg%3E") center/24px no-repeat; }
.pixel-icon-layers { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='3' fill='%23ff9f43'/%3E%3Crect x='2' y='7' width='12' height='3' fill='%234ecdc4' opacity='.7'/%3E%3Crect x='2' y='11' width='12' height='3' fill='%23ff9f43' opacity='.5'/%3E%3C/svg%3E") center/24px no-repeat; }
.pixel-icon-palette { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='3' height='3' fill='%23ff6b6b'/%3E%3Crect x='6' y='2' width='3' height='3' fill='%23ffd93d'/%3E%3Crect x='10' y='2' width='3' height='3' fill='%236bcf7f'/%3E%3Crect x='2' y='6' width='3' height='3' fill='%234ecdc4'/%3E%3Crect x='6' y='6' width='3' height='3' fill='%23ff9f43'/%3E%3Crect x='10' y='6' width='3' height='3' fill='%23a78bfa'/%3E%3C/svg%3E") center/24px no-repeat; }
.pixel-icon-sheet { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='6' height='6' fill='none' stroke='%23ff9f43' stroke-width='1'/%3E%3Crect x='9' y='1' width='6' height='6' fill='none' stroke='%23ff9f43' stroke-width='1'/%3E%3Crect x='1' y='9' width='6' height='6' fill='none' stroke='%23ff9f43' stroke-width='1'/%3E%3Crect x='9' y='9' width='6' height='6' fill='none' stroke='%23ff9f43' stroke-width='1'/%3E%3C/svg%3E") center/24px no-repeat; }
.pixel-icon-tile { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Crect x='1' y='1' width='6' height='6' fill='%23ff9f43'/%3E%3Crect x='9' y='1' width='6' height='6' fill='%234ecdc4'/%3E%3Crect x='1' y='9' width='6' height='6' fill='%234ecdc4'/%3E%3Crect x='9' y='9' width='6' height='6' fill='%23ff9f43'/%3E%3C/svg%3E") center/24px no-repeat; }
.pixel-icon-cli { background: rgba(255,159,67,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 16 16'%3E%3Crect x='1' y='2' width='14' height='12' fill='none' stroke='%23ff9f43' stroke-width='1'/%3E%3Crect x='3' y='5' width='3' height='2' fill='%23ff9f43'/%3E%3Crect x='7' y='5' width='5' height='2' fill='%23ff9f43' opacity='.5'/%3E%3Crect x='3' y='9' width='8' height='2' fill='%23ff9f43' opacity='.5'/%3E%3C/svg%3E") center/24px no-repeat; }

/* ===== Scenes ===== */
.scenes-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.scene-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: all .3s;
}
.scene-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.scene-emoji { font-size: 36px; margin-bottom: 12px; }
.scene-card h3 { font-size: 15px; margin-bottom: 8px; }
.scene-card p { font-size: 13px; color: var(--text-dim); }

/* ===== Buy ===== */
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.buy-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative; transition: all .3s;
}
.buy-card:hover { transform: translateY(-4px); }
.buy-card.recommended { border-color: var(--primary); box-shadow: 0 0 30px rgba(255,159,67,.15); }
.buy-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--bg); padding: 4px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.buy-card h3 { font-size: 20px; margin-bottom: 12px; text-align: center; }
.buy-price { font-family: var(--pixel-font); font-size: 24px; color: var(--primary); text-align: center; margin-bottom: 24px; }
.buy-price small { font-family: var(--body-font); font-size: 13px; color: var(--text-dim); }
.buy-features { list-style: none; margin-bottom: 24px; }
.buy-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-dim);
  border-bottom: 1px solid rgba(255,255,255,.05); padding-left: 24px; position: relative;
}
.buy-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.buy-note details {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
}
.buy-note summary { cursor: pointer; font-weight: 700; color: var(--accent); font-size: 15px; }
.buy-note summary:hover { color: var(--primary); }
.buy-note-content { margin-top: 16px; font-size: 14px; color: var(--text-dim); }
.buy-note-content ul { margin: 12px 0 12px 20px; }
.buy-note-content li { margin-bottom: 6px; }

/* ===== Download ===== */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.download-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; transition: all .3s;
}
.download-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.download-icon { color: var(--primary); margin-bottom: 16px; }
.download-card h3 { font-size: 20px; margin-bottom: 8px; }
.download-version { font-size: 13px; color: var(--accent); margin-bottom: 20px; }
.download-list { list-style: none; text-align: left; margin-bottom: 24px; }
.download-list li {
  padding: 6px 0; font-size: 13px; color: var(--text-dim);
  padding-left: 20px; position: relative;
}
.download-list li::before { content: '•'; position: absolute; left: 4px; color: var(--primary); }

.localize-guide {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 36px;
}
.localize-title { font-size: 20px; margin-bottom: 8px; color: var(--primary); }
.localize-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; }
.localize-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; min-width: 32px; background: var(--primary); color: var(--bg);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.step-text { font-size: 14px; color: var(--text); padding-top: 4px; }
.step-text strong { color: var(--accent); }
.localize-faq {
  background: rgba(78,205,196,.06); border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 0 4px 4px 0;
}
.localize-faq p { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.localize-faq p:last-child { margin-bottom: 0; }

/* ===== Tutorials ===== */
.tutorial-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.tab-btn {
  background: var(--card); border: 2px solid var(--border); color: var(--text-dim);
  padding: 8px 20px; border-radius: 4px; cursor: pointer; font-size: 14px;
  font-family: var(--body-font); transition: all .2s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--text); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: var(--bg); font-weight: 700; }
.tutorials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tutorial-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: pointer; transition: all .3s; display: flex; flex-direction: column;
}
.tutorial-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.tut-cat {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 3px; margin-bottom: 12px; width: fit-content;
}
.tut-cat.beginner { background: rgba(107,207,127,.15); color: var(--success); }
.tut-cat.animation { background: rgba(255,159,67,.15); color: var(--primary); }
.tut-cat.gamedev { background: rgba(78,205,196,.15); color: var(--accent); }
.tut-cat.advanced { background: rgba(167,139,250,.15); color: #a78bfa; }
.tutorial-card h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.5; }
.tutorial-card p { font-size: 13px; color: var(--text-dim); flex: 1; margin-bottom: 14px; }
.tut-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); }

/* ===== Compare Table ===== */
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 2px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 700px; }
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: center; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.compare-table th { background: var(--bg-alt); font-weight: 700; color: var(--text); }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--text-dim); font-weight: 500; }
.compare-table .col-highlight {
  background: rgba(255,159,67,.08); color: var(--primary); font-weight: 700;
  border-left: 2px solid var(--primary); border-right: 2px solid var(--primary);
}
.compare-table thead .col-highlight { background: rgba(255,159,67,.15); }
.compare-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare-table tbody tr:hover .col-highlight { background: rgba(255,159,67,.12); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; background: none; border: none; color: var(--text);
  font-size: 15px; font-weight: 500; cursor: pointer; text-align: left;
  font-family: var(--body-font); transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  font-size: 22px; color: var(--primary); transition: transform .3s;
  min-width: 24px; text-align: center;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { font-size: 14px; color: var(--text-dim); line-height: 1.8; }

/* ===== About ===== */
.about-content { max-width: 800px; text-align: center; }
.about-content p { font-size: 15px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.8; }

/* ===== Footer ===== */
.footer { background: #181828; border-top: 2px solid var(--border); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 14px; color: var(--text); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-dim); padding: 4px 0; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text-dim); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.75); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s; padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg); border: 2px solid var(--primary); border-radius: var(--radius);
  max-width: 800px; width: 100%; max-height: 85vh; overflow-y: auto;
  position: relative; transform: translateY(20px); transition: transform .3s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: var(--card);
  border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px;
  border-radius: 50%; font-size: 22px; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.modal-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.modal-body { padding: 36px; }
.modal-body .tut-header { margin-bottom: 24px; }
.modal-body .tut-cat { margin-bottom: 12px; }
.modal-body h2 { font-size: 22px; color: var(--primary); margin-bottom: 12px; line-height: 1.4; }
.modal-body .tut-meta-line { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.modal-body .tut-content { font-size: 15px; color: var(--text); line-height: 1.9; }
.modal-body .tut-content h3 { font-size: 17px; color: var(--accent); margin: 24px 0 10px; }
.modal-body .tut-content h4 { font-size: 15px; color: var(--primary); margin: 18px 0 8px; }
.modal-body .tut-content p { margin-bottom: 12px; }
.modal-body .tut-content ul, .modal-body .tut-content ol { margin: 8px 0 12px 20px; }
.modal-body .tut-content li { margin-bottom: 6px; }
.modal-body .tut-content code {
  background: var(--card); padding: 2px 8px; border-radius: 3px;
  font-family: 'Consolas', 'Monaco', monospace; font-size: 13px; color: var(--accent);
}
.modal-body .tut-content pre {
  background: #151522; border: 1px solid var(--border); border-radius: 4px;
  padding: 14px 18px; overflow-x: auto; margin: 12px 0;
}
.modal-body .tut-content pre code { background: none; padding: 0; color: var(--text); }
.modal-body .tut-content .tip {
  background: rgba(78,205,196,.08); border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 0 4px 4px 0; margin: 14px 0;
}
.modal-body .tut-content .warning {
  background: rgba(255,217,61,.08); border-left: 3px solid var(--warning);
  padding: 12px 16px; border-radius: 0 4px 4px 0; margin: 14px 0;
}
.modal-body .tut-related {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
}
.modal-body .tut-related h4 { font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.modal-body .tut-related a { display: inline-block; margin-right: 12px; margin-bottom: 6px; font-size: 13px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .5s ease forwards; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .scenes-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 32px; }
  .hero-title-cn { font-size: 28px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-alt); border-bottom: 2px solid var(--border);
    padding: 16px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-title { font-size: 24px; }
  .hero-title-cn { font-size: 22px; }
  .hero-subtitle { font-size: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .scenes-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-grid, .download-grid { grid-template-columns: 1fr; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .section-title { font-size: 18px; }
  .mock-body { height: 220px; }
  .mock-canvas { width: 128px; height: 128px; }
  .mock-canvas .px { width: 8px; height: 8px; }
  .mock-right { width: 90px; }
  .modal-body { padding: 24px; }
}
@media (max-width: 480px) {
  .scenes-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}
