/* ============================================================
   笔迹 — 品牌首页
   ============================================================ */

.landing {
  background: var(--bg);
  overflow-x: hidden;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  /* 同一组元素依次入场，不要整层同时升起；序号由 landing.js 写到 --rv-i */
  transition-delay: calc(var(--rv-i, 0) * 70ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.landing .icon {
  width: 17px;
  height: 17px;
}

/* 导航栏样式已统一到 base.css 的「全站导航栏」一节 */

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 110px) 0 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.blob-a {
  width: 620px;
  height: 620px;
  right: -200px;
  top: -180px;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 65%);
}

.blob-b {
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 122, 92, 0.18), transparent 65%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.12fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: clamp(50px, 7vw, 90px);
}

.hero-copy {
  min-width: 0;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  letter-spacing: 0.13em;
  font-size: 10px;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.22;
  font-weight: 820;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--accent-strong);
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: 0.04em;
  height: 0.27em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M3 15C45 6 96 5 197 10' fill='none' stroke='%23FF7A5C' stroke-width='4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
  opacity: 0.8;
}

/* 「笔迹」是主角：一抹紫到珊瑚的墨色渐变 + 双倍手写弧 + 星芒，比另外两个词更抢眼 */
.hero h1 em.hero-mark {
  padding: 0 0.04em;
  background: linear-gradient(96deg,
    var(--accent-strong) 0%,
    var(--accent) 52%,
    var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px color-mix(in srgb, var(--accent) 24%, transparent));
}

.hero h1 em.hero-mark::after {
  left: -3%;
  right: -6%;
  bottom: -0.12em;
  height: 0.36em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 26' preserveAspectRatio='none'%3E%3Cpath d='M5 13C48 4 112 4 195 10' fill='none' stroke='%23FF7A5C' stroke-width='6' stroke-linecap='round' opacity='.7'/%3E%3Cpath d='M14 21C62 14 122 13 192 17' fill='none' stroke='%235B4BE0' stroke-width='2.4' stroke-linecap='round' opacity='.36'/%3E%3C/svg%3E");
  opacity: 1;
}

.hero-spark {
  position: absolute;
  top: -0.42em;
  right: 0.08em;
  width: 0.42em;
  height: 0.42em;
  color: var(--coral);
  pointer-events: none;
}

.hero-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  animation: sparkTwinkle 3.6s ease-in-out infinite;
}

/* 标语像被一笔写出来：每个字从左往右揭开，渐变的词整词落笔（landing.js 拆字） */
html.hero-armed .hero h1 { visibility: hidden; }

.hero h1 .hw,
.hero h1 .hw-word {
  display: inline-block;
  animation: hwWrite 0.5s cubic-bezier(0.22, 0.8, 0.24, 1) both;
  animation-delay: calc(var(--i, 0) * 46ms + 90ms);
}

@keyframes hwWrite {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .hw,
  .hero h1 .hw-word {
    animation: none;
  }
}

@keyframes sparkTwinkle {
  0%, 100% { opacity: 0.6; transform: scale(0.86) rotate(-6deg); }
  50% { opacity: 1; transform: scale(1.05) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-spark svg { animation: none; }
}

.ink-dot {
  color: var(--coral);
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 480px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 28px;
}

.hero-actions .btn-lg {
  padding: 14px 26px;
}

.hero-actions .btn-primary .icon {
  transition: transform 0.2s ease;
}

.hero-actions .btn-primary:hover .icon {
  transform: translateX(3px);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--muted);
}

.tick {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 8.5px;
  font-weight: 700;
}

/* ---------------- Hero 模拟窗口 ---------------- */
.hero-stage {
  position: relative;
  min-width: 0;
  perspective: 1600px;
}

.mock-window {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.6) inset,
    0 40px 90px -36px rgba(37, 30, 20, 0.4),
    0 18px 40px -24px rgba(37, 30, 20, 0.22);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(1.2deg) translateZ(0);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: mockFloat 9s ease-in-out infinite;
}

.hero-stage:hover .mock-window {
  transform: rotateY(0deg) rotateX(0deg);
}

