/* =========================================================
   张倩敏 · 个人简历站  V11
   风格基准：hiesther.me/#works
   米白底 / 墨色正文 / 华为蓝强调 / 手写体标题 + 黄色马克笔线
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #FEFCF6;                                   /* 米白页面底 */
  --ink: #1A1A2E;                                  /* 主文字 */
  --muted: #999999;                                /* 次级文字 */
  --accent: #2B7FD8;                               /* 强调蓝 */
  --accent-2: #6FB1EC;                             /* 渐变辅蓝 */
  --accent-soft: #EDF4FC;                          /* 浅蓝底 */
  --accent-bd: rgba(43, 127, 216, .28);            /* 浅蓝描边 */
  --accent-bd-soft: rgba(43, 127, 216, .14);       /* 更淡描边（柔卡） */
  --yellow: #FFD84D;                               /* 黄色马克笔 */
  --hairline: #EFEAE0;                             /* 发丝分隔线 */
  --card: #FFFFFF;

  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;   /* 手写体英文标题 */
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei",
          -apple-system, "Segoe UI", sans-serif;                /* 正文 */

  --margin: clamp(24px, 5.4vw, 76px);              /* 页边最小 2cm */
  --shadow-soft: 0 24px 48px -30px rgba(43, 127, 216, .28);
  --shadow-lift: 0 30px 56px -30px rgba(43, 127, 216, .4);
}

/* ---------- 2. Reset & 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

::selection { background: var(--accent-soft); }

/* ---------- 3. 顶栏（导航居中，汉堡靠右） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--margin);
  height: 72px;
  background: rgba(254, 252, 246, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.top-nav { display: flex; gap: 34px; }

.top-nav a {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  transition: color .25s ease;
}
.top-nav a::after {                    /* hover / 激活：黄色马克笔短线 */
  content: "";
  position: absolute; left: 50%; bottom: -2px;
  width: 22px; height: 3px; border-radius: 2px;
  background: var(--yellow);
  transform: translateX(-50%) scaleX(0);
  transition: transform .3s ease;
}
.top-nav a:hover,
.top-nav a[aria-current="page"] { color: var(--ink); }
.top-nav a:hover::after,
.top-nav a[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }

/* 汉堡按钮（移动端显示，固定右侧） */
.menu-btn {
  display: none;
  position: absolute; right: var(--margin);
  flex-direction: column; gap: 5px; padding: 8px;
}
.menu-btn span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. 侧边栏抽屉（移动端） ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(26, 26, 46, .28);
  opacity: 0; transition: opacity .3s ease;
}
.scrim.show { opacity: 1; }

.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(300px, 82vw);
  padding: 84px 30px 28px;
  background: var(--card);
  box-shadow: -18px 0 48px rgba(26, 26, 46, .12);
  transform: translateX(102%);
  transition: transform .38s cubic-bezier(.22, .8, .3, 1);
  display: flex; flex-direction: column;
}
.sidebar.open { transform: translateX(0); }

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 15px;
  color: var(--muted);
  transition: background .25s ease, color .25s ease, padding-left .25s ease;
}
.side-nav a:hover,
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); padding-left: 20px; }

.side-foot { margin-top: auto; font-size: 12px; color: var(--muted); word-break: break-all; }

/* ---------- 5. 页面切换 & 进场动画 ---------- */
main { padding: 0 var(--margin); }

.page { display: none; }
.page.active { display: block; }

/* .rv：进场元素，页面激活时重播（--d 控制延迟） */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page.active .rv { animation: fadeUp .7s ease both; animation-delay: var(--d, 0s); }

/* ---------- 6. 页面标题（手写体 + 黄线） ---------- */
.page-head { padding: 64px 0 40px; }

.head-en {
  position: relative;
  display: inline-block;
  font-family: var(--hand);
  font-size: clamp(44px, 5.5vw, 64px);
  line-height: 1.1;
  color: var(--ink);
}
.head-en::after {                      /* 黄色马克笔装饰线 */
  content: "";
  position: absolute; left: 2px; bottom: 6px;
  width: 100%; height: 12px;
  background: var(--yellow);
  opacity: .55; border-radius: 6px;
  z-index: -1;
}
.page-head h2 { margin-top: 8px; font-size: 22px; font-weight: 700; letter-spacing: 2px; }

