/* 烂笔头（Tingyu）产品落地页样式
 * 视觉体系源自 AppIcon（深墨青底 + 暖纸象牙声波与笔尖 + 钴蓝呼吸点）与 docs/09 暖纸沙盘/双轨色板。
 */

:root {
  /* 深墨青表面（Hero / 隐私底栏） */
  --ink-0: #06161a;
  --ink-1: #0b2329;
  --ink-2: #12363f;
  --ink-line: rgba(244, 239, 227, 0.12);
  --ink-line-strong: rgba(244, 239, 227, 0.22);
  --ivory: #f7f3ea;
  --ivory-soft: #ebe3d2;
  --mist: #a6b9bd;
  --mist-dim: #799095;

  /* 暖纸沙盘表面（docs/09 Layer 2） */
  --paper: #f3f0e8;
  --paper-card: #fcfbf7;
  --paper-subtle: #ebe7dc;
  --paper-line: rgba(15, 36, 42, 0.1);
  --paper-line-strong: rgba(15, 36, 42, 0.18);
  --text-1: #0e1f24;
  --text-2: #46575c;
  --text-3: #6c7c80;

  /* 语义与双轨令牌（docs/09 Layer 3） */
  --cobalt: #0a6cff;
  --cobalt-bright: #3b8bff;
  --cobalt-soft: rgba(10, 108, 255, 0.09);
  --teal: #0e6d75;
  --teal-soft: rgba(14, 109, 117, 0.1);
  --crimson: #c2392f;
  --crimson-soft: rgba(194, 57, 47, 0.09);
  --purple: #6344b5;
  --purple-soft: rgba(99, 68, 181, 0.09);
  --amber: #a85600;
  --amber-soft: rgba(178, 94, 0, 0.11);
  --emerald: #1c7c46;
  --emerald-soft: rgba(28, 124, 70, 0.11);

  /* 说话人轨道 A */
  --spk-wang: #0b5cdb;
  --spk-li: #1f7a45;
  --spk-me: #566178;

  /* 认知诚实色 */
  --ink-human: #09090b;
  --ink-ai: #52525b;

  /* 排版与尺度 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "PingFang SC", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --container: min(1220px, calc(100vw - 48px));
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink-0);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 50%;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ivory);
  color: var(--ink-0);
  font-size: 13px;
  font-weight: 600;
  transform: translateX(-50%);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ───────────────── 顶部导航 ───────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
  background: rgba(6, 22, 26, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--ink-line);
}

.header-inner {
  width: var(--container);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ivory);
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

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

.brand-en {
  font-size: 12px;
  font-weight: 500;
  color: var(--mist-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  color: var(--mist);
}

.header-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s var(--ease);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--ivory);
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ivory-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink-line-strong);
  background: rgba(247, 243, 234, 0.06);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  flex-shrink: 0;
}

.header-cta:hover {
  background: rgba(247, 243, 234, 0.13);
  border-color: rgba(247, 243, 234, 0.36);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink-line-strong);
  border-radius: var(--r-sm);
  background: rgba(247, 243, 234, 0.05);
  color: var(--ivory);
  align-items: center;
  justify-content: center;
}

/* ───────────────── Hero 首屏（深墨青 + 原生暖纸窗口） ───────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse 68% 60% at 72% 46%, rgba(22, 92, 104, 0.56), transparent 68%),
    radial-gradient(ellipse 42% 45% at 14% 24%, rgba(16, 72, 84, 0.42), transparent 62%),
    linear-gradient(165deg, #06161a 0%, #092127 52%, #07191e 100%);
  color: var(--ivory);
  padding: 72px 0 92px;
  border-bottom: 1px solid var(--ink-line);
}

/* 细腻声波纹理背景，呼应 AppIcon 声波竖条 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.16;
  background-image: radial-gradient(rgba(247, 243, 234, 0.32) 0.75px, transparent 0.75px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 10%, transparent 80%);
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  left: -6%;
  bottom: -40px;
  width: 560px;
  height: 360px;
  z-index: -1;
  opacity: 0.14;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(247, 243, 234, 0.16);
  background: rgba(247, 243, 234, 0.05);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ivory-soft);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cobalt-bright);
  box-shadow: 0 0 0 4px rgba(59, 139, 255, 0.24);
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(40px, 4.7vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ivory);
}

.hero h1 .accent-line {
  display: block;
  margin-top: 4px;
  background: linear-gradient(96deg, #f8f2e4 0%, #d8e9e8 58%, #90d5dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--mist);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn-primary {
  background: var(--ivory);
  color: var(--ink-0);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.btn-ghost {
  background: rgba(247, 243, 234, 0.06);
  border-color: var(--ink-line-strong);
  color: var(--ivory);
}

.btn-ghost:hover {
  background: rgba(247, 243, 234, 0.12);
  border-color: rgba(247, 243, 234, 0.36);
}

.hero-meta {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--mist-dim);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(144, 213, 220, 0.55);
}

/* ───────────────── Hero 右侧：高保真 Mac 桌面端窗口 ───────────────── */
.mac-stage {
  position: relative;
}

.mac-window {
  border-radius: 16px;
  background: #faf8f2;
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.52),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(6, 22, 26, 0.5);
  overflow: hidden;
}

