/* ════════════════════════════════════════════════════════════
   陈培胜求职作品集 · 新粗野主义 × 潮流杂志 × 人才档案系统
   Palette: paper #F3EEE2 / ink #141311 / orange #FF5A1E / blue #2B4BE0
   ════════════════════════════════════════════════════════════ */

:root {
  --paper: #F3EEE2;
  --card: #FFFCF4;
  --ink: #141311;
  --ink-soft: #4A463F;
  --orange: #FF5A1E;
  --blue: #2B4BE0;
  --green: #1FA658;
  /* 主题化 RGB 三元组与强调色底文字色（风格系列用） */
  --ink-rgb: 20, 19, 17;
  --paper-rgb: 243, 238, 226;
  --accent-text: #ffffff;
  --accent-text-rgb: 255, 255, 255;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --border: 3px solid var(--ink);
  --border-thick: 4px solid var(--ink);
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-black: var(--font-tech);
  --font-mono: 'Space Mono', 'SF Mono', Consolas, monospace;
  --font-tech: 'Share Tech Mono', 'Space Mono', monospace;
  --wrap: 1200px;
}

/* ── Reset ───────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
/* hidden 属性权威化：防止作者 display 声明（如 img{display:block}）覆盖 UA 的 [hidden]{display:none} */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--orange); color: var(--accent-text); }

/* ── 通用小组件 ──────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--card);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag-orange { background: var(--orange); color: var(--accent-text); }
.tag-blue { background: var(--blue); color: var(--accent-text); }
.tag-lg { font-size: 13px; padding: 9px 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 16px 26px;
  border: var(--border);
  background: var(--card);
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-solid { background: var(--orange); color: var(--accent-text); }
.btn-solid:hover { background: #ff6d38; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 20px 34px; font-size: 18px; }
.btn-arrow { font-size: 13px; letter-spacing: -1px; }

/* 状态灯 */
.lamp {
  display: inline-block;
  width: 9px; height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  vertical-align: middle;
}
.lamp-green { animation: lamp-blink 1.6s steps(2, start) infinite; }
@keyframes lamp-blink { 50% { opacity: .35; } }

/* 条形码 */
.barcode {
  height: 34px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 9px, transparent 9px 11px,
    var(--ink) 11px 12px, transparent 12px 17px,
    var(--ink) 17px 21px, transparent 21px 24px
  );
}
.barcode-sm { height: 26px; max-width: 180px; }

/* 像素箭头 */
.pixel-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
}

/* ── 区块头（档案柜标签语言）────────────────── */
.section { padding: 96px 24px; max-width: var(--wrap); margin: 0 auto; }
.section-tint {
  position: relative;
  max-width: none;
}
.section-tint::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(20,19,17,.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(20,19,17,.05) 39px 40px);
  pointer-events: none;
}
.section-tint > * { position: relative; max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
  align-self: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.title-en {
  font-family: var(--font-tech);
  font-size: 0.46em;
  font-weight: 400;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-left: 10px;
  vertical-align: 0.35em;
}
.section-line { flex: 1; min-width: 60px; height: 0; border-top: var(--border); align-self: center; }
.section-coord {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  align-self: center;
  letter-spacing: 0.04em;
}

/* ── 顶栏 ────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--border);
}
.topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  font-family: var(--font-tech);
  font-weight: 400;
  font-size: 26px;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.brand-dot { color: var(--orange); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  max-width: 150px;
  line-height: 1.4;
}
.nav { display: flex; gap: 4px; }
.nav a {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 7px;
  border: 2px solid transparent;
  transition: border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.nav a .nav-no {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
  margin-right: 4px;
}
.nav a:hover { border-color: var(--ink); background: var(--card); }
.nav a.active { background: var(--ink); color: var(--paper); }
.nav a.active .nav-no { color: var(--orange); }
.nav-tag {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  color: var(--orange); border: 1px solid var(--orange);
  padding: 1px 4px; margin-left: 4px; border-radius: 2px;
  vertical-align: 1px; white-space: nowrap;
}
@media (min-width: 1110px) and (max-width: 1440px) {
  .nav { gap: 2px; }
  .nav a { font-size: 13px; padding: 7px 5px; }
  .nav-tag { font-size: 8px; }
}
/* 1025–1109：导航项最窄档，保证 10 项在窄桌面不溢出 */
@media (min-width: 1025px) and (max-width: 1109px) {
  .nav { gap: 2px; }
  .nav a { font-size: 12px; padding: 6px 4px; }
  .nav-no { font-size: 9px; margin-right: 3px; }
  .nav-tag { font-size: 8px; padding: 1px 3px; margin-left: 3px; }
}
.topbar-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
/* ── 分享按钮（生成首页长图 + 右下角二维码） ── */
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-cn); font-size: 13px; font-weight: 900; letter-spacing: 1px;
  padding: 8px 14px;
  background: var(--orange); color: var(--accent-text);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.share-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.share-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.share-btn:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.share-btn.busy { opacity: .55; pointer-events: none; }
.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
/* 窄屏隐藏状态标签，避免与长导航挤在一起 */
@media (max-width: 1199px) {
  .status-pill { display: none; }
}
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--card);
  border: var(--border);
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  width: 20px; height: 3px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ══════════════ HERO 首屏 ══════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 90px;
  border-bottom: var(--border-thick);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(20,19,17,.06) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(20,19,17,.06) 59px 60px);
  pointer-events: none;
}
.hero-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  background: var(--card);
  z-index: 2;
}
.hero-corner.tl { top: 92px; left: 24px; }
.hero-corner.tr { top: 92px; right: 24px; }
.hero-corner.bl { bottom: 24px; left: 24px; }
.hero-corner.br { bottom: 24px; right: 24px; background: var(--ink); color: var(--paper); animation: lamp-blink 2s steps(2, start) infinite; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 1fr);
  gap: 56px;
  align-items: center;
}