/* ---------- 7. 首页 Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 40px 0 56px;
}

.hero-en {
  font-family: var(--hand);
  font-size: clamp(26px, 2.6vw, 34px);
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(46px, 6vw, 68px);
  line-height: 1.15;
  letter-spacing: 2px;
  margin: 6px 0 18px;
}

.hero-tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .5px;
}

.hero-desc {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--ink);
  font-size: 15px;
}

.hero-actions { display: flex; gap: 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 11px;                        /* V9：在 V8 基础上再整体缩小一半 */
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
/* 透明底 + 浅蓝字 + 浅蓝描边 */
.btn.primary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.primary:hover { transform: translateY(-2px); background: var(--accent-soft); }
.btn.ghost { border: 1.5px solid var(--accent-bd); color: var(--accent); background: rgba(255, 255, 255, .6); }
.btn.ghost:hover { transform: translateY(-2px); background: var(--accent-soft); }

.hero-contact {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.hero-contact li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.hero-contact svg { width: 17px; height: 17px; color: var(--accent); }
.hero-contact a:hover { color: var(--accent); }

/* ---------- 8. 首页动画元素组合 ---------- */
/* 容器：实况窗居中，五枚漂浮气泡（机器学习/账号/维修系统/形象/通知），双轨道虚线串联 */
.hero-art {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

/* 8.1 背景光斑（柔和大圆，缓慢漂移） */
.blob { position: absolute; border-radius: 50%; filter: blur(46px); }
.blob-a {
  width: 58%; height: 58%; left: -6%; top: 2%;
  background: radial-gradient(circle, rgba(111, 177, 236, .4), rgba(111, 177, 236, 0) 70%);
  animation: blobDrift 16s ease-in-out infinite alternate;
}
.blob-b {
  width: 50%; height: 50%; right: -4%; bottom: 0;
  background: radial-gradient(circle, rgba(255, 216, 77, .32), rgba(255, 216, 77, 0) 70%);
  animation: blobDrift 19s ease-in-out infinite alternate-reverse;
}
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(26px, -22px) scale(1.08); }
}

/* 8.2 虚线轨道（外层随鼠标公转，内层保持自旋） */
.ring-wrap {
  position: absolute; inset: 0;
  transform: rotate(var(--rot, 0deg));       /* JS 驱动：随鼠标绕中心公转 */
  will-change: transform;
}
.art-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.art-ring ellipse {
  fill: none; stroke: var(--accent); stroke-width: 1.4;
  stroke-dasharray: 3 12; stroke-linecap: round;
  opacity: .3;
}
.ring-a { animation: ringSpin 46s linear infinite; }
.ring-b { animation: ringSpin 62s linear infinite reverse; }
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 8.3 中心：实况窗 */
.art-core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 56%, 252px);
  padding: 18px 20px 20px;
  background: var(--card);
  border: 1px solid var(--accent-bd-soft);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  animation: coreFloat 6s ease-in-out infinite;
}
@keyframes coreFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 12px)); }
}

.live-cap { display: flex; align-items: center; justify-content: center; gap: 8px; }
.live-cap b { font-size: 17px; letter-spacing: 1px; }

/* 横长条椭圆胶囊 icon（实况窗 UI 缩略） */
.live-pill-ico {
  position: relative; flex: none;
  width: 30px; height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 6px 12px -6px rgba(43, 127, 216, .7);
}
.live-pill-ico i {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255, 255, 255, .9); border-radius: 999px;
}
.live-pill-ico i:first-child { left: 4px; width: 5px; height: 5px; }
.live-pill-ico i:last-child  { left: 12px; width: 13px; height: 4px; }

/* 状态胶囊：状态词（左）+ 进度信息（右）成组渐变轮播 */
.live-status {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  padding: 9px 15px 9px 10px;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 12px 22px -12px rgba(26, 26, 46, .55);
}