.mac-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: #f1eee5;
  border-bottom: 1px solid rgba(14, 31, 36, 0.09);
}

.mac-lights {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mac-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.mac-lights i:nth-child(1) { background: #ff5f57; }
.mac-lights i:nth-child(2) { background: #febc2e; }
.mac-lights i:nth-child(3) { background: #28c840; }

.mac-session-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(194, 57, 47, 0.1);
  color: var(--crimson);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
  animation: pulse-rec 1.8s ease-in-out infinite;
}

@keyframes pulse-rec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.84); }
}

.mac-tabs {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: rgba(14, 31, 36, 0.07);
  gap: 2px;
  flex-shrink: 0;
}

.mac-tab {
  border: 0;
  background: transparent;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.mac-tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--text-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
}

.mac-body {
  min-height: 416px;
  padding: 14px;
  background: #faf8f2;
}

.mac-pane[hidden] {
  display: none;
}

/* 视图一：会中双栏实况 */
.live-split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: 12px;
}

.live-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ui-card {
  background: #ffffff;
  border: 1px solid rgba(14, 31, 36, 0.08);
  border-radius: 11px;
  padding: 11px 12px;
  box-shadow: 0 1px 2px rgba(14, 31, 36, 0.03);
}

.ui-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ui-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}

.disambig-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  border: 1px dashed rgba(168, 86, 0, 0.55);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 600;
}

.utterance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.utterance {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.spk-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.spk-wang { background: rgba(11, 92, 219, 0.1); color: var(--spk-wang); }
.spk-li { background: rgba(31, 122, 69, 0.1); color: var(--spk-li); }
.spk-me { background: rgba(86, 97, 120, 0.12); color: var(--spk-me); }

.utt-text {
  color: var(--text-1);
}

.utt-time {
  margin-left: 5px;
  font-size: 11px;
  color: var(--text-3);
}

/* 人机分层手记卡（纯黑手写 + 冷灰 AI 补全 + (❞) 溯源胶囊） */
.hybrid-note {
  background: #ffffff;
  border: 1px solid rgba(14, 31, 36, 0.08);
  border-radius: 11px;
  padding: 11px 12px;
}

.note-human {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-human);
}

.note-ai {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-ai);
}

.prov-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  padding: 0 6px;
  height: 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(14, 31, 36, 0.14);
  background: #f5f3ec;
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
  vertical-align: 1px;
}

/* 右侧：问题栈 + 主动幕僚交接建议（虚线 AI 建议 → 实线已确认） */
.q-item {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f7f6f1;
  font-size: 12px;
  line-height: 1.45;
}

