/* 官网视觉方向：/design 出的方案 B「工具信任感」，色板/字体沿用 src/styles.css 的浅色「薄荷」
   主题（官网只做单一浅色，不做深浅切换——静态介绍页不需要这层复杂度）。 */

:root {
  --bg: #ffffff;
  --pane: #f6f8f7;
  --surface: #ffffff;
  --ink: #1b2320;
  --ink-2: #46534e;
  --ink-3: #5d6b66;
  --mute: #8b9995;
  --line: #e8efec;
  --accent: #3aa38c;
  --accent-strong: #2f8b76;
  --accent-strong-hover: #256b5b;
  --accent-soft: rgba(58, 163, 140, 0.12);
  --code-bg: #f1f6f4;
  --shadow-sm: 0 1px 3px rgba(24, 46, 40, 0.06), 0 1px 2px rgba(24, 46, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 46, 40, 0.1);
  --shadow-lg: 0 16px 48px rgba(24, 46, 40, 0.16);
  --font-ui: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}
a:hover {
  color: var(--accent-strong-hover);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge-version {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  color: var(--ink-2);
  font-size: 14px;
}
.nav-links a:not(.btn):hover {
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-strong-hover);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-disabled {
  background: var(--pane);
  color: var(--mute);
  border-color: var(--line);
  cursor: not-allowed;
}
.btn-disabled:hover {
  background: var(--pane);
  color: var(--mute);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 72px;
}

.hero-copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 46ch;
}

code.inline {
  font-family: var(--font-mono);
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 14px;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* app-window mockup */

.mockup {
  flex: 1 1 460px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--pane);
  border-bottom: 1px solid var(--line);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #e2857a; }
.mockup-dot.yellow { background: #e3c56e; }
.mockup-dot.green { background: #84c3a8; }

.mockup-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.mockup-body {
  display: flex;
  height: 320px;
}

.mockup-pane {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--pane);
}
.mockup-pane.tree {
  width: 24%;
  border-right: 1px solid var(--line);
}
.mockup-pane.outline {
  width: 22%;
  border-left: 1px solid var(--line);
}
.mockup-pane .bar {
  height: 7px;
  border-radius: 4px;
  background: #dbe3e0;
}
.mockup-pane .bar.active {
  background: var(--accent-soft);
}
.mockup-pane .bar.indent {
  margin-left: 10px;
}

.mockup-canvas {
  flex: 1;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
}
.mockup-canvas .bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8e5;
}
.mockup-canvas .bar.title {
  height: 14px;
  width: 55%;
  background: var(--ink);
}
.mockup-canvas .bar.rule {
  height: 2px;
  width: 32px;
  border-radius: 2px;
  background: var(--accent);
  margin: 2px 0;
}

.mockup-caption {
  text-align: center;
  font-size: 13px;
  color: var(--mute);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

/* ---------- Trust badges ---------- */

.badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 64px;
}

.badge-pill {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--pane);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Section shell ---------- */

section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Highlights ---------- */

.highlights {
  background: var(--pane);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.highlight-card {
  background: var(--surface);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.highlight-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.highlight-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- How-to steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--mute);
}

.step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- Download ---------- */

.download-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.download-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.download-info p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.os-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upcoming-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--mute);
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  stroke: var(--mute);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--mute);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--mute);
}
.footer-links a:hover {
  color: var(--accent-strong);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .download-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .nav-links {
    gap: 14px;
  }
  .nav-links span,
  .nav-links a:not(.btn) {
    display: none;
  }
  .mockup-body {
    height: auto;
    min-height: 220px;
  }
}