.ls-ico {
  flex: none;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.ls-ico svg { width: 16px; height: 16px; }

.live-state {
  position: relative; flex: 1;
  height: 21px; overflow: hidden;
}
/* 五组「状态词+进度信息」：叠放交叉淡入淡出（渐变，无位移翻页），每 5s 依次轮播 */
.live-state i {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-style: normal;
  opacity: 0;
  animation: stateFade 25s ease-in-out infinite;
}
/* 状态词（左）与进度信息（右）成组轮播 */
.st-word { color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.st-extra {
  color: rgba(255, 255, 255, .72);
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.live-state i:nth-child(1) { animation-delay: 0s; }
.live-state i:nth-child(2) { animation-delay: 5s; }
.live-state i:nth-child(3) { animation-delay: 10s; }
.live-state i:nth-child(4) { animation-delay: 15s; }
.live-state i:nth-child(5) { animation-delay: 20s; }
@keyframes stateFade {
  0%, 2%     { opacity: 0; }
  8%, 16%    { opacity: 1; }
  22%, 100%  { opacity: 0; }
}

/* 8.4 漂浮气泡（五枚，各自节奏轻浮动） */
/* 壳层：只负责定位 + 轻浮动；公转由外层 .orbit 驱动 */
.chip { position: absolute; }

/* 公转层：整体随鼠标绕中心旋转（JS 写入 --rot） */
.orbit {
  position: absolute; inset: 0;
  transform: rotate(var(--rot, 0deg));
  will-change: transform;
}

/* 胶囊本体：反向自转抵消公转角度，保证文字始终水平 */
.chip-in {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  background: var(--card);
  border: 1px solid var(--accent-bd-soft);
  border-radius: 999px;
  box-shadow: 0 16px 30px -18px rgba(43, 127, 216, .4);
  white-space: nowrap;
  transform: rotate(calc(var(--rot, 0deg) * -1));
  will-change: transform;
}
.chip-txt { font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.chip-ico { position: relative; display: inline-flex; color: var(--accent); }
.chip-ico svg { width: 19px; height: 19px; }

.chip-asr { left: 1%;  top: 6%;     animation: chipFloat 7.5s ease-in-out infinite; }
.chip-acc { right: 0;  top: 19%;    animation: chipFloat 8.5s ease-in-out .8s infinite; }
.chip-rep { right: -2%; top: 61%;   animation: chipFloat 8.8s ease-in-out 1.6s infinite; }   /* V10：上移拉开与通知中心的距离 */
.chip-ava { left: 5%;  bottom: 13%; animation: chipFloat 9s ease-in-out .4s infinite; }
.chip-msg { right: 3%; bottom: 0;   animation: chipFloat 8s ease-in-out 1.2s infinite; }    /* V10：下沉至底部 */

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* 机器学习服务：声波律动 */
.wave { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.wave i {
  width: 3px; border-radius: 2px;
  background: var(--accent-2);
  height: 100%;
  transform-origin: bottom;
  animation: waveBounce 1.5s ease-in-out infinite;
}
.wave i:nth-child(1) { animation-delay: 0s;   height: 55%; }
.wave i:nth-child(2) { animation-delay: .18s; height: 90%; }
.wave i:nth-child(3) { animation-delay: .36s; height: 100%; }
.wave i:nth-child(4) { animation-delay: .54s; height: 80%; }
.wave i:nth-child(5) { animation-delay: .72s; height: 60%; }
@keyframes waveBounce {
  0%, 100% { transform: scaleY(.4); opacity: .6; }
  50%      { transform: scaleY(1);  opacity: 1; }
}

/* 通知中心：红点脉冲 */
.ping {
  position: absolute; right: -2px; top: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #F4645C;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(244, 100, 92, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(244, 100, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 100, 92, 0); }
}

/* ---------- 9. 业务模块（柔和渐变卡） ---------- */
#page-work { padding-bottom: 72px; }

.module-card {
  margin-bottom: 34px;
  padding: clamp(26px, 3.4vw, 44px) clamp(22px, 3.2vw, 46px);
  background: linear-gradient(160deg, #F6FAFF 0%, #FDFEFF 68%);
  border: 1px solid var(--accent-bd-soft);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .45s ease, box-shadow .45s ease, border-color .45s ease;
}
.module-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-bd);
  box-shadow: var(--shadow-lift);
}

.module-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }

.module-badge {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 15px;
  font-size: 15px; font-weight: 700;
}
.badge-ops { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 10px 20px -10px rgba(43, 127, 216, .6); }
.badge-pm  { background: linear-gradient(135deg, #FFE68A, var(--yellow)); color: var(--ink); box-shadow: 0 10px 20px -10px rgba(255, 216, 77, .7); }

.module-head h3 { font-size: 21px; letter-spacing: 1px; }
.module-sub { font-size: 13px; color: var(--muted); }

/* 业务条目：业务名 + 数据成果胶囊 */
.work-list { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }

.work-item {
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .66);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.work-item:hover {
  background: #fff;
  transform: translateX(6px);
  box-shadow: 0 14px 28px -20px rgba(43, 127, 216, .5);
}

.work-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.work-top h4 { font-size: 15.5px; letter-spacing: .5px; }
.period { font-size: 12.5px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips li {
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px; font-weight: 600;
  transition: background .25s ease, transform .25s ease;
}
.chips li:hover { background: #DDEBFA; transform: translateY(-2px); }

/* ---------- 10. 项目经历 · 时间轴 ---------- */
#page-path { padding-bottom: 72px; }

.timeline {
  position: relative;
  max-width: min(1080px, 100%);
  margin: 0 auto 24px;                 /* V10：加长并居中，消除宽屏右侧留白 */
  padding-left: 38px;
}
.timeline::before {                   /* 串联六个项目的竖线 */
  content: "";
  position: absolute; left: 10px; top: 10px; bottom: 26px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 55%, rgba(111, 177, 236, .12) 100%);
}

.tl-item { position: relative; padding-bottom: 26px; }

.tl-dot {
  position: absolute; left: -34px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-bd);
  animation: dotPulse 3s ease-out infinite;
}
@keyframes dotPulse {                 /* 柔和脉冲光环 */
  0%   { box-shadow: 0 0 0 2px var(--accent-bd), 0 0 0 0 rgba(43, 127, 216, .3); }
  70%  { box-shadow: 0 0 0 2px var(--accent-bd), 0 0 0 13px rgba(43, 127, 216, 0); }
  100% { box-shadow: 0 0 0 2px var(--accent-bd), 0 0 0 0 rgba(43, 127, 216, 0); }
}

/* 卡片：左侧文字 + 右侧项目示意图 */
.tl-card {
  display: flex; align-items: center; gap: 22px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--accent-bd-soft);
  border-radius: 18px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tl-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-bd);
  box-shadow: var(--shadow-soft);
}
.tl-body { flex: 1; min-width: 0; }

/* 项目示意图：三套展示策略 —— 按图片底色分层处理，避免裁剪主体 */
.tl-media { flex: none; margin: 0; }
/* 透明底抠图（实况窗/消息推送/自拟形象）：完整显示不裁剪，轻投影自然贴合卡片 */
.tl-media img {
  display: block;
  max-height: 200px; max-width: 140px;
  width: auto; height: auto;
  filter: drop-shadow(0 10px 16px rgba(43, 127, 216, .18));
}
/* 纯白底截图（华为账号）：顶部对齐裁去底部空白，白底与白卡天然融合 */
.tl-media--tall img {
  width: 120px; height: 190px;
  object-fit: cover; object-position: top;
  filter: none;
}
/* 横版官网截图（机器学习服务）：小圆角缩略，保留标题文字不突兀 */
.tl-media--thumb img {
  width: 190px; height: 118px;
  object-fit: cover; object-position: left top;
  border-radius: 10px;
  box-shadow: 0 10px 20px -12px rgba(26, 26, 46, .25);
}
/* 可点击跳转官网的项目图：hover 轻浮提示 */
a.tl-media { display: block; }
.tl-media img { transition: transform .3s ease, opacity .3s ease; }
.tl-media:hover img { transform: translateY(-3px); opacity: .88; }

.tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tl-co { font-size: 13px; font-weight: 700; color: var(--accent); }
.tl-time {
  padding: 2px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600;
}
.tl-role { font-size: 12.5px; color: var(--muted); }

.tl-card h3 { margin: 6px 0 8px; font-size: 18px; letter-spacing: .5px; }

.tl-points li {
  position: relative;
  padding-left: 16px;
  color: #55556E;
  font-size: 13.5px;
  line-height: 1.8;
}
.tl-points li::before {
  content: "";
  position: absolute; left: 0; top: .72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
}

/* ---------- 11. 技能与教育（技能在前，教育在后） ---------- */
#page-about { padding-bottom: 72px; }

/* 教育背景：Education 标题与技能标题同级展示，白卡只包内容
   V11：与项目经历一致，整体加长并水平居中，消除宽屏右侧留白 */
.edu-block { max-width: min(1080px, 100%); margin: 36px auto 0; }
.edu-en { font-family: var(--hand); font-size: 22px; color: var(--muted); }
.edu-card {
  margin-top: 14px;
  padding: 26px 30px;
  background: var(--card);
  border: 1px solid var(--accent-bd-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.edu-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.edu-row h3 { font-size: 20px; letter-spacing: 1px; }
.edu-time {
  padding: 2px 11px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600;
}
.edu-line { margin-top: 8px; font-size: 14px; }
.edu-line.muted { color: var(--muted); font-size: 13.5px; }

.skill-block { max-width: min(1080px, 100%); margin: 36px auto 0; }   /* V11：居中展示 */
.skill-block:first-of-type { margin-top: 0; }
.skill-en { font-family: var(--hand); font-size: 22px; color: var(--muted); }
.skill-block h3 { margin: 4px 0 20px; font-size: 18px; letter-spacing: 1px; }

/* 硬技能进度条 */
.bars { display: flex; flex-direction: column; gap: 16px; }
.bars li { display: grid; grid-template-columns: 210px 1fr 48px; align-items: center; gap: 16px; }
.bar-name { font-size: 13.5px; color: #55556E; }

.bars i {
  position: relative; display: block;
  height: 9px; border-radius: 6px;
  background: var(--accent-soft);
  overflow: hidden;
}
.bars i::before {                     /* 填充条：bars-on 激活后展开 */
  content: "";
  position: absolute; inset: 0;
  width: var(--w, 0%);
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s cubic-bezier(.25, .8, .3, 1);
}
.skill-block.bars-on .bars i::before { transform: scaleX(1); }
.bars li:nth-child(2) i::before { transition-delay: .08s; }
.bars li:nth-child(3) i::before { transition-delay: .16s; }
.bars li:nth-child(4) i::before { transition-delay: .24s; }
.bars li:nth-child(5) i::before { transition-delay: .32s; }
.bars li:nth-child(6) i::before { transition-delay: .4s; }
.bars li:nth-child(7) i::before { transition-delay: .48s; }

.bars b { font-size: 12.5px; color: var(--accent); font-weight: 700; text-align: right; }

/* 软技能图标卡 */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.soft-grid li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--accent-bd-soft);
  border-radius: 16px;
  font-size: 13.5px; font-weight: 600;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.soft-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--accent-bd);
  box-shadow: 0 16px 30px -20px rgba(43, 127, 216, .5);
}
.soft-grid svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ---------- 12. 页脚：蓝黄呼吸条，点击翻到下一页 ---------- */
.site-foot { display: flex; justify-content: center; padding: 26px 0 40px; }

.foot-rule {
  position: relative;
  width: 120px; height: 4px;
  border: none; padding: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--yellow));
  animation: footBreath 2.8s ease-in-out infinite;
  transition: transform .3s ease, box-shadow .3s ease;
}
.foot-rule::before {                  /* 扩大点击热区 */
  content: "";
  position: absolute; inset: -18px;
}
.foot-rule:hover {
  animation: none;                    /* 悬停停呼吸，转为稳定放大 */
  transform: scaleX(1.18);
  box-shadow: 0 6px 16px -6px rgba(43, 127, 216, .5);
}
@keyframes footBreath {
  0%, 100% { transform: scaleX(1);    opacity: .55; box-shadow: 0 0 0 0 rgba(43, 127, 216, 0); }
  50%      { transform: scaleX(1.22); opacity: 1;   box-shadow: 0 4px 14px -4px rgba(43, 127, 216, .45); }
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; }
  .hero-art { width: min(400px, 92vw); order: -1; margin-top: 8px; }
  .hero-desc { max-width: none; }
}

