:root {
  /* 浅色紫蓝强调体系（沿用已认可方向，不饱和、高级） */
  --accent: #5b6ee1;
  --accent-2: #4ecce0;
  --violet: #9f8df7;
  /* 文字专用强调色：比 --accent 更深，保证小字在白底达 WCAG AA（≈5.7:1）。
     渐变 / 按钮 / 圆点 / 边框等大块视觉仍用 --accent。 */
  --accent-text: #4453c8;
  --grad: linear-gradient(120deg, #5b6ee1 0%, #4ecce0 100%);
  --grad-soft: linear-gradient(135deg, rgba(91, 110, 225, 0.12), rgba(78, 204, 224, 0.08));

  --bg: #f7f8fb;
  --ink: #151a2e;
  --text: #4b5160;
  /* 加深 muted，使大量元信息（时间 / 学历 / 标签）在白底达 AA（≈4.8:1） */
  --muted: #6b7186;
  --divider: rgba(91, 110, 225, 0.14);
  --hair: linear-gradient(90deg, rgba(91, 110, 225, 0.32), rgba(91, 110, 225, 0));

  /* 面板：浅色独立表面，无玻璃 / 无光晕 / 无羽化 */
  --panel-w: clamp(390px, 32vw, 460px);
  --copilot-bg: #ffffff;
  --copilot-subtle: #f7f8fb;
  --copilot-border: rgba(91, 110, 225, 0.14);
  --copilot-text: #151a2e;
  --copilot-muted: #6b7186;

  --radius: 16px;
  --radius-sm: 12px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* 浅色基底（极轻紫蓝柔光，克制，非 Aurora 光晕） */
body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(160deg, #f4f5fa 0%, #f7f8fb 48%, #f1f3f9 100%);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ---------- 顶部导航（固定式，不受 Copilot 挤压） ---------- */
.shell { transition: margin-right .28s cubic-bezier(.22, .61, .36, 1); padding-top: 56px; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 56px;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 16px; white-space: nowrap; letter-spacing: .3px; }
.brand-role { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .18s; position: relative; }
.links a:hover { color: var(--accent-text); }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad); opacity: 0; transition: opacity .18s;
}
.links a:hover::after { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  text-decoration: none; color: #fff;
  font-size: 13px; font-weight: 600; padding: 0 15px; height: 40px; border-radius: var(--radius-sm);
  background: var(--grad);
  transition: transform .18s, box-shadow .18s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta svg { display: block; }

/* ============================================================
   作品集式主体：无卡片，靠留白 + 细线 + 字体层级分隔
   ============================================================ */
.page {
  max-width: 1000px; margin: 0 auto; padding: 28px 32px 80px;
}
.page > section + section { border-top: 1px solid var(--divider); }
.sec { padding: 46px 0; }
.sec-title {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-text); font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.sec-title::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); display: inline-block;
}
.sec-title.mt { margin-top: 30px; }
.sec-body { font-size: 15.5px; color: var(--text); max-width: 66ch; }
.about-intro { max-width: 70ch; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  max-width: 920px;
}
.about-item {
  min-width: 0;
  padding-right: 18px;
}
.about-k {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.about-v {
  margin-top: 7px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.62;
}
.sec-lead { font-size: 14px; color: var(--muted); margin: -6px 0 18px; max-width: 60ch; }
.contact-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13.5px; color: var(--muted); }
.contact-row a { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.contact-row a:hover { text-decoration: underline; }
.hero-contact {
  margin-top: 12px;
  gap: 6px 18px;
  color: var(--muted);
}
.hero-contact span,
.hero-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
}