/* 左：超大姓名排版 */
.hero-eyebrow { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-name { position: relative; margin-bottom: 8px; }
.hero-name-cn {
  display: block;
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(96px, 15vw, 200px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* 故障层：静态不可见，周期性闪现蓝橙错位残影 */
.glitch-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  font-style: normal;
}
.glitch-blue { color: rgba(43, 75, 224, .85); animation: glitch-a 3.6s steps(1) infinite; }
.glitch-orange { color: rgba(255, 90, 30, .85); animation: glitch-b 3.6s steps(1) infinite; }
@keyframes glitch-a {
  0%, 86% { transform: translate(0, 0); opacity: 0; }
  87% { transform: translate(-0.05em, 0.018em); opacity: 1; }
  90% { transform: translate(-0.028em, -0.012em); opacity: 1; }
  93% { transform: translate(-0.055em, 0.008em); opacity: 1; }
  96%, 100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes glitch-b {
  0%, 86% { transform: translate(0, 0); opacity: 0; }
  87% { transform: translate(0.05em, -0.018em); opacity: 1; }
  90% { transform: translate(0.03em, 0.012em); opacity: 1; }
  93% { transform: translate(0.055em, -0.008em); opacity: 1; }
  96%, 100% { transform: translate(0, 0); opacity: 0; }
}
.hero-name-en {
  display: block;
  margin: 10px 0 0 0.14em;
  font-family: var(--font-tech);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--blue);
  letter-spacing: 0.06em;
  pointer-events: none;
}
.hero-role {
  margin-top: 28px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 900;
}
.role-slash { color: var(--orange); margin: 0 6px; }
.role-en {
  font-family: var(--font-tech);
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.hero-bio {
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  color: var(--ink-soft);
  border-left: var(--border);
  padding-left: 18px;
}
.hero-cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* 右：立体档案卡（签名元素） */
.hero-right { perspective: 1200px; }
.idcard-stack { position: relative; }
.idcard {
  border: var(--border-thick);
  background: var(--card);
}
.idcard-back-1 {
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px) rotate(2.4deg);
  background: var(--blue);
  z-index: 0;
}
.idcard-back-2 {
  position: absolute;
  inset: 0;
  transform: translate(28px, 28px) rotate(-1.6deg);
  background: var(--orange);
  border-color: var(--ink);
  z-index: 0;
}
.idcard-main {
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  transition: transform .25s ease;
}
@media (hover: hover) {
  .idcard-main:hover { transform: translate(-3px, -3px) rotate(-.6deg); }
}
.idcard-head {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: var(--border);
  align-items: center;
}
.idcard-photo {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  border: var(--border);
  background: var(--paper);
  overflow: hidden;
}
.idcard-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.idcard-photo-frame {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,90,30,.65);
  pointer-events: none;
}
.idcard-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.15;
}
.idcard-title span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.idcard-no {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}
.idcard-status {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.idcard-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.idcard-fields .field {
  padding: 10px 16px;
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}
.idcard-fields .field:nth-child(2n) { border-right: none; }
.idcard-fields .field:nth-last-child(-n+2) { border-bottom: none; }
.field dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.field dd {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.3;
}
.field-orange dd { color: var(--orange); }
.field-blue dd { color: var(--blue); }
.idcard-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: var(--border);
}
.idcard-foot .barcode { flex: 0 0 96px; height: 28px; }
.idcard-foot-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.idcard-chip {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px; height: 26px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, var(--orange) 0 40%, #ffb08a 40% 55%, var(--orange) 55%);
  box-shadow: 2px 2px 0 var(--ink);
}
.idcard-chip::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; top: 8px;
  border-top: 2px solid rgba(20,19,17,.5);
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 2;
}
.hero-scroll .pixel-arrow { animation: bounce-down 1.4s ease infinite; }
@keyframes bounce-down { 50% { transform: translateY(5px); } }