@keyframes mockFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.mock-dot.is-red { background: #ff5f57; }
.mock-dot.is-yellow { background: #febc2e; }
.mock-dot.is-green { background: #28c840; }

.mock-url {
  margin: 0 auto;
  padding: 3px 12px;
  border-radius: 5px;
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.mock-body {
  display: grid;
  grid-template-columns: 112px 152px minmax(0, 1fr);
  min-height: 376px;
  font-size: 9px;
}

.mock-side {
  padding: 10px 8px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mock-brand img {
  border-radius: 4px;
}

.mock-new {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  margin-bottom: 5px;
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
}

.mock-nav.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.mock-nav em,
.mock-nb em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 7px;
  opacity: 0.7;
}

.mn-ico {
  width: 9px;
  font-size: 8px;
  text-align: center;
}

.mock-label {
  padding: 8px 6px 3px;
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--faint);
  text-transform: uppercase;
}

.mock-nb {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
}

.mock-nb i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 2px 5px;
}

.mock-tags span {
  padding: 2px 5px;
  border-radius: 10px;
  background: var(--surface-3);
  font-size: 6.5px;
  color: var(--muted);
}

.mock-list {
  border-right: 1px solid var(--line);
  padding: 9px 7px;
  background: color-mix(in srgb, var(--bg) 55%, var(--surface));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--faint);
  font-size: 7px;
}

.mock-item {
  padding: 6px 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  position: relative;
}

.mock-item.is-active {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 2px 6px -3px rgba(0, 0, 0, 0.15);
}

.mock-item.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.mock-item b {
  display: block;
  font-size: 8px;
  font-weight: 650;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-item span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 6.8px;
  line-height: 1.55;
  color: var(--muted);
}

.mock-item em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 6px;
  color: var(--faint);
}

.mock-editor {
  padding: 11px 14px;
  background: var(--surface);
  min-width: 0;
  position: relative;
}

.mock-crumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 6.5px;
  color: var(--faint);
  margin-bottom: 12px;
}

.mock-crumb i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--faint);
}

.mock-crumb b {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 8px;
  background: var(--ok-soft);
  color: var(--ok);
  font-weight: 500;
}

.mock-editor h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.mock-meta {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 6px;
  color: var(--faint);
  margin-bottom: 9px;
}

.mock-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  margin-bottom: 11px;
}

.mock-toolbar i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--surface-4);
}

.mock-toolbar span {
  width: 1px;
  height: 8px;
  background: var(--line);
  margin: 0 2px;
}

.mock-p {
  margin: 0 0 7px;
  font-size: 7.4px;
  line-height: 1.85;
  color: var(--ink-2);
}

.mock-p strong {
  color: var(--ink);
}

.mock-h {
  font-size: 8px;
  font-weight: 700;
  color: var(--ink);
  margin: 9px 0 5px;
}

.mock-task {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-task span {
  display: grid;
  place-items: center;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 4px;
}

.mock-task.is-done span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mock-task.is-done {
  color: var(--faint);
  text-decoration: line-through;
}

.mock-editor blockquote {
  margin: 8px 0;
  padding: 6px 8px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-softer);
  font-size: 6.8px;
  color: var(--muted);
  border-radius: 0 4px 4px 0;
  line-height: 1.7;
}

.mock-editor code {
  font-family: var(--font-mono);
  font-size: 6.3px;
  background: var(--surface-3);
  padding: 1px 3px;
  border-radius: 3px;
  color: var(--accent-strong);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floatCard 7s ease-in-out infinite;
}

.float-card b {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.float-card em {
  display: block;
  font-style: normal;
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
}

.float-a {
  right: -18px;
  top: 42px;
  animation-delay: -1s;
}

.float-b {
  left: -30px;
  bottom: 38px;
  animation-delay: -3.5s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-star {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
}

.float-history {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: rgba(255, 122, 92, 0.12);
  color: #d9614a;
  font-size: 15px;
}

.float-mark {
  position: absolute;
  right: 22px;
  bottom: -22px;
  z-index: 4;
  filter: drop-shadow(0 16px 24px rgba(60, 45, 200, 0.3));
  transform: rotate(7deg);
  animation: floatMark 8s ease-in-out infinite;
}

.float-mark img {
  border-radius: 16px;
}

@keyframes floatMark {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-8px); }
}

/* ---------------- Ticker ---------------- */
.hero-ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  overflow: hidden;
  padding: 13px 0;
  margin-top: 26px;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: ticker 64s linear infinite;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.ticker-track i {
  font-style: normal;
  color: var(--coral);
  font-size: 8px;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.hero-ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ---------------- 通用 Section ---------------- */
.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(38px, 3.8vw, 56px) 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(22px, 2.4vw, 30px);
}

