/* ═══════════════════════════════════════════════════════════════
   Debut UI - Lieflat Charts Visual Design System (lieflat-tokens)
   基于 mono-tokens.js 与 color-presets.js (Porcelain / Wire)
   纸底炭墨 · 明度即层级 · 墨量三态 · 结论式卡片
   ═══════════════════════════════════════════════════════════════ */

/* --- 本地字体载入 --- */
@font-face {
  font-family: 'TiemposHeadline';
  src: url('assets/fonts/TiemposHeadline-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TiemposHeadline';
  src: url('assets/fonts/TiemposHeadline-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/f639721981034f88-s.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/22a5144ee8d83bca-s.p.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* --- Lieflat 设计 Tokens 规范 --- */
:root {
  /* 纸与墨 (Paper & Ink) */
  --paper: #F7F6F2;           /* 暖调纸底 */
  --paper-card: #FFFFFF;      /* 白卡基底 */
  --paper-subtle: #EFECE6;    /* 嵌层浅灰纸 */
  --ink: #1C1C1A;             /* 炭黑墨：主标题、核心数据、强强调 */
  --ink-secondary: #4A4944;   /* 二级墨：正文、字段名 */
  --muted: #6B6A65;           /* 减墨：副标题、辅助说明（纸底对比度 5.0:1，过 WCAG AA） */
  --faint: #A8A7A1;           /* 极弱墨：来源行、占位符、小标注 */
  --grid: #DEDDD6;            /* 发丝网格线、细边框 */
  --grid-soft: #E8E7E1;       /* 柔和分割线 */

  /* 暗卡与高对比区块 (Dark Surface) */
  --dark-bg: #1C1C1A;
  --dark-ink: #F7F6F2;
  --dark-muted: #8F8E88;
  --dark-faint: #55554F;
  --dark-grid: #2E2D29;

  /* 彩色系：Porcelain 青瓷蓝（主核准色） + Wire 荧光橙（单点提神） */
  --porcelain-dark: #081F5C;
  --porcelain: #334EAC;
  --porcelain-light: #7096D1;
  --porcelain-faint: #BAD6EB;
  --porcelain-wash: rgba(51, 78, 172, 0.08);

  --wire-hero: #F5572F;        /* 全屏只准出现 1~2 处的单点强调橙红 */
  --status-pass: #2B6E3F;      /* 质检/测试通过绿 */
  --status-pass-bg: #EAF4EC;

  /* 字体家族 (Typography) */
  --font-serif: 'TiemposHeadline', 'Songti SC', 'SimSun', serif;
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 形状 (Shape契约) */
  --card-radius: 20px;
  --pill-radius: 9999px;
  --tag-radius: 6px;
  --container-max: 1120px;

  /* 极简投影：Lieflat 强调靠白纸底与发丝线分层，严禁重度发光投影 */
  --shadow-card: 0 2px 8px rgba(28, 28, 26, 0.03);
  --shadow-pop: 0 16px 36px -12px rgba(28, 28, 26, 0.08), 0 0 1px rgba(28, 28, 26, 0.16);

  /* 动画性格：quarticOut 快进快停 */
  --ease-lieflat: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 160ms var(--ease-lieflat);
  --motion-normal: 280ms var(--ease-lieflat);
}

/* --- 全局重置 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
  background-color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--motion-fast);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* 布局工具 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }

/* 仅屏幕阅读器可见 */
.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;
}

/* 降低动态偏好：关闭一切过渡与动画 */
@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;
  }
}

/* 来源行（Source Row）：Lieflat 关键范式，11px 全大写加宽字距 */
.src-row {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.src-row::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--faint);
  border-radius: 50%;
}

