/*
[Change Log]
Date: 2026-10-02
Author: Reginald Zeng / Claude Code
Version: V1.13
Description: V1.13：系统架构图卡片（整行宽的图 + 三条设计要点）；灯箱宽图模式（电脑上放大，手机上左右滑动）。V1.12 内容深化：3D 图标、彩色标签、小标题、工作经历头部卡、彩色表头职责卡、核心成果卡、四条原则、系统大卡、分组项目小卡、成果样本、项目详情弹窗（手机底部弹出）、技能分类标签、教育卡与持续学习；删除旧的项目卡、技能打点、学习卡样式。V1.11 分页式：main 占满一屏、同一时间只显示一页（内容居中，岗位匹配页从上往下排）、页底翻页条、换页淡入、打印时所有页都印出；去掉交替底色。V1.10 首页改版：首屏照片卡与匹配入口、数字卡点击展开口径、版块标题左侧色条、闪光点整行卡片、技能区雷达在左、项目前后对比条、右侧圆点导航、电脑上一个版块一屏、手机首屏小照片。V1.7 头像位改为照片 / 姓氏字标（V1.3：匹配器样式；V1.1：意向条 / 事实红线；V1.0：设计令牌 / 响应式 / 打印 / 灯箱）。
*/
/* =========================================================
   个人简历站样式 —— 设计令牌
   ========================================================= */
:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-alt: #F4F4F2;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --border: #E7E5E4;
  --accent: #0D9488;        /* 图形/图表主色 */
  --accent-text: #0F766E;   /* 文字级主色（对比度达标） */
  --accent-soft: #CCE8E4;
  --accent-bg: #F0FAF8;
  --accent-bright: #14B8A6; /* 照片描边等大面积装饰色 */
  --warn: #D97706;
  --warn-bg: #FEF6EA;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 32px -12px rgba(15, 23, 42, .18);
  --font: -apple-system, "PingFang SC", "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --nav-h: 68px;           /* 吸顶导航高度：整屏版块、锚点跳转都按它让位 */
  --z-nav: 50;
  --z-toast: 60;
  --z-lightbox: 70;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