.q-item + .q-item {
  margin-top: 6px;
}

.q-badge {
  display: inline-block;
  margin-bottom: 3px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

.q-open { background: var(--amber-soft); color: var(--amber); }
.q-done { background: var(--emerald-soft); color: var(--emerald); }

.q-item.is-resolved {
  opacity: 0.72;
}

.proposed-card {
  border: 1.25px dashed rgba(10, 108, 255, 0.5);
  background: rgba(10, 108, 255, 0.045);
  border-radius: 11px;
  padding: 11px 12px;
  transition: border-style 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.proposed-card.is-confirmed {
  border-style: solid;
  border-color: rgba(28, 124, 70, 0.35);
  background: rgba(28, 124, 70, 0.06);
}

.proposed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.proposed-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--cobalt);
}

.proposed-card.is-confirmed .proposed-tag {
  color: var(--emerald);
}

.proposed-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-1);
}

.proposed-actions {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  border: 0;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--cobalt);
  color: #fff;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.mini-btn:hover {
  background: #0059d6;
}

.proposed-card.is-confirmed .mini-btn {
  background: var(--emerald);
}

.mini-hint {
  font-size: 11px;
  color: var(--text-3);
}

.dream-status-bar {
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 9px;
  background: #f1eee5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-2);
}

.dream-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 600;
}

.dream-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* 视图二：Hero 内嵌紧凑拓扑卡 */
.mini-topo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.mini-lane {
  background: #ffffff;
  border: 1px solid rgba(14, 31, 36, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.mini-lane-title {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-person {
  padding: 8px;
  border-radius: 8px;
  background: #f8f6f0;
  border-left: 3px solid transparent;
  font-size: 11.5px;
}

.mini-person + .mini-person {
  margin-top: 7px;
}

.mini-person strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.mini-person p {
  margin: 4px 0 0;
  color: var(--text-2);
  line-height: 1.45;
}

.lane-red { color: var(--crimson); }
.lane-teal { color: var(--teal); }
.lane-purple { color: var(--purple); }
.b-red { border-left-color: var(--crimson); }
.b-teal { border-left-color: var(--teal); }
.b-purple { border-left-color: var(--purple); }

.mini-route-bar {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #0d323a;
  color: var(--ivory);
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* 视图三：Hero 内嵌准备稿 */
.prep-banner {
  padding: 9px 11px;
  border-radius: 9px;
  border: 1.25px dashed rgba(10, 108, 255, 0.45);
  background: rgba(10, 108, 255, 0.05);
  font-size: 11.5px;
  color: #074cb5;
  font-weight: 600;
  margin-bottom: 10px;
}

.prep-doc {
  background: #ffffff;
  border: 1px solid rgba(14, 31, 36, 0.08);
  border-radius: 11px;
  padding: 13px 14px;
}

.prep-doc h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-1);
}

.prep-doc ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
}

.src-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
}

.src-oral { background: rgba(11, 92, 219, 0.09); color: var(--spk-wang); }
.src-doc { background: rgba(14, 109, 117, 0.1); color: var(--teal); }

.mac-caption {
  margin: 10px 4px 0;
  text-align: right;
  font-size: 11.5px;
  color: var(--mist-dim);
}

/* ───────────────── 通用区块结构 ───────────────── */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--paper-line);
}

.section-subtle {
  background: #ede9de;
}

.section-head {
  max-width: 700px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-1);
}

.section-head p {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-2);
}

/* ───────────────── 区块一：三层架构（记录 → 记忆 → 资产与行动） ───────────────── */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.layer-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.layer-card:hover {
  transform: translateY(-3px);
  border-color: var(--paper-line-strong);
  box-shadow: 0 14px 32px rgba(14, 31, 36, 0.07);
}

.layer-card.is-core {
  background: linear-gradient(165deg, #0b242a 0%, #10353e 100%);
  color: var(--ivory);
  border-color: rgba(144, 213, 220, 0.24);
}

.layer-step {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.layer-card.is-core .layer-step {
  color: #90d5dc;
}

.layer-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.layer-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-2);
}