/* ---------- 首屏 hero（无卡片，编辑式留白） ---------- */
.hero {
  padding: 44px 0 40px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  position: relative;
}
.h-visual {
  width: 132px;
  display: flex;
  justify-content: center;
}
.h-avatar {
  width: 106px; height: 106px; border-radius: 50%; object-fit: cover; flex: 0 0 106px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(91, 110, 225, 0.18), 0 0 0 6px rgba(91, 110, 225, 0.05), 0 8px 24px rgba(21, 26, 46, 0.10);
}
.h-main { min-width: 0; flex: 1; }
.h-name { font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1.12; letter-spacing: .4px; margin-top: 0; }
.h-role { color: var(--accent-text); font-size: 17px; font-weight: 600; margin-top: 6px; }
.h-slogan { color: var(--ink); margin-top: 14px; font-size: 16px; font-weight: 600; line-height: 1.62; max-width: 48ch; }
.h-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.h-meta:empty { display: none; }
.strengths { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.strengths li { font-size: 14px; color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.strengths li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); flex: 0 0 7px;
}
.h-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary, .btn-line {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 0 18px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); cursor: pointer; transition: transform .18s, border-color .18s, color .18s, background .18s;
}
.btn-primary { color: #fff; border: none; background: var(--grad); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-line { background: #fff; color: var(--ink); border: 1px solid rgba(91, 110, 225, 0.2); }
.btn-line:hover { border-color: var(--accent-text); color: var(--accent-text); transform: translateY(-1px); }

/* ---------- 工作经历时间线 ---------- */
.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2) 55%, rgba(91, 110, 225, 0.10)); }
.job { position: relative; padding-bottom: 22px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -22px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
.job .jt { color: var(--ink); font-size: 16px; font-weight: 700; }
.job .jr { color: var(--accent-text); font-size: 13.5px; margin-top: 2px; font-weight: 600; }
.job .jd { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.job p { font-size: 14.5px; color: var(--text); margin-top: 8px; max-width: 66ch; }

/* ---------- 代表项目（无卡片，细线分隔的文本块） ---------- */
#projects { display: flex; flex-direction: column; }
.project-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 26px 0 8px; border-bottom: 1px solid var(--divider);
}
.project-group-head:first-child { padding-top: 14px; }
.project-group-title { color: var(--ink); font-size: 15px; font-weight: 800; }
.project-group-desc { color: var(--muted); font-size: 12.5px; text-align: right; }
.proj { padding: 22px 0; }
.project-group-head + .proj { padding-top: 18px; }
/* 项目之间增加留白，降低正文密度，标题/标签/职责/价值先入眼 */
.proj { padding: 26px 0 6px; }
.proj + .proj { border-top: 1px solid var(--divider); padding-top: 30px; }
.proj-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; }
.proj-name { font-size: 18px; font-weight: 700; color: var(--ink); }
/* 领域标签：与标题组成更紧密的视觉组，先被看到，控制在 3 个以内 */
.proj-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 7px; }
.proj-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  background: rgba(91, 110, 225, 0.08);
  border: 1px solid rgba(91, 110, 225, 0.18);
}
/* 项目概述：标题下方一段自然说明，不加字段名，宽度略收窄 */
.proj-overview { margin-top: 12px; font-size: 14px; color: var(--text); line-height: 1.72; max-width: 60ch; }
/* 半结构化小节：仅保留“本人负责与产出”与“价值信号”两个字段名，更小更淡，避免像表单 */
.proj-sec { margin-top: 16px; }
.proj-label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .1em; margin-bottom: 5px; }
.proj-content { font-size: 14px; color: var(--text); line-height: 1.72; max-width: 60ch; }
.proj-value { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.proj-value li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text); line-height: 1.66; max-width: 60ch; }
.proj-value li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-text); }
/* 模块底部弱提示：不削弱成果感 */
.proj-footnote { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--divider); font-size: 11.5px; color: var(--muted); opacity: .85; line-height: 1.6; max-width: 64ch; }
.proj-overview strong,
.proj-content strong { color: var(--ink); font-weight: 700; }

/* ---------- 能力与方法（2x2 轻量分组，非卡片） ---------- */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  border-top: 1px solid var(--divider);
}
.comp-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--divider);
  /* grid 默认拉伸，保证同行底部细线对齐 */
}
.comp-title { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .2px; }
.comp-desc { margin-top: 6px; font-size: 14px; color: var(--text); line-height: 1.66; max-width: 36ch; }

/* ---------- 工具 / 教育经历（视觉权重低于能力与方法） ---------- */
.foot-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  margin-top: 28px;
}
.foot-title {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 8px;
}
.foot-body { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.edu-text { margin: 0; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 8px 0 0; }

/* ============================================================
   右侧 AI Copilot（浅色、克制，像简历自然延伸的能力模块）
   桌面：off-canvas 推入（默认收起，展开时整体左移）
   移动：底部抽屉
   ============================================================ */
.ai-panel {
  position: fixed; top: 56px; right: 0;
  height: calc(100dvh - 56px);
  width: var(--panel-w); z-index: 45;
  background: var(--copilot-bg);
  color: var(--copilot-text);
  border-left: none;
  box-shadow: none;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.ai-panel.open { transform: translateX(0); }
/* 左侧透明度渐变边界：让 Copilot 边缘自然融入页面背景 */
.ai-panel::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 32px; z-index: 2;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(247, 248, 251, 0.55) 50%, transparent 100%);
  pointer-events: none;
}