.section-head h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.section-head h2 em {
  font-style: normal;
  color: var(--accent-strong);
}

.section-lead {
  margin: 0;
  max-width: 540px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------------- 功能 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 23px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 17px;
  flex: none;
}

.feature-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.feature-card > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 460px;
}

/* 只给段落里的行内代码上底色；代码视觉块自己负责排版 */
.feature-card > p code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--accent-strong);
}

.feature-visual {
  margin-top: auto;
  padding-top: 20px;
}

.feature-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 34px;
  padding: 26px 28px;
  align-items: center;
  background:
    radial-gradient(600px 300px at 100% 0%, var(--accent-softer), transparent 60%),
    var(--surface);
}

/* 文案自成一块，避免被右侧视图撑出行间距 */
.feature-copy {
  display: flex;
  flex-direction: column;
}

.feature-copy .feature-icon {
  margin-bottom: 14px;
}

.feature-copy h3 {
  margin: 0 0 9px;
  font-size: 21px;
}

.feature-copy p {
  margin: 0;
  max-width: 470px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.feature-wide .feature-visual {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  padding-top: 0;
  align-self: stretch;
  min-height: 186px;
}

/* 保存视觉 */
.save-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.save-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.save-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ok);
}

.typing-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.typing-lines span {
  display: block;
  width: var(--w);
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--muted) 17%, transparent);
}

.save-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--faint);
}

.save-hint em {
  font-style: normal;
  font-family: var(--font-mono);
  color: var(--accent-strong);
}

/* 代码视觉：跟随站点深浅色 */
.code-visual {
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 2;
  overflow-x: auto;
}

.code-visual code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  color: inherit;
}

.code-visual .c-dim { color: var(--faint); }
.code-visual .c-accent { color: var(--accent-strong); }

[data-theme="dark"] .code-visual {
  background: var(--code-bg);
  border-color: var(--code-line);
  color: var(--code-ink);
}

[data-theme="dark"] .code-visual .c-dim { color: var(--code-muted); }
[data-theme="dark"] .code-visual .c-accent { color: #9d8cff; }

/* 链接视觉 */
.link-visual {
  position: relative;
  height: 92px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.link-visual svg {
  position: absolute;
  inset: 6px 0;
  width: 100%;
  height: 80px;
}

.link-visual svg path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 35%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.link-node {
  position: absolute;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.link-node.is-main {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}

.link-node:nth-child(2) { left: 8%; top: 12%; }
.link-node:nth-child(3) { right: 8%; top: 15%; }
.link-node:nth-child(4) { left: 14%; bottom: 12%; }
.link-node:nth-child(5) { right: 12%; bottom: 10%; }

/* 版本视觉 */
.version-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.v-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
}

.v-line i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}

.v-line:first-child i {
  background: var(--accent);
  border-color: var(--accent);
}

.v-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 8px;
}

/* 搜索视觉 */
.search-visual {
  padding: 11px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.sv-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 7px;
  background: var(--surface);
  font-size: 10px;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.sv-input span { color: var(--faint); }
.sv-input b { font-weight: 600; }
.sv-input i { color: var(--accent); font-style: normal; animation: blink 1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }

.sv-result {
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  color: var(--muted);
}

.sv-result + .sv-result {
  border-top: 1px dashed var(--line);
}

.sv-result b {
  background: color-mix(in srgb, #f2c14e 45%, transparent);
  color: var(--ink);
  border-radius: 2px;
}

/* 分享视觉 */
.share-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.share-url {
  flex: 1;
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-url b {
  color: var(--accent-strong);
  font-weight: 500;
}

.share-copy {
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 8.5px;
  white-space: nowrap;
}

/* 热力图视觉 */
.heat-visual {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.heat-visual i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--surface-4);
}

.heat-visual i[style*="--l: 1"] { background: color-mix(in srgb, var(--accent) 20%, var(--surface-4)); }
.heat-visual i[style*="--l: 2"] { background: color-mix(in srgb, var(--accent) 42%, var(--surface-4)); }
.heat-visual i[style*="--l: 3"] { background: color-mix(in srgb, var(--accent) 66%, var(--surface-4)); }
.heat-visual i[style*="--l: 4"] { background: var(--accent); }

/* 数据视觉 */
.data-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.data-visual div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 78px;
  padding: 16px 17px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.data-visual b {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-strong);
}

.data-visual span {
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------------- 写作方式 ---------------- */
.writing {
  border-top: 1px solid var(--line);
}

.writing-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.writing-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 3.5vw, 42px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.writing-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.writing-row.is-reverse {
  grid-template-columns: 62px minmax(0, 0.92fr) minmax(0, 1fr);
}

.writing-row.is-reverse .writing-text {
  order: 3;
}

.writing-row.is-reverse .writing-visual {
  order: 2;
}

.writing-num {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  padding-top: 5px;
  letter-spacing: 0.15em;
}

.writing-text h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.writing-text > p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 440px;
}

.writing-text code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-3);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent-strong);
}

