/* ============================================================
   张艺腾 · 个人主页
   设计语言：与简历一致的「全黑白灰」。层级靠字族、字号、字重与留白建立，
   不依赖任何色相；唯一的「装饰」是发丝线与小节编号。
   四个机构标志统一处理成单色墨迹，因此能落在白底与浅灰底上都不出白框。
   ============================================================ */

@font-face {
  font-family: "Display Serif SC";
  /* 带版本号：字体子集内容变了，不带查询串会被 CDN 边缘缓存住 */
  src: url("fonts/display-subset.woff2?v=20260918c") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --paper-2: #f6f5f3;
  --ink: #121212;
  --ink-2: #3c3c3c;
  --ink-3: #6e6e6e;
  --ink-4: #9c9c9c;
  --rule: #e4e2df;
  --rule-2: #111111;

  --serif: "Display Serif SC", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1080px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* 打开对话面板时的滚动条宽度补偿，由 JS 在打开前写入实际像素值。
     默认 0：浏览器用的是浮层滚动条（宽度 0）时，本来就没有位移需要补。 */
  --sbw: 0px;
}

* { box-sizing: border-box; }

/* 作者样式里的 display 会盖掉 UA 对 [hidden] 的 display:none，
   对话面板与放大层都用了 display:flex / grid，必须显式兜底。 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
/* 页头是固定定位（64px），点导航跳转时锚点会被压在页头下面看不到标题。
   用 scroll-padding-top 让所有锚点跳转自动留出这段高度。 */
html { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

::selection { background: #111; color: #fff; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 打开对话面板时锁住背景滚动。
   注意这里必须补偿滚动条宽度：body 的 overflow 会传播到视口，overflow:hidden 让
   滚动条消失、布局宽度凭空多出十几像素，居中内容整体向右跳一下，关掉又跳回来
   （2026-09-18 用户反馈的「弹出聊天框整页向右抖动」）。
   做法是打开前用 JS 量出滚动条宽度写进 --sbw，再在这里补回去：
   body 补一份、固定页头另补一份（fixed 元素的定位不受 body 影响）。
   两处都补上之后，居中内容与打开前逐像素一致，不再有任何位移。 */
body.chat-open, body.lb-open { overflow: hidden; padding-right: var(--sbw, 0px); }
body.chat-open .site-head, body.lb-open .site-head { padding-right: var(--sbw, 0px); }
/* 右锚定的悬浮件在面板打开时一并收起：面板与遮罩已经盖住它们，
   留着还要单独补滚动条宽度，不如直接让位给对话。 */
body.chat-open .to-top { opacity: 0; pointer-events: none; }

/* 切语言 = 整页重渲染。硬切太跳，给正文与导航一个很短的淡出-淡入，
   让「换语言」这件事有因果感（只淡这两块：页头与悬浮件留在原地不动，避免 fixed 元素跳位）。 */
#top, #nav { transition: opacity .16s var(--ease); }
.swapping #top, .swapping #nav { opacity: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* 键盘可达性：只在键盘聚焦时给轮廓，鼠标点击不出轮廓 */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ---------- 顶部进度条 ----------
   用 scaleX 而不是改 width：宽度变化每帧都要重排（layout），
   transform 只走合成层，滚动时不再掉帧。 */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  background: var(--rule-2); z-index: 60;
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 页头 ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-head.solid {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--rule);
}
.head-inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 600; flex: 0 0 auto; }
.brand-cn { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .06em; color: var(--ink); }
.brand-en { font-size: .68rem; letter-spacing: .22em; color: var(--ink-4); text-transform: uppercase; }
@media (max-width: 520px) { .brand-en { display: none; } }

.nav { display: flex; gap: 17px; margin-left: auto; position: relative; }
.nav a {
  position: relative; font-size: .845rem; color: var(--ink-3);
  padding: 4px 0; white-space: nowrap; transition: color .2s var(--ease);
}
/* hover 的短下划线（不动位置，只做反馈） */
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink-4); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
/* 当前所在小节的指示线：一条会「滑」过去的墨线（宽度固定 1px，靠 scaleX 拉伸，
   位移与缩放都走 transform，不触发重排）。比每项各自闪一条线更像一个整体。 */