/* 墨量三态 Badge 哲学 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: var(--pill-radius);
  font-family: var(--font-mono);
  line-height: 1.3;
  white-space: nowrap;
}
/* 实底黑：最重要 */
.badge.badge-ink {
  background: var(--ink);
  color: var(--paper);
}
/* 实线描边：重要 */
.badge.badge-stroke {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
/* 虚线描边：辅助/中立 */
.badge.badge-dash {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--faint);
}
/* 青瓷蓝交付态 */
.badge.badge-blue {
  background: var(--porcelain-wash);
  color: var(--porcelain);
  border: 1px solid rgba(51, 78, 172, 0.2);
}
/* 质检通过态 */
.badge.badge-pass {
  background: var(--status-pass-bg);
  color: var(--status-pass);
  border: 1px solid rgba(43, 110, 63, 0.2);
}

/* --- 顶部固定导航 --- */
.site-nav-wrapper {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.site-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  height: 52px;
  padding: 0 14px 0 20px;
  background-color: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--grid);
  border-radius: var(--pill-radius);
  box-shadow: 0 4px 18px rgba(28, 28, 26, 0.04);
  transition: all var(--motion-normal);
}

.site-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  border-color: var(--ink-secondary);
  box-shadow: 0 8px 24px rgba(28, 28, 26, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
}

.nav-link:hover {
  color: var(--porcelain);
}

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

.btn-nav-ghost {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 12px;
}

.btn-nav-ghost:hover {
  color: var(--ink);
}

.btn-nav-primary {
  font-size: 13px;
  font-weight: 600;
  background-color: var(--ink);
  color: var(--paper);
  padding: 7px 16px;
  border-radius: var(--pill-radius);
  border: 1px solid var(--ink);
  transition: all var(--motion-fast);
}

.btn-nav-primary:hover {
  background-color: var(--porcelain);
  border-color: var(--porcelain);
  color: #fff;
}

/* --- 移动端：导航防溢出（375px 下隐去次要 CTA） --- */
@media (max-width: 560px) {
  .site-nav {
    padding: 0 8px 0 16px;
  }
  .nav-brand span {
    font-size: 16px;
  }
  .btn-nav-ghost {
    display: none;
  }
  .btn-nav-primary {
    padding: 6px 12px;
    font-size: 12.5px;
  }
}

/* --- Hero 区域 --- */
.hero-section {
  padding-top: 136px;
  padding-bottom: 72px;
  background-color: var(--paper);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background-color: var(--paper-card);
  border: 1px solid var(--grid);
  border-radius: var(--pill-radius);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  background-color: var(--wire-hero);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 64px;
  }
}

.hero-title-highlight {
  color: var(--porcelain);
  text-decoration: underline;
  text-decoration-color: var(--porcelain-faint);
  text-underline-offset: 6px;
}

.hero-subtitle {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 660px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--pill-radius);
  border: 1.5px solid var(--ink);
  transition: all var(--motion-fast);
}

.btn-hero-primary:hover {
  background-color: var(--porcelain);
  border-color: var(--porcelain);
  color: #fff;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--paper-card);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--pill-radius);
  border: 1px solid var(--grid);
  transition: all var(--motion-fast);
}

.btn-hero-secondary:hover {
  border-color: var(--ink);
  background-color: var(--paper-subtle);
}

/* --- Hero 互动卡片：Debby 智能体与真实任务控制台 --- */
.hero-demo-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: var(--paper-card);
  border: 1px solid var(--grid);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.demo-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 22px;
  background-color: var(--paper-subtle);
  border-bottom: 1px solid var(--grid);
}

.demo-agent-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-agent-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.demo-agent-avatar img {
  filter: invert(1);
}

.demo-agent-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.demo-agent-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.demo-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 480px;
  overflow-y: auto;
  background-color: #FAF9F6;
}

.chat-bubble {
  display: flex;
  gap: 12px;
  max-width: 88%;
}

.chat-bubble.agent {
  align-self: flex-start;
}

.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--grid);
  background: #fff;
  padding: 4px;
}