.writing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.writing-list li {
  position: relative;
  padding-left: 17px;
  font-size: 12px;
  color: var(--muted);
}

.writing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

/* 纸面视觉 */
.paper-visual {
  position: relative;
  padding: 28px;
  border-radius: 18px;
  background:
    radial-gradient(300px 200px at 80% 0%, var(--accent-softer), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-sheet {
  width: min(260px, 90%);
  min-height: 160px;
  padding: 22px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 40px -20px rgba(40, 32, 20, 0.3);
  border: 1px solid var(--line);
  transform: rotate(-2deg);
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
}

.pv-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 4px;
}

.pv-caret {
  width: 2px;
  height: 14px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

.pv-sheet i {
  width: var(--w, 88%);
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--muted) 15%, transparent);
}

.pv-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 9px;
  color: var(--ok);
  box-shadow: var(--shadow-sm);
}

/* 图谱视觉 */
.graph-visual {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.graph-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-visual svg path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 32%, transparent);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
}

.g-node {
  position: absolute;
  padding: 7px 13px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 11px;
  color: var(--muted);
}

.g-main {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 65%, transparent);
}

.g-a { left: 10%; top: 18%; }
.g-b { right: 9%; top: 21%; }
.g-c { left: 9%; bottom: 17%; }
.g-d { right: 11%; bottom: 15%; }

/* 统计视觉 */
.stats-visual {
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stats-top b {
  font-size: 13px;
  font-weight: 600;
}

.stats-top em {
  font-style: normal;
  font-size: 22px;
  color: var(--accent-strong);
  font-weight: 750;
  margin: 0 2px;
}

.stats-top span {
  font-size: 10px;
  color: var(--faint);
}

.heat-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

.heat-grid i {
  aspect-ratio: 1;
  border-radius: 2.5px;
  background: var(--surface-4);
}

.heat-grid i[style*="--l: 1"] { background: color-mix(in srgb, var(--accent) 20%, var(--surface-4)); }
.heat-grid i[style*="--l: 2"] { background: color-mix(in srgb, var(--accent) 42%, var(--surface-4)); }
.heat-grid i[style*="--l: 3"] { background: color-mix(in srgb, var(--accent) 66%, var(--surface-4)); }
.heat-grid i[style*="--l: 4"] { background: var(--accent); }

.stats-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 9px;
  font-size: 8px;
  color: var(--faint);
}

.stats-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--surface-4);
}

.stats-legend i[style*="--l: 1"] { background: color-mix(in srgb, var(--accent) 20%, var(--surface-4)); }
.stats-legend i[style*="--l: 2"] { background: color-mix(in srgb, var(--accent) 42%, var(--surface-4)); }
.stats-legend i[style*="--l: 3"] { background: color-mix(in srgb, var(--accent) 66%, var(--surface-4)); }
.stats-legend i[style*="--l: 4"] { background: var(--accent); }