/* ══════════════ MARQUEE ══════════════ */
.marquee {
  background: var(--orange);
  border-bottom: var(--border-thick);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  text-shadow: 2px 2px 0 var(--ink);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════ SEC.01 关于我 ══════════════ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo-wrap { position: relative; }
.about-photo {
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
  background: var(--card);
}
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-photo-no {
  position: absolute;
  left: -10px;
  bottom: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--blue);
  color: var(--accent-text);
  padding: 6px 12px;
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
}
.stamp-verified {
  position: absolute;
  top: -30px;
  right: -22px;
  width: 108px; height: 108px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(12deg);
  background: rgba(255, 252, 244, .88);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--orange);
}
.stamp-verified span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.about-lead {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 20px;
}
.about-lead strong { background: var(--orange); color: var(--accent-text); padding: 0 6px; }
.about-body > p { color: var(--ink-soft); margin-bottom: 16px; max-width: 620px; }
.about-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
.about-stats li {
  padding: 20px 14px;
  text-align: center;
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stats li:last-child { border-right: none; }
.about-stats strong {
  font-family: var(--font-tech);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.about-stats span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ══════════════ SEC.02 求职意向 ══════════════ */
.obj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.obj-card {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .obj-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
}
.obj-main { grid-column: span 3; grid-row: span 2; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: center; }
.obj-main .obj-role { font-size: clamp(34px, 4vw, 46px); }
.obj-card:nth-child(2), .obj-card:nth-child(3) { grid-column: span 3; }
.obj-card:nth-child(4), .obj-card:nth-child(5) { grid-column: span 3; }
.obj-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 12px;
}
.obj-main .obj-tag { color: rgba(var(--paper-rgb), .65); }
.obj-role {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.obj-role-sm { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.obj-role-sub {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.obj-desc { font-size: 15px; color: var(--ink-soft); }
.obj-main .obj-desc { color: rgba(var(--paper-rgb), .78); max-width: 420px; }
.obj-blue-card { background: var(--blue); color: var(--accent-text); }
.obj-blue-card .obj-tag, .obj-blue-card .obj-desc { color: rgba(255,255,255,.75); }
.obj-orange-card { background: var(--orange); color: var(--accent-text); }
.obj-orange-card .obj-tag, .obj-orange-card .obj-desc { color: rgba(255,255,255,.82); }

/* ══════════════ SEC.03 教育经历 ══════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}
.edu-card {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 36px 34px;
  position: relative;
}
.edu-card::before {
  content: 'SCHOOL FILE';
  position: absolute;
  top: -14px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--blue);
  color: var(--accent-text);
  padding: 4px 10px;
  border: 2px solid var(--ink);
}
.edu-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.edu-years { font-family: var(--font-mono); font-size: 14px; font-weight: 700; }
.edu-brand { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.edu-logo {
  width: 54px; height: 54px; flex: 0 0 auto;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--card);
  object-fit: contain; padding: 0;
  box-shadow: 3px 3px 0 rgba(var(--ink-rgb), .18);
}
.edu-school { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.2; }
.edu-major { font-size: 18px; font-weight: 700; margin-top: 4px; }
.edu-en {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-left: 8px;
}
.edu-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border);
  margin: 24px 0;
  background: var(--paper);
}
.edu-stat { padding: 16px 12px; text-align: center; border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 2px; }
.edu-stat:last-child { border-right: none; }
.edu-stat strong { font-family: var(--font-tech); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); line-height: 1; color: var(--orange); letter-spacing: 0.02em; }
.edu-stat span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.edu-stat em { font-style: normal; font-size: 13px; font-weight: 700; }
.edu-stat-blue strong { color: var(--blue); }
.edu-note { font-size: 15px; color: var(--ink-soft); margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--orange); }
.edu-note-extra { border-left-color: var(--blue); }

.edu-side { display: flex; flex-direction: column; gap: 20px; }
.edu-side-card {
  border: var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  position: relative;
  transition: transform .18s ease;
}
@media (hover: hover) {
  .edu-side-card:hover { transform: translate(-2px, -2px) rotate(-.5deg); }
}
.side-no {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--orange);
  color: var(--accent-text);
  border: 2px solid var(--ink);
  padding: 2px 7px;
  display: inline-block;
  margin-bottom: 8px;
}
.edu-side-card h4 { font-size: 17px; font-weight: 900; margin-bottom: 4px; }
.edu-side-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ══════════════ SEC.04 实习经历 ══════════════ */
.exp-list { display: flex; flex-direction: column; gap: 40px; }
.exp-card {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 34px 36px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .exp-card:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--ink); }
}
.exp-card::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 46px; height: 46px;
  background: var(--orange);
  border-right: var(--border);
  border-bottom: var(--border);
}
.exp-card::after {
  content: 'WORK';
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.08em;
}
.exp-card:nth-child(2)::before { background: var(--blue); }
.exp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-left: 40px;
}
.exp-company { font-family: var(--font-display); font-weight: 900; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.25; }
.exp-role { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin-top: 2px; }
.exp-time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--ink);
  padding: 6px 12px;
  background: var(--paper);
  white-space: nowrap;
}
.exp-points { display: flex; flex-direction: column; gap: 10px; }
.exp-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.exp-points li::before {
  content: '▪';
  position: absolute;
  left: 4px;
  color: var(--orange);
  font-size: 18px;
  line-height: 1.5;
}
.exp-points strong { color: var(--ink); }
.exp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* ══════════════ SEC.05 项目作品 ══════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
/* 5 卡布局：最后一张单卡限宽居中，避免孤卡靠左 */
.proj-grid > .proj-card:nth-child(5):nth-last-child(1) {
  grid-column: 1 / -1;
  max-width: calc(50% - 16px);
  justify-self: center;
}
.proj-card {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
  outline-offset: 4px;
}
.proj-card:nth-child(odd) { transform: rotate(-0.6deg); }
.proj-card:nth-child(even) { transform: rotate(0.6deg) translateY(10px); }
@media (hover: hover) {
  .proj-card:nth-child(odd):hover {
    transform: translate(-4px, -10px) rotate(-1.4deg);
    box-shadow: 14px 18px 0 var(--ink);
    z-index: 2;
  }
  .proj-card:nth-child(even):hover {
    transform: translate(4px, -4px) rotate(1.4deg);
    box-shadow: -10px 14px 0 var(--ink);
    z-index: 2;
  }
}
.proj-card:focus-visible { box-shadow: 14px 18px 0 var(--blue); }
.proj-media { position: relative; border-bottom: var(--border-thick); overflow: hidden; aspect-ratio: 16/9; background: var(--paper); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.proj-card:hover .proj-media img { transform: scale(1.045); }
.proj-no {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-tech);
  font-weight: 400;
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 10px;
  border: 2px solid var(--paper);
  letter-spacing: 0.06em;
  z-index: 2;
}
.proj-hover-ui {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 19, 17, 0);
  opacity: 0;
  transition: opacity .22s ease, background .22s ease;
  z-index: 1;
}
.proj-hover-btn {
  font-size: 15px;
  font-weight: 900;
  background: var(--orange);
  color: var(--accent-text);
  border: var(--border);
  padding: 12px 22px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(8px);
  transition: transform .22s ease;
}
.proj-hover-btn i { font-style: normal; font-size: 12px; }
@media (hover: hover) {
  .proj-card:hover .proj-hover-ui { opacity: 1; background: rgba(20, 19, 17, .32); }
  .proj-card:hover .proj-hover-btn { transform: translateY(0); }
}
.proj-card:focus-visible .proj-hover-ui { opacity: 1; background: rgba(20, 19, 17, .32); }
.proj-body { padding: 22px 24px 26px; }
.proj-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.proj-co {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 3px 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.proj-co::before { content: "▎"; color: var(--orange); margin-right: 5px; }
.proj-year { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.proj-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.proj-title-en {
  font-family: var(--font-tech);
  font-weight: 400;
  font-size: 0.56em;
  color: var(--blue);
  margin-left: 6px;
  vertical-align: 0.28em;
  letter-spacing: 0.08em;
}
.proj-desc { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.proj-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.proj-stack span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  border: 2px solid var(--ink);
  padding: 4px 9px;
  background: var(--paper);
}
.proj-hint {
  margin-top: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.proj-hint .pixel-arrow { color: var(--orange); }

/* ══════════════ SEC.06 专业技能 ══════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr);
  gap: 44px;
  align-items: start;
}
.skills-bars {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.skill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.skill-head span { font-size: 15px; font-weight: 700; }
.skill-head b {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 7px;
}
.skill-bar { height: 18px; border: var(--border); background: var(--paper); position: relative; }
.skill-bar i {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 0;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, #ff7c47 10px 20px);
  border-right: 2px solid var(--ink);
  transition: width 1s cubic-bezier(.22, .8, .3, 1);
}
.skill:nth-child(even) .skill-bar i {
  background: repeating-linear-gradient(-45deg, var(--blue) 0 10px, #5a75ec 10px 20px);
}
.skills-cloud {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 30px 30px 26px;
}
.cloud-title { font-family: var(--font-display); font-weight: 900; font-size: 24px; margin-bottom: 18px; }
.cloud-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skills-note {
  margin-top: 26px;
  border-top: 2px dashed var(--ink);
  padding-top: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.skills-note p { font-size: 14px; color: var(--ink-soft); }

/* ══════════════ SEC.07 获奖证书 ══════════════ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.cert-card {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .cert-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 8px 14px 0 var(--ink); }
}
.cert-media { position: relative; border-bottom: var(--border); overflow: hidden; aspect-ratio: 31/22; }
.cert-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cert-card:hover .cert-media img { transform: scale(1.04); }
.cert-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 4px 8px;
  transform: rotate(3deg);
}
.cert-stamp-blue { background: var(--blue); color: var(--accent-text); }
.cert-stamp-orange { background: var(--orange); color: var(--accent-text); }
.cert-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
}
.cert-card figcaption strong { font-size: 16.5px; }
.cert-card figcaption span { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }

.award-list { border: var(--border-thick); background: var(--card); box-shadow: var(--shadow); }
.award-list li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 2px solid var(--ink);
  transition: background .15s ease, padding-left .15s ease;
}
.award-list li:last-child { border-bottom: none; }
.award-list li:hover { background: var(--paper); padding-left: 32px; }
.award-year {
  font-family: var(--font-tech);
  font-weight: 400;
  font-size: 20px;
  color: var(--orange);
  letter-spacing: 0.05em;
}
.award-name { font-size: 17px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.35; }
.award-name span { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--blue); }
.award-list li::after {
  content: '✦';
  font-size: 16px;
  color: var(--orange);
}

/* ══════════════ SEC.08 联系方式 ══════════════ */
.section-contact {
  border-top: var(--border-thick);
  background: var(--paper);
  padding-bottom: 110px;
}
.contact-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.14;
  margin-bottom: 48px;
  text-shadow: 5px 5px 0 rgba(43, 75, 224, .28);
}
.contact-big em {
  font-style: normal;
  color: var(--orange);
  text-shadow: 5px 5px 0 rgba(var(--ink-rgb), .9);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  border: var(--border-thick);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .contact-card:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 9px 9px 0 var(--ink); }
}
.contact-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-soft); }
.contact-value { font-size: clamp(17px, 2vw, 22px); font-weight: 900; word-break: break-all; }
.contact-mini { font-family: var(--font-mono); font-size: 12px; color: var(--blue); font-weight: 700; }
.contact-arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--orange);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .18s ease, transform .18s ease;
}
.contact-card:hover .contact-arrow { opacity: 1; transform: translateX(0); }
.contact-card-plain { background: var(--ink); color: var(--paper); }
.contact-card-plain .contact-label { color: rgba(var(--paper-rgb), .55); }
.contact-card-plain .contact-mini { color: var(--orange); }
.contact-card-wide { grid-column: 1 / -1; }