.chat-bubble-content {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-bubble.agent .chat-bubble-content {
  background-color: #ffffff;
  color: var(--ink);
  border: 1px solid var(--grid);
  border-top-left-radius: 4px;
}

.chat-bubble.user .chat-bubble-content {
  background-color: var(--ink);
  color: var(--paper);
  border-top-right-radius: 4px;
}

/* 嵌在聊天内的交付档案卡 (Dossier Embed) */
.chat-dossier-embed {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dossier-candidate-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dossier-candidate-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--grid);
}

.dossier-candidate-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}

.dossier-candidate-role {
  font-size: 12px;
  color: var(--muted);
}

.dossier-proof-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.proof-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--grid);
}

.proof-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-icon {
  width: 16px;
  height: 16px;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background-color: #ffffff;
  border-top: 1px solid var(--grid);
}

.chat-input {
  flex: 1;
  font-size: 14px;
  padding: 10px 16px;
  background: var(--paper-subtle);
  border: 1px solid var(--grid);
  border-radius: var(--pill-radius);
  outline: none;
  transition: border-color var(--motion-fast);
}

.chat-input:focus {
  border-color: var(--porcelain);
  background: #ffffff;
}

.chat-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

/* Debby 打字中指示器（加载态） */
.chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 2px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--faint);
  animation: typingBounce 1s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.btn-chat-send {
  background: var(--ink);
  color: var(--paper);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--motion-fast);
}

.btn-chat-send:hover {
  background: var(--porcelain);
  transform: scale(1.04);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px 14px 20px;
  background-color: #ffffff;
  border-top: 1px dashed var(--grid);
}

.demo-chip-label {
  font-size: 11px;
  color: var(--muted);
  align-self: center;
  font-family: var(--font-mono);
}

.demo-chip {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--paper-subtle);
  border: 1px solid var(--grid);
  border-radius: var(--pill-radius);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--motion-fast);
}

.demo-chip:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* 信任与证据源条带 */
.integrations-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 0 10px 0;
  margin-top: 48px;
  border-top: 1px solid var(--grid);
}

.integrations-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.integrations-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
  opacity: 0.85;
}

.integration-item img {
  width: 17px;
  height: 17px;
}

/* --- Section: Agent 三部曲 (结论式卡片) --- */
.section-agent-features {
  background-color: var(--paper-card);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--porcelain);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 42px;
  }
}

.section-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* 切分节奏：部分段落头部改为左文右述双栏，打破全页同构 */
.section-header--split {
  text-align: left;
  max-width: none;
}

@media (min-width: 768px) {
  .section-header--split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 48px;
  }
  .section-header--split .section-tag {
    grid-column: 1;
  }
  .section-header--split .section-title {
    grid-column: 1;
  }
  .section-header--split .section-desc {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin-bottom: 4px;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--paper);
  border: 1px solid var(--grid);
  border-radius: var(--card-radius);
  padding: 32px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--motion-fast), border-color var(--motion-fast);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.feature-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.feature-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* --- Section: 候选人交付档案 (Dossier) --- */
.section-dossier {
  background-color: var(--paper);
}

/* 与左文右述头部对齐 */
.section-dossier .dossier-tabs-nav {
  justify-content: flex-start;
}

.dossier-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.dossier-tab-btn {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--pill-radius);
  color: var(--ink-secondary);
  background: var(--paper-card);
  border: 1px solid var(--grid);
  transition: all var(--motion-fast);
}

.dossier-tab-btn.active, .dossier-tab-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.dossier-view-container {
  background: var(--paper-card);
  border: 1px solid var(--grid);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-pop);
  padding: 32px;
}

.dossier-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .dossier-layout {
    grid-template-columns: 310px 1fr;
  }
}

.dossier-sidebar {
  border-bottom: 1px solid var(--grid);
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 992px) {
  .dossier-sidebar {
    border-right: 1px solid var(--grid);
    padding-right: 28px;
    border-bottom: none;
    padding-bottom: 0;
  }
}

.candidate-profile-hero {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grid);
}

.candidate-profile-hero img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 12px auto;
  border: 2px solid var(--grid);
}

.candidate-hero-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.candidate-hero-title {
  font-size: 13px;
  color: var(--muted);
}