/* ---------------- 墨色 ---------------- */
.accent-section {
  width: 100%;
  max-width: none;
  padding: clamp(38px, 3.8vw, 56px) 0;
  background:
    radial-gradient(900px 500px at 20% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%),
    radial-gradient(700px 480px at 100% 100%, rgba(255, 122, 92, 0.1), transparent 60%),
    var(--surface-3);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.accent-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.accent-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.accent-copy .eyebrow {
  color: var(--faint);
}

.accent-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.accent-copy h2 em {
  font-style: normal;
  color: var(--accent-strong);
}

.accent-copy > p {
  margin: 0 0 22px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.accent-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 2px solid transparent;
  background: var(--sw);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.swatch:hover {
  transform: translateY(-2px) scale(1.04);
}

.swatch.is-active {
  box-shadow: 0 0 0 2px var(--surface-3), 0 0 0 4px var(--sw);
}

.accent-note {
  font-size: 11px;
  color: var(--faint);
}

.accent-demo {
  position: relative;
}

.demo-window {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: #23211f;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #e7e2d7;
  background: #faf8f3;
  font-size: 9px;
  color: #8b8378;
}

.demo-dots {
  display: flex;
  gap: 4px;
}

.demo-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d7d0c2;
}

.demo-head > span:nth-child(2) {
  flex: 1;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-head em {
  font-style: normal;
  color: #2f8a63;
  font-size: 8px;
}

.demo-body {
  padding: 26px 30px 28px;
}

.demo-body h4 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.demo-body > p {
  margin: 0 0 12px;
  font-size: 11px;
  color: #8b8378;
}

.demo-tags {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

.demo-tags span {
  padding: 2px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--demo) 10%, transparent);
  color: color-mix(in srgb, var(--demo) 75%, #23211f 25%);
  font-size: 8.5px;
}

.demo-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.demo-lines i {
  display: block;
  width: var(--w);
  height: 6px;
  border-radius: 3px;
  background: #e9e4da;
}

.demo-quote {
  padding: 11px 13px;
  border-left: 2px solid var(--demo);
  background: color-mix(in srgb, var(--demo) 5%, #faf8f3);
  border-radius: 0 6px 6px 0;
  font-size: 9px;
  color: #6b645b;
  line-height: 1.8;
  margin-bottom: 16px;
}

.demo-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #6b645b;
}

.demo-check span {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--demo);
  color: #fff;
  font-size: 8px;
}

.demo-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 10px;
  color: var(--muted);
  justify-content: center;
}

.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--demo);
}

[data-theme="dark"] .accent-section {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(126, 108, 255, 0.22), transparent 60%),
    radial-gradient(700px 480px at 100% 100%, rgba(255, 122, 92, 0.13), transparent 60%),
    #17141f;
  color: #f3efe8;
}