.resume-cta {
  border: var(--border-thick);
  background: var(--orange);
  box-shadow: var(--shadow-lg);
  padding: 34px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--accent-text);
}
.resume-cta-text { flex: 1; min-width: 240px; }
.resume-cta-text strong { font-family: var(--font-display); font-weight: 900; font-size: 28px; display: block; line-height: 1.2; text-shadow: 3px 3px 0 rgba(var(--ink-rgb), .85); }
.resume-cta-text p { font-family: var(--font-mono); font-size: 13px; margin-top: 8px; color: rgba(var(--accent-text-rgb), .9); }
.resume-cta .btn { flex-shrink: 0; }
.resume-cta .btn-ghost { background: var(--paper); }
.resume-cta .btn-ghost:hover { background: var(--ink); }

/* ══════════════ FOOTER ══════════════ */
.footer {
  border-top: var(--border-thick);
  background: var(--ink);
  color: var(--paper);
  padding: 54px 24px 46px;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer .brand-mark { background: var(--orange); }
.footer-tagline { font-size: 14px; color: rgba(var(--paper-rgb), .72); }
.footer-meta {
  display: flex;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(var(--paper-rgb), .72);
  flex-wrap: wrap;
}
.footer .barcode-sm {
  filter: invert(1);
  opacity: .8;
}

/* ══════════════ 模态框 ══════════════ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 19, 17, .72); }
.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  animation: modal-in .28s cubic-bezier(.22, .9, .3, 1.2);
}
@keyframes modal-in {
  from { transform: translateY(26px) rotate(1deg); opacity: 0; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px; height: 44px;
  border: var(--border);
  background: var(--orange);
  color: var(--accent-text);
  font-size: 24px;
  line-height: 1;
  z-index: 3;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease;
}
.modal-close:hover { transform: rotate(90deg); }
.modal-media { position: relative; border-bottom: var(--border-thick); aspect-ratio: 16/9; overflow: hidden; background: var(--paper); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
/* ── 实战演示视频：有 video 字段的项目以插画作封面，点击按钮原地播放 ── */
.modal-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--ink);
  z-index: 1;
}
.video-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px 13px 18px;
  background: var(--orange); color: var(--accent-text);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: var(--font-cn); font-size: 16px; font-weight: 900; letter-spacing: 2px;
  z-index: 2;
  transition: transform .15s ease, box-shadow .15s ease;
}
.video-play:hover { transform: translate(-50%, -54%); box-shadow: 7px 9px 0 var(--ink); }
.video-play:active { transform: translate(-48%, -48%); box-shadow: 0 0 0 var(--ink); }
.video-play:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.video-play-icon {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
}
.video-play-dur { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0; opacity: .9; }
.modal-body { padding: 30px 32px 36px; }
.modal-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.modal-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.modal-desc { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.modal-block { margin-top: 26px; border-top: 2px dashed var(--ink); padding-top: 20px; }
.modal-block h4 {
  font-size: 17px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.modal-block ul { display: flex; flex-direction: column; gap: 8px; }
.modal-block ul li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px; }
.modal-block ul li::before { content: '▪'; position: absolute; left: 2px; color: var(--orange); }
.modal-stack { font-family: var(--font-mono); font-size: 14px; font-weight: 700; line-height: 1.8; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.modal-stats div {
  border: var(--border);
  background: var(--paper);
  padding: 14px 12px;
  text-align: center;
}
.modal-stats strong { display: block; font-family: var(--font-tech); font-weight: 400; font-size: 22px; color: var(--blue); }
.modal-stats span { font-size: 12.5px; color: var(--ink-soft); }

/* ══════════════ 分享长图预览 ══════════════ */
.share-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(var(--ink-rgb), .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.share-panel {
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  width: min(560px, 100%);
  max-height: 90vh;
  display: flex; flex-direction: column;
}
.share-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 16px;
  border-bottom: var(--border);
}
.share-head strong { font-size: 16px; font-weight: 900; letter-spacing: 1px; }
.share-close {
  width: 32px; height: 32px;
  background: var(--ink); color: var(--paper);
  border: none; font-size: 18px; font-weight: 700; cursor: pointer;
  transition: transform .15s ease;
}
.share-close:hover { transform: rotate(90deg); }
.share-tabs { display: flex; gap: 8px; padding: 12px 16px 0; }
.share-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  font-weight: 800; font-size: 14px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.share-tab.on { background: var(--ink); color: var(--paper); }
.share-tab-hint { font-size: 11px; font-weight: 500; opacity: .72; }
.share-scroll { overflow: auto; padding: 14px; flex: 1; min-height: 0; }
.share-scroll img { display: block; width: 100%; border: 2px solid var(--ink); }
.share-actions { display: flex; gap: 12px; padding: 14px 16px; border-top: var(--border); }
.share-actions .btn { flex: 1; justify-content: center; }

/* ══════════════ Toast ══════════════ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 90px);
  background: var(--ink);
  color: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 22px;
  z-index: 300;
  opacity: 0;
  transition: transform .3s cubic-bezier(.22, .9, .3, 1.2), opacity .3s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ══════════════ 滚动进场 ══════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.about-photo-wrap.reveal { transform: translateY(26px) rotate(0deg); }
.about-photo-wrap.reveal.in { transform: translateY(0) rotate(0deg); }

/* ══════════════ 响应式 ══════════════ */
/* 导航→汉堡菜单：10 项导航较长，仅在大屏展示完整导航，≤1280 收进汉堡 */
@media (max-width: 1280px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .nav.open {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: var(--border-thick);
    padding: 10px 24px 20px;
    gap: 2px;
    z-index: 99;
  }
  .nav.open a { font-size: 17px; padding: 12px 10px; border-bottom: 2px solid rgba(20,19,17,.12); }
  .brand-sub { display: none; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .hero-right { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photo-wrap { max-width: 420px; }
  .edu-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 32px; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* ── 档案卡字段：窄屏单列防溢出 ── */
  .idcard-fields { grid-template-columns: 1fr; }
  .idcard-fields .field { border-right: none; }
  .idcard-fields .field:nth-last-child(2) { border-bottom: 2px solid var(--ink); }
  .idcard-photo { width: 92px; height: 92px; }
  .idcard-title { font-size: 18px; }
  .field dd { font-size: 13px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 66px; }
  .section { padding: 48px 16px; }
  .section-head { gap: 10px; margin-bottom: 32px; }
  .section-no { font-size: 12px; padding: 5px 8px; }
  .section-coord { font-size: 10.5px; }
  .topbar-inner { padding: 0 16px; height: 60px; }
  .nav.open { top: 60px; padding: 10px 18px 18px; }
  .status-pill { display: none; }
  .topbar-right { gap: 10px; }
  .share-btn { padding: 7px 10px; font-size: 12px; letter-spacing: 0; gap: 4px; }
  .brand-mark { font-size: 22px; }

  /* ── 首屏 ── */
  .hero { padding: 90px 16px 80px; min-height: 100svh; }
  .hero-corner { display: none; }
  .hero-name-cn { font-size: clamp(56px, 14vw, 88px); text-shadow: 4px 4px 0 rgba(255, 90, 30, .85); }
  .hero-name-en { font-size: clamp(22px, 5.8vw, 36px); margin-top: 6px; }
  .hero-role { margin-top: 18px; font-size: 16px; }
  .hero-role .role-en { display: block; margin-top: 4px; }
  .hero-bio { margin-top: 14px; font-size: 14.5px; padding-left: 14px; max-width: 100%; }
  .hero-cta { gap: 10px; margin-top: 24px; }
  .hero-cta .btn { flex: 1; justify-content: center; font-size: 14px; padding: 14px 18px; }
  .hero-meta { font-size: 11.5px; gap: 8px; }
  .hero-scroll { bottom: 14px; font-size: 10px; }
  .hero-right { max-width: 100%; }

  /* ── 档案卡 ── */
  .idcard-head { padding: 14px; gap: 12px; }
  .idcard-photo { width: 80px; height: 80px; }
  .idcard-title { font-size: 17px; }
  .idcard-title span { font-size: 10px; }
  .idcard-no { font-size: 12px; }
  .idcard-status { font-size: 11px; }
  .idcard-fields .field { padding: 8px 14px; }
  .field dt { font-size: 9.5px; }
  .field dd { font-size: 12.5px; }
  .idcard-foot { padding: 12px 14px; gap: 10px; }
  .idcard-foot .barcode { flex: 0 0 72px; }
  .idcard-foot-code { font-size: 9.5px; }
  .idcard-chip { width: 28px; height: 22px; top: 10px; right: 12px; }
  .idcard-back-1 { transform: translate(10px, 10px) rotate(2.4deg); }
  .idcard-back-2 { transform: translate(20px, 20px) rotate(-1.6deg); }

  /* ── 关于我 ── */
  .about-photo-wrap { max-width: 100%; }
  .stamp-verified { width: 80px; height: 80px; right: -6px; top: -20px; }
  .stamp-verified span { font-size: 11px; }
  .about-lead { font-size: 18px; margin-bottom: 16px; }
  .about-body > p { font-size: 14.5px; margin-bottom: 14px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .about-stats li { padding: 16px 10px; }
  .about-stats li:nth-child(2n) { border-right: none; }
  .about-stats li:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .about-stats strong { font-size: 28px; }
  .about-stats span { font-size: 11.5px; }

  /* ── 求职意向 ── */
  .obj-grid { grid-template-columns: 1fr; gap: 16px; }
  .obj-main, .obj-card { grid-column: auto; grid-row: auto; }
  .obj-card { padding: 22px 20px; }
  .obj-main .obj-role { font-size: 28px; }
  .obj-role { font-size: 28px; }
  .obj-role-sm { font-size: 20px; }
  .obj-desc { font-size: 14px; }

  /* ── 教育经历 ── */
  .edu-card { padding: 24px 20px; }
  .edu-card::before { font-size: 10px; left: 18px; }
  .edu-card-head { gap: 8px; margin-bottom: 12px; }
  .edu-years { font-size: 12.5px; }
  .edu-brand { gap: 12px; }
  .edu-logo { width: 44px; height: 44px; }
  .edu-school { font-size: clamp(22px, 6vw, 30px); }
  .edu-major { font-size: 16px; }
  .edu-en { font-size: 10px; margin-left: 6px; }
  .edu-stats { margin: 18px 0; }
  .edu-stat { padding: 14px 10px; }
  .edu-stat strong { font-size: 24px; }
  .edu-stat em { font-size: 12px; }
  .edu-stat span { font-size: 10px; }
  .edu-note { font-size: 14px; padding-left: 12px; }
  .edu-side { gap: 14px; }
  .edu-side-card { padding: 18px 20px; }
  .edu-side-card h4 { font-size: 16px; }
  .edu-side-card p { font-size: 13.5px; }

  /* ── 工作经历 ── */
  .exp-list { gap: 28px; }
  .exp-card { padding: 24px 20px; }
  .exp-card::before { width: 40px; height: 40px; }
  .exp-card::after { top: 7px; left: 7px; font-size: 9px; }
  .exp-head {
    padding-left: 34px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }
  .exp-company { font-size: clamp(18px, 5vw, 24px); line-height: 1.3; }
  .exp-role { font-size: 13.5px; }
  .exp-time { font-size: 12px; padding: 5px 10px; align-self: flex-start; }
  .exp-points { gap: 8px; }
  .exp-points li { font-size: 14px; padding-left: 22px; }
  .exp-points li::before { font-size: 16px; }
  .exp-tags { gap: 6px; margin-top: 16px; }

  /* ── 项目作品 ── */
  .proj-grid { grid-template-columns: 1fr; gap: 28px; }
  .proj-grid > .proj-card:nth-child(5):nth-last-child(1) { max-width: none; justify-self: stretch; }
  .proj-card:nth-child(even) { transform: rotate(0.6deg) translateY(0); }
  .proj-body { padding: 18px 20px 22px; }
  .proj-title { font-size: clamp(20px, 5.5vw, 26px); }
  .proj-title-en { font-size: 0.54em; }
  .proj-desc { font-size: 14px; }
  .proj-stack { gap: 6px; margin-top: 14px; }
  .proj-stack span { font-size: 11px; padding: 4px 8px; }
  .proj-meta { gap: 8px; }
  .proj-hint { font-size: 12px; margin-top: 32px; }
  .proj-no { font-size: 13px; padding: 5px 8px; }

  /* ── 专业技能 ── */
  .skills-bars { padding: 24px 20px; gap: 18px; }
  .skill-head span { font-size: 13.5px; }
  .skill-head b { font-size: 12px; }
  .skills-cloud { padding: 24px 20px 22px; }
  .cloud-title { font-size: 20px; margin-bottom: 14px; }
  .cloud-tags { gap: 8px; }
  .skills-note { margin-top: 20px; padding-top: 14px; }
  .skills-note p { font-size: 13px; }

  /* ── 获奖证书 ── */
  .cert-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .cert-card figcaption { padding: 14px 16px; }
  .cert-card figcaption strong { font-size: 15px; }
  .cert-card figcaption span { font-size: 11.5px; }
  .award-list { margin-top: 0; }
  .award-list li { grid-template-columns: 56px 1fr; gap: 12px; padding: 14px 18px; }
  .award-list li::after { display: none; }
  .award-year { font-size: 18px; }
  .award-name { font-size: 15px; }
  .award-name span { font-size: 11.5px; }

  /* ── 联系方式 ── */
  .contact-big { font-size: clamp(28px, 8vw, 44px); margin-bottom: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .contact-card { padding: 20px 22px; }
  .contact-value { font-size: 16px; }
  .contact-arrow { display: none; }
  .contact-card-plain .contact-value { font-size: 15px; }

  /* ── 简历下载 CTA ── */
  .resume-cta { padding: 24px 20px; gap: 18px; }
  .resume-cta-text strong { font-size: 22px; }
  .resume-cta-text p { font-size: 12px; }
  .resume-cta .btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }
  .resume-cta .btn-lg { font-size: 15px; padding: 14px 20px; }

  /* ── 页脚 ── */
  .footer { padding: 40px 16px 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-tagline { font-size: 13px; }
  .footer-meta { gap: 16px; font-size: 11px; }

  /* ── 横幅 ── */
  .marquee { padding: 10px 0; }
  .marquee-track span { font-size: 16px; letter-spacing: 0.06em; }

  /* ── 模态框 ── */
  .modal { padding: 12px; }
  .modal-panel { max-height: 94vh; }
  .modal-close { width: 38px; height: 38px; font-size: 20px; top: 10px; right: 10px; }
  .modal-media { aspect-ratio: 16/9; }
  .video-play { padding: 10px 18px 10px 14px; font-size: 14px; letter-spacing: 1.5px; gap: 9px; }
  .video-play-icon { border-top-width: 8px; border-bottom-width: 8px; border-left-width: 13px; }
  .video-play-dur { font-size: 11px; }
  .modal-body { padding: 20px 18px 26px; }
  .modal-title { font-size: clamp(20px, 5vw, 28px); }
  .modal-desc { font-size: 14px; }
  .modal-block { margin-top: 20px; padding-top: 16px; }
  .modal-block h4 { font-size: 15px; }
  .modal-block ul li { font-size: 13.5px; padding-left: 18px; }
  .modal-stack { font-size: 12.5px; }
  .modal-stats { grid-template-columns: 1fr; gap: 10px; }
  .modal-stats strong { font-size: 20px; }
  .modal-stats span { font-size: 11.5px; }

  /* ── 标签通用 ── */
  .tag { font-size: 11px; padding: 6px 9px; }
  .tag-lg { font-size: 12px; padding: 7px 10px; }

  /* ── 按钮 ── */
  .btn { font-size: 14px; padding: 13px 20px; gap: 8px; }
  .btn-lg { font-size: 15px; padding: 16px 24px; }

  /* ── Toast ── */
  .toast { bottom: 20px; font-size: 13px; padding: 11px 18px; }
}

/* ══════════════ 无障碍：减少动画 ══════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ══════════════ 访问计数器 · 复古里程表（右下角） ══════════════
   原理：页面每次渲染触发 JS 累计计数并写入 localStorage，
   跨会话保留，间接反映该页面的历史访问热度（各设备独立计数） */
.hit-counter {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90; /* 低于模态框(200)/Toast(300)，打开详情时被遮罩自然覆盖 */
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 8px 10px 10px;
  user-select: none;
  cursor: default;
}
.hit-counter-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  white-space: nowrap;
  margin-bottom: 6px;
}
.hit-counter-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border: 2px solid var(--ink);
  flex: none;
  animation: hitBlink 2.2s steps(1, end) infinite;
}
@keyframes hitBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .2; } }
.hit-counter-digits { display: flex; gap: 3px; }
.hit-digit {
  font-family: var(--font-tech);
  font-size: 19px;
  line-height: 1;
  min-width: 19px;
  text-align: center;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 5px 0 4px;
}
.hit-digit.dim { color: rgba(var(--ink-rgb), .22); } /* 前导零淡化，仿真实里程表 */

@media (max-width: 640px) {
  .hit-counter { right: 12px; bottom: 12px; padding: 6px 8px 8px; }
  .hit-counter-head { font-size: 9px; margin-bottom: 5px; }
  .hit-digit { font-size: 16px; min-width: 16px; padding: 4px 0 3px; }
}
@media print { .hit-counter { display: none; } }

/* ════════════════════════════════════════════════════════════
   风格系列 · 按日期每日自动轮换（骨架不变，配色质感切换）
   轮换脚本见 index.html <head>；?theme=xxx 可强制指定
   ════════════════════════════════════════════════════════════ */

/* ① archive 档案纸（默认：米白 + 黑框 + 橙蓝） */
:root, [data-theme="archive"] {
  --paper: #F3EEE2; --card: #FFFCF4; --ink: #141311; --ink-soft: #4A463F;
  --orange: #FF5A1E; --blue: #2B4BE0; --green: #1FA658;
  --ink-rgb: 20, 19, 17; --paper-rgb: 243, 238, 226;
  --accent-text: #ffffff; --accent-text-rgb: 255, 255, 255;
}

/* ③ blueprint 工程蓝图（淡蓝图纸 + 藏青墨 + 印章红） */
[data-theme="blueprint"] {
  --paper: #E9F1F8; --card: #F5FAFE; --ink: #123A5C; --ink-soft: #48678A;
  --orange: #E03E36; --blue: #1D6FB8; --green: #2E8B57;
  --ink-rgb: 18, 58, 92; --paper-rgb: 233, 241, 248;
  --accent-text: #ffffff; --accent-text-rgb: 255, 255, 255;
}

/* ④ newsprint 复古新闻纸（米黄 + 纯黑 + 报头红） */
[data-theme="newsprint"] {
  --paper: #F4EDDA; --card: #FAF5E6; --ink: #1C1812; --ink-soft: #59503E;
  --orange: #C4112C; --blue: #1E3A5F; --green: #2F7D46;
  --ink-rgb: 28, 24, 18; --paper-rgb: 244, 237, 218;
  --accent-text: #ffffff; --accent-text-rgb: 255, 255, 255;
}

/* ⑤ noir 午夜霓虹（午夜紫黑 + 品红 + 电光青） */
[data-theme="noir"] {
  --paper: #100E1A; --card: #1A1729; --ink: #ECE7FF; --ink-soft: #8F87AD;
  --orange: #FF3D8F; --blue: #22D3EE; --green: #9EE86B;
  --ink-rgb: 236, 231, 255; --paper-rgb: 16, 14, 26;
  --accent-text: #1A0A14; --accent-text-rgb: 26, 10, 20;
}

/* ══════════════ 风格控制台（私人彩蛋 · 默认隐藏） ══════════════
   三连击页脚「FILE END — EOF」唤出（见 main.js）；10 秒无操作自动隐藏 */
.theme-ctl {
  position: fixed;
  left: 18px;
  bottom: 114px; /* 访问计数器（高约 80 + 18 边距）上方 */
  z-index: 89;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  visibility: hidden;
}
.theme-ctl.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.theme-ctl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.theme-ctl-btn:hover { background: var(--paper); }
.theme-ctl-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.theme-ctl-btn b { color: var(--orange); }
.theme-ctl-btn.off b { color: var(--ink-soft); }

@media (max-width: 640px) {
  .theme-ctl { left: 12px; bottom: 104px; }
  .theme-ctl-btn { font-size: 9px; padding: 8px 10px; }
}
@media print { .theme-ctl { display: none; } }

/* ══════════════ CP.AI 简历问答助手（入口 + 面板） ══════════════ */
.ai-fab {
  position: fixed; right: 18px; bottom: 106px; z-index: 95;
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: var(--border);
  box-shadow: 4px 4px 0 var(--blue);
  padding: 9px 13px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ai-fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--blue); }
.ai-fab:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--blue); }
.ai-fab-mark {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  background: var(--ink); color: var(--card); padding: 5px 7px 6px;
}
.ai-fab-mark i { font-style: normal; color: var(--orange); }
.ai-fab-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; font-weight: 900; font-size: 14.5px; }
.ai-fab-txt small { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--ink-soft); letter-spacing: .1em; }
.ai-fab-lamp {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--ink);
  animation: aiPulse 1.7s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 166, 88, .45); }
  50% { box-shadow: 0 0 0 6px rgba(31, 166, 88, 0); }
}