@media (max-width: 860px) {
  .top-nav { display: none; }
  .menu-btn { display: flex; }
  .page-head { padding: 44px 0 30px; }
  .head-en { font-size: 44px; }
}

@media (max-width: 700px) {
  :root { --margin: 20px; }
  body { font-size: 13.5px; }
  .hero h1 { font-size: 42px; }
  .hero-desc { font-size: 14px; }
  .hero-contact li { font-size: 12.5px; }          /* V11：联系方式微缩 */
  .hero-art { width: min(340px, 94vw); }
  .art-core { width: 66%; padding: 13px 14px 14px; }
  .live-cap b { font-size: 14.5px; }
  .live-pill-ico { width: 25px; height: 14px; }
  .live-pill-ico i:last-child { left: 10px; width: 10px; }
  .live-status { padding: 7px 12px 7px 8px; gap: 8px; margin-top: 11px; }
  .ls-ico { width: 25px; height: 25px; }
  .ls-ico svg { width: 13px; height: 13px; }
  .live-state { height: 18px; }
  .st-word { font-size: 12px; }
  .st-extra { font-size: 10.5px; }

  .chip-in { padding: 8px 12px; gap: 7px; }
  .chip-txt { font-size: 11.5px; }
  .chip-ico svg { width: 16px; height: 16px; }
  .chip-asr { left: 0; top: 2%; }
  .chip-acc { right: 0; top: 16%; }
  .chip-rep { right: 0; top: 62%; }
  .chip-ava { left: 2%; bottom: 10%; }
  .chip-msg { right: 0; bottom: 0; }

  .page-head h2 { font-size: 20px; }               /* V11：标题微缩 */

  .module-card { border-radius: 20px; }
  .module-head h3 { font-size: 19px; }             /* V11：模块标题微缩 */
  .work-item { padding: 14px 14px; }
  .work-item:hover { transform: none; }
  .chips li { font-size: 12px; padding: 4px 11px; }

  .timeline { padding-left: 30px; }
  .timeline::before { left: 7px; }
  .tl-dot { left: -27px; width: 11px; height: 11px; }
  .tl-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 16px; }
  .tl-media { align-self: center; }                /* V11：竖排卡片时图片居中更平衡 */
  .tl-media img { max-height: 160px; max-width: 110px; }
  .tl-media--tall img { height: 150px; }
  .tl-media--thumb img { width: 100%; height: 140px; }
  .tl-points li { font-size: 13px; }

  .bars li { grid-template-columns: 1fr 84px 40px; gap: 10px; }
  .bar-name { font-size: 12.5px; }
  .soft-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .soft-grid li { padding: 13px 13px; font-size: 12.5px; }
  .edu-card { padding: 24px 20px; }
  .edu-row h3 { font-size: 18px; }
  .edu-line { font-size: 13.5px; }
  .edu-line.muted { font-size: 12.5px; }
}

/* 超窄屏（≤380px）：进一步防溢出微调 */
@media (max-width: 380px) {
  .hero h1 { font-size: 36px; }
  .hero-art { width: 96vw; }
  .tl-card { padding: 14px 12px; }
  .soft-grid { grid-template-columns: 1fr; }       /* 单列排布，避免文字挤压 */
  .bars li { grid-template-columns: 1fr 70px 36px; gap: 8px; }
}

/* ---------- 14. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  /* 静态兜底：状态词固定显示第一个 */
  .live-state i { opacity: 0; }
  .live-state i:first-child { opacity: 1; }
}
