:root {
  /* === 1. Color System (Strictly 3 Chromatic Families per @natsume spec) === */
  --bg-page: #F7F8FA;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F4F8;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;

  --text-primary: #16202E;
  --text-body: #2D3B4E;
  --text-secondary: #4E5E73;
  --text-muted: #64748B;

  --brand-primary: #1E436E;
  --brand-primary-hover: #163354;
  --brand-primary-soft: #EDF3FA;
  --brand-primary-border: #BDD1E8;

  --accent-teal: #1F6E66;
  --accent-teal-dot: #2A8C82;
  --accent-teal-soft: #EAF5F3;
  --accent-teal-border: #BCE0DA;

  /* === 2. Typography === */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "HarmonyOS Sans SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-print: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", sans-serif;

  /* === 3. Layout & Spacing (Desktop Default) === */
  --container-max: 960px;
  --container-px: 32px;
  --section-gap: 36px;
  --card-gap: 16px;
  --card-padding-y: 24px;
  --card-padding-x: 28px;

  /* === 4. Radius & Elevation === */
  --radius-card: 14px;
  --radius-control: 10px;
  --radius-control-inner: 7px;
  --radius-tag: 6px;
  --radius-pill: 999px;
  --radius-avatar-desktop: 18px;
  --radius-avatar-mobile: 14px;

  --shadow-card: 0 1px 3px rgba(22, 32, 46, 0.04),
    0 4px 12px rgba(22, 32, 46, 0.03);
  --shadow-card-hover: 0 4px 16px rgba(30, 67, 110, 0.07),
    0 1px 4px rgba(22, 32, 46, 0.04);
  --shadow-card-active: 0 6px 20px rgba(30, 67, 110, 0.09);
  --shadow-segment-thumb: 0 1px 3px rgba(22, 32, 46, 0.08),
    0 1px 2px rgba(22, 32, 46, 0.04);

  /* === 5. Restrained Motion === */
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 160ms;
  --duration-normal: 220ms;
}

@media (max-width: 767px) {
  :root {
    --container-px: 16px;
    --section-gap: 28px;
    --card-gap: 12px;
    --card-padding-y: 18px;
    --card-padding-x: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.num-tabular,
time,
.contact-value,
.metric-badge,
.pillar-index {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.sep {
  color: var(--text-muted);
  margin: 0 6px;
}

.page-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 36px var(--container-px) 64px;
}

/* ==================== 首屏 Hero Card ==================== */
.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.hero-top-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar identity actions"
    "avatar body     actions";
  column-gap: 24px;
  row-gap: 4px;
  align-items: start;
}

.hero-avatar-col {
  grid-area: avatar;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-identity-block {
  grid-area: identity;
  min-width: 0;
}

.hero-body-block {
  grid-area: body;
  min-width: 0;
}

.avatar-frame {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-avatar-desktop);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow var(--duration-normal) var(--ease-out-smooth);
}

.avatar-frame.is-badge {
  background-color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(30, 67, 110, 0.12);
}

.avatar-frame.is-badge img,
.avatar-frame.is-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* @natsume 三庭五眼精准裁切参数 */
.avatar-frame.is-photo {
  background-color: #DCE5EF;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(22, 32, 46, 0.08), 0 0 0 1px #CBD5E1;
}

.avatar-frame.is-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.04);
  display: block;
}

.avatar-caption-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--duration-fast) var(--ease-out-smooth);
}

.avatar-caption-btn:hover {
  color: var(--brand-primary);
}

.hero-identity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-name {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.hero-target-role {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-primary);
}

.availability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.status-pill.is-ready {
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border-color: var(--accent-teal-border);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal-dot);
  flex-shrink: 0;
}

.hero-value-prop {
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 640px;
  margin-bottom: 10px;
  text-wrap: pretty;
}

.hero-subcopy {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand-primary);
  padding: 8px 12px;
  border-radius: 0 var(--radius-tag) var(--radius-tag) 0;
  max-width: 640px;
  margin-bottom: 16px;
  text-wrap: pretty;
  transition: opacity var(--duration-fast) var(--ease-out-smooth);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  padding: 6px 12px;
  font-size: 13.5px;
  color: var(--text-primary);
}

.contact-chip-label {
  color: var(--text-secondary);
  font-size: 13px;
}

.contact-chip-action {
  appearance: none;
  border: none;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-tag);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out-smooth),
    color var(--duration-fast) var(--ease-out-smooth);
}

.contact-chip-action:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.privacy-toggle-btn {
  appearance: none;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out-smooth),
    color var(--duration-fast) var(--ease-out-smooth);
}

.privacy-toggle-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.hero-action-col {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 172px;
}

.btn {
  appearance: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out-smooth),
    border-color var(--duration-fast) var(--ease-out-smooth),
    color var(--duration-fast) var(--ease-out-smooth);
}

.btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
}

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--brand-primary-border);
  color: var(--brand-primary);
}

