/* =========================================================
   AI 工具站点模板 · 公共样式
   所有颜色由 --accent 驱动，后台可按站点覆盖主题色
   ========================================================= */

:root {
  --bg: #080908;
  --bg-deep: #060706;
  --panel: #0e100c;
  --panel-2: #12140f;
  --ink: #f3f1e8;
  --ink-soft: #c9c6ba;
  --muted: #8e8d82;
  --line: rgba(243, 241, 232, 0.11);
  --line-strong: rgba(243, 241, 232, 0.2);
  --accent: #c8f56a;
  --accent-ink: #0a0b08;
  --radius: 18px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

button {
  font: inherit;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 13px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  background:
    radial-gradient(
      1100px 560px at 50% -12%,
      color-mix(in srgb, var(--accent) 8%, transparent),
      transparent 68%
    ),
    var(--bg);
}

.site-body.is-preview .site {
  padding-top: 0;
}

.preview-bar {
  position: relative;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.preview-bar a {
  margin-left: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.site-header.is-solid {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 76px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tag {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.header-cta {
  margin-left: 4px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-nav {
  padding: 6px 24px 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.mobile-nav .btn {
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

/* ---------- 按钮 / 标签 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, white);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--accent);
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-sm {
  height: 38px;
  padding: 0 17px;
  font-size: 13px;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.chips li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

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

.hero {
  position: relative;
  padding: clamp(62px, 10vw, 118px) 0 74px;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(0, 0, 0, 0.75),
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(0, 0, 0, 0.75),
    transparent 75%
  );
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  z-index: -1;
  width: 900px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 22%, transparent),
    transparent 72%
  );
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  text-align: center;
}

.hero-eyebrow {
  justify-content: center;
}

.display {
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.75rem, 7.4vw, 6.6rem);
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--accent);
}

.hero-lede {
  max-width: 690px;
  margin: 28px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.85;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 模拟控制台 ---------- */

.console {
  position: relative;
  max-width: 960px;
  margin: 66px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, #10120e 0%, #090a08 100%);
  box-shadow: 0 48px 120px -48px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: left;
}

.console::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent) 70%, transparent),
    transparent
  );
  opacity: 0.75;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(243, 241, 232, 0.16);
}

.console-dots i:first-child {
  background: color-mix(in srgb, var(--accent) 60%, transparent);
}

.console-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-badge {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 5px;
  color: var(--accent);
  font-size: 9px;
  white-space: nowrap;
}

.console-body {
  padding: 24px;
}

.mock-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #070806;
  font-size: 13px;
  color: var(--ink-soft);
}

.mock-icon {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.mock-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-key {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.mock-answer {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.mock-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.mock-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
}

.mock-live {
  margin-left: auto;
  color: var(--accent);
  opacity: 0.8;
}

.mock-lead {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink);
}

.mock-points {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.mock-points li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}

.mock-points li span {
  flex: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  padding-top: 3px;
}

.mock-points sup {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  margin-left: 2px;
}

.mock-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.mock-sources span {
  color: var(--muted);
}

.mock-sources b {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-weight: 400;
}

/* 图像生成 */

.mock-canvas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.mock-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.mock-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

.mock-tile span {
  position: absolute;
  bottom: 7px;
  left: 8px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.tile-a {
  background: linear-gradient(155deg, #2c3437 0%, #6f8489 42%, #d7d2c2 100%);
}

.tile-b {
  background: linear-gradient(180deg, #2d3140 0%, #a06f58 52%, #e7c69b 100%);
}

.tile-c {
  background: conic-gradient(
    from 210deg at 60% 40%,
    #1c1c2a,
    #53407a,
    #b68fce,
    #302a3f,
    #1c1c2a
  );
}

.tile-d {
  background: linear-gradient(135deg, #3a3a35 0%, #7c7a6e 48%, #b9b5a4 100%);
}

.mock-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mock-toolbar span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

/* 写作 */

.console-writer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 22px;
}

.mock-doc {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0b09;
}

.mock-doc-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.mock-doc h4 {
  margin: 18px 0 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mock-line {
  height: 7px;
  margin-bottom: 9px;
  border-radius: 99px;
  background: rgba(243, 241, 232, 0.08);
}

.mock-line.w90 {
  width: 90%;
}
.mock-line.w84 {
  width: 84%;
}
.mock-line.w76 {
  width: 76%;
}
.mock-line.w72 {
  width: 72%;
}
.mock-line.w58 {
  width: 58%;
}
.mock-line.w44 {
  width: 44%;
}

.mock-note {
  margin: 14px 0;
  padding: 9px 12px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--ink-soft);
  font-size: 11px;
}

.mock-outline {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.mock-outline > p {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.mock-outline ol {
  margin-top: 14px;
}

.mock-outline li {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.mock-outline li span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  padding-top: 3px;
}

.mock-outline li.is-on {
  color: var(--ink);
}

.mock-chip {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8.5px;
}

/* 对话 */

.mock-thread {
  display: grid;
  gap: 10px;
}

.bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 12.5px;
  line-height: 1.7;
}

.bubble-user {
  justify-self: end;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom-right-radius: 4px;
}

.bubble-bot {
  display: flex;
  gap: 10px;
  max-width: 88%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-soft);
  border-bottom-left-radius: 4px;
}

.bubble-small {
  justify-self: end;
  font-size: 11px;
  opacity: 0.9;
}

.mock-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.mock-tasks span {
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.console-chat .mock-input {
  margin-top: 14px;
}

/* 视频 */

.mock-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.55));
}

.frame span {
  position: absolute;
  bottom: 7px;
  left: 8px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.frame-a {
  background: linear-gradient(170deg, #1c2426 0%, #4c5a55 55%, #9a8f70 100%);
}

.frame-b {
  background: linear-gradient(200deg, #2a2022 0%, #7d4a45 55%, #c99577 100%);
}

.frame-c {
  background: linear-gradient(140deg, #1f1f2b 0%, #5b4a77 52%, #b792b8 100%);
}

.mock-timeline {
  margin-top: 14px;
}

.mock-track {
  display: flex;
  gap: 4px;
  height: 6px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.mock-track span {
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}

.seg-a {
  width: 38%;
}
.seg-b {
  width: 26%;
  opacity: 0.7;
}
.seg-c {
  width: 20%;
  opacity: 0.45;
}

.mock-time {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

/* 通用 */

.mock-generic-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.mock-generic-row > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mock-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.mock-generic-row p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

/* ---------- 内容区块 ---------- */

.section {
  padding: clamp(72px, 10vw, 116px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 860px;
}

.section-title {
  margin-top: 20px;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  line-height: 1.08;
}

.section-title span {
  display: block;
}

.section-lede {
  max-width: 660px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.section-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 11.5px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 248px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

.card:hover::after {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-tag {
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.card-index {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.card h3 {
  margin: 28px 0 10px;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--ink);
  font-size: 12.5px;
}

.card-link span {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.card-link:hover span {
  transform: translateX(3px);
}

/* 步骤 */

.steps {
  margin-top: 46px;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 36px;
  gap: 20px;
  align-items: start;
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.015);
}

.step-num {
  padding-top: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.step-body h3 {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-body p {
  max-width: 760px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.step-mark {
  color: var(--muted);
  font-size: 15px;
  text-align: right;
  opacity: 0.5;
}

/* 数据 */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.stat {
  padding: 30px 26px;
  background: var(--bg);
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.stat p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

/* FAQ */

.faq {
  max-width: 900px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 500;
  list-style: none;
}

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

.faq-item summary i {
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.faq-item[open] summary i {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 770px;
  padding: 0 34px 22px 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.faq-link {
  display: inline-block;
  margin: 0 0 22px 2px;
  color: var(--accent);
  font-size: 12px;
}

/* 引用 */

.quote {
  max-width: 960px;
  margin: 48px 0 0;
  padding: 34px 38px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}

.quote blockquote {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.5;
}

.quote blockquote span {
  display: block;
}

.quote figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* ---------- CTA / 页脚 ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 140px) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-glow {
  position: absolute;
  bottom: -320px;
  left: 50%;
  width: 780px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 18%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  margin-top: 22px;
  font-size: clamp(2.3rem, 5.4vw, 4.5rem);
}

.cta-title span {
  display: block;
}

.cta-lede {
  max-width: 560px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.cta .btn {
  margin-top: 32px;
}

.site-footer {
  padding: 64px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 9px;
  font-size: 13px;
}

.footer-tagline {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.footer-note {
  max-width: 440px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer-note a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 11px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-nav a {
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.footer-legal a {
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 文档页 ---------- */

.doc-main {
  padding: clamp(64px, 9vw, 104px) 0;
}

.doc-wrap {
  max-width: 820px;
}

.doc-title {
  margin-top: 22px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.doc-lede {
  max-width: 720px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.95;
}

.doc-body {
  margin-top: 48px;
}

.doc-body section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.doc-body h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc-body h2 span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.doc-body p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.doc-body a {
  color: var(--accent);
}

.doc-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.doc-foot p {
  color: var(--muted);
  font-size: 11px;
}

.doc-foot a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-simple {
  padding-top: 0;
}

.footer-simple .footer-bottom {
  margin-top: 0;
}

/* ---------- 状态页 ---------- */

.page-error .site {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.error-main {
  position: relative;
  width: 100%;
  padding: 88px 0;
}

.error-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(
    ellipse 60% 60% at 50% 45%,
    #000,
    transparent 78%
  );
  opacity: 0.55;
}

.error-inner {
  position: relative;
  max-width: 760px;
  text-align: center;
}

.error-inner .eyebrow {
  justify-content: center;
}

.error-code {
  margin-top: 26px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0.75;
}

.error-title {
  margin-top: 14px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.error-message {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.error-company {
  margin-top: 36px;
  color: var(--muted);
  font-size: 11px;
}

.error-company a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 动效 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .console-writer {
    grid-template-columns: 1fr;
  }

  .mock-outline {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }
}

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

  .header-inner {
    height: 66px;
  }

  .brand-tag {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-title {
    letter-spacing: -0.035em;
  }

  .console {
    margin-top: 48px;
    border-radius: 16px;
  }

  .console-body {
    padding: 16px;
  }

  .console-title {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .mock-canvas {
    grid-template-columns: repeat(2, 1fr);
  }

  .mock-story {
    grid-template-columns: 1fr;
  }

  .frame {
    aspect-ratio: 16 / 8;
  }

  .mock-generic-row {
    grid-template-columns: 1fr;
  }

  .mock-doc h4 {
    font-size: 15px;
  }

  .mock-answer {
    padding: 14px;
  }

  .step {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .step-mark {
    display: none;
  }

  .quote {
    padding: 24px;
  }

  .section-title {
    letter-spacing: -0.03em;
  }

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

  .btn-lg {
    height: 48px;
    padding: 0 22px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .chips {
    gap: 6px;
  }

  .chips li {
    padding: 6px 10px;
    font-size: 11px;
  }

  .console-bar {
    padding: 0 12px;
  }

  .console-badge {
    display: none;
  }

  .mock-key {
    display: none;
  }

  .preview-bar {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .preview-bar a {
    margin-left: 4px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