.nav-ink {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 1px;
  background: var(--ink); transform-origin: 0 50%;
  transform: translateX(0) scaleX(0); opacity: 0;
  transition: transform .42s var(--ease), opacity .26s var(--ease);
  pointer-events: none;
}
.nav a.active { color: var(--ink); }
@media (max-width: 1000px) { .nav { display: none; } }

.lang {
  flex: 0 0 auto; margin-left: auto;
  border: 1px solid var(--rule); background: transparent; border-radius: 999px;
  padding: 6px 13px; font-size: .76rem; letter-spacing: .04em; color: var(--ink-3);
  transition: border-color .22s var(--ease), color .22s var(--ease);
}
.lang:hover { border-color: var(--ink); color: var(--ink); }
@media (min-width: 1001px) { .lang { margin-left: 4px; } }

.btn-chat {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 8px 16px; font-size: .82rem; letter-spacing: .02em;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn-chat .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.btn-chat:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
@media (max-width: 460px) { .btn-chat { padding: 8px 12px; font-size: .78rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 84vh; display: flex; align-items: center;
  padding: 140px 0 96px;
}
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4); margin: 0 0 22px;
}
.hero-name { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px; }
.hero-name .cn {
  font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(2.9rem, 8vw, 5.4rem); letter-spacing: .1em; line-height: 1.05;
}
.hero-name .en {
  font-family: var(--mono); font-size: clamp(.8rem, 1.7vw, 1.05rem);
  letter-spacing: .3em; color: var(--ink-4); text-transform: uppercase;
}
/* ---------- 首屏关键词条 ----------
   四组能力关键词，用竖发丝线隔开，像一条规格条。
   动效两层：进场逐个错峰浮现；之后进入一轮缓慢的强调循环——
   同一时刻只有一项是深墨，其余退到次要灰，周期 = 项数 × 3.4s（--n × 3.4s，由 JS 给）。 */
.hero-keys {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.key {
  position: relative; padding: 20px 22px 22px 0;
  border-left: 1px solid var(--rule);
  animation: keyIn .85s var(--ease) both;
  animation-delay: calc(.2s + var(--i) * .12s);
}
.key:first-child { border-left: 0; padding-left: 0; }
.key:not(:first-child) { padding-left: 22px; }
@keyframes keyIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.key b {
  display: block; font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.02rem, 1.9vw, 1.32rem); letter-spacing: .05em; line-height: 1.42;
  animation: keyPulse calc(var(--n, 4) * 3.4s) var(--ease) infinite;
  animation-delay: calc(var(--i) * -3.4s);
  transition: color .3s var(--ease);
}
@keyframes keyPulse {
  0%, 6% { color: var(--ink); }
  15%, 100% { color: var(--ink-3); }
}
.key:hover b { color: var(--ink); animation-play-state: paused; }
/* 英文关键词会长到两行（People & Organisation），给它一个两行的高度，
   否则下面「支撑事实」和「注脚」的起始位置会参差不齐。 */