button { font-family: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(250, 250, 249, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; font-size: 17px; }
.brand-mark { flex: none; display: flex; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.brand-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-bright);
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-alt); }
.nav-links a.active { color: var(--accent-text); background: var(--accent-bg); font-weight: 600; }
.nav-links a.nav-cta {
  background: var(--ink); color: #fff; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #1E293B; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 12px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.hero-greet { font-size: clamp(34px, 5vw, 52px); line-height: 1.2; letter-spacing: .01em; margin-bottom: 6px; }
.hero-name { color: var(--ink-3); font-weight: 600; white-space: nowrap; }   /* 名字不拆行 */
/* 方向词：逐字打出 + 闪烁光标 */
.hero-role {
  font-size: clamp(18px, 2.3vw, 23px); font-weight: 700; color: var(--accent-text);
  min-height: 1.6em; margin-bottom: 12px;
}
.hero-role .caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 4px; vertical-align: -.16em;
  background: currentColor; animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* ---------- 求职意向条 ---------- */
.intent-bar {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  background: var(--surface); border: 1px solid var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 10px 16px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.intent-item { display: inline-flex; align-items: baseline; gap: 7px; }
.intent-label { font-size: 12.5px; color: var(--ink-3); }
.intent-value { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.intent-sep { width: 1px; height: 14px; background: var(--border); align-self: center; }
.hero-intro { color: var(--ink-2); max-width: 36em; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1E293B; box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink-3); box-shadow: var(--shadow); }
.btn-soft { background: var(--accent-bg); color: var(--accent-text); border-color: var(--accent-soft); }
.btn-soft:hover { background: #E2F4F1; border-color: var(--accent); box-shadow: var(--shadow); }
.btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* 首屏的岗位匹配器入口 */
.hero-match {
  max-width: 620px; margin-top: 20px; padding: 14px 18px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-match-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.hero-match-title { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hero-match-title svg { color: var(--accent); }
.hero-match-badge {
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--accent-text); background: var(--accent-bg); border: 1px solid var(--accent-soft);
}
.hero-match-row { display: flex; gap: 10px; }
.hero-match textarea {
  flex: 1; min-width: 0; height: 46px; padding: 11px 14px; resize: none; overflow: hidden;
  font-family: inherit; font-size: 14.5px; line-height: 22px; color: var(--ink);
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.hero-match textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--surface); }
.hero-match .btn { flex: none; border-radius: var(--radius-sm); }
.hero-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.hero-presets-label { font-size: 13px; color: var(--ink-3); }
.hero-presets .jd-chip { padding: 5px 12px; font-size: 12.5px; }

/* 首屏照片卡：竖版照片 + 青绿描边 + 轻微倾斜，左下角点阵装饰 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; left: 2%; bottom: -28px; width: 136px; height: 116px;
  background-image: radial-gradient(var(--accent-soft) 2.4px, transparent 2.8px);
  background-size: 17px 17px;
}
.photo-card {
  position: relative; width: min(330px, 100%); aspect-ratio: 4 / 5; padding: 7px;
  background: var(--surface); border: 4px solid var(--accent-bright); border-radius: 24px;
  box-shadow: 0 32px 60px -30px rgba(15, 23, 42, .5), var(--shadow);
  transform: rotate(-2.5deg); transition: transform .45s ease;
}
.photo-card:hover { transform: rotate(0); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.photo-mono {
  width: 100%; height: 100%; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-bg); color: var(--accent-text); font-size: 96px; font-weight: 800;
}

/* ---------- 数据横幅（首屏下半部分） ---------- */
.hero-stats { margin-top: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 20px 18px; text-align: center; box-shadow: var(--shadow);
}
.stat-value { font-size: 34px; font-weight: 800; color: var(--accent-text); line-height: 1.1; }
.stat-value .suffix { font-size: 20px; font-weight: 700; margin-left: 2px; }
.stat-label { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.stat-note { margin-top: 4px; color: var(--ink-3); font-size: 12px; }
.stat-tile[role="button"] { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.stat-tile[role="button"]:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-lift); }
.stat-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stat-basis {
  display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.6; color: var(--ink-2); text-align: left;
}
.stat-tile.show-basis .stat-basis { display: block; }
.stats-footnote { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 10px; }

/* ---------- 区块通用 ---------- */
.section { padding: 48px 0 40px; }
.section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(24px, 3vw, 30px); line-height: 1.3; margin-bottom: 12px;
}
.section-title::before {
  content: ""; flex: none; width: 5px; height: 1.05em; border-radius: 3px; background: var(--accent);
}
.section-sub { color: var(--ink-2); margin-bottom: 8px; }

/* ---------- 多视角闪光点 ---------- */
.persp-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.persp-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--border);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.persp-tab:hover { border-color: var(--accent); color: var(--accent-text); }
.persp-tab[aria-selected="true"] {
  background: var(--accent-text); color: #fff; border-color: var(--accent-text);
  box-shadow: 0 8px 18px -10px rgba(15, 118, 110, .7);
}
.tab-i3d { width: 22px; height: 22px; }
.persp-panel { display: grid; gap: 16px; }
.point-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; display: flex; align-items: center; gap: 22px;
  animation: card-in .4s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.point-i3d { width: 44px; height: 44px; }
.point-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
}
.point-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.point-desc { color: var(--ink-2); font-size: 15px; }

.radar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); text-align: center;
}
.radar-title { font-weight: 700; margin-bottom: 6px; }
.radar-note { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
#radar { position: relative; }
#radar svg { margin: 0 auto; }
.radar-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.4;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  transform: translate(-50%, -130%); opacity: 0; transition: opacity .15s;
}
.radar-tip.show { opacity: 1; }

