:root {
  --bg: #f3f1e7;
  --bg-soft: #eef2e3;
  --paper: #fdfcf6;
  --paper-strong: #ffffff;
  --text: #2d3729;
  --text-2: #5f6c58;
  --line: rgba(120, 141, 87, 0.16);
  --line-strong: rgba(120, 141, 87, 0.26);
  --green: #88a956;
  --green-deep: #6e8d3b;
  --green-soft: #dfe9cb;
  --mint: #b9cf95;
  --shadow: 0 8px 24px rgba(84, 98, 56, 0.06);
  --shadow-soft: 0 4px 14px rgba(84, 98, 56, 0.04);
  --radius: 14px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.7 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #f3f1e7;
  background-image:
    radial-gradient(circle at top left, rgba(181, 203, 132, 0.22), transparent 26%),
    radial-gradient(circle at right 18%, rgba(215, 224, 186, 0.28), transparent 22%),
    linear-gradient(180deg, #f7f5ec 0%, #f1efe4 100%);
  background-attachment: scroll;
  background-repeat: no-repeat;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell.shell-clip {
  /* 改用 visible，避免 clip 在移动端下拉时裁掉背景与内容造成空白。 */
  overflow: visible;
}

.section-wrap {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(136, 169, 86, 0.95);
  backdrop-filter: blur(14px);
}

.site-nav.scrolled {
  box-shadow: 0 12px 28px rgba(71, 89, 41, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 11px;
  background: rgba(38, 55, 20, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-text {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-text b {
  font-weight: 700;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a,
.nav-link-muted {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-link-muted:hover {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button-primary {
  border-color: rgba(92, 122, 44, 0.18);
  background: linear-gradient(180deg, #9dc264 0%, #84a94d 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(122, 148, 70, 0.18);
}

.button-soft {
  background: rgba(255, 255, 255, 0.66);
}

.button-small {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100svh - 70px);
  padding: 48px 0 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow em {
  font-style: normal;
  color: rgba(93, 105, 78, 0.9);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #bcd98f 0%, #7e9f42 100%);
  box-shadow: 0 0 0 6px rgba(136, 169, 86, 0.16);
}

.hero h1,
.section-intro h2 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
}

.hero h1 span,
.section-intro h2 span {
  color: var(--green-deep);
}

.hero-lede,
.section-intro p:last-child {
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: 1.06rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

/* Android 下载入口：只在移动端出现（桌面主 CTA 保持 Windows 不变） */
.hero-apk {
  display: none;
}

.hero-note {
  margin: 16px 0 0;
  color: rgba(84, 95, 71, 0.86);
  font-size: 0.95rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hero-metrics div,
.proof-strip,
.feature-card,
.screen-card,
.theme-card,
.doc-card,
.download-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 251, 0.72);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}

.hero-metrics div {
  min-height: 90px;
  padding: 14px 16px 12px;
  border-radius: var(--radius);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-metrics span {
  color: var(--text-2);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  height: 440px;
}

#neural-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(188, 210, 149, 0.34), transparent 26%),
    linear-gradient(180deg, rgba(250, 251, 247, 0.92), rgba(239, 243, 231, 0.96));
  border: 1px solid rgba(126, 150, 85, 0.12);
}

.mock-card,
.mock-status {
  position: absolute;
  border: 1px solid rgba(126, 150, 85, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 16px rgba(93, 109, 65, 0.05);
}

.mock-card {
  padding: 14px 16px;
}

.mock-card b,
.mock-status span:first-child {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.mock-card small,
.mock-status span:last-child {
  color: var(--text-2);
  font-size: 0.82rem;
}

.card-main {
  top: 44px;
  left: 42px;
  max-width: 250px;
}

.card-side {
  right: 36px;
  bottom: 84px;
  max-width: 215px;
}

.mock-status {
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 18px;
  padding: 10px 14px;
}

.proof-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: var(--radius);
}

.proof-strip p {
  margin: 0;
  font-weight: 600;
}

.proof-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-strip span {
  padding: 8px 14px;
  border: 1px solid rgba(126, 150, 85, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-2);
  font-size: 0.9rem;
}

.section-intro {
  padding-top: 52px;
}

.section-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
}

.feature-grid,
.screen-grid,
.theme-grid,
.doc-grid,
.download-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.feature-card {
  min-height: 180px;
  padding: 20px 20px;
  border-radius: var(--radius);
}

.feature-index,
.screen-head span,
.doc-num,
.download-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(136, 169, 86, 0.14);
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.feature-card h3,
.screen-head h3,
.theme-card h3,
.download-card h3 {
  margin: 14px 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.feature-card p,
.screen-head p,
.theme-card p,
.doc-card p,
.download-card p,
.download-card li {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
}

.screens {
  padding-top: 24px;
}

.screen-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  align-items: stretch;
}

.screen-card {
  padding: 18px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.screen-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  min-height: 96px;
}

.screen-head h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.screen-head p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.screen-preview {
  margin-top: auto;
  overflow: hidden;
  border: 1px solid rgba(126, 150, 85, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 252, 246, 0.98), rgba(240, 244, 233, 0.96));
  aspect-ratio: 16 / 10;
}

.screen-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}

.screen-card:hover .screen-preview img {
  transform: scale(1.01);
}

.assist-intro {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.share-intro {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.share-intro h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.share-intro p:last-child {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.8;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
}

.share-grid .screen-head {
  min-height: 84px;
}

.share-grid .screen-preview {
  aspect-ratio: 16 / 10;
}

.assist-intro h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.assist-intro h3 span {
  color: var(--green-deep);
}

.assist-intro p:last-child {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.8;
}

.assist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
}

.assist-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 251, 0.72);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  opacity: 0.88;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.assist-card:hover {
  opacity: 1;
  box-shadow: var(--shadow);
}

.assist-card .screen-head {
  min-height: 84px;
}

.assist-card .screen-head h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.assist-card .screen-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.assist-card .screen-preview {
  margin-top: auto;
  aspect-ratio: 16 / 10;
}

.assist-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(212, 197, 138, 0.28);
  color: #8a6f3a;
  font-size: 0.78rem;
  font-weight: 600;
}

.assist-preview {
  border-radius: 16px;
}

.assist-preview img {
  border-radius: 16px;
}

.preview-reading {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 250px;
}

.preview-reading aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 18px;
  border-right: 1px solid rgba(126, 150, 85, 0.12);
  background: rgba(239, 243, 231, 0.88);
}

.preview-reading aside span.active {
  color: var(--green-deep);
  font-weight: 700;
}

.preview-page {
  padding: 24px;
}

.preview-page h4,
.preview-render h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.preview-page ul,
.download-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.preview-page li + li,
.download-card li + li {
  margin-top: 6px;
}

.preview-editor {
  min-height: 250px;
}

.preview-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(126, 150, 85, 0.12);
  color: var(--text-2);
}

.preview-toolbar i,
.chips span {
  padding: 6px 10px;
  border: 1px solid rgba(126, 150, 85, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.preview-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 188px;
}

.preview-columns pre,
.preview-render {
  margin: 0;
  padding: 18px;
}

.preview-columns pre {
  overflow: auto;
  border-right: 1px solid rgba(126, 150, 85, 0.12);
  color: #4a5944;
  font: 0.88rem/1.7 "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.mini-code {
  display: inline-flex;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(92, 122, 44, 0.08);
  color: var(--green-deep);
  font: 0.86rem "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.preview-graph {
  position: relative;
  min-height: 250px;
}

.graph-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(93, 109, 65, 0.08);
  font-size: 0.88rem;
  font-weight: 600;
}

.graph-node.main {
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(136, 169, 86, 0.22);
  color: var(--green-deep);
}

.graph-node.doc {
  background: rgba(127, 163, 126, 0.16);
}

.graph-node.tag {
  background: rgba(214, 196, 137, 0.28);
}

.graph-node.sem {
  background: rgba(183, 201, 154, 0.26);
}

.graph-node.one { top: 36px; left: 78px; }
.graph-node.two { bottom: 34px; left: 114px; }
.graph-node.three { top: 40px; right: 84px; }
.graph-node.four { right: 88px; bottom: 42px; }
.graph-node.five { left: calc(50% - 40px); bottom: 24px; }

.graph-line {
  position: absolute;
  height: 1px;
  background: rgba(125, 145, 96, 0.4);
  transform-origin: left center;
}

.l1 { top: 109px; left: 50%; width: 186px; transform: rotate(-23deg); }
.l2 { top: 124px; left: 172px; width: 160px; transform: rotate(30deg); }
.l3 { top: 110px; left: calc(50% + 20px); width: 170px; transform: rotate(21deg); }
.l4 { top: 124px; left: calc(50% + 10px); width: 154px; transform: rotate(-28deg); }
.l5 { left: calc(50% - 12px); bottom: 92px; width: 1px; height: 64px; transform: none; }

.preview-settings {
  display: grid;
  gap: 14px;
  min-height: 250px;
  padding: 20px;
}

.setting-row {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.setting-row b {
  display: block;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips .active {
  border-color: rgba(126, 150, 85, 0.28);
  background: rgba(223, 233, 203, 0.72);
  color: var(--green-deep);
}

.themes {
  padding-top: 28px;
}

.theme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.theme-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 140px;
  padding: 20px;
  border-radius: var(--radius);
}

.theme-card.selected {
  border-color: rgba(126, 150, 85, 0.32);
  box-shadow: 0 0 0 3px rgba(136, 169, 86, 0.08), var(--shadow-soft);
}

.swatch {
  flex: none;
  width: 58px;
  height: 58px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(90, 102, 73, 0.08);
}

.swatch-white { background: linear-gradient(180deg, #ffffff 0%, #f6f3eb 100%); }
.swatch-rice { background: linear-gradient(180deg, #f5f0e1 0%, #e8e2d4 100%); }
.swatch-midnight { background: linear-gradient(180deg, #29498a 0%, #1c2f55 100%); }
.swatch-eyecare { background: linear-gradient(180deg, #9ec56b 0%, #86aa52 100%); }
.swatch-parchment { background: linear-gradient(180deg, #be8756 0%, #a86e3f 100%); }
.swatch-ocean { background: linear-gradient(180deg, #25839d 0%, #15657d 100%); }

.docs {
  padding-top: 28px;
}

.doc-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  padding: 20px;
  border-radius: var(--radius);
}

.doc-card strong {
  font-size: 1.1rem;
}

.doc-card em {
  margin-top: auto;
  color: var(--green-deep);
  font-style: normal;
  font-weight: 600;
}

.downloads {
  padding-top: 28px;
  padding-bottom: 60px;
}

/* 内置使用文档 */
.builtin-docs {
  padding-top: 20px;
  padding-bottom: 120px;
}
.builtin-docs .docs-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.builtin-docs .doc-section {
  background: rgba(255, 255, 251, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
}
.builtin-docs .doc-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}
.builtin-docs .doc-section ul,
.builtin-docs .doc-section ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.85;
  font-size: 14px;
  color: var(--text-2);
}
.builtin-docs .doc-section li {
  margin-bottom: 6px;
}
.builtin-docs .doc-section code {
  background: rgba(239, 243, 231, 0.72);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
.builtin-docs .doc-section kbd {
  display: inline-block;
  background: rgba(239, 243, 231, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  margin: 0 1px;
}
@media (max-width: 768px) {
  .builtin-docs .docs-content {
    grid-template-columns: 1fr;
  }
}

.download-grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  margin-top: 34px;
}

.download-card {
  min-height: 240px;
  padding: 22px 22px;
  border-radius: var(--radius);
}

.download-card.primary {
  background: linear-gradient(180deg, rgba(223, 233, 203, 0.88), rgba(255, 255, 252, 0.78));
}

.download-badge {
  min-width: fit-content;
}

.download-badge.soft {
  background: rgba(136, 169, 86, 0.08);
}

.download-card h3 {
  margin-top: 22px;
}

.download-card .button {
  margin-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--green-deep);
  font-weight: 600;
}

/* download-card 列表内的链接统一为强调色，并在悬停时给到柔和底色反馈。 */
.download-card ul a {
  color: var(--green-deep);
  text-decoration: none;
  border-bottom: 1px dashed rgba(110, 141, 59, 0.4);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.download-card ul a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.download-card ul a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
}

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

.footer-brand strong {
  display: block;
  margin-bottom: 4px;
}

.footer-brand p,
.site-footer small {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-2);
}

/* 友情链接：单独占一行，靠右对齐，与版权行区分开。
   flex-basis:100% 保证它不参与上面两栏的横向分配。 */
.footer-friend-links {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-friend-label {
  color: var(--text-2);
}

.footer-friend-links a {
  text-decoration: none;
}

.footer-friend-links a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

@media (max-width: 1100px) {
  .hero,
  .feature-grid,
  .theme-grid,
  .doc-grid,
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }

  .screen-grid {
    grid-template-columns: 1fr 1fr;
  }

  .share-grid {
    grid-template-columns: 1fr 1fr;
  }

  .assist-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .hero-visual {
    max-width: 860px;
  }

  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .assist-intro {
    margin-top: 40px;
    padding-top: 24px;
  }
}

@media (max-width: 780px) {
  .site-nav {
    min-height: 70px;
    padding: 0 16px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 22px 16px;
    background: rgba(136, 169, 86, 0.98);
    box-shadow: 0 16px 30px rgba(71, 89, 41, 0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 0;
  }

  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-metrics,
  .feature-grid,
  .screen-grid,
  .share-grid,
  .theme-grid,
  .doc-grid,
  .download-grid,
  .assist-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-reading,
  .preview-columns {
    grid-template-columns: 1fr;
  }

  #neural-canvas {
    height: 320px;
    min-height: 320px;
  }

  .section-intro {
    padding-top: 48px;
  }

  .builtin-docs {
    padding-bottom: 60px;
  }
}

@media (max-width: 640px) {
  .section-wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 32px;
    min-height: auto;
    gap: 28px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .section-intro {
    padding-top: 36px;
  }

  .features,
  .screens,
  .themes,
  .docs,
  .downloads,
  .builtin-docs {
    padding-top: 20px;
    padding-bottom: 32px;
  }

  .builtin-docs {
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-lede,
  .section-intro p:last-child {
    font-size: 0.98rem;
  }

  .feature-card,
  .screen-card,
  .theme-card,
  .doc-card,
  .download-card {
    padding: 18px 16px;
    border-radius: var(--radius);
  }

  .card-main,
  .card-side {
    position: static;
    max-width: none;
    margin-bottom: 12px;
  }

  .mock-status {
    position: static;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .assist-card {
    padding: 14px;
    border-radius: var(--radius);
  }

  .assist-intro,
  .share-intro {
    margin-top: 32px;
    padding-top: 24px;
  }

  .screen-preview img {
    border-radius: var(--radius);
  }

  #neural-canvas {
    height: 260px;
    min-height: 260px;
  }

  .download-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: none;
  }
}

/* ── 精简版列表/段落布局（替代部分卡片） ── */
/* 核心能力卡片网格 */
.feature-cards {
  margin-top: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card {
    padding: 16px 12px;
  }
  .feature-icon {
    font-size: 24px;
  }
}

.feature-list {
  margin-top: 24px;
}

.feature-rows,
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-rows li {
  padding: 14px 18px;
  border-left: 3px solid var(--green);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
  line-height: 1.7;
  color: var(--text);
}

.feature-rows li strong {
  color: var(--green-deep);
  font-weight: 600;
}

.doc-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list li a {
  display: block;
  color: var(--text);
  line-height: 1.7;
}

.doc-list li a:hover strong,
.doc-list li a:focus-visible strong {
  color: var(--green-deep);
}

.doc-list li strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

.download-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  margin-top: 24px;
  padding: 24px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.download-primary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}

.download-primary .download-badge {
  align-self: flex-start;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.download-primary p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.7;
}

.download-secondary h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text);
}

.download-secondary ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--text-2);
  line-height: 1.8;
  font-size: 14px;
}

.download-secondary ul li {
  margin-bottom: 4px;
}

/* 更新列表精简样式 — 版本徽章 + 单行摘要 */
.download-secondary ul.update-list {
  list-style: none;
  padding-left: 0;
}

.download-secondary ul.update-list li {
  margin-bottom: 10px;
  padding-left: 0;
  line-height: 1.6;
}

.download-secondary ul.update-list .ver {
  display: inline-block;
  min-width: 56px;
  padding: 1px 8px;
  margin-right: 8px;
  border-radius: 4px;
  background: var(--green-soft, rgba(34, 211, 238, 0.12));
  color: var(--green-deep, #0d9488);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.download-links {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
}

.download-links a {
  color: var(--green-deep);
}

.download-links a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hero-apk {
    display: inline-flex;
    order: -1;
  }

  .download-block {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .download-primary {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

/* ─── Link Cards (docs/changelog/privacy) ─── */
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 251, 0.72);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.link-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: rgba(126, 150, 85, 0.4);
}
.link-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.link-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.link-card p {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
  flex-grow: 1;
}
.link-card-go {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ─── Changelog/Docs page ─── */
.changelog-page,
.docs-page {
  max-width: 880px;
  margin: 0 auto;
}
.section-desc {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
  margin: 8px 0 0;
}
.changelog-toc,
.docs-toc {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 251, 0.5);
}
.changelog-toc h3,
.docs-toc h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.changelog-toc ul,
.docs-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}
.changelog-toc li,
.docs-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}
.changelog-toc a,
.docs-toc a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.6;
}
.changelog-toc a:hover,
.docs-toc a:hover {
  color: var(--green);
}
.back-home {
  text-align: center;
  margin: 40px 0 20px;
}

@media (max-width: 768px) {
  .link-cards {
    grid-template-columns: 1fr;
  }
  .changelog-toc ul,
  .docs-toc ul {
    columns: 1;
  }
}