[data-theme="dark"] .accent-copy .eyebrow { color: rgba(255, 255, 255, 0.45); }
[data-theme="dark"] .accent-copy h2 em { color: #b3a6ff; }
[data-theme="dark"] .accent-copy > p { color: rgba(255, 255, 255, 0.55); }
[data-theme="dark"] .swatch.is-active { box-shadow: 0 0 0 2px #17141f, 0 0 0 4px var(--sw); }
[data-theme="dark"] .accent-note { color: rgba(255, 255, 255, 0.4); }
[data-theme="dark"] .demo-caption { color: rgba(255, 255, 255, 0.42); }

[data-theme="dark"] .demo-window {
  border-color: rgba(255, 255, 255, 0.14);
  background: #fbf9f4;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}

/* ---------------- 数字带 ---------------- */
.stats-band {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 clamp(28px, 3vw, 40px);
}

.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band-inner > div {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stats-band-inner > div:last-child {
  border-right: 0;
}

.stats-band-inner b {
  display: block;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.stats-band-inner span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------------- FAQ ---------------- */
.faq {
  padding-top: 0;
}

.faq .section-head {
  max-width: 560px;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  transition: color 0.16s ease;
}

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

.faq-list summary:hover {
  color: var(--accent-strong);
}

.faq-list summary span {
  position: relative;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none;
}

.faq-list summary span::before,
.faq-list summary span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-list summary span::before {
  width: 8px;
  height: 1.5px;
}

.faq-list summary span::after {
  width: 1.5px;
  height: 8px;
}

.faq-list details[open] summary span {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-list details[open] summary span::before,
.faq-list details[open] summary span::after {
  background: #fff;
}

.faq-list details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 40px 24px 4px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  animation: fadeUp 0.25s ease;
}

/* ---------------- 结尾 CTA ---------------- */
.final-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 clamp(28px, 3vw, 40px);
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 30px;
  border-radius: 26px;
  background:
    radial-gradient(600px 400px at 20% 0%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(145deg, #5b49df 0%, #4433c2 55%, #2d228f 100%);
  color: #fff;
  box-shadow: 0 40px 90px -40px rgba(61, 45, 190, 0.55);
}

.cta-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  right: -160px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(255, 122, 92, 0.32), transparent 65%);
  filter: blur(20px);
}

.cta-card::before {
  content: "";
  position: absolute;
  left: -80px;
  top: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025);
}

.cta-mark {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
  margin-bottom: 22px;
}

.cta-card .eyebrow {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 10px;
}

.cta-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cta-card > p:not(.eyebrow):not(.cta-domain) {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.cta-card .btn-primary {
  --btn-bg: #fff;
  --btn-ink: #3b2dbb;
  --btn-border: transparent;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.4);
}

.cta-card .btn-primary:hover {
  background: #f6f3ff;
}

.cta-card .btn-ghost {
  --btn-border: rgba(255, 255, 255, 0.3);
  --btn-bg: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-domain {
  position: relative;
  z-index: 1;
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.36em;
  color: rgba(255, 255, 255, 0.34);
  text-transform: uppercase;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-stage {
    width: min(680px, 100%);
    margin: 0 auto 20px;
  }

  .mock-window {
    transform: none;
  }

  .float-a { right: 0; }
  .float-b { left: 0; }

  .accent-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .accent-demo {
    width: min(620px, 100%);
  }

  .writing-row,
  .writing-row.is-reverse {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .writing-visual,
  .writing-row.is-reverse .writing-visual {
    grid-column: 2;
    grid-row: 2;
    order: 3;
    margin-top: 8px;
  }

  .writing-text,
  .writing-row.is-reverse .writing-text {
    order: 1;
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-wide .feature-visual {
    min-height: 0;
  }

  .feature-copy p {
    max-width: none;
  }

  .stats-band-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stats-band-inner > div:nth-child(2) {
    border-right: 0;
  }

  .stats-band-inner > div:nth-child(1),
  .stats-band-inner > div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.4vw, 42px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-lead br {
    display: none;
  }

  .mock-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mock-side,
  .mock-list {
    display: none;
  }

  .mock-editor {
    padding: 16px;
  }

  .mock-editor h3 {
    font-size: 18px;
  }

  .float-a {
    right: 8px;
    top: -18px;
  }

  .float-b {
    left: 6px;
    bottom: -20px;
  }

  .float-mark {
    display: none;
  }

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

  .feature-wide {
    padding: 22px;
  }

  .data-visual {
    grid-template-columns: 1fr 1fr;
  }

  .writing-row,
  .writing-row.is-reverse {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }

  .writing-num {
    padding-top: 0;
  }

  .writing-visual,
  .writing-row.is-reverse .writing-visual,
  .writing-text,
  .writing-row.is-reverse .writing-text {
    grid-column: 1;
    order: initial;
  }

  .stats-band-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stats-band-inner > div {
    padding: 22px 14px;
  }

  .faq-list summary {
    padding: 18px 0;
    font-size: 14px;
  }

  .faq-list details p {
    padding-right: 10px;
  }

  .cta-card {
    border-radius: 20px;
  }

  .cta-card h2 br {
    display: none;
  }

}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .float-card {
    display: none;
  }

  .data-visual {
    grid-template-columns: 1fr;
  }
}

/* ---------------- 实时统计 ---------------- */
.pulse {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 28px) 0 clamp(22px, 2.6vw, 32px);
}

.pulse-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.pulse-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--coral) 52%, transparent);
  opacity: 0.85;
}

.pulse-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 26px;
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 36px) clamp(16px, 2vw, 22px);
}

.pulse-top h2 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pulse-top h2 em {
  font-style: normal;
  color: var(--accent-strong);
}