/* ---------- 工作经历 ---------- */
.timeline { list-style: none; position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding: 0 0 26px 8px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -24px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
}
.tl-period { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-org { font-size: 17px; font-weight: 700; margin: 2px 0; }
.tl-role { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-text); background: var(--accent-bg); border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; }
.tl-highlight { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.tl-desc { font-size: 14px; color: var(--ink-2); }

.duties-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duty-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s;
}
.duty-top { padding: 16px 20px 12px; background: linear-gradient(135deg, #E6F0FF, #D4E4FF); }
.duty-card:nth-child(2) .duty-top { background: linear-gradient(135deg, #DDF6EF, #C6EEE3); }
.duty-card:nth-child(3) .duty-top { background: linear-gradient(135deg, #FFF3DF, #FFE6C2); }
.duty-card:nth-child(4) .duty-top { background: linear-gradient(135deg, #EEEAFF, #DED6FF); }
.duty-card ul { padding: 14px 20px 16px; }
.duty-card:hover { box-shadow: var(--shadow-lift); border-color: var(--accent-soft); }
.duty-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.duty-icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: rgba(255, 255, 255, .75); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
}
.duty-title { font-size: 16px; font-weight: 700; }
.duty-en { font-size: 11px; letter-spacing: .12em; color: var(--ink-2); }
.duty-card ul { list-style: none; }
.duty-card li {
  position: relative; padding-left: 16px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px;
}
.duty-card li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}

/* ---------- 通用：3D 图标、标签、小标题、详情按钮 ---------- */
.i3d { display: block; flex: none; object-fit: contain; }
.nw { white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
}
.chip-teal { color: var(--accent-text); background: var(--accent-bg); border-color: var(--accent-soft); }
.chip-violet { color: #5B4BB7; background: #F1EEFF; border-color: #DCD5FF; }
.chip-blue { color: #1D4ED8; background: #EEF4FF; border-color: #D3E1FF; }
.sub-title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  font-size: 19px; line-height: 1.35; margin: 34px 0 14px; padding-left: 12px;
  border-left: 4px solid var(--accent-soft);
}
.sub-note { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.btn-detail {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--accent-text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--accent-soft);
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-detail:hover { background: var(--accent-bg); border-color: var(--accent); }
.btn-detail-strong { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn-detail-strong:hover { color: #fff; background: #1E293B; border-color: #1E293B; }
.btn-detail:focus-visible, .ach-card:focus-visible, .sample-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- 工作经历：头部卡 + 核心成果 ---------- */
.exp-head { margin-top: 22px; }
.exp-head-card {
  display: flex; align-items: center; gap: 22px; padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.exp-avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-bright);
}
.exp-title { font-size: 20px; font-weight: 700; }
.exp-org { margin: 2px 0 6px; font-size: 14.5px; font-weight: 600; color: var(--accent-text); }
.exp-summary { font-size: 15px; color: var(--ink-2); }
.exp-tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.exp-tag-label { min-width: 4.5em; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ach-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 18px 18px;
  font: inherit; color: inherit; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.ach-card:hover { box-shadow: var(--shadow-lift); border-color: var(--accent-soft); transform: translateY(-2px); }
.ach-title { margin-top: 4px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.ach-desc { font-size: 13.5px; color: var(--ink-3); }
.ach-more { margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--accent-text); }

/* ---------- 数字化项目页 ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.method-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.method-title { margin-bottom: 4px; font-size: 15.5px; font-weight: 700; }
.method-desc { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.systems-note { margin: -4px 0 14px; font-size: 15px; color: var(--ink-2); }
.systems-note strong { color: var(--ink); }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sys-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.sys-head { display: flex; align-items: center; gap: 14px; }
.sys-i3d { padding: 6px; border-radius: 14px; background: var(--accent-bg); }
.sys-name { flex: 1; min-width: 0; }
.sys-name h4 { font-size: 19px; line-height: 1.3; }
.sys-name span { font-size: 13px; color: var(--ink-3); }
.sys-badge {
  flex: none; align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #5B4BB7; background: #F1EEFF; border: 1px solid #DCD5FF;
}
.sys-desc { font-size: 14.5px; color: var(--ink-2); }
.sys-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sys-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px;
  text-align: center; border: 1px solid var(--border); border-radius: 12px;
}
.sys-stat b { font-size: 20px; line-height: 1.25; color: var(--accent-text); white-space: nowrap; }
.sys-stat span { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.sys-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.sys-tech span {
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  color: #5B4BB7; background: #F4F1FF; border: 1px solid #E4DEFF;
}
.sys-value-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.sys-value-head span { font-weight: 700; }
.sys-value-head em {
  padding: 3px 12px; border-radius: 999px; font-style: normal; font-size: 12.5px; font-weight: 700;
  color: var(--accent-text); background: var(--accent-bg); border: 1px solid var(--accent-soft);
}
.sys-values { list-style: none; display: grid; gap: 8px; }
.sys-values li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-2); }
.sys-values li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.sys-values b { color: var(--accent-text); }

/* 两套系统怎么连起来：整行宽的架构图 + 三条设计要点 */
.arch-card {
  margin: 0; padding: 18px 18px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.arch-figure {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  font: inherit; background: #fff; border: 1px solid var(--border); border-radius: 12px;
}
.arch-figure img { display: block; width: 100%; height: auto; }
.arch-figure:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.arch-zoom {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(15, 23, 42, .72);
  opacity: 0; transition: opacity .2s;
}
.arch-figure:hover .arch-zoom, .arch-figure:focus-visible .arch-zoom { opacity: 1; }
@media (hover: none) { .arch-zoom { opacity: 1; } }   /* 触屏没有悬停，一直显示 */
.arch-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.arch-points li { display: flex; align-items: flex-start; gap: 10px; }
.arch-points b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--ink); }
.arch-points p { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.arch-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.arch-note { font-size: 12.5px; color: var(--ink-3); }

/* 分组项目小卡：渐变表头 + 3D 图标 */
.pcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}
.pcard:hover { box-shadow: var(--shadow-lift); border-color: var(--accent-soft); transform: translateY(-3px); }
.pcard-head { display: flex; align-items: center; justify-content: center; height: 112px; background: linear-gradient(135deg, #DDF6EF, #C4EEE6); }
.pcard:nth-child(3n+2) .pcard-head { background: linear-gradient(135deg, #E6F0FF, #D2E3FF); }
.pcard:nth-child(3n+3) .pcard-head { background: linear-gradient(135deg, #EEEAFF, #DDD5FF); }
.pcard-i3d { filter: drop-shadow(0 8px 10px rgba(15, 23, 42, .15)); }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.pcard-title { font-size: 17px; }
.pcard-sub { font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.pcard-desc { font-size: 14px; color: var(--ink-2); }
/* 带对比条的卡片横跨两列：左边文字，右边对比条 */
.pcard-wide { grid-column: span 2; }
.pcard-wide .pcard-body { display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: 24px; row-gap: 8px; }
.pcard-wide .pcard-body > * { grid-column: 1; }
.pcard-wide .compare {
  grid-column: 2; grid-row: 1 / span 6; align-self: center;
  padding: 0 0 0 22px; border-top: 0; border-left: 1px solid var(--border);
}

/* 成果样本 */
.sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sample-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0; font: inherit; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.sample-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-alt); }
.sample-title { padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); text-align: center; }

/* 前后对比条：灰柱 = 以前，主色柱 = 现在。#CBD5E1 与主色经 dataviz 校验区分度 ΔE 28.6；
   灰柱对白底不足 3:1，由每行的文字和数值补足信息 */
.compare { padding-top: 10px; border-top: 1px solid var(--border); }
.compare-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.compare-row + .compare-row { margin-top: 5px; }
.compare-label { font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.compare-line { display: flex; align-items: center; gap: 8px; }
.compare-bar {
  flex: none; width: calc((100% - 5.5em) * var(--r)); min-width: 6px; height: 8px;
  background: #CBD5E1; border-radius: 0 4px 4px 0;   /* 数据端圆角，基线端平直 */
}
.compare-value { font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.compare-row.is-now .compare-label { color: var(--ink-2); font-weight: 600; }
.compare-row.is-now .compare-bar { background: var(--accent); }
.compare-row.is-now .compare-value { color: var(--ink); font-weight: 700; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags span {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-alt); color: var(--ink-2); border: 1px solid var(--border);
}
.btn-demo {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--accent-bg); color: var(--accent-text);
  border: 1px solid var(--accent-soft); cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.btn-demo:hover { background: #E2F4F1; border-color: var(--accent); box-shadow: var(--shadow); }
.btn-demo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- 右侧圆点导航（宽屏电脑） ---------- */
.dot-nav {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: var(--z-nav);
  display: none; flex-direction: column; gap: 2px;
}
.dot-nav a { position: relative; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; }
.dot-nav a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1;
  transition: background-color .2s, transform .2s;
}
.dot-nav a:hover::before { background: var(--ink-3); }
.dot-nav a.active::before { background: var(--accent); transform: scale(1.4); }
.dot-nav a::after {
  content: attr(data-label); position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  font-size: 12.5px; color: #fff; background: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.dot-nav a:hover::after, .dot-nav a:focus-visible::after { opacity: 1; }
.dot-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-radius: 50%; }
@media (min-width: 1200px) and (min-height: 640px) { .dot-nav { display: flex; } }

/* ---------- 项目详情弹窗 ---------- */
.detail {
  position: fixed; inset: 0; z-index: var(--z-lightbox); padding: 24px;
  display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .55);
}
.detail[hidden] { display: none; }
.detail-panel {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
  padding: 28px 30px 30px; background: var(--surface); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45); animation: detail-in .25s ease both;
}
@keyframes detail-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.detail-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: var(--surface-alt); color: var(--ink-2); cursor: pointer;
}
.detail-close:hover { background: var(--border); color: var(--ink); }
.detail-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; margin-bottom: 6px; }
.detail-head h3 { font-size: 21px; line-height: 1.3; }
.detail-head p { font-size: 13.5px; color: var(--ink-3); }
.detail-panel h4 { margin: 18px 0 6px; font-size: 15px; color: var(--accent-text); }
.detail-panel p, .detail-panel li { font-size: 14.5px; color: var(--ink-2); }
.detail-panel ul { list-style: none; display: grid; gap: 6px; }
.detail-panel li { position: relative; padding-left: 16px; }
.detail-panel li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}
.detail-panel .compare { margin-top: 14px; }

/* ---------- 演示灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(15, 23, 42, .82);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.lightbox[hidden] { display: none; }
.lightbox-body { max-width: min(920px, 100%); text-align: center; }
.lightbox-body video, .lightbox-body img {
  max-width: 100%; max-height: 78vh; border-radius: 12px;
  background: #000; box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .5);
  margin: 0 auto;
}
.lightbox-caption { color: #E2E8F0; font-size: 14px; margin-top: 12px; }
/* 宽图（架构图）：电脑上放得更大；手机上见响应式部分，按原比例左右滑动看 */
.lightbox.is-wide .lightbox-body { max-width: min(1400px, 100%); }
.lightbox.is-wide .lightbox-body img { max-height: 82vh; background: #fff; }
.lightbox-error { color: #FCA5A5; font-size: 14px; padding: 40px 24px; }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 0; color: #fff; cursor: pointer; padding: 8px;
  border-radius: 50%; transition: background-color .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .15); }
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- 技能 ---------- */
/* 左边能力雷达，右边分类标签（不打分） */
.skills-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px; margin-top: 26px; align-items: start; }
.skills-grid .radar-card { display: flex; flex-direction: column; justify-content: center; }
.skill-groups { display: grid; gap: 14px; }
.skill-group {
  padding: 16px 20px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.skill-group h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 16px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 教育与成长 ---------- */
.edu-card {
  display: flex; align-items: flex-start; gap: 22px; margin-top: 22px; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.edu-i3d { padding: 8px; border-radius: 16px; background: var(--accent-bg); }
.edu-school { font-size: 20px; line-height: 1.35; }
.edu-period { margin: 2px 0 10px; font-size: 14.5px; font-weight: 600; color: var(--accent-text); }
.edu-line { margin-bottom: 6px; font-size: 14.5px; color: var(--ink-2); }
.edu-line b { color: var(--ink); }
.edu-certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.growth-list { display: grid; gap: 12px; }
.growth-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.growth-i3d { padding: 6px; border-radius: 12px; background: var(--surface-alt); }
.growth-title { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.growth-meta { font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.growth-desc { font-size: 14px; color: var(--ink-2); }

/* ---------- 联系 ---------- */
.section-contact { padding-bottom: 88px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); text-align: center; cursor: pointer;
  transition: box-shadow .25s, border-color .25s;
}
.contact-card:hover { box-shadow: var(--shadow-lift); border-color: var(--accent-soft); }
.contact-icon {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--accent-bg); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
}
.contact-label { font-weight: 700; margin-bottom: 4px; }
.contact-value { font-size: 14px; color: var(--ink-2); word-break: break-all; }
.contact-hint { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding: 28px 24px; text-align: center; }
.footer-slogan { font-weight: 600; margin-bottom: 6px; }
.footer-integrity {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--accent-text);
  background: var(--accent-bg); border: 1px solid var(--accent-soft);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 8px;
}
.footer-integrity svg { flex: none; }
.footer-copy { font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.todo-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3); cursor: pointer; user-select: none;
}

/* ---------- 待填项标记 ---------- */
.todo-flag {
  display: inline-block; font-size: .78em; font-weight: 600; line-height: 1.3;
  color: var(--warn); background: var(--warn-bg); border: 1px dashed #EBC182;
  border-radius: 6px; padding: 2px 8px; margin: 0 2px; vertical-align: baseline;
}
body.show-todos .todo-flag { border-style: solid; border-color: var(--warn); }
body.show-todos [data-todo="true"] { outline: 2px dashed var(--warn); outline-offset: 3px; border-radius: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: var(--z-toast); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pcard:hover, .ach-card:hover { transform: none; }
  .detail-panel { animation: none; }
  .photo-card { transition: none; }
  .hero-role .caret, .point-card, .page-in { animation: none; }
}

/* ---------- 分页：main 至少占满一屏；当前页撑满剩余高度、内容垂直居中，翻页条贴在下方 ---------- */
main { display: flex; flex-direction: column; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); }
main > section { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
main > section > .container { width: 100%; }
main > section[hidden] { display: none; }        /* 上一条的 display: flex 会盖掉 hidden，这里补回来 */
#matcher { justify-content: flex-start; }          /* 匹配页从上往下排，出报告时输入框不跳位 */
.page-in { animation: page-in .35s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* 页底翻页：上一页 / 第几页 / 下一页 */
.pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 24px 16px;
}
.pager > :first-child { justify-self: start; }
.pager > :last-child { justify-self: end; }
.pager a {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border);
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.pager a:hover { color: var(--accent-text); border-color: var(--accent); box-shadow: var(--shadow); }
.pager a.pager-next { color: #fff; background: var(--ink); border-color: var(--ink); }
.pager a.pager-next:hover { background: #1E293B; color: #fff; }
.pager-count { font-size: 13px; color: var(--ink-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-visual::before { left: calc(50% - 150px); bottom: -20px; width: 104px; height: 88px; }
  .photo-card { width: 230px; }
  .hero-match { max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid, .pcard-grid, .sample-grid { grid-template-columns: repeat(2, 1fr); }
  .system-grid { grid-template-columns: 1fr; }
  .arch-points { grid-template-columns: 1fr; gap: 12px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid .radar-card { grid-row: auto; }
  /* 7 个导航项在 960px 以下一行放不下，收成汉堡菜单 */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 0 32px; }
  /* 小照片放在名字右侧，首屏留给方向、意向和简介 */
  .hero-grid { position: relative; gap: 0; }
  .hero-visual { position: absolute; top: 0; right: 24px; order: 0; }
  .hero-visual::before { display: none; }
  .photo-card { width: 92px; padding: 3px; border-width: 3px; border-radius: 14px; }
  .photo-card img { border-radius: 9px; }
  .hero-head { min-height: 124px; padding-right: 104px; }   /* 给右上角小照片（约 115px 高）留出位置 */
  .hero-presets .jd-chip { padding: 9px 14px; }
  .point-card { padding: 18px; gap: 14px; }
  .pager { padding: 10px 16px 18px; }
  .pager a { padding: 10px 14px; font-size: 14px; }
  .pager-word { display: none; }
  .point-i3d { width: 36px; height: 36px; }
  .hero-match-row { flex-direction: column; }
  .hero-match .btn { justify-content: center; }
  .section { padding: 36px 0 28px; }
  /* 触控目标 ≥44px */
  .persp-tab { padding: 12px 18px; }
  .nav-links a { padding: 12px 13px; }
  .intent-bar { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .skills-grid, .contact-grid, .duties-grid, .method-grid, .pcard-grid, .ach-grid { grid-template-columns: 1fr; }
  .pcard-wide { grid-column: auto; }
  .pcard-wide .pcard-body { display: flex; }
  .pcard-wide .compare { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .sys-card { padding: 18px; }
  .sys-stats { grid-template-columns: repeat(2, 1fr); }
  .exp-head-card, .edu-card { padding: 18px; gap: 16px; }
  .exp-avatar, .sys-badge { display: none; }   /* 手机上省掉：导航和首页已有照片，技术标签里已有 React / FastAPI */
  .edu-card { flex-direction: column; }
  /* 详情在手机上从底部弹出 */
  .detail { padding: 0; align-items: flex-end; }
  .detail-panel { max-height: 92vh; padding: 22px 18px 26px; border-radius: 18px 18px 0 0; }
  .skill-group { grid-template-columns: 1fr; }
  .arch-card { padding: 12px 12px 14px; }
  /* 架构图在手机上放大：按原比例（约 980px 宽）显示，左右滑动看全图 */
  .lightbox.is-wide { padding: 64px 0 24px; }
  .lightbox.is-wide .lightbox-body { width: 100%; }
  .lightbox.is-wide #lightbox-media { overflow-x: auto; overscroll-behavior-x: contain; padding: 0 16px; }
  .lightbox.is-wide .lightbox-body img { width: 980px; max-width: none; max-height: none; }
  .lightbox.is-wide .lightbox-caption { padding: 0 16px; }
}

/* ---------- AI 岗位匹配器 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.matcher-card {
  background: var(--surface); border: 1px solid var(--accent-soft);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.matcher-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.matcher-title { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; color: var(--ink); }
.matcher-title svg { color: var(--accent-text); }
.matcher-badge {
  font-size: 12px; font-weight: 600; color: var(--accent-text);
  background: var(--accent-bg); border: 1px solid var(--accent-soft);
  border-radius: 999px; padding: 4px 12px;
}
.matcher-sub { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; }
#jd-input {
  width: 100%; resize: vertical; min-height: 110px;
  font-family: var(--font); font-size: 14.5px; line-height: 1.6; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px;
}
#jd-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.matcher-ops {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px;
}
.jd-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-chip {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s;
}
.jd-chip:hover { color: var(--accent-text); border-color: var(--accent); background: var(--accent-bg); }
.jd-chip-clear { color: var(--ink-3); }
.match-steps { margin-top: 14px; color: var(--accent-text); font-size: 14px; font-weight: 600; }
.matcher-report { margin-top: 20px; border-top: 1px dashed var(--border); padding-top: 20px; }
.match-empty { color: var(--ink-2); font-size: 14.5px; background: var(--surface-alt); border-radius: var(--radius-sm); padding: 16px 18px; }
.match-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.match-ring { flex: none; }
.match-verdict { flex: 1; min-width: 220px; }
.match-tag {
  display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px;
  padding: 4px 14px; margin-bottom: 8px;
}
.match-tag-high { color: #FFFFFF; background: var(--accent); }
.match-tag-mid { color: var(--accent-text); background: var(--accent-bg); border: 1px solid var(--accent-soft); }
.match-tag-low { color: var(--ink-2); background: var(--surface-alt); border: 1px solid var(--border); }
.match-text { color: var(--ink-2); font-size: 14.5px; }
.match-dims { display: grid; gap: 10px; margin-bottom: 18px; }
.dim-row { display: grid; grid-template-columns: 170px 1fr 44px; align-items: center; gap: 12px; }
.dim-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.dim-weight { font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }
.dim-bar { height: 8px; background: var(--surface-alt); border-radius: 4px; overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.dim-score { font-size: 13.5px; font-weight: 700; color: var(--accent-text); text-align: right; font-variant-numeric: tabular-nums; }
.dim-na { grid-column: 2 / 4; font-size: 12.5px; color: var(--ink-3); }
.match-h { font-size: 15px; margin: 16px 0 8px; }
.match-list { list-style: none; display: grid; gap: 6px; }
.match-list li {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.6;
  background: var(--surface-alt); border-radius: 8px; padding: 8px 12px;
  border-left: 3px solid var(--accent);
}
.match-gaps li { border-left-color: var(--warn); background: var(--warn-bg); }
.match-bonus li { border-left-color: var(--accent-soft); }
.m-term {
  display: inline-block; font-weight: 700; color: var(--ink);
  margin-right: 8px;
}
.m-anchor { font-size: 12.5px; white-space: nowrap; }
.match-nogap { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
.match-foot {
  margin-top: 18px; display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.match-foot p { flex: 1; min-width: 240px; font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
@media (max-width: 640px) {
  .matcher-card { padding: 20px 16px; }
  .dim-row { grid-template-columns: 1fr 44px; }
  .dim-label { grid-column: 1 / 3; }
  .jd-chip { padding: 10px 14px; }
  .matcher-ops .btn { width: 100%; justify-content: center; }
}

/* ---------- 打印样式：一键变纸质简历 ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-alt: #fff; }
  body { font-size: 12px; line-height: 1.5; }
  .nav-wrap, .dot-nav, .pager, .hero-actions, .hero-match, .persp-tabs, .todo-switch, .toast, .nav-toggle,
  .btn-demo, .btn-detail, .ach-more, .detail, .lightbox, .section-matcher { display: none !important; }
  main { display: block; min-height: 0; }
  main > section[hidden] { display: block !important; }
  .page-in { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .hero { padding: 18px 0; }
  .hero-visual::before { display: none; }
  .photo-card { width: 150px; transform: none; box-shadow: none; }
  /* 方向词打印完整标题，不印打字动画的中间状态 */
  .hero-role .sr-only { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
  .hero-role .role-text, .hero-role .caret { display: none; }
  .stat-tile, .point-card, .duty-card, .pcard, .sys-card, .arch-card, .ach-card, .skill-group, .edu-card, .contact-card, .radar-card {
    box-shadow: none; border-color: #ddd; break-inside: avoid;
  }
  .arch-zoom { display: none; }
  .pcard-grid, .system-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .persp-panel > .point-card { display: flex !important; }
  .todo-flag { display: inline-block !important; }
  a { color: var(--ink); }
}