.layer-card.is-core p {
  color: var(--mist);
}

.layer-tags {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--paper-line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-card.is-core .layer-tags {
  border-top-color: var(--ink-line);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  background: rgba(14, 31, 36, 0.06);
  color: var(--text-2);
}

.layer-card.is-core .chip {
  background: rgba(247, 243, 234, 0.1);
  color: var(--ivory-soft);
}

.contrast-strip {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contrast-col h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}

.contrast-col.is-tingyu h4 {
  color: var(--teal);
}

.contrast-col p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.contrast-col.is-tingyu p {
  color: var(--text-1);
  font-weight: 500;
}

/* ───────────────── 区块二：四幕交互工作流 ───────────────── */
.workflow-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: start;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-step {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--paper-line);
  background: rgba(252, 251, 247, 0.62);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.wf-step:hover {
  background: var(--paper-card);
  border-color: var(--paper-line-strong);
}

.wf-step[aria-selected="true"] {
  background: var(--paper-card);
  border-color: var(--teal);
  box-shadow: 0 10px 28px rgba(14, 31, 36, 0.08);
}

.wf-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wf-num {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.wf-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--paper-subtle);
}

.wf-step h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-1);
}

.wf-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.wf-panel-wrap {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(14, 31, 36, 0.06);
  min-height: 410px;
}

.wf-panel[hidden] {
  display: none;
}

.wf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--paper-line);
}

.wf-panel-head strong {
  font-size: 16px;
  color: var(--text-1);
}

.wf-panel-head span {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--teal-soft);
}

.wf-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-row {
  padding: 13px 15px;
  border-radius: var(--r-sm);
  background: #f6f4ec;
  border: 1px solid rgba(14, 31, 36, 0.06);
}

.wf-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.wf-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.track-bar {
  display: grid;
  grid-template-columns: 32% 18% 26% 24%;
  gap: 4px;
  margin-top: 10px;
}

.track-seg {
  height: 10px;
  border-radius: 5px;
}

/* ───────────────── 区块三：项目人员关系拓扑卡（可切换脱敏模式） ───────────────── */
.topo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.topo-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(14, 31, 36, 0.08);
  gap: 4px;
}

