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

:root {
  --accent:       #ff6a00;
  --accent-light: #ff9a44;
  --accent-bg:    #fff3ea;
  --text:         #1a1a1a;
  --text-sub:     #555;
  --text-muted:   #999;
  --bg:           #ffffff;
  --bg-soft:      #fafafa;
  --bg-warm:      #fff8f3;
  --border:       #f0f0f0;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 8px 30px rgba(0,0,0,.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.12);
  --radius:       12px;
  --radius-lg:    20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ══ 按钮 ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,106,0,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,106,0,.45);
}
.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent-bg);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--text-sub);
  background: transparent;
}
.btn-ghost:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

/* ══ 导航栏 ══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-sub);
  border-radius: 6px;
  transition: all .15s;
}
.nav-links a:hover { color: var(--accent); background: var(--accent-bg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s;
}

/* ══ HERO ══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 80px;
  background: linear-gradient(160deg, #fff8f3 0%, #fff3ea 40%, #ffe8d0 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,130,50,.18) 0%, transparent 70%);
  top: -150px; right: -100px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,180,80,.12) 0%, transparent 70%);
  bottom: 0; left: -80px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,106,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,106,0,.1);
  border: 1px solid rgba(255,106,0,.25);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{transform:scale(1);opacity:1;}
  50%{transform:scale(1.4);opacity:.6;}
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.title-zh {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 900;
  color: var(--accent);
  font-family: 'STKaiti', 'KaiTi', '楷体', serif;
  letter-spacing: 12px;
  text-shadow: 0 4px 20px rgba(255,106,0,.25);
  line-height: 1;
}
.title-en {
  font-size: clamp(13px, 1.6vw, 16px);
  color: #c07840;
  letter-spacing: 2px;
  font-weight: 400;
}

.hero-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 28px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,106,0,.2);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  max-width: 560px;
}
.hero-quote em {
  font-style: normal;
  font-size: 16px;
  color: #7a3a10;
  font-family: 'STKaiti','KaiTi','楷体',serif;
  line-height: 1.8;
}
.hero-quote span {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-desc {
  max-width: 560px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.9;
}
.hero-desc strong { color: var(--accent); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 浏览器截图框 */
.hero-screenshot {
  width: 100%;
  max-width: 860px;
  margin-top: 12px;
}
.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06);
  background: #fff;
}
.frame-bar {
  height: 36px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.dot { width:10px; height:10px; border-radius:50%; }
.dot.red    { background:#ff5f57; }
.dot.yellow { background:#febc2e; }
.dot.green  { background:#28c840; }
.frame-url {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

/* ══ 统计 ════════════════════════════════════════════ */
.stats {
  background: var(--bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ══ Section 通用 ════════════════════════════════════ */
section { padding: 88px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 15px;
  color: var(--text-sub);
}

/* ══ 功能卡片 ════════════════════════════════════════ */
.features { background: var(--bg-soft); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,106,0,.2);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ══ 截图展示 ════════════════════════════════════════ */
.screenshots { background: var(--bg-warm); }
.screenshot-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tab-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .2s;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.screenshot-viewer {
  max-width: 1000px;
  margin: 0 auto 20px;
}
.screenshot-viewer .screenshot-frame img {
  width: 100%;
  display: block;
}
.screenshot-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.thumb {
  width: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  opacity: .7;
}
.thumb:hover, .thumb.active {
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,106,0,.2);
}
.thumb img { width: 100%; height: 80px; object-fit: cover; object-position: top; }

/* ══ 技术栈 ════════════════════════════════════════ */
.stack { background: var(--bg); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stack-group {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stack-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,106,0,.08);
  color: var(--accent);
  border: 1px solid rgba(255,106,0,.18);
}
.stack-badge.green { background:rgba(22,163,74,.08); color:#16a34a; border-color:rgba(22,163,74,.2); }
.stack-badge.blue  { background:rgba(37,99,235,.08);  color:#2563eb; border-color:rgba(37,99,235,.2); }
.stack-badge.purple{ background:rgba(147,51,234,.08); color:#9333ea; border-color:rgba(147,51,234,.2); }

/* ══ 快速开始 ════════════════════════════════════════ */
.quickstart { background: var(--bg-soft); }
.steps { display: flex; flex-direction: column; gap: 32px; max-width: 800px; margin: 0 auto; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-num {
  font-size: 36px;
  font-weight: 900;
  color: rgba(255,106,0,.15);
  flex-shrink: 0;
  line-height: 1;
  width: 56px;
  text-align: right;
}
.step-content { flex: 1; }
.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.code-block {
  background: #1e1e2e;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.code-header span { font-size: 12px; color: rgba(255,255,255,.3); }
.copy-btn {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  background: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all .15s;
}
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.copy-btn.copied { color: #69f0ae; border-color: #69f0ae; }
pre {
  padding: 16px 20px;
  overflow-x: auto;
}
code {
  font-family: 'Fira Code', 'Consolas', 'Menlo', monospace;
  font-size: 14px;
  color: #cdd6f4;
  line-height: 1.6;
}
.step-note { font-size: 13px; color: var(--text-muted); }

.access-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
  cursor: pointer;
}
.access-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,106,0,.15);
}
.access-icon { font-size: 22px; }
.access-label { font-size: 13px; font-weight: 600; }
.access-url { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.default-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-sub);
}
.default-account svg { color: var(--accent); flex-shrink: 0; }
.default-account code {
  background: var(--accent-bg);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ══ 典故 CTA ════════════════════════════════════════ */
.lore-cta {
  background: linear-gradient(135deg, #1a0a00 0%, #3d1500 50%, #2a0e00 100%);
  padding: 80px 0;
}
.lore-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.lore-left { flex-shrink: 0; }
.lore-icon {
  width: 120px; height: 120px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-family: 'STKaiti','KaiTi','楷体',serif;
  color: #fff;
  box-shadow: 0 0 40px rgba(255,106,0,.4);
}
.lore-right blockquote {
  font-size: 22px;
  font-family: 'STKaiti','KaiTi','楷体',serif;
  color: rgba(255,200,140,.9);
  line-height: 2;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 20px;
  font-style: normal;
}
.lore-right p {
  font-size: 15px;
  color: rgba(255,200,150,.7);
  line-height: 1.9;
  margin-bottom: 28px;
}
.lore-right p strong { color: rgba(255,200,150,1); }

/* ══ 页脚 ════════════════════════════════════════════ */
.footer {
  background: #111;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: 'STKaiti','KaiTi','楷体',serif;
  letter-spacing: 2px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex: 1;
}
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  transition: color .15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.25);
}

/* ══ 滚动动画 ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══ 使用说明书入口 ══════════════════════════════════ */
.manual-entry { background: var(--bg-warm); }

.manual-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s;
}
.manual-entry-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255,106,0,.2);
}
.me-left {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 1;
}
.me-icon {
  width: 56px; height: 56px;
  background: var(--accent-bg);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.me-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.me-info p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 12px;
}
.me-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.me-tags span {
  padding: 3px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-sub);
}
.me-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255,106,0,.3);
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.me-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,106,0,.4); }

/* ══ 响应式 ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .manual-entry-card { flex-direction: column; gap: 20px; padding: 24px 20px; }
  .me-btn { width: 100%; justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .lore-inner { flex-direction: column; text-align: center; gap: 32px; }
  .lore-right blockquote { text-align: left; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .step { flex-direction: column; gap: 8px; }
  .step-num { text-align: left; width: auto; }
  .hero { padding-top: 80px; }
  .title-zh { letter-spacing: 6px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
