/* ====== 神树笔记 · 下载页样式 ====== */
/* 主色：紫色。深色、简洁、克制（参考 Obsidian 官网气质） */

:root {
  --bg: #0e0d13;
  --bg-soft: #15131d;
  --panel: #1a1823;
  --panel-2: #211e2d;
  --border: #2a2738;
  --text: #ece9f5;
  --text-dim: #a8a2bd;
  --text-faint: #6f6a85;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-deep: #6d28d9;
  --radius: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(139,92,246,0.22), transparent 70%),
    radial-gradient(600px 400px at 85% 5%, rgba(109,40,217,0.14), transparent 70%);
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }

/* ====== 导航 ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px;
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-name { white-space: nowrap; }
.brand-logo { border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--text-dim); font-size: 14px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-switch { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.lang-btn { border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 13px; padding: 4px 12px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.lang-btn.is-active { background: var(--purple); color: #fff; }

/* ====== 按钮 ====== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--purple-bright), var(--purple-deep)); color: #fff; box-shadow: 0 8px 24px rgba(124,58,237,0.35); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(124,58,237,0.5); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ====== 首屏 ====== */
.hero { text-align: center; padding: 64px 24px 0; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.pill { display: inline-block; font-size: 13px; color: var(--purple-bright); background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.hero-title { font-size: clamp(32px, 5.5vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; background: linear-gradient(180deg, #fff, #c4bce0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 640px; margin: 0 auto 32px; color: var(--text-dim); font-size: 18px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-meta { color: var(--text-faint); font-size: 13px; }
.hero-shot { margin: 56px auto 0; max-width: 940px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); background: var(--panel); }
.hero-shot img { display: block; width: 100%; height: auto; }

/* ====== 卖点区块（图文左右） ====== */
.feature { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-text { max-width: 480px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--purple-bright); text-transform: uppercase; margin-bottom: 14px; }
.feature-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 16px; }
.feature-lead { color: var(--text-dim); font-size: 17px; margin-bottom: 24px; }

.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--purple); border-radius: 50%; }

/* 截图框 */
.shot-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.45); background: var(--panel); }
.shot-frame img { display: block; width: 100%; height: auto; }

/* ====== 示意图：一份 .md 多工具维护 ====== */
.diagram { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.diagram-file { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: var(--panel-2); border: 1px solid var(--purple); border-radius: 14px; padding: 18px 28px; box-shadow: 0 0 24px rgba(139,92,246,0.25); }
.df-ic { font-size: 26px; }
.df-name { font-weight: 700; font-size: 16px; }
.df-tag { font-size: 12px; color: var(--purple-bright); }
.diagram-flow { color: var(--text-faint); font-size: 20px; margin: 14px 0; letter-spacing: 6px; }
.diagram-tools { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dt { display: flex; flex-direction: column; gap: 2px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; min-width: 96px; }
.dt b { font-size: 14px; }
.dt i { font-style: normal; font-size: 12px; color: var(--text-faint); }

/* ====== 示意图：多源采集 ====== */
.capture { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.cap-sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cap-src { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 8px; font-size: 24px; }
.cap-src i { font-style: normal; font-size: 12px; color: var(--text-dim); }
.cap-arrow { color: var(--purple-bright); font-size: 26px; margin: 14px 0; }
.cap-note { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(109,40,217,0.18)); border: 1px solid var(--purple); border-radius: 12px; padding: 14px 24px; font-weight: 600; }

/* ====== 通用 section ====== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; text-align: center; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.section-lead { color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 0 auto 48px; }

/* 为什么放心用 */
.section-why { padding-top: 40px; }
.why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.why-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.why-card strong { font-size: 16px; }
.why-card span { color: var(--text-dim); font-size: 14px; }

/* ====== 底部 CTA ====== */
.cta { padding-bottom: 120px; }
.cta-note { color: var(--text-faint); font-size: 13px; margin-top: 16px; }

/* ====== 页脚 ====== */
.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-dim); }
.footer-copy { color: var(--text-faint); font-size: 13px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ====== 响应式 ====== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  /* 手机上图片永远排在文字下方 */
  .feature-alt .feature-visual { order: 2; }
  .feature-text { max-width: none; }
  .why-cards { grid-template-columns: 1fr; }
  .cap-sources { grid-template-columns: repeat(2, 1fr); }
  .feature { padding: 64px 20px; }
  .section { padding: 64px 20px; }
  .hero { padding-top: 40px; }
}

@media (max-width: 520px) {
  .nav { gap: 12px; padding: 12px 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { display: none; }
  .lang-btn { padding: 4px 10px; }
}