.pulse-updated {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.pulse-grid > div {
  padding: clamp(20px, 2.6vw, 30px) clamp(10px, 1.6vw, 20px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pulse-grid > div:nth-child(4n) {
  border-right: 0;
}

.pulse-grid b {
  display: block;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pulse-grid i {
  font-style: normal;
  font-size: 0.55em;
  margin-left: 3px;
  color: var(--muted);
}

.pulse-grid > div > span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
}

.pulse-item-track b {
  color: var(--accent-strong);
}

.pulse-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.pulse-mini li {
  padding: 13px 10px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.pulse-mini li:nth-child(4n) {
  border-right: 0;
}

.pulse-mini b {
  display: block;
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.pulse-mini i {
  font-style: normal;
  font-size: 0.62em;
  margin-left: 2px;
  color: var(--muted);
}

.pulse-mini li > span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.pulse-note {
  margin: 0;
  padding: 15px clamp(22px, 3vw, 36px) 20px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--faint);
}

@media (max-width: 900px) {
  .pulse {
    width: calc(100% - 36px);
  }

  .pulse-grid > div:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .pulse-grid > div:nth-child(2n) {
    border-right: 0;
  }

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

@media (max-width: 720px) {
  .pulse {
    padding-top: 6px;
  }

  .pulse-top {
    padding: 20px 18px 14px;
  }

  .pulse-updated {
    display: none;
  }

  .pulse-grid > div {
    padding: 15px 8px;
  }

  .pulse-grid b {
    font-size: 24px;
  }

  .pulse-grid > div > span {
    font-size: 10.5px;
  }

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

  .pulse-mini li {
    padding: 11px 6px 12px;
  }

  .pulse-mini li:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .pulse-mini li:nth-child(2n) {
    border-right: 0;
  }

  .pulse-mini li > span {
    font-size: 10px;
  }

  .pulse-note {
    padding: 13px 18px 17px;
  }
}

/* ============================================================
   深色模式：Hero 仿真窗与浮卡单独校色
   浅色下靠白色内高光和暖色投影撑起纸感，深色里要换成冷一点的层次，
   否则会像一块发灰的塑料板。
   ============================================================ */
[data-theme="dark"] .mock-window {
  border-color: color-mix(in srgb, var(--line-strong) 70%, var(--accent) 12%);
  background: color-mix(in srgb, var(--surface) 96%, #fff 4%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 44px 96px -40px rgba(0, 0, 0, 0.85),
    0 16px 40px -26px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .mock-bar {
  background: color-mix(in srgb, var(--surface-2) 92%, #fff 2%);
}

[data-theme="dark"] .mock-list {
  background: color-mix(in srgb, var(--bg) 62%, var(--surface));
}

[data-theme="dark"] .mock-item.is-active {
  background: color-mix(in srgb, var(--surface-3) 72%, var(--surface));
  border-color: var(--line-strong);
}

[data-theme="dark"] .mock-search,
[data-theme="dark"] .mock-crumb b,
[data-theme="dark"] .mock-code {
  background: color-mix(in srgb, var(--surface-3) 60%, var(--surface));
}

[data-theme="dark"] .float-card {
  background: color-mix(in srgb, var(--surface-3) 88%, transparent);
  border-color: color-mix(in srgb, var(--line-strong) 82%, transparent);
  box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .blob-a {
  opacity: 0.42;
}

[data-theme="dark"] .blob-b {
  opacity: 0.32;
}

[data-theme="dark"] .grain {
  opacity: 0.26;
}

[data-theme="dark"] .fh-tag {
  background: color-mix(in srgb, var(--accent) calc(var(--heat) * 0.2%), var(--surface-3));
  color: var(--ink-2);
}

[data-theme="dark"] .fh-tag i {
  color: var(--muted);
}

/* 仿真窗里最后一句末尾的光标：安静地闪，不抢戏 */
.mock-caret {
  display: inline-block;
  width: 1px;
  height: 8px;
  margin-left: 1px;
  vertical-align: -1px;
  background: var(--accent);
  animation: mockCaret 1.15s steps(1, end) infinite;
}

@keyframes mockCaret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

/* 光标旁边悬着一支笔尖，隔几秒在纸上划两三笔，再停住休息 */
.mock-last {
  position: relative;
}

.mock-pen {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  opacity: 0.85;
  transform-origin: 8% 92%;
  animation: penWrite 5.6s ease-in-out infinite;
}

@keyframes penWrite {
  0%, 8% { transform: translate(0, 0) rotate(0deg); }
  14% { transform: translate(-11px, 0.6px) rotate(-7deg); }
  20% { transform: translate(0, 0) rotate(0deg); }
  27% { transform: translate(-9px, 0.5px) rotate(-6deg); }
  34% { transform: translate(0, 0) rotate(0deg); }
  42% { transform: translate(-5px, 0.4px) rotate(-4deg); }
  50% { transform: translate(0, 0) rotate(0deg); }
  56% { transform: translate(0, -3px) rotate(-2deg); }
  62%, 100% { transform: translate(0, 0) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mock-pen {
    animation: none;
  }
}
