/* ==================================================
   v2 改版样式（2026-10）
   职业定位首屏 · 主导项目案例卡 · 方案推演 · 原型 · 职业航线
   AI 产品体验 · 阅读器正文排版（流程图 / 分工线 / 四栏表）
   只新增，不改 cc.css；颜色全部用站点已有的变量，深浅色自动跟随
   ================================================== */

/* ---------- 头部：品牌副标题 + 简历按钮 ---------- */
.brand-role {
  font-size: 0.82em;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav-resume {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-resume:hover {
  background: var(--hl);
  color: var(--white);
  transform: translateY(-1px);
}

.site-header:not(.scrolled) .nav-resume {
  background: #f3ead9;
  color: #1e1a13;
}

/* ---------- 首屏：主张 + 数字带 ---------- */
.hero-quote {
  letter-spacing: 0.06em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 14px 34px;
  margin: 26px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 250, 242, 0.22);
  max-width: 760px;
}

.hero-stats div {
  margin: 0;
}

.hero-stats dt {
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-link {
  align-self: center;
  margin-left: 6px;
  color: rgba(255, 250, 242, 0.82);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.35);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.hero-link:hover {
  color: #fffaf2;
  border-color: #e0684a;
}

.hero-life {
  margin: 20px 0 0;
  color: rgba(255, 250, 242, 0.6);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ---------- 通用：板块内小标题 ---------- */
.sub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin: 0 0 20px;
}

.sub-head h3 {
  margin: 0;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: clamp(20px, 2vw, 24px);
}

.sub-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-works .sub-head:not(:first-of-type) {
  margin-top: 64px;
}

/* ---------- 01 主导项目 ---------- */
.grid-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.case .post-image {
  aspect-ratio: 16 / 9.5;
}

.case .post-image img {
  object-fit: cover;
  object-position: center top;
}

.case-role {
  display: block;
  font-family: "Segoe UI", -apple-system, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case-role b {
  font-weight: 600;
  color: var(--hl);
}

.case h3 {
  font-size: clamp(20px, 1.9vw, 25px);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
}

.case-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.case-facts b {
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: 21px;
  line-height: 1.15;
  color: var(--ink);
}

/* 方案推演：小一号的横卡 */
.sims {
  margin-top: 56px;
}

.sims-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-bottom: 18px;
}

.sims-head h3 {
  margin: 0;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: clamp(20px, 2vw, 24px);
}

.sims-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid-sims {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sim {
  padding: 0 0 0 calc(42% + 20px);
  min-height: 250px;
}

.sim .post-image {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  margin: 0;
  aspect-ratio: auto;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.sim .post-image img {
  object-fit: cover;
  object-position: 62% center;
  background: #f3ecdf;
}

.sim .case-role {
  margin-top: 22px;
  padding-right: 22px;
}

.sim h3 {
  margin: 10px 0 8px;
  padding-right: 22px;
  font-size: 18px;
}

.sim p {
  padding-right: 22px;
  font-size: 14px;
}

.sim .card-foot {
  margin: 0;
  padding: 14px 22px 20px 0;
}

/* ---------- 02 能跑的作品 ---------- */
.grid-protos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.proto {
  padding: 22px;
}

.proto .post-image {
  margin: -22px -22px 18px;
}

.proto h3 {
  font-size: 18.5px;
}

.proto p {
  font-size: 14.5px;
}

.work-notes {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid rgba(255, 250, 242, 0.32);
  border-radius: 999px;
  color: rgba(255, 250, 242, 0.85);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.work-notes:hover {
  border-color: #e0684a;
  color: #fffaf2;
}

.work-actions {
  align-items: center;
}

/* ---------- 03 关于我：职业航线 ---------- */
.inline-link {
  margin-left: 4px;
  color: var(--hl);
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

.career {
  margin-top: 40px;
  padding: 24px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(var(--ghost) 1px, transparent 1.2px) 0 0 / 22px 22px,
    var(--card);
}

.career-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.career-head h3 {
  margin: 0;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: 20px;
}

.career-head span {
  color: var(--muted);
  font-family: "Segoe UI", -apple-system, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.career-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 航线：三站之间的虚线 */
.career-route::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 7px;
  border-top: 2px dashed var(--hl);
  opacity: 0.55;
}

.career-route li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 26px;
}

.cr-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--hl);
  border-radius: 50%;
  background: var(--card-solid);
}

.career-route li.now .cr-dot {
  background: var(--hl);
  box-shadow: 0 0 0 0 rgba(176, 62, 36, 0.45);
  animation: cr-pulse 2.4s ease-out infinite;
}

@keyframes cr-pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(176, 62, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(176, 62, 36, 0);
  }
}

.career-route time {
  font-family: "Segoe UI", -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.career-route b {
  font-size: 18px;
}

.career-route em {
  font-style: normal;
  color: var(--accent-strong);
  font-size: 13.5px;
}

.career-route p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.section .rhythm {
  margin-top: 40px;
}

/* ---------- 04 AI 笔记：能力地图 ---------- */
.skill-map {
  margin-top: 56px;
}

.skill-map .graph-wrap {
  margin: 0;
}

/* ---------- 05 AI 产品体验 ---------- */
.grid-lab {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-lab .post-image {
  aspect-ratio: 16 / 10;
}

.section-lab .post-image img {
  object-fit: cover;
}

.lab-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: "Segoe UI", -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lab-head span {
  color: var(--hl);
}

.section-lab .post h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.verdict {
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.verdict.good {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.verdict.wait {
  border-color: var(--hl);
  color: var(--hl);
}

/* ---------- 生活 ---------- */
.travel-epigraph {
  margin: 10px 0 0;
  font-size: 17px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.travel-epigraph::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  margin: 0 12px 6px 0;
  background: var(--hl);
  vertical-align: middle;
}

.travel-how {
  font-size: 14px;
  opacity: 0.75;
}

/* 带海报 / 实拍的竖卡完整显示 */
.section-interests .bento-tall .post-image img {
  object-fit: cover;
}

/* ---------- 联系与页脚 ---------- */
.contact-chip-strong {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.contact-chip-strong:hover,
.contact-chip-strong:focus-visible {
  border-color: var(--hl);
  background: var(--hl);
  color: var(--white);
}

.footer-note {
  margin: 4px auto 10px;
  max-width: 46em;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- 阅读器正文 ---------- */
.reader-article h3 {
  margin: 30px 0 10px;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: 19px;
  line-height: 1.4;
}

.reader-article h3:first-child {
  margin-top: 6px;
}

.reader-article ol,
.reader-article ul {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.reader-article li {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.85;
}

.reader-article li::marker {
  color: var(--hl);
}

.reader-article b {
  font-weight: 700;
  color: var(--ink);
}

.article-note {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--spot);
  color: var(--muted);
  font-size: 14px !important;
}

/* 人和机器的分工线 */
.split-line {
  position: relative;
  margin: 26px 0 18px;
  padding: 18px 20px 6px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--hl);
  border-radius: 4px 14px 14px 4px;
  background: var(--card);
}

.split-line b {
  display: block;
  margin-bottom: 6px;
  color: var(--hl);
  font-size: 13px;
  letter-spacing: 0.18em;
}

/* 流程图：横向步骤，窄屏自动换成纵向 */
.flow-fig {
  margin: 14px 0 18px !important;
}

.flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 26px;
  margin: 0 !important;
  padding: 18px 18px !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(var(--ghost) 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--paper);
  list-style: none;
  counter-reset: step;
}

.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 !important;
  padding: 12px 12px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: var(--card-solid);
  box-shadow: 3px 3px 0 var(--shadow-strong);
  counter-increment: step;
}

.flow li::before {
  content: counter(step);
  font-family: "Segoe UI", -apple-system, sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.flow li + li::after {
  content: "→";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 16px;
}

.flow li.hl {
  border-color: var(--hl);
}

.flow li.ok {
  border-color: var(--accent-strong);
}

.flow b {
  font-size: 15px;
  line-height: 1.35;
}

.flow small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* AI 产品体验的四栏表 */
.lab-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 22px;
}

.lab-sheet div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.lab-sheet dt {
  margin-bottom: 4px;
  color: var(--hl);
  font-size: 12.5px;
  letter-spacing: 0.16em;
}

.lab-sheet dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

/* 制作手记的源卡片不在页面上显示 */
.making-src[hidden] {
  display: none !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .grid-lab,
  .grid-protos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

@media (max-width: 960px) {
  .grid-cases,
  .grid-sims {
    grid-template-columns: 1fr;
  }

  .career-route {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 30px;
  }

  .career-route::before {
    left: 7px;
    right: auto;
    top: 8px;
    bottom: 8px;
    border-top: 0;
    border-left: 2px dashed var(--hl);
  }

  .career-route li {
    padding-top: 0;
  }

  .cr-dot {
    left: -30px;
    top: 3px;
  }

  .nav-resume {
    min-height: 28px;
    padding: 0 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 720px) {
  .brand-role {
    display: none;
  }

  .brand em {
    display: none;
  }

  .hero-stats {
    gap: 12px 22px;
    margin-top: 20px;
  }

  .hero-stats dd {
    font-size: 12px;
  }

  .hero-link {
    margin: 4px 0 0;
    flex-basis: 100%;
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .grid-lab,
  .grid-protos {
    grid-template-columns: 1fr;
  }

  .case-facts {
    gap: 8px;
  }

  .case-facts b {
    font-size: 18px;
  }

  .sim {
    padding: 0;
  }

  .sim .post-image {
    position: relative;
    width: auto;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sim .case-role,
  .sim h3,
  .sim p {
    padding: 0 18px;
  }

  .sim .case-role {
    margin-top: 16px;
  }

  .sim .card-foot {
    padding: 14px 18px 18px;
  }

  .sim .post-image img {
    object-position: center;
  }

  .career {
    padding: 20px 18px 22px;
  }

  .flow {
    grid-auto-flow: row;
    gap: 22px;
  }

  .flow li + li::after {
    content: "↓";
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
  }

  .lab-sheet {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .career-route li.now .cr-dot {
    animation: none;
  }
}

/* 长标题只在空格和标点处换行，不把「研判」这类词拆开 */
.reader-title,
.case h3,
.proto h3,
.sim h3,
.section-lab .post h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

/* ---------- 04 AI 笔记 · 四个同事（2026-10-14） ---------- */
/* 每位同事一个代表色：浅色模式用深色、深色模式用浅色，上面的字统一用 --paper */
.m-grok { --m: var(--ink); }
.m-claude { --m: #b65a32; }
.m-gpt { --m: var(--accent-strong); }
.m-gemini { --m: #3d5f96; }

html[data-theme="dark"] .m-claude { --m: #e08a5c; }
html[data-theme="dark"] .m-gemini { --m: #8fb0e0; }

/* 团队编制：按月费比例分段的预算条 */
.reader-article .team-budget {
  margin: 8px 0 24px;
}

.tb-bar {
  display: flex;
  gap: 3px;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
}

.tb-bar span {
  flex: var(--w) 1 0;
  background: var(--m);
  transform-origin: left center;
  animation: tb-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}

@keyframes tb-grow {
  from {
    transform: scaleX(0);
  }
}

.reader-article .tb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.reader-article .tb-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font: 14px/1.6 "Segoe UI", -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
}

.tb-legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--m);
}

.reader-article .tb-legend b {
  color: var(--ink);
  font-weight: 600;
}

/* 四位同事：工牌 */
.team-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 26px;
}

.team-card {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 26px 16px 8px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--m);
  border-radius: 14px;
  background: var(--card);
}

/* 工牌顶部的挂绳孔 */
.team-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 34px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  transform: translateX(-50%);
}

.team-card > img {
  width: 60px;
  height: 60px;
  border: 2px solid var(--m);
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}

.tc-id b {
  display: block;
  font-family: "Noto Serif SC", "LXGW WenKai", serif;
  font-size: 21px;
  line-height: 1.25;
}

.tc-id span {
  color: var(--m);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* 月薪：斜盖的小印章 */
.tc-pay {
  position: absolute;
  right: 14px;
  top: 22px;
  padding: 1px 8px;
  border: 1.5px solid var(--m);
  border-radius: 6px;
  color: var(--m);
  font: 600 12px/1.6 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.06em;
  transform: rotate(-6deg);
  opacity: 0.85;
}

.reader-article .tc-quote {
  grid-column: 1 / -1;
  margin: 14px 0 6px;
  font-family: "LXGW WenKai", serif;
  font-size: 16.5px;
  line-height: 1.6;
}

.reader-article .team-card ul {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  padding-left: 1.2em;
}

.reader-article .team-card li {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.75;
}

.reader-article .team-card li::marker {
  color: var(--m);
}

/* 看病：同样两轮对话的两种回答 */
.reader-article .ask-compare {
  margin: 18px 0 20px;
}

.ac-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ac-col {
  --m: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.ac-col.m-gemini {
  --m: #3d5f96;
  border-color: var(--m);
}

html[data-theme="dark"] .ac-col.m-gemini {
  --m: #8fb0e0;
}

.ac-who {
  color: var(--m);
  font: 600 12.5px/1.4 "Segoe UI", -apple-system, sans-serif;
  letter-spacing: 0.14em;
}

.ac-step {
  align-self: flex-end;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--spot);
  color: var(--muted);
  font-size: 12.5px;
}

.reader-article .ac-a {
  margin: 0;
  padding: 9px 13px;
  border-radius: 4px 14px 14px 14px;
  background: color-mix(in srgb, var(--muted) 13%, var(--card-solid));
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.reader-article .ac-col.m-gemini .ac-a {
  background: color-mix(in srgb, var(--m) 16%, var(--card-solid));
  color: var(--ink);
}

@media (max-width: 720px) {
  .team-cards,
  .ac-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-bar span {
    animation: none;
  }
}