.candidate-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
}

.dossier-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dossier-content-card {
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: 14px;
  padding: 24px;
}

.dossier-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-snippet {
  background: #1C1C1A;
  color: #EFECE6;
  padding: 16px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}

.project-evidence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .project-evidence-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--grid);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.project-stats {
  font-size: 11.5px;
  color: var(--muted);
}

/* --- Section: 对比表 (Resume vs Proof) --- */
.section-comparison {
  background-color: var(--paper-card);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

/* 移动端：对比表转为逐行卡片 */
@media (max-width: 640px) {
  .comparison-table-wrapper {
    border: none;
    background: transparent;
    overflow: visible;
  }
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tr {
    background: #ffffff;
    border: 1px solid var(--grid);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
  }
  .comparison-table td {
    padding: 12px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--grid-soft);
  }
  .comparison-table tr td:last-child {
    border-bottom: none;
  }
  .comparison-table td.comparison-metric {
    background: var(--paper-subtle);
    font-size: 13px;
    border-bottom: 1px solid var(--grid);
  }
  .comparison-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .comparison-table td.col-debut {
    background: var(--porcelain-wash);
  }
}

.comparison-table-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--grid);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th, .comparison-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--grid);
}

.comparison-table th {
  background-color: var(--paper-subtle);
  font-weight: 700;
  color: var(--ink);
  font-size: 13.5px;
}

.comparison-table th.col-debut {
  background-color: var(--porcelain-wash);
  color: var(--porcelain);
  font-weight: 700;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-metric {
  font-weight: 600;
  color: var(--ink);
}

.status-check {
  color: var(--status-pass);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* --- Section: 问答探针 (QA Cards) --- */
.section-faq-interactive {
  background-color: var(--paper);
}

.qa-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .qa-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.qa-card {
  background: var(--paper-card);
  border: 1px solid var(--grid);
  border-radius: var(--card-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-question {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.qa-answer {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* --- Section: 契约与伦理原则 (Principles) --- */
.section-principles {
  background-color: var(--paper-card);
  border-top: 1px solid var(--grid);
  border-bottom: 1px solid var(--grid);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  background: var(--paper);
  border: 1px solid var(--grid);
  border-radius: var(--card-radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principle-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--grid);
}

.principle-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.principle-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* --- Section: 常见问题 (FAQs) --- */
.section-faqs {
  background-color: var(--paper);
}

.faq-categories-wrapper {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.faq-category-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink);
  border-bottom: 1.5px solid var(--grid);
  padding-bottom: 8px;
}

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

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

.faq-question-btn:hover {
  color: var(--porcelain);
}

.faq-chevron {
  transition: transform var(--motion-fast);
}

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

.faq-answer-content {
  display: none;
  padding-bottom: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.faq-accordion-item.open .faq-answer-content {
  display: block;
}

/* --- Section: 底部终章 CTA (Dark Ink Surface) --- */
.section-cta {
  background-color: var(--dark-bg);
  color: var(--dark-ink);
  text-align: center;
  padding: 96px 24px;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 52px;
  }
}

.cta-desc {
  font-size: 17px;
  color: var(--dark-muted);
  max-width: 580px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-cta-light {
  background: var(--paper);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--pill-radius);
  border: 1.5px solid var(--paper);
  transition: all var(--motion-fast);
}

.btn-cta-light:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-cta-outline {
  background: transparent;
  color: var(--dark-ink);
  border: 1px solid var(--dark-grid);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--pill-radius);
  transition: all var(--motion-fast);
}

.btn-cta-outline:hover {
  border-color: var(--dark-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* --- 页脚 (Footer) --- */
.site-footer {
  background-color: #141413;
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-grid);
  padding: 72px 24px 40px 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 320px 1fr;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-logo img {
  filter: invert(1);
}

.footer-mission {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--dark-muted);
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (min-width: 640px) {
  .footer-nav-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--dark-grid);
  font-size: 12px;
  color: var(--dark-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}