.ai-content { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ---- 头部 ---- */
.ai-head { padding: 14px 18px 12px 34px; border-bottom: 1px solid var(--copilot-border); }
.ai-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ai-mini {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  color: #fff; background: var(--grad);
}
.ai-id-text { min-width: 0; }
.ai-title { font-size: 15px; font-weight: 700; color: var(--copilot-text); }
.ai-sub { font-size: 12px; color: var(--copilot-muted); margin-top: 1px; }
/* 未接入演示版标识：仅 pending 状态显示，避免 HR 误判助手故障 */
.ai-demo { display: none; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; color: #8a6d1f; background: rgba(245, 179, 1, 0.14); vertical-align: 1px; letter-spacing: .3px; }
.ai-demo.show { display: inline-block; }
.ai-head-actions { display: flex; align-items: center; gap: 6px; }
.ai-status {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px;
  background: #34a853; box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.14);
}
.ai-status.pending { background: #f5b301; box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.16); }
.ai-status.thinking { background: var(--accent); box-shadow: 0 0 0 3px rgba(91, 110, 225, 0.16); }
.ai-icon {
  width: 40px; height: 40px; border: none; background: transparent; color: var(--copilot-muted);
  border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-appearance: none; appearance: none;
  transition: background .15s, color .15s;
}
.ai-icon:hover { background: rgba(91, 110, 225, 0.08); color: var(--accent-text); }
.ai-grab { display: none; }

/* ---- 对话区 ---- */
.chat {
  flex: 1; overflow-y: auto; padding: 20px 20px 20px 34px;
  display: flex; flex-direction: column; gap: 20px; min-height: 80px;
}

/* 空状态（首屏中部偏上） */
.empty-state { margin: auto 0; padding: 4px 2px; }
.empty-title { font-size: 20px; font-weight: 800; color: var(--copilot-text); letter-spacing: .2px; }
.empty-desc { font-size: 14px; color: var(--text); margin-top: 10px; line-height: 1.7; max-width: 42ch; }
.empty-privacy { font-size: 12px; color: var(--copilot-muted); margin-top: 10px; }
.rec-label { font-size: 12px; color: var(--copilot-muted); margin: 18px 0 10px; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rec-card {
  text-align: left; cursor: pointer; border: 1px solid var(--copilot-border);
  background: #fff; border-radius: 10px; padding: 12px 14px;
  font-size: 13px; line-height: 1.5; color: var(--copilot-text); font-family: var(--font);
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.rec-card:hover { border-color: rgba(91, 110, 225, 0.5); background: var(--copilot-subtle); transform: translateY(-1px); }

/* 消息：入场轻量淡入 */
.msg { animation: msg-in .26s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 用户问题（右对齐，浅紫蓝，无头像/无尾巴） */
.msg.me { display: flex; justify-content: flex-end; }
.msg.me .u-bubble {
  max-width: 80%; background: rgba(91, 110, 225, 0.08); color: var(--copilot-text);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
/* AI 回答（左对齐，meta + 正文直接排在聊天背景上，无封闭大泡泡） */
.msg.ai { display: block; }
.ai-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-mini2 {
  width: 22px; height: 22px; border-radius: 7px; flex: 0 0 22px;
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
  color: #fff; background: var(--grad);
}
.ai-name { font-size: 12.5px; font-weight: 600; color: var(--copilot-muted); }
.ai-body { font-size: 14px; line-height: 1.72; color: var(--copilot-text); max-width: 100%; }
.ai-body p { margin: 8px 0; }
.ai-body p:first-child { margin-top: 0; }
.ai-body p:last-child { margin-bottom: 0; }
.ai-body ul, .ai-body ol { margin: 8px 0; padding-left: 20px; }
.ai-body li { margin: 4px 0; }
.ai-body h1, .ai-body h2, .ai-body h3, .ai-body h4 { font-size: 15px; color: var(--copilot-text); margin: 10px 0 4px; }
.ai-body h1:first-child, .ai-body h2:first-child, .ai-body h3:first-child, .ai-body h4:first-child { margin-top: 0; }
.ai-body code { background: rgba(91, 110, 225, 0.10); padding: 1px 5px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.ai-body strong { font-weight: 700; color: var(--copilot-text); }
.ai-body.error { color: #b91c1c; }
/* 流式光标 */
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: var(--accent); animation: caret-blink 1.1s ease-in-out infinite; }
@keyframes caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
/* 思考中三点 */
.ai-typing { display: inline-flex; gap: 5px; padding: 2px 0; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .45; animation: blink 1.2s infinite both; }
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.msg-actions { display: flex; gap: 14px; margin-top: 10px; }
.msg-actions button { background: none; border: none; color: var(--copilot-muted); cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; text-underline-offset: 2px; transition: color .15s; font-family: var(--font); }
.msg-actions button:hover { color: var(--accent-text); }

/* 阶段式等待反馈（替代旧的三点跳动） */
.ai-loader { display: flex; align-items: center; gap: 9px; min-height: 22px; padding: 2px 0; }
.ai-loader-spin {
  width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%;
  border: 2px solid rgba(91, 110, 225, 0.22);
  border-top-color: var(--accent);
  animation: loader-spin .7s linear infinite;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
.ai-loader-text { font-size: 13.5px; color: var(--copilot-muted); letter-spacing: .2px; }

/* 资料来源（默认收起，只展示名称 + 简短序号） */
.ai-sources { margin-top: 12px; border: 1px solid var(--copilot-border); border-radius: 10px; overflow: hidden; background: var(--copilot-subtle); }
.ai-sources > summary {
  list-style: none; cursor: pointer; padding: 9px 12px; font-size: 12.5px; font-weight: 600;
  color: var(--accent-text); display: flex; align-items: center; gap: 7px; user-select: none;
}
.ai-sources > summary::-webkit-details-marker { display: none; }
.ai-sources > summary::before {
  content: ""; width: 6px; height: 6px; flex: 0 0 6px; margin: 0 1px;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg); transition: transform .18s;
}
.ai-sources[open] > summary::before { transform: rotate(-135deg); }
.ai-sources-list { list-style: none; margin: 0; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.ai-sources-list li { font-size: 12.5px; color: var(--copilot-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ai-sources-list .src-name { color: var(--copilot-text); font-weight: 500; }
.ai-sources-list .src-snippet { color: var(--copilot-muted); font-size: 11.5px; }

/* 追问建议（紧凑标签，最多两行） */
.ai-followups { margin-top: 12px; }
.ai-followups-label { font-size: 11.5px; color: var(--copilot-muted); margin-bottom: 8px; }
.ai-followups-row { display: flex; flex-wrap: wrap; gap: 8px; }
.followup {
  cursor: pointer; border: 1px solid var(--copilot-border); background: #fff;
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; line-height: 1.4; color: var(--copilot-text);
  -webkit-appearance: none; appearance: none; max-width: 100%; text-align: left; font-family: var(--font);
  transition: border-color .15s, background .15s, transform .15s, color .15s;
}
.followup:hover { border-color: rgba(91, 110, 225, 0.5); background: var(--copilot-subtle); transform: translateY(-1px); color: var(--accent-text); }

/* ---- Prompt Composer ---- */
.composer {
  flex: 0 0 auto; padding: 14px 18px 18px 34px;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0) 0%, rgba(247, 248, 251, 0.96) 26%, #f7f8fb 100%);
}
.prompt-box {
  display: flex; flex-direction: column; align-items: stretch;
  min-height: 102px; overflow: hidden; background: #fff;
  border: 1px solid rgba(91, 110, 225, 0.22); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(21, 26, 46, 0.04), 0 10px 28px rgba(21, 26, 46, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.prompt-box:focus-within {
  border-color: rgba(91, 110, 225, 0.7);
  box-shadow: 0 0 0 3px rgba(91, 110, 225, 0.10), 0 14px 34px rgba(21, 26, 46, 0.10);
}
.prompt-box textarea {
  display: block; width: 100%; height: auto; min-height: 56px; max-height: 160px;
  padding: 14px 16px 6px; border: 0; outline: 0; resize: none; overflow-y: auto;
  background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.6;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.prompt-box textarea::placeholder { color: #9aa0ad; }
.prompt-toolbar {
  flex: 0 0 auto; min-height: 46px; padding: 6px 8px 8px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.prompt-context { display: flex; align-items: center; gap: 7px; color: var(--copilot-muted); font-size: 12px; }
.context-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #34a853; box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.12); }
.prompt-actions { display: flex; align-items: center; gap: 10px; }
.key-hint { color: var(--copilot-muted); font-size: 11px; }
.send {
  width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--accent); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease;
}
.send:hover:not(:disabled) { transform: translateY(-1px); }
.send:disabled { opacity: 1; color: rgba(255, 255, 255, 0.85); background: rgba(138, 144, 162, 0.28); cursor: default; transform: none; }
.composer-footer {
  min-height: 24px; padding: 7px 4px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--copilot-muted); font-size: 11px;
}
.composer-footer button { border: none; padding: 0; color: var(--copilot-muted); background: transparent; cursor: pointer; font-family: var(--font); font-size: 11px; -webkit-appearance: none; appearance: none; }
.composer-footer button:hover { color: var(--accent-text); }

/* ---------- 问 AI 悬浮按钮（桌面 / 移动共用） ---------- */
.launcher {
  display: flex; position: fixed; right: 20px; bottom: 24px; z-index: 60;
  height: 50px; padding: 0 18px 0 14px; border-radius: 999px; border: none; cursor: pointer;
  color: #fff; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  background: var(--grad);
  -webkit-appearance: none; appearance: none;
  transition: transform .18s;
}
.launcher:hover { transform: translateY(-1px); }
.launcher span { white-space: nowrap; }
body.copilot-open .launcher, body.drawer-open .launcher { display: none !important; }

/* ---------- 移动端遮罩（仅移动抽屉背景，可点击关闭） ---------- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(21, 26, 46, 0.32);
  opacity: 0; transition: opacity .2s ease;
}
.drawer-mask.show { opacity: 1; }

/* ============================================================
   桌面端：off-canvas 推入（默认收起，展开时整体左移）
   ============================================================ */
@media (min-width: 901px) {
  body.copilot-open .shell { margin-right: var(--panel-w); }
  .ai-panel { border-radius: 0; }
  .ai-grab { display: none; }
  .ai-close { display: flex; }
  .launcher { display: flex; }
}

/* ============================================================
   移动端：单栏 + 底部抽屉
   ============================================================ */
@media (max-width: 900px) {
  .nav-inner { padding: 0 16px; }
  .links { display: none; }
  .brand-role { font-size: 12px; }
  .nav-cta { padding: 0 12px; height: 38px; font-size: 12px; }
  .nav-cta svg { width: 15px; height: 15px; }

  .page { padding: 18px 16px 56px; }
  .hero {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0 20px;
    align-items: start;
  }
  .h-visual { width: 76px; padding-top: 36px; }
  .h-avatar { width: 72px; height: 72px; flex-basis: 72px; }
  .h-name { font-size: 30px; }
  .h-role { font-size: 15px; }
  .h-slogan { font-size: 14.5px; line-height: 1.58; margin-top: 10px; }
  .hero-contact { margin-top: 10px; gap: 4px 12px; font-size: 12.5px; }
  .strengths { gap: 7px 13px; margin-top: 12px; }
  .strengths li { font-size: 13px; }
  .h-actions { margin-top: 16px; }
  .sec { padding: 34px 0; }
  .sec-title { font-size: 12.5px; }
  .about-grid { grid-template-columns: 1fr; gap: 0; margin-top: 18px; padding-top: 4px; }
  .about-item { padding: 14px 0; border-bottom: 1px solid var(--divider); }
  .about-item:last-child { border-bottom: none; }
  .project-group-head { display: block; padding-top: 24px; }
  .project-group-desc { margin-top: 4px; text-align: left; line-height: 1.5; }
  .proj-row { grid-template-columns: 64px 1fr; }
  /* 移动端：收紧项目小节与 bullet 间距，降低滚动长度 */
  .proj { padding: 22px 0 4px; }
  .proj + .proj { padding-top: 24px; }
  .proj-sec { margin-top: 13px; }
  .proj-value { gap: 6px; }
  .proj-value li { line-height: 1.6; }

  /* 能力与方法：移动端单列，底部元信息上下排列 */
  .comp-grid { grid-template-columns: 1fr; column-gap: 0; }
  .comp-item { padding: 16px 0; }
  .foot-meta { grid-template-columns: 1fr; column-gap: 0; row-gap: 18px; margin-top: 24px; }

  /* 右侧面板变为底部抽屉 */
  .ai-panel {
    left: 0; right: 0; bottom: 0; top: auto; height: 92dvh; width: 100%; z-index: 55;
    margin: 0; border-radius: 16px 16px 0 0; border-left: none; border-top: none;
    background: var(--copilot-bg);
    transform: translateY(100%); opacity: 0; pointer-events: none;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
    box-shadow: 0 -18px 50px rgba(21, 26, 46, 0.18);
  }
  .ai-panel::before { display: none; }
  .ai-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .ai-grab { display: block; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 42px; height: 4px; border-radius: 3px; background: rgba(91, 110, 225, 0.3); cursor: grab; }
  .ai-head { padding: 16px 16px 12px 20px; }
  .chat { padding: 16px; }
  .composer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .prompt-box { border-radius: 14px; }
  .key-hint { display: none; }
  .send { width: 44px; height: 44px; flex: 0 0 44px; }
  .composer-footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .launcher { display: flex; }
}

/* 焦点可见性：Prompt Composer 的焦点由 .prompt-box:focus-within 外框承担，textarea 不再单独 outline，避免内部出现蓝线 */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prompt-box textarea:focus-visible { outline: none; }

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