.topo-btn {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.topo-btn[aria-pressed="true"] {
  background: var(--ink-0);
  color: var(--ivory);
  box-shadow: 0 4px 12px rgba(6, 22, 26, 0.2);
}

.topo-status {
  font-size: 13px;
  color: var(--text-2);
}

.topo-board {
  background: #faf8f2;
  border: 1px solid var(--paper-line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(14, 31, 36, 0.08);
}

.topo-board-head {
  padding: 18px 22px;
  background: #f1eee5;
  border-bottom: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.topo-board-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topo-board-title strong {
  font-size: 17px;
  color: var(--text-1);
}

.topo-board-title span {
  font-size: 12.5px;
  color: var(--text-3);
}

.topo-export-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topo-export-pills span {
  padding: 3px 9px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--paper-line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}

.topo-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.topo-board.is-redacted .topo-lanes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topo-lane {
  background: #ffffff;
  border: 1px solid rgba(14, 31, 36, 0.08);
  border-radius: 13px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topo-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(14, 31, 36, 0.07);
}

.person-card {
  padding: 11px 12px;
  border-radius: 10px;
  background: #f9f7f2;
  border: 1px solid rgba(14, 31, 36, 0.07);
  border-left: 3px solid var(--teal);
}

.person-card.c-red { border-left-color: var(--crimson); }
.person-card.c-teal { border-left-color: var(--teal); }
.person-card.c-purple { border-left-color: var(--purple); }
.person-card.c-amber {
  border-style: dashed;
  border-color: rgba(168, 86, 0, 0.5);
  border-left: 3px solid var(--amber);
  background: rgba(178, 94, 0, 0.06);
}

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

.person-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.role-pill {
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(14, 31, 36, 0.07);
  color: var(--text-2);
}

.person-card.c-red .role-pill { background: var(--crimson-soft); color: var(--crimson); }
.person-card.c-teal .role-pill { background: var(--teal-soft); color: var(--teal); }
.person-card.c-purple .role-pill { background: var(--purple-soft); color: var(--purple); }
.person-card.c-amber .role-pill { background: var(--amber-soft); color: var(--amber); }

.person-intel {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.internal-only {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(194, 57, 47, 0.06);
  border: 1px dashed rgba(194, 57, 47, 0.35);
  font-size: 11.5px;
  line-height: 1.45;
  color: #8f261f;
}

.topo-board.is-redacted [data-internal-only] {
  display: none;
}

.topo-footer-bar {
  padding: 14px 22px;
  background: #0c3139;
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.topo-footer-bar span {
  color: var(--mist);
  font-size: 12.5px;
}

.redacted-notice {
  display: none;
  padding: 10px 22px;
  background: rgba(28, 124, 70, 0.1);
  border-top: 1px solid rgba(28, 124, 70, 0.22);
  color: #165e35;
  font-size: 12.5px;
  font-weight: 600;
}

.topo-board.is-redacted .redacted-notice {
  display: block;
}

/* ───────────────── 区块四：六大核心能力网格 ───────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cap-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.cap-card:hover {
  transform: translateY(-3px);
  border-color: var(--paper-line-strong);
  box-shadow: 0 14px 28px rgba(14, 31, 36, 0.06);
}

.cap-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.cap-card h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
}

.cap-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--text-2);
}

.cap-foot {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

/* ───────────────── 区块五：本地优先、纯 BYOK 与隐私边界（深墨青收尾） ───────────────── */
.privacy-section {
  background:
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(20, 88, 100, 0.4), transparent 65%),
    linear-gradient(180deg, #071b20 0%, #061418 100%);
  color: var(--ivory);
  padding: 92px 0 84px;
}

.privacy-section .eyebrow {
  color: #90d5dc;
}

.privacy-section .section-head h2 {
  color: var(--ivory);
}

.privacy-section .section-head p {
  color: var(--mist);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.privacy-card {
  padding: 24px;
  border-radius: var(--r-md);
  background: rgba(247, 243, 234, 0.045);
  border: 1px solid var(--ink-line);
}

.privacy-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
}

.privacy-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.status-banner {
  margin-top: 32px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: rgba(247, 243, 234, 0.06);
  border: 1px solid var(--ink-line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 24px;
  align-items: center;
}

.status-banner h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--ivory);
}

.status-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

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

/* ───────────────── 页脚 ───────────────── */
.site-footer {
  background: #051114;
  color: var(--mist-dim);
  border-top: 1px solid var(--ink-line);
  padding: 26px 0;
  font-size: 12.5px;
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-links a {
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.footer-links a:hover {
  color: var(--ivory);
}

/* ───────────────── 滚入动画 ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

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

  .topo-lanes,
  .topo-board.is-redacted .topo-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(6, 22, 26, 0.97);
    border-bottom: 1px solid var(--ink-line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
  }

  .header-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .header-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-line);
  }

  .header-nav a::after {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .layers-grid,
  .cap-grid,
  .workflow-shell,
  .privacy-grid,
  .contrast-strip,
  .status-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100vw - 32px);
  }

  .hero {
    padding: 46px 0 64px;
  }

  .section,
  .privacy-section {
    padding: 64px 0;
  }

  .live-split,
  .mini-topo-grid,
  .topo-lanes,
  .topo-board.is-redacted .topo-lanes {
    grid-template-columns: 1fr;
  }

  .mac-titlebar {
    flex-wrap: wrap;
  }

  .mac-session-meta {
    order: 3;
    width: 100%;
  }
}

@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;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