html[lang="en"] .key b { min-height: 2.84em; }
.key .ks {
  display: block; margin-top: 9px; font-size: .84rem; line-height: 1.72; color: var(--ink-2);
}
.key .kn {
  display: block; margin-top: 7px; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .02em; color: var(--ink-4); line-height: 1.6;
}
@media (max-width: 900px) {
  .hero-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .key { padding: 16px 18px 18px 0; }
  .key:nth-child(odd) { border-left: 0; padding-left: 0; }
  .key:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .hero-keys { grid-template-columns: 1fr; }
  .key { border-left: 0; padding-left: 0; }
  .key + .key { border-top: 1px solid var(--rule); }
}
.hero-meta {
  list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 6px;
  border-top: 1px solid var(--rule); padding-top: 22px; max-width: 46em;
}
.hero-meta li { font-size: .92rem; color: var(--ink-3); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn-primary {
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 2px; padding: 12px 26px; font-size: .9rem; letter-spacing: .04em;
  transition: transform .22s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.btn-ghost {
  border: 1px solid var(--rule); border-radius: 2px; padding: 12px 26px; font-size: .9rem;
  color: var(--ink-2); transition: border-color .22s var(--ease), color .22s var(--ease);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.scroll-cue { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); }
.scroll-cue span {
  display: block; width: 1px; height: 52px; background: linear-gradient(var(--rule-2), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(.2); opacity: 0; } 45% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ============================================================
   「和艺腾聊聊」板块 —— 深色通栏，全站对比最强的一块
   ============================================================ */
.chatband { background: #0f0f0f; color: #fff; padding: 78px 0 82px; }
.chatband-inner { display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center; }
@media (max-width: 940px) { .chatband-inner { grid-template-columns: 1fr; gap: 40px; } }

.cb-eyebrow {
  margin: 0 0 16px; display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: #9d9d9d;
}
.cb-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 2.4s var(--ease) infinite; }
.chatband h2 {
  margin: 0 0 20px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.85rem); letter-spacing: .07em; color: #fff; line-height: 1.3;
}
.cb-lead { margin: 0 0 24px; max-width: 33em; font-size: 1rem; line-height: 1.92; color: #c4c4c4; }
/* 推荐问题：点一下直接开面板并提问。比列「能问什么/不能问什么」更有用，也不端着。 */
.cb-asks { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 30px; }
.cb-ask {
  border: 1px solid #363636; background: transparent; color: #c6c6c6;
  border-radius: 999px; padding: 8px 15px; font-size: .83rem; text-align: left;
  transition: border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.cb-ask:hover { border-color: #fff; color: #fff; transform: translateY(-1px); }
.btn-onDark { background: #fff; color: #111; border-color: #fff; }
.btn-onDark:hover { box-shadow: 0 12px 34px rgba(255,255,255,.18); }

.cb-demo { border: 1px solid #2b2b2b; border-radius: 12px; background: #161616; overflow: hidden; padding-bottom: 16px; }
.cb-demo-bar { display: flex; gap: 6px; padding: 13px 15px; border-bottom: 1px solid #242424; }
.cb-demo-bar span { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.cb-bubble { max-width: 88%; margin: 14px 15px 0; padding: 11px 14px; border-radius: 12px; font-size: .85rem; line-height: 1.78; }
.cb-bubble.me { margin-left: auto; background: #272727; color: #e8e8e8; border-bottom-right-radius: 4px; }
.cb-bubble.bot { background: #f5f5f5; color: #1a1a1a; border-bottom-left-radius: 4px; display: flex; gap: 10px; align-items: flex-start; }
.cb-avatar {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; overflow: hidden; display: grid; place-items: center;
}
.cb-bubble.bot p { margin: 0; }
.cb-typing { display: flex; gap: 5px; padding: 15px 15px 0; }
.cb-typing i { width: 5px; height: 5px; border-radius: 50%; background: #6e6e6e; animation: bounce 1.3s infinite; }
.cb-typing i:nth-child(2) { animation-delay: .16s } .cb-typing i:nth-child(3) { animation-delay: .32s }

/* ---------- 通用小节 ---------- */
.sec { padding: 92px 0; border-top: 1px solid var(--rule); }
.sec-alt { background: var(--paper-2); }
@media (max-width: 640px) { .sec { padding: 64px 0; } }

.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 42px; }
.sec-no { font-family: var(--mono); font-size: .78rem; color: var(--ink-4); letter-spacing: .1em; }
.sec-head h2 {
  margin: 0; font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem); letter-spacing: .08em;
}
.sec-lead { margin: -20px 0 36px; max-width: 44em; font-size: 1.02rem; line-height: 1.9; color: var(--ink-2); }
.sub-head { margin: 66px 0 26px; border-top: 1px solid var(--rule); padding-top: 26px; }
.sub-head h3 { margin: 0; font-family: var(--serif); font-size: 1.2rem; letter-spacing: .06em; color: var(--ink); font-weight: 700; }

/* ---------- 关于 ---------- */
/* 左证件照、右正文。照片是白底证件照，尺寸写死 4:5，
   与 <img> 上的 width/height 一起保证加载时不发生位移。 */
.about-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid var(--rule); background: #fff; cursor: zoom-in;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.about-photo:hover img { box-shadow: 0 16px 40px rgba(0,0,0,.11); transform: translateY(-2px); }
.about-photo figcaption {
  margin-top: 10px; font-family: var(--mono); font-size: .72rem;
  color: var(--ink-4); letter-spacing: .04em;
}
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-photo { max-width: 232px; }
}

.prose { max-width: 46em; }
.prose p { margin: 0 0 1.15em; text-align: justify; }
.prose .lede { font-size: 1.08rem; color: var(--ink); }

/* ---------- AI 数字人形象 ---------- */
/* 单色线稿头像。默认裁成圆形（对话头像、推荐气泡），
   在深色底上自动加一圈白边，免得线稿的深色头发糊进背景。 */
.human { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: 50%; display: block; }

/* ---------- 数字 ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--paper); padding: 30px 24px 28px; }
.sec-alt .stat { background: var(--paper-2); }
.stat b {
  display: block; font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 12px; font-size: .84rem; color: var(--ink-3); line-height: 1.72; }
.stat span em { display: block; font-style: normal; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 3px; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item {
  position: relative;
  display: grid; grid-template-columns: 178px 1fr; gap: 0 34px;
  padding: 32px 0; border-top: 1px solid var(--rule);
}
.tl-item:first-child { border-top: 0; padding-top: 0; }
/* 悬停时左缘长出一条墨色竖线：只动 transform，不重排。
   比给整块加背景更干净，也让「这一条」的边界一下清晰起来。 */
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 0; bottom: 0; width: 2px;
  background: var(--ink); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .4s var(--ease);
}
.tl-item:hover::before { transform: scaleY(1); }
@media (max-width: 780px) { .tl-item { grid-template-columns: 1fr; gap: 12px; } .tl-item::before { left: -12px; } }

.tl-when {
  position: relative; padding-left: 22px; font-family: var(--mono);
  font-size: .78rem; letter-spacing: .04em; color: var(--ink-3); padding-top: 8px;
}
.tl-marker {
  position: absolute; left: 0; top: 15px; width: 7px; height: 7px;
  border: 1px solid var(--ink-3); border-radius: 50%; background: var(--paper);
}
.sec-alt .tl-marker { background: var(--paper-2); }
.tl-item:hover .tl-marker { background: var(--ink); border-color: var(--ink); transition: background .25s var(--ease), border-color .25s var(--ease); }

.tl-body h3 {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 1.16rem; color: var(--ink); font-weight: 600; letter-spacing: .01em; line-height: 1.5;
}
.org-logo { flex: 0 0 auto; height: 22px; width: auto; opacity: .92; }
/* 各家标的形态差别很大：圆徽类太矮就看不清里面的图案，
   横版锁定类（圆徽 + 中英文名）太矮则文字糊成一团。按标的实际形态分别给高度。 */
.org-logo[src*="glasgow"] { height: 30px; }
.org-logo[src*="nwafu"] { height: 26px; }
.org-logo[src*="xa83"] { height: 30px; }
.org-logo[src*="sxjkjt"] { height: 26px; }
.org-logo[src*="youdao"] { height: 23px; }
.tl-role { margin: 6px 0 0; font-size: .9rem; color: var(--ink-3); }
.tl-tags { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.tl-tags span {
  border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px;
  font-size: .72rem; color: var(--ink-3); letter-spacing: .02em;
}
.tl-bg {
  margin: 14px 0 0; padding-left: 13px; border-left: 2px solid var(--rule);
  font-size: .88rem; color: var(--ink-3); line-height: 1.8;
}

.tl-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 6px; }
.tl-photos figure { margin: 0; }
.tl-photos img {
  width: 100%; height: 178px; object-fit: cover; cursor: zoom-in;
  border: 1px solid var(--rule); border-radius: 2px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tl-photos figure:hover img { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.tl-photos figcaption { margin-top: 8px; font-size: .75rem; color: var(--ink-4); line-height: 1.62; }
@media (max-width: 680px) { .tl-photos { grid-template-columns: 1fr; } .tl-photos img { height: 196px; } }
/* 项目卡片里的现场照片：沿用时间线的图组，但按 3:2 统一比例，
   固定 178px 高会把合影裁掉上下两头。 */
.proj .tl-photos img { height: auto; aspect-ratio: 3 / 2; }

.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li {
  position: relative; padding-left: 20px; margin-top: 9px;
  font-size: .94rem; text-align: justify;
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: 10px; height: 1px; background: var(--ink-4);
}
.bullets b { color: var(--ink); font-weight: 600; margin-right: 2px; }

/* ---------- 在校创业 ---------- */
.venture { border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); padding: 32px 34px; }
.vt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.vt-head h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.24rem; letter-spacing: .03em; color: var(--ink); }
.vt-when { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); padding-top: 8px; }
.vt-bg { margin: 16px 0 24px; padding-left: 14px; border-left: 2px solid var(--rule); font-size: .9rem; line-height: 1.82; color: var(--ink-3); }
.vt-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin: 0 0 22px;
}
.vt-facts > div { background: var(--paper); padding: 14px 16px; }
.vt-facts dt { font-family: var(--mono); font-size: .72rem; color: var(--ink-4); letter-spacing: .02em; }
.vt-facts dd { margin: 6px 0 0; font-size: .95rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .venture { padding: 24px 18px; }
  .vt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 技能 ---------- */
.skills { margin: 0; display: grid; gap: 0; }
.skill { display: grid; grid-template-columns: 150px 1fr; gap: 6px 28px; padding: 20px 0; border-top: 1px solid var(--rule); }
.skill:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 640px) { .skill { grid-template-columns: 1fr; } }
.skill dt { color: var(--ink); font-weight: 600; font-size: .94rem; }
.skill dd { margin: 0; font-size: .94rem; text-align: justify; }

/* ---------- 项目 ---------- */
.proj { padding: 36px 0; border-top: 1px solid var(--rule); }
.proj:first-of-type { border-top: 0; padding-top: 0; }
.proj-head { margin-bottom: 14px; }
.proj-head h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.proj-meta { margin: 7px 0 0; font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--ink-4); }

.proj-shot { position: relative; margin: 18px 0 20px; }
.proj-shot img {
  /* height:auto 是必需的：标签上写了 width/height 属性用于防抖动，
     CSS 若只给 width 而不给 height，height 属性会被当成实际像素高度，把图纵向拉变形。 */
  width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 3px; cursor: zoom-in;
  box-shadow: 0 14px 38px rgba(0,0,0,.07);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.proj-shot:hover img { box-shadow: 0 20px 52px rgba(0,0,0,.13); transform: translateY(-2px); }
.proj-shot .zoom {
  position: absolute; right: 11px; top: 11px; width: 30px; height: 30px; border-radius: 7px;
  background: rgba(17,17,17,.74); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.proj-shot:hover .zoom { opacity: 1; }
.proj-shot figcaption { margin-top: 9px; font-family: var(--mono); font-size: .72rem; color: var(--ink-4); }
.proj-links { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 18px; }
.proj-links a {
  position: relative; font-size: .88rem; color: var(--ink); font-family: var(--mono);
  padding-bottom: 2px; border-bottom: 1px solid var(--rule);
  transition: border-color .25s var(--ease);
}
.proj-links a:hover { border-color: var(--ink); }
.proj-links .ext { margin-left: 5px; font-size: .8em; color: var(--ink-4); }

/* ---------- 荣誉 ---------- */
.honors { list-style: none; margin: 0; padding: 0; }
.honors li {
  display: grid; grid-template-columns: 3.6em 1fr auto; gap: 18px; align-items: baseline;
  padding: 15px 0; border-top: 1px solid var(--rule); font-size: .94rem;
}
.honors li:first-child { border-top: 0; padding-top: 0; }
.hon-y { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-4); }
.hon-t { text-align: justify; }
.hon-d { font-family: var(--mono); font-size: .74rem; color: var(--ink-4); padding-top: .3em; white-space: nowrap; }
@media (max-width: 640px) {
  .honors li { grid-template-columns: auto 1fr; gap: 6px 14px; }
  .hon-d { grid-column: 2; }
}

/* ---------- 联系 ---------- */
.contact { max-width: 40em; }
.contact-lead { font-size: 1.02rem; color: var(--ink); margin: 0 0 26px; line-height: 1.9; }
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; }
.contact-list li { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: .95rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list .ck { flex: 0 0 3.8em; color: var(--ink-4); font-family: var(--mono); font-size: .76rem; padding-top: .35em; }
.contact-list a { position: relative; color: var(--ink); }
.contact-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.contact-list a:hover::after { transform: scaleX(1); }
.contact-list .plain { color: var(--ink-2); }

/* ---------- 材料与证明 ---------- */
.docgroup { margin-bottom: 46px; }
.docgroup:last-of-type { margin-bottom: 30px; }
.docgroup > h3 {
  margin: 0 0 20px; padding-bottom: 11px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.06rem; font-weight: 700;
  letter-spacing: .06em; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.docgroup > h3 span {
  font-family: var(--mono); font-size: .71rem; font-weight: 400; color: var(--ink-4);
  border: 1px solid var(--rule); border-radius: 999px; padding: 1px 7px;
}
/* 三列：19 份材料分四组（6 / 3 / 5 / 5），三列时每组不会留下孤零零一张，
   卡片也够大能把证书看清——这是这份材料真正要起到的作用。 */
.docgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.doc { margin: 0; }
.doc-thumb {
  position: relative; display: block; overflow: hidden; background: #fff;
  border: 1px solid var(--rule); border-radius: 2px; aspect-ratio: 1 / 1.28;
  transition: box-shadow .32s var(--ease), transform .32s var(--ease);
}
/* 用 contain：证书有横有竖，全部完整可见，不裁掉内容 */
.doc-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.doc:hover .doc-thumb { box-shadow: 0 16px 36px rgba(0,0,0,.13); transform: translateY(-3px); }
.doc:hover .doc-thumb img { transform: scale(1.025); }
.doc-zoom {
  position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 6px;
  background: rgba(17,17,17,.76); color: #fff; display: grid; place-items: center;
  opacity: 0; transition: opacity .3s var(--ease);
}
.doc:hover .doc-zoom { opacity: 1; }
.doc figcaption { margin-top: 11px; }
.doc figcaption b { display: block; font-size: .865rem; font-weight: 600; color: var(--ink); line-height: 1.62; }
.doc figcaption > span { display: block; margin-top: 4px; font-size: .755rem; color: var(--ink-3); line-height: 1.6; }
.doc-open {
  display: inline-block; margin-top: 9px; padding-bottom: 1px;
  font-family: var(--mono); font-size: .735rem; color: var(--ink);
  border-bottom: 1px solid var(--rule); transition: border-color .25s var(--ease);
}
.doc-open:hover { border-color: var(--ink); }
.doc-open .ext { margin-left: 4px; color: var(--ink-4); }
.docs-note {
  margin: 0; padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: .79rem; line-height: 1.85; color: var(--ink-4);
}
@media (max-width: 760px) { .docgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }

/* ---------- 页脚 ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 30px 0 40px; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot p { margin: 0; font-size: .82rem; color: var(--ink-4); max-width: 42em; }

/* ---------- 图片放大 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 70; background: rgba(10,10,10,.9);
  display: grid; place-items: center; padding: 34px; animation: fade .28s var(--ease);
}
/* 打开时图片轻微推近，关掉时也走一遍退场——直接挂 hidden 会「啪」地消失，
   和打开的淡入不对称（与对话面板同一处理）。 */
.lightbox.closing { animation: fadeOut .2s var(--ease) forwards; }
@keyframes lbIn { from { opacity: 0; transform: scale(.965) } to { opacity: 1; transform: none } }
.lightbox img {
  max-width: min(1200px, 96vw); max-height: 88vh; width: auto; border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: lbIn .34s var(--ease);
}
.lb-close {
  position: absolute; right: 20px; top: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  font-size: 1.5rem; line-height: 1;
}
.lb-close:hover { border-color: #fff; }

/* ---------- 进场动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .78s var(--ease), transform .78s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.stats .stat, .skills .skill, .honors li, .proj, .tl-item, .doc {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.stats.in .stat, .skills.in .skill, .honors.in li, .proj.in, .tl-item.in, .docgroup.in .doc {
  opacity: 1; transform: none;
}
.in .stat:nth-child(1) { transition-delay: .02s } .in .stat:nth-child(2) { transition-delay: .08s }
.in .stat:nth-child(3) { transition-delay: .14s } .in .stat:nth-child(4) { transition-delay: .20s }
.in .stat:nth-child(5) { transition-delay: .26s } .in .stat:nth-child(6) { transition-delay: .32s }
.in .skill:nth-child(1) { transition-delay: .02s } .in .skill:nth-child(2) { transition-delay: .08s }
.in .skill:nth-child(3) { transition-delay: .14s } .in .skill:nth-child(4) { transition-delay: .20s }
.in .skill:nth-child(5) { transition-delay: .26s }
.in li:nth-child(1) { transition-delay: .02s } .in li:nth-child(2) { transition-delay: .07s }
.in li:nth-child(3) { transition-delay: .12s } .in li:nth-child(4) { transition-delay: .17s }
.in li:nth-child(5) { transition-delay: .22s } .in li:nth-child(6) { transition-delay: .27s }
/* 材料卡片逐张浮现：整组一起淡入太钝，19 张卡片错峰出现才有「一叠材料摊开」的感觉 */
.docgroup.in .doc:nth-child(1) { transition-delay: .03s }
.docgroup.in .doc:nth-child(2) { transition-delay: .09s }
.docgroup.in .doc:nth-child(3) { transition-delay: .15s }
.docgroup.in .doc:nth-child(4) { transition-delay: .21s }
.docgroup.in .doc:nth-child(5) { transition-delay: .27s }
.docgroup.in .doc:nth-child(6) { transition-delay: .33s }

/* ---------- 让常驻动画在该停的时候停 ----------
   首屏那轮「关键词轮转」是无限动画，滚出视口后每帧还在重绘 4 段文字；
   悬浮入口的呼吸光晕同理，面板打开时它已经隐藏、不必再算。 */
.hero-keys.paused .key b { animation-play-state: paused; }
.chat-fab.hide .fab-face::after { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stats .stat, .skills .skill, .honors li, .proj, .tl-item, .doc { opacity: 1 !important; transform: none !important; }
  .key { animation: none !important; }
  .key b { animation: none !important; color: var(--ink) !important; }
  .scroll-cue span, .btn-chat .dot, .cb-dot, .cb-typing i, .fab-face::after { animation: none; }
  .to-top { transition: none; }
  .nav-ink { transition: none; }
  /* 面板与问题条也不要动效，但保留可见性（退场动画由 JS 归零时长） */
  .chat-panel, .chat-scrim, .topic-qs .chip, .chat-latest, .lightbox, .lightbox img { animation: none !important; }
}

/* ============================================================
   对话面板
   ============================================================ */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 45;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 8px 20px 8px 8px; font-size: .86rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab.hide { opacity: 0; pointer-events: none; transform: translateY(10px); }
/* 悬浮入口用 AI 数字人的头像：一眼就知道点开的是谁在跟你说话。
   极轻的一圈呼吸光晕代替闪烁的小圆点——动的是外圈，不重绘头像本身。 */
.fab-face {
  position: relative; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; overflow: hidden;
}
.fab-face::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  animation: breathe 3.2s var(--ease) infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  55% { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}
.chat-fab .human { object-position: 50% 26%; }
@media (max-width: 520px) {
  .chat-fab { right: 16px; bottom: 16px; padding: 8px; }
  .fab-text { display: none; }
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 78px; z-index: 44;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule); background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); color: var(--ink-2);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), border-color .22s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 520px) { .to-top { right: 16px; bottom: 64px; } }

.chat-scrim { position: fixed; inset: 0; background: rgba(12,12,12,.34); z-index: 55; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 56;
  width: min(430px, calc(100vw - 32px)); height: min(640px, calc(100vh - 60px));
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.26);
  animation: panel .38s var(--ease);
}
@keyframes panel { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
/* 退场也走一遍动画：原来关闭是直接挂 hidden，面板「啪」地消失，
   和打开时的不对称本身就成了另一次视觉跳变。 */
.chat-panel.is-closing { animation: panelOut .2s var(--ease) forwards; }
.chat-scrim.is-closing { animation: fadeOut .2s var(--ease) forwards; }
@keyframes panelOut { to { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes fadeOut { to { opacity: 0; } }
@media (max-width: 520px) { .chat-panel { right: 0; bottom: 0; width: 100vw; height: 88vh; border-radius: 14px 14px 0 0; } }

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.chat-id { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--rule);
}
.chat-title { margin: 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.chat-sub { margin: 1px 0 0; font-size: .72rem; color: var(--ink-4); }
.chat-close { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; color: var(--ink-4); padding: 2px 6px; border-radius: 6px; }
.chat-close:hover { color: var(--ink); background: var(--paper-2); }

/* 注意：这里不要写 scroll-behavior:smooth。流式回答时每来一段文本就要把面板滚到底，
   平滑滚动会把每次赋值都变成一段动画，连续十几次叠加起来反而更卡、还会抢手动滚动。 */
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px 6px; }
.chat-body::-webkit-scrollbar { width: 8px; }
.chat-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 8px; }

.msg { display: flex; margin-bottom: 14px; }
.msg.user { justify-content: flex-end; }
.bubble {
  max-width: 92%; border-radius: 12px; padding: 10px 13px; font-size: .9rem; line-height: 1.78;
  background: var(--paper-2); color: var(--ink-2); white-space: pre-wrap; word-break: break-word;
}
.msg.user .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot .bubble { border-bottom-left-radius: 4px; }
.bubble p { margin: 0 0 .5em; }
.bubble p:last-child { margin-bottom: 0; }
.bubble .dim { font-size: .78rem; color: var(--ink-4); line-height: 1.7; }
.bubble .err { color: #8a1c1c; }

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4); animation: bounce 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .16s } .typing i:nth-child(3) { animation-delay: .32s }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .4 } 30% { transform: translateY(-4px); opacity: 1 } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 16px; }
.chips button {
  border: 1px solid var(--rule); background: var(--paper); border-radius: 999px;
  padding: 7px 13px; font-size: .8rem; color: var(--ink-2);
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chips button:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chips.hide { display: none; }

/* ---------- 开场的问题库（按话题分组） ----------
   一屏铺十几条问题会让人不知道从哪下手，所以先给一组 4 条，
   想看别的切标签；切标签只换下面那组问题，标题行不动，视线不跳。 */
.topics { padding: 2px 0 14px; }
.topics.hide { display: none; }
.topics-hint { margin: 0 0 10px; font-size: .78rem; color: var(--ink-4); }
.topic-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.topic-tab {
  border: 0; background: transparent; padding: 3px 2px; margin-right: 10px;
  font-size: .78rem; color: var(--ink-4); position: relative;
  transition: color .2s var(--ease);
}
.topic-tab::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.topic-tab:hover { color: var(--ink-2); }
.topic-tab.on { color: var(--ink); }
.topic-tab.on::after { transform: scaleX(1); }
.topic-qs { display: flex; flex-direction: column; gap: 6px; }
.topic-qs .chip { animation: chipIn .32s var(--ease) both; }
.topic-qs .chip:nth-child(2) { animation-delay: .04s; }
.topic-qs .chip:nth-child(3) { animation-delay: .08s; }
.topic-qs .chip:nth-child(4) { animation-delay: .12s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 通用小按钮（问题库、追问建议共用） */
.chip {
  border: 1px solid var(--rule); background: var(--paper); border-radius: 999px;
  padding: 7px 13px; font-size: .8rem; color: var(--ink-2); text-align: left;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip-deep { border-style: dashed; color: var(--ink); font-weight: 600; }

/* ---------- 回答之后的追问建议 ---------- */
.follow { padding: 0 0 16px; }
.follow.hide { display: none; }
.follow-label {
  margin: 0 0 8px; font-size: .72rem; letter-spacing: .06em; color: var(--ink-4);
}
.follow-qs { display: flex; flex-wrap: wrap; gap: 7px; }
.follow-qs .chip { font-size: .78rem; padding: 6px 11px; }

/* ---------- 「回到最新」 ----------
   流式回答时如果访客往上翻历史，自动跟随会停下（否则一直被拽回去），
   这时浮出这颗按钮，明确告诉他下面还有内容在生成。 */
.chat-latest {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 3;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: .76rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  animation: fade .24s var(--ease);
}
.chat-latest[hidden] { display: none !important; }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 6px; border-top: 1px solid var(--rule); }
.chat-form textarea {
  flex: 1; resize: none; border: 1px solid var(--rule); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: .9rem; line-height: 1.6;
  max-height: 120px; background: var(--paper); color: var(--ink-2);
  transition: border-color .2s var(--ease);
}
.chat-form textarea:focus { outline: none; border-color: var(--ink-3); }
.chat-send {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  display: grid; place-items: center; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.chat-send:hover { transform: translateY(-1px); }
.chat-send:disabled { opacity: .35; transform: none; cursor: not-allowed; }
.chat-stop { flex: 0 0 auto; border: 1px solid var(--rule); background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: .82rem; color: var(--ink-3); }
.chat-stop:hover { border-color: var(--ink); color: var(--ink); }

.chat-foot { margin: 0; padding: 0 14px 12px; font-size: .72rem; color: var(--ink-4); }