.btn-ghost:hover {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
}

/* ==================== 通用 Section 标题 ==================== */
.resume-section {
  margin-bottom: var(--section-gap);
}

.section-header-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.section-h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-h2::before {
  content: "";
  display: inline-block;
  width: 3.5px;
  height: 18px;
  border-radius: 99px;
  background: var(--brand-primary);
  flex-shrink: 0;
}

.section-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==================== 4 大能力支柱网格 ==================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pillar-card {
  appearance: none;
  text-align: left;
  font-family: inherit;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px 11px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-out-smooth),
    border-color var(--duration-fast) var(--ease-out-smooth),
    background-color var(--duration-fast) var(--ease-out-smooth),
    box-shadow var(--duration-fast) var(--ease-out-smooth);
}

.pillar-card:hover {
  border-color: var(--brand-primary-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.pillar-card.is-active {
  background: var(--brand-primary-soft);
  border: 1.5px solid var(--brand-primary);
  box-shadow: var(--shadow-card-active);
}

.pillar-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pillar-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-tag);
}

.pillar-card.is-active .pillar-index {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.pillar-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal-dot);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out-smooth);
}

.pillar-card.is-active .pillar-active-dot {
  opacity: 1;
}

.pillar-title {
  font-size: 13.8px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  word-break: keep-all;
}

.pillar-card.is-active .pillar-title {
  color: var(--brand-primary);
}

.pillar-subtitle {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.btn-reset-filter {
  appearance: none;
  border: 1px solid var(--brand-primary-border);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.btn-reset-filter:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.pillar-insight-box {
  margin-top: 12px;
  background: var(--accent-teal-soft);
  border: 1px solid var(--accent-teal-border);
  border-left: 3.5px solid var(--accent-teal);
  border-radius: var(--radius-control);
  padding: 12px 16px;
  color: var(--accent-teal);
  font-size: 14px;
  line-height: 1.65;
}

.pillar-insight-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-match-count {
  font-size: 12px;
  font-weight: 600;
  background: #FFFFFF;
  border: 1px solid var(--accent-teal-border);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

/* ==================== 全局分段控制器（Segmented Control） ==================== */
.perspective-bar-section {
  margin-bottom: 28px;
}

.perspective-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.perspective-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perspective-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.perspective-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  height: 38px;
  padding: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
}

.segment-item {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-control-inner);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-normal) var(--ease-out-smooth),
    color var(--duration-fast) var(--ease-out-smooth),
    box-shadow var(--duration-normal) var(--ease-out-smooth);
}

.segment-item:hover {
  color: var(--text-primary);
}

.segment-item.is-active {
  background: var(--bg-surface);
  color: var(--brand-primary);
  font-weight: 600;
  box-shadow: var(--shadow-segment-thumb);
}

/* ==================== 经历与技能卡片 ==================== */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.skills-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.exp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: var(--card-padding-y) var(--card-padding-x);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity var(--duration-normal) var(--ease-out-smooth),
    border-color var(--duration-normal) var(--ease-out-smooth),
    box-shadow var(--duration-normal) var(--ease-out-smooth);
}

.exp-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--brand-primary);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-smooth);
}

/* 能力支柱命中高亮态 */
.exp-card.is-matched {
  border-color: var(--brand-primary-border);
  box-shadow: var(--shadow-card-active);
}

.exp-card.is-matched::before {
  opacity: 1;
}

/* 未命中柔和降噪态（严禁 display:none 导致页面塌陷跳动） */
.exp-card.is-dimmed {
  opacity: 0.50;
  box-shadow: none;
  border-color: #EAEFF5;
}

.exp-card.is-dimmed:hover,
.exp-card.is-dimmed:focus-within {
  opacity: 0.88;
}

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.exp-card-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px;
}

.exp-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.exp-card-sub {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
}

.exp-card-period {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.card-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.micro-badge {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.pillar-link-tag {
  appearance: none;
  border: 1px solid var(--brand-primary-border);
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  padding: 4px 10px;
  border-radius: var(--radius-tag);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out-smooth),
    color var(--duration-fast) var(--ease-out-smooth);
}

.pillar-link-tag:hover,
.pillar-link-tag.is-active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #FFFFFF;
}