.ai-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  width: 386px; max-width: calc(100vw - 24px);
  height: min(590px, calc(100vh - 36px));
  display: flex; flex-direction: column;
  background: var(--card); border: var(--border);
  box-shadow: var(--shadow-lg);
}
.ai-panel.opening { animation: aiPop .3s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes aiPop { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.ai-head { display: flex; align-items: center; gap: 9px; background: var(--ink); color: var(--card); padding: 10px 12px; }
.ai-head-mark { font-family: var(--font-mono); font-weight: 700; font-size: 14px; background: var(--card); color: var(--ink); padding: 2px 6px 3px; }
.ai-head-mark i { font-style: normal; color: var(--orange); }
.ai-head-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; opacity: .78; flex: 1; }
.ai-head-status { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; border: 2px solid var(--card); padding: 2px 8px; white-space: nowrap; }
.ai-lamp { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: aiBlinkStatus 1.2s infinite; }
@keyframes aiBlinkStatus { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ai-close {
  font-family: var(--font-mono); font-size: 20px; font-weight: 700; line-height: 1;
  background: transparent; color: var(--card); border: 2px solid var(--card);
  width: 26px; height: 26px; cursor: pointer; flex: 0 0 auto;
  transition: background .12s ease, color .12s ease;
}
.ai-close:hover { background: var(--orange); border-color: var(--orange); color: var(--card); }

.ai-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 13px; background: var(--paper); }
.ai-msg { max-width: 88%; display: flex; flex-direction: column; gap: 5px; animation: aiMsgIn .24s ease; }
@keyframes aiMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ai-msg-bot { align-self: flex-start; }
.ai-msg-user { align-self: flex-end; align-items: flex-end; }
.ai-msg-name { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .12em; padding-left: 2px; }
.ai-bubble {
  border: 2px solid var(--ink); background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 12px; font-size: 13.5px; line-height: 1.62;
  word-break: break-word;
}
.ai-bubble b { color: var(--orange); }
.ai-msg-user .ai-bubble { background: var(--blue); color: #fff; }
.ai-msg-user .ai-bubble b { color: #fff; }
/* 答案依据来源（后端返回 sources[] 时渲染） */
.ai-src-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; padding-top: 7px; border-top: 2px dashed rgba(var(--ink-rgb), .28); }
.ai-src-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--ink-soft); text-transform: uppercase; }
.ai-src { font-size: 10.5px; line-height: 1.4; padding: 2px 6px; background: var(--card); border: 2px solid var(--ink); color: var(--ink-soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-typing .ai-bubble { display: flex; align-items: center; gap: 5px; padding: 12px 14px; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: aiBlinkDot 1s infinite; }
.ai-dot:nth-child(2) { animation-delay: .18s; }
.ai-dot:nth-child(3) { animation-delay: .36s; }
@keyframes aiBlinkDot { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.ai-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 11px 14px 0; background: var(--paper); border-top: 2px solid var(--ink); }
.ai-chip {
  font-family: inherit; font-size: 12px; font-weight: 700;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); padding: 4px 10px; cursor: pointer;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.ai-chip:hover { background: var(--ink); color: var(--card); transform: translate(-1px, -1px); }

.ai-inputrow { display: flex; gap: 9px; padding: 12px 14px; background: var(--card); border-top: var(--border); }
#aiInput {
  flex: 1; resize: none; outline: none;
  border: 2px solid var(--ink); background: var(--card);
  font: inherit; font-size: 13.5px; line-height: 1.5;
  padding: 9px 11px; max-height: 88px;
  transition: box-shadow .15s ease;
}
#aiInput:focus { box-shadow: 3px 3px 0 var(--blue); }
.ai-send {
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  background: var(--orange); color: var(--card);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: 0 15px; cursor: pointer; flex: 0 0 auto;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.ai-send:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.ai-send:disabled { opacity: .45; cursor: not-allowed; }
.ai-foot { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; color: var(--ink-soft); text-align: center; padding: 6px 10px 7px; background: var(--card); border-top: 2px solid var(--ink); }

/* 主动打招呼：浮标脉冲 + 预告气泡 + 开场引导按钮 */
.ai-fab-pulse { animation: aiFabPulse .85s ease-out 2; }
@keyframes aiFabPulse {
  0% { box-shadow: 4px 4px 0 var(--blue); }
  45% { box-shadow: 0 0 0 12px rgba(43, 75, 224, .16), 4px 4px 0 var(--blue); }
  100% { box-shadow: 4px 4px 0 var(--blue); }
}
.ai-fab-tip {
  position: fixed; right: 18px; bottom: 176px; z-index: 96;
  max-width: 216px; padding: 9px 11px;
  background: var(--card); border: var(--border); box-shadow: var(--shadow-sm);
  font-size: 12.5px; font-weight: 700; line-height: 1.45; color: var(--ink);
  animation: aiTipIn .36s cubic-bezier(.2, .9, .3, 1.1) both;
}
.ai-fab-tip::after {
  content: ''; position: absolute; right: 22px; bottom: -8px;
  width: 13px; height: 13px; background: var(--card);
  border-right: var(--border); border-bottom: var(--border);
  transform: rotate(45deg);
}
@keyframes aiTipIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ai-greet-acts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.ai-greet-btn {
  font-family: var(--font-cn); font-size: 11.5px; font-weight: 700;
  padding: 5px 8px; background: var(--card);
  border: 2px solid var(--ink); color: var(--ink); cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.ai-greet-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--card); transform: translate(-1px, -1px); }
.ai-greet-btn:active { transform: translate(1px, 1px); }
/* 自动开场时收起底部快捷栏：开场按钮就是唯一入口，避免两排问题打架 */
.ai-panel.ai-quiet .ai-quick { display: none; }

@media (max-width: 620px) {
  .ai-fab { right: 12px; bottom: 96px; padding: 8px 11px; }
  .ai-fab-mark { font-size: 12px; }
  .ai-fab-txt { font-size: 13px; }
  .ai-fab-tip { right: 12px; bottom: 160px; max-width: 176px; font-size: 12px; padding: 8px 9px; }
  .ai-panel { left: 12px; right: 12px; bottom: 12px; width: auto; height: min(72vh, 620px); }
}

/* ══════════════ SEC.05 个人作品（水平无缝自动滚动） ══════════════ */
.works-scroller {
  position: relative;
  width: 100vw;               /* 全幅延伸到页面窗口边缘 */
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  --ws-fade: min(160px, 14vw); /* 两端渐隐宽度：从窗口边缘起，桌面约160px、移动自适应 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--ws-fade), #000 calc(100% - var(--ws-fade)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--ws-fade), #000 calc(100% - var(--ws-fade)), transparent 100%);
  padding: 6px 0 10px; /* 给 hover 抬升阴影留出空间 */
}
.works-track {
  display: flex;
  width: max-content;
  animation: worksScroll var(--scroll-duration, 40s) linear infinite;
  will-change: transform;
}
.works-scroller:hover .works-track { animation-play-state: paused; }
.works-set { display: flex; gap: 22px; padding-left: var(--ws-pad, 0px); padding-right: 22px; }
@keyframes worksScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.work-card {
  position: relative;
  display: flex; flex-direction: column;
  width: 380px;
  flex: 0 0 auto;
  background: var(--card);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.work-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.work-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.work-no {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--card); background: var(--orange);
  border: 2px solid var(--ink);
  padding: 2px 7px; white-space: nowrap;
}
.work-title { font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1.3; word-break: keep-all; }
.work-title-en { display: block; font-family: var(--font-tech); font-weight: 400; font-size: 11px; letter-spacing: .14em; color: var(--blue); margin-top: 3px; }
.work-desc { flex: 1; font-size: 14px; line-height: 1.72; color: var(--ink-soft); margin-bottom: 14px; }
.work-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.work-tech span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  border: 2px solid var(--ink); background: var(--paper);
  padding: 3px 8px; white-space: nowrap;
}
.work-links { display: flex; flex-wrap: wrap; gap: 10px; }
.work-link {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700;
  border: 2px solid var(--ink);
  padding: 8px 14px;
  text-decoration: none; color: var(--ink);
  background: var(--card);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.work-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.work-gh { background: var(--ink); color: var(--card); }
.work-gh:hover { background: var(--orange); color: var(--card); }

/* 预告卡（规划中项目） */
.work-upcoming { padding-top: 56px; }
.work-badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; white-space: nowrap;
  color: var(--card); background: var(--orange);
  border: 2px solid var(--ink); padding: 3px 9px;
}
.work-soon {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  border: 2px dashed var(--ink-soft); padding: 8px 14px;
}

@media (max-width: 1024px) {
  .work-card { width: 360px; }
}
@media (max-width: 620px) {
  .works-set { gap: 16px; padding-right: 16px; }
  .work-card { width: min(92vw, 360px); padding: 18px 16px; }
  .work-upcoming { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .works-scroller { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .works-track { animation: none; }
}