/* 联动命中时的匹配解读提示条（Match Insight Banner） */
.match-insight-banner {
  background: var(--accent-teal-soft);
  border: 1px solid var(--accent-teal-border);
  border-left: 2.5px solid var(--accent-teal);
  border-radius: var(--radius-tag);
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

/* [P1 去重] 卡片处于能力支柱联动命中态时，顶部已展示松石青匹配提示条，隐藏下方重复的迁移锚点框 */
.exp-card.is-matched .hr-anchor-box {
  display: none;
}

/* [P2 桌面三栏技能卡标签单行排版优化，消除单字掉行] */
@media (min-width: 861px) {
  .skills-cards-grid .exp-card {
    padding: 22px 20px;
  }

  .skills-cards-grid .pillar-link-tag {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* 大白话层排版 */
.plain-layer {
  max-width: 68ch;
}

.plain-oneliner {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.72;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-wrap: pretty;
}

.plain-block {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 8px;
  text-wrap: pretty;
}

.plain-block:last-child {
  margin-bottom: 0;
}

.plain-block-label {
  font-weight: 600;
  color: var(--brand-primary);
}

.plain-actions-list {
  list-style: none;
  margin: 6px 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border-subtle);
}

.plain-actions-list li {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--text-body);
  text-wrap: pretty;
}

.plain-actions-list li + li {
  margin-top: 6px;
}

.plain-actions-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* HR 专业细节层排版 */
.hr-layer {
  max-width: 70ch;
}

.star-list {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.star-list li {
  position: relative;
  padding-left: 15px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-body);
}

.star-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-primary);
}

.star-list li + li {
  margin-top: 8px;
}

.star-lead {
  font-weight: 600;
  color: var(--text-primary);
}

.hr-anchor-box {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--brand-primary);
  background: var(--bg-subtle);
  border-radius: var(--radius-tag);
  padding: 8px 12px;
}

.hr-anchor-box strong {
  font-weight: 600;
}

/* 技能卡专用原始核实基线 */
.skill-raw-line {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--bg-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-tag);
  margin-bottom: 10px;
}

.skill-summary-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-body);
  text-wrap: pretty;
}

/* 单卡片底部独立对照切换栏 */
.card-footer-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.btn-card-compare {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-tag);
  transition: background-color var(--duration-fast) var(--ease-out-smooth),
    color var(--duration-fast) var(--ease-out-smooth);
}

.btn-card-compare:hover,
.btn-card-compare.is-open {
  background: var(--bg-subtle);
  color: var(--brand-primary);
}

.card-compare-drawer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}

.compare-drawer-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  margin-bottom: 8px;
}

/* 页脚与轻提示（严格复用松石青/石板蓝色系，零第4杂色） */
.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  background: var(--accent-teal-soft);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal-border);
  box-shadow: var(--shadow-card-hover);
  padding: 10px 16px;
  border-radius: var(--radius-control);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out-smooth),
    transform var(--duration-fast) var(--ease-out-smooth);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 响应式手机端适配 (375px 重点精调) ==================== */
@media (max-width: 860px) {
  .skills-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .page-container {
    padding: 20px var(--container-px) 44px;
  }

  .hero-card {
    padding: 20px 16px;
    margin-bottom: 22px;
  }

  .hero-top-layout {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "avatar  identity"
      "body    body"
      "actions actions";
    column-gap: 14px;
    row-gap: 12px;
    align-items: start;
  }

  .avatar-frame {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-avatar-mobile);
  }

  .hero-name {
    font-size: 26px;
  }

  .hero-target-role {
    font-size: 16px;
  }

  .hero-identity-head {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
  }

  .availability-row {
    gap: 6px;
    margin-bottom: 2px;
  }

  .status-pill {
    font-size: 12.5px;
  }

  .hero-value-prop {
    font-size: 14.5px;
  }

  .hero-action-col {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-action-col .btn {
    padding: 0 10px;
    font-size: 13px;
  }

  /* 4 大能力支柱：手机端严格 2×2 双列网格，不隐藏不横滑 */
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pillar-card {
    padding: 13px 11px;
  }

  .pillar-title {
    font-size: 13.5px;
    text-wrap: balance;
  }

  .pillar-subtitle {
    font-size: 12px;
  }

  .section-h2 {
    font-size: 18px;
  }

  .perspective-bar {
    padding: 14px 16px;
  }

  .segmented-control {
    width: 100%;
  }

  .exp-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .exp-card-title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .exp-card-sub > .sep:first-child {
    display: none;
  }

  .exp-card-title {
    font-size: 16px;
  }

  .exp-card-sub,
  .exp-card-period {
    font-size: 13px;
  }

  .plain-oneliner,
  .plain-block {
    font-size: 14.5px;
    line-height: 1.72;
  }

  .star-list li {
    font-size: 14px;
  }

  .micro-badge,
  .pillar-link-tag {
    font-size: 12px;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* ==================== 网页直接 Ctrl+P 打印清洁兜底样式 ==================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }

  body {
    background: #FFFFFF;
    font-size: 9.5pt;
    line-height: 1.42;
  }

  .page-container {
    max-width: 100%;
    padding: 0;
  }

  .hero-action-col,
  .avatar-caption-btn,
  .pillars-section,
  .perspective-bar-section,
  .card-footer-actions,
  .privacy-toggle-btn,
  .contact-chip-action,
  .toast {
    display: none !important;
  }

  .hero-card,
  .exp-card {
    box-shadow: none !important;
    border-color: #CBD5E1 !important;
    padding: 10px 14px !important;
    margin-bottom: 8px !important;
    opacity: 1 !important;
    break-inside: avoid;
  }

  .skills-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
