:root {
  --bg: #FAF9F6;
  --bg-soft: #EEECE8;
  --ink: #242222;
  --ink-soft: #575250;
  --ink-faint: #77706C;
  --accent: #B73832;
  --accent-soft: rgba(183, 56, 50, 0.055);
  --line: #E2DDD8;
  --serif: 'Source Serif 4', 'Noto Serif SC', 'Songti SC', 'STSong', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* 知我记物：黑白 + 苹果蓝 */
  --km-blue: #0071E3;
  --km-star: #FF9F0A;
  /* 小报童：朱砂红 */
  --xb-red: #B5493A;
  --xb-bg: #F5F2EC;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

/* 纸张质感：噪点颗粒 + 四角微微泛暗 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 40%, transparent 55%, rgba(110, 85, 45, 0.055) 100%);
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  transition: color 200ms ease;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 13px;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .n { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ============ Hero ============ */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 48px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { justify-self: start !important; align-items: flex-start !important; }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 36px;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--ink); }
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.hero-word {
  display: block;
  position: relative;
  width: fit-content;
  cursor: default;
  transition: color 300ms var(--ease), transform 300ms var(--ease);
}
.hero-word:hover { color: var(--accent); transform: translateX(12px); }
.hero-word .zh {
  position: absolute;
  left: calc(100% + 20px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  font-family: var(--serif);
  font-size: clamp(15px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms var(--spring);
  white-space: nowrap;
}
.hero-word:hover .zh { opacity: 1; transform: translateY(-50%) translateX(0); }
.hero-sub {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-sub .dot { color: var(--accent); }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: clamp(20px, 4vw, 40px);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* 首屏右侧：照片 + 博客入口 */
.hero-side {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-photo {
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 12px 12px 0;
  transform: rotate(2deg);
  box-shadow: 16px 16px 0 0 var(--bg-soft);
  transition: transform 450ms var(--spring), box-shadow 450ms ease;
}
.hero-photo:hover { transform: rotate(0deg); box-shadow: 8px 8px 0 0 var(--accent-soft); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.hero-photo .cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px 12px;
  font-size: 11px;
  color: var(--ink-faint);
}
.hero-photo .cap .n { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink); }
.hero-blog {
  position: absolute;
  bottom: 32px;
  right: clamp(20px, 4vw, 40px);
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: color 250ms ease, border-color 250ms ease;
}
.hero-blog .arr { color: var(--accent); font-size: 18px; transition: transform 300ms var(--spring); display: inline-block; }
.hero-blog:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-blog:hover .arr { transform: translateX(6px); }

/* ============ 通用 section ============ */
section.block { padding: 96px 0 72px; border-top: 1px solid var(--line); }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 64px;
}
.sec-index { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 1;
  margin-left: 20px;
}
.sec-title .en {
  color: var(--ink-faint);
  font-weight: 400;
  font-style: italic;
  font-size: 0.55em;
  margin-left: 12px;
  letter-spacing: 0.04em;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ 01 项目：一行一个特写 ============ */
.feat { display: block; }
.feat + .feat { margin-top: 28px; }
.project-head { align-items: center; flex-wrap: wrap; gap: 20px 28px; }
.project-heading { display: flex; align-items: baseline; gap: 16px; }
.project-heading .sec-title { flex: initial; white-space: nowrap; }
.project-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.project-tab {
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-faint);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.project-tab:hover { color: var(--accent); }
.project-tab[aria-selected="true"] { background: var(--surface); color: var(--accent); font-weight: 600; }
.project-panel[hidden] { display: none; }

/* GPT 充值：暖红光晕、渐隐点阵与紧凑人物横幅 */
.feat-gpt {
  --gpt-accent: #C71B23;
  --gpt-padding: clamp(28px, 3.6vw, 40px);
  color-scheme: light;
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  align-items: stretch;
  min-height: 310px;
  overflow: hidden;
  padding: var(--gpt-padding);
  border: 1px solid #E9D9D6;
  border-radius: 24px;
  background: radial-gradient(ellipse at 76% 62%, #F5DDD8 0%, #FBF0ED 28%, transparent 66%), #FFFEFC;
  color: #291D1B;
  box-shadow: 0 2px 4px rgba(82, 34, 26, 0.025), 0 20px 50px -36px rgba(82, 34, 26, 0.25);
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 300ms var(--ease);
}
.feat-gpt::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, #CB8B80 1px, transparent 1.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse at 74% 55%, #000 0%, rgba(0, 0, 0, 0.45) 36%, transparent 74%);
  opacity: 0.48;
  pointer-events: none;
}
.feat-gpt:hover { transform: translateY(-3px); border-color: #DDAAA3; box-shadow: 0 24px 54px -32px rgba(82, 34, 26, 0.32); }
.gpt-copy { position: relative; z-index: 1; align-self: center; }
.gpt-eyebrow { color: #875B54; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; }
.gpt-title { margin-top: 13px; font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.045em; }
.gpt-title em { color: var(--gpt-accent); font-style: normal; }
.gpt-slogan { margin-top: 9px; font-size: clamp(20px, 2.3vw, 27px); font-weight: 650; line-height: 1.3; letter-spacing: -0.02em; }
.gpt-desc { margin-top: 11px; color: #82706B; font-family: var(--mono); font-size: 15px; letter-spacing: 0.03em; }
.gpt-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.gpt-keywords span { padding: 3px 10px; border: 1px solid #ECD1CC; border-radius: 999px; color: #9B4036; background: rgba(255, 255, 255, 0.7); font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.gpt-support { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #82706B; font-size: 11px; }
.gpt-support i { color: var(--gpt-accent); }
.gpt-visual {
  position: relative;
  align-self: stretch;
  margin: calc(-1 * var(--gpt-padding)) calc(-1 * var(--gpt-padding)) calc(-1 * var(--gpt-padding)) 0;
}
.gpt-person { position: absolute; bottom: 0; right: 3%; width: 94%; height: 95%; object-fit: contain; object-position: right bottom; }
.gpt-link-icon { position: absolute; z-index: 2; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #ECD1CC; border-radius: 50%; color: var(--gpt-accent); background: rgba(255, 255, 255, 0.7); font-size: 16px; transition: transform 250ms ease, background 250ms ease; }
.feat-gpt:hover .gpt-link-icon { transform: translate(2px, -2px); background: #FFFFFF; }
@media (max-width: 600px) {
  .project-tab { padding-inline: 17px; }
  .feat-gpt { grid-template-columns: 1fr; }
  .gpt-slogan { font-size: clamp(19px, 5.6vw, 26px); }
  .gpt-visual { min-height: 230px; margin: 20px calc(-1 * var(--gpt-padding)) calc(-1 * var(--gpt-padding)); }
  .gpt-person { height: 100%; width: 100%; right: 0; object-position: center bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .feat-gpt, .gpt-link-icon { transition: none; }
}

/* —— 知我记物：Apple 风 —— */
.feat-knowme {
  background: #FFFFFF;
  border-radius: 24px;
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.04), 0 24px 48px -32px rgba(26, 26, 26, 0.18);
  transition: transform 400ms var(--ease), box-shadow 400ms ease;
}
.feat-knowme:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(26, 26, 26, 0.05), 0 36px 64px -36px rgba(26, 26, 26, 0.28);
}
.fk-icon img {
  width: 120px; height: 120px;
  border-radius: 27px; /* Apple 连续圆角近似 */
  display: block;
  box-shadow: 0 8px 20px -8px rgba(26, 26, 26, 0.35);
  transition: transform 400ms var(--spring);
}
.feat-knowme:hover .fk-icon img { transform: scale(1.04) rotate(-2deg); }
.fk-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #86868B;
}
.fk-name {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.fk-rating {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.fk-stars { color: var(--km-star); font-size: 13px; letter-spacing: 2px; }
.fk-score { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fk-count { font-size: 12px; color: #86868B; }
.fk-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #4A4A4A;
  margin-top: 12px;
  max-width: 480px;
}
.fk-feats { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fk-feats span {
  font-size: 11.5px;
  color: #4A4A4A;
  background: #F5F5F7;
  border-radius: 999px;
  padding: 5px 14px;
}
.fk-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--km-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 26px;
  transition: background 250ms ease, transform 300ms var(--spring);
  white-space: nowrap;
}
.feat-knowme:hover .fk-btn { background: #0066CC; transform: translateY(-2px); }
.fk-ver { font-size: 11px; color: #86868B; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .feat-knowme { grid-template-columns: 1fr; }
  .fk-side { align-items: flex-start; }
}

/* —— 后端程序员 101：小报童朱砂红 —— */
.feat-xb {
  background: var(--xb-bg);
  border: 1px solid rgba(181, 73, 58, 0.3);
  border-top: 3px solid var(--xb-red);
  border-radius: 6px;
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  transition: transform 400ms var(--ease), box-shadow 400ms ease;
}
.feat-xb:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -32px rgba(88, 42, 34, 0.35);
}
.fx-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xb-red);
  font-weight: 500;
}
.fx-name {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.fx-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 480px;
}
.fx-stats {
  display: flex;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(181, 73, 58, 0.18);
  flex-wrap: wrap;
}
.fx-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 clamp(20px, 2.5vw, 36px); }
.fx-stat:first-child { padding-left: 0; }
/* 项目之间一道隐秘的小竖线 */
.fx-stat + .fx-stat { border-left: 1px solid rgba(181, 73, 58, 0.16); }
.fx-top { display: flex; align-items: baseline; gap: 3px; }
.fx-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--xb-red);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.fx-unit { font-size: 14px; color: var(--xb-red); font-weight: 500; }
.fx-live {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--xb-red);
  flex-shrink: 0;
}
/* 波纹光晕：一圈圈向外荡开 */
.fx-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fx-ripple 2.2s ease-out infinite;
}
@keyframes fx-ripple {
  0% { box-shadow: 0 0 0 0 rgba(181, 73, 58, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(181, 73, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 73, 58, 0); }
}
.fx-stat-live { flex-direction: row; align-items: center; gap: 8px; }
.fx-livetext { font-size: 13px; color: var(--ink-soft); }
.fx-label { font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.05em; }
.fx-btn {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--xb-red);
  color: #FBF7F1;
  font-size: 14px;
  border-radius: 4px;
  padding: 12px 26px;
  width: fit-content;
  transition: background 250ms ease, transform 300ms var(--spring);
}
.feat-xb:hover .fx-btn { background: #9E3E30; transform: translateY(-2px); }
.fx-cover {
  transform: rotate(2.5deg);
  box-shadow: 0 20px 40px -20px rgba(88, 42, 34, 0.4);
  transition: transform 450ms var(--spring);
}
.feat-xb:hover .fx-cover { transform: rotate(0deg) scale(1.02); }
.fx-cover img { width: 100%; display: block; border-radius: 4px; }
@media (max-width: 900px) { .feat-xb { grid-template-columns: 1fr; } .fx-cover { max-width: 320px; } }

/* —— Shuai WeChat Formatter：留白与并排预览 —— */
.feat-formatter {
  padding: clamp(30px, 4.5vw, 52px);
  border: 1px solid #302F3B;
  border-radius: 22px;
  background: #17171E;
  color: #F6F5FA;
  box-shadow: 0 24px 48px -32px rgba(17, 15, 28, 0.45);
  transition: transform 400ms var(--ease), box-shadow 400ms ease;
}
.feat-formatter:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 64px -36px rgba(17, 15, 28, 0.6);
}
.wf-eyebrow {
  display: block;
  color: #75DAB1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.wf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  margin-top: 36px;
}
.wf-title {
  font-size: clamp(32px, 3.5vw, 43px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.28;
}
.wf-name {
  display: block;
  margin-top: 9px;
  color: #75DAB1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.wf-desc {
  max-width: 500px;
  margin-top: 27px;
  color: #C3C1CC;
  font-size: 15px;
  line-height: 1.8;
}
.wf-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: #E2E1E9;
  font-size: 13px;
}
.wf-keywords span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.wf-keywords span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #53CFA1; }
.wf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.wf-links a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-width: 140px;
  padding: 11px 17px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 200ms ease, transform 200ms ease;
}
.wf-links a:hover { transform: translateY(-2px); }
.wf-primary { background: #53CFA1; color: #12231D; }
.wf-primary:hover { background: #76E1B8; }
.wf-secondary { border: 1px solid #565564; color: #E7E5ED; }
.wf-secondary:hover { background: #292936; }
.wf-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}
.wf-panel {
  display: flex;
  flex-direction: column;
  height: 218px;
  min-width: 0;
  padding: 19px 15px;
  border-radius: 18px;
}
.wf-note { background: #F8F7FB; color: #292735; }
.wf-preview { border: 1px solid #45454F; background: #22232B; color: #F6F5FA; }
.wf-panel-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.wf-panel-head img { width: 23px; height: 23px; object-fit: contain; transform: translateY(-2px); }
.wf-panel-head .wf-plugin-logo { width: 29px; height: 29px; transform: none; }
.wf-line { display: block; height: 6px; margin-bottom: 14px; border-radius: 999px; background: #9CA8A5; }
.wf-preview .wf-line { background: #899390; }
.wf-line-long { width: 92%; }
.wf-line-medium { width: 76%; }
.wf-line-short { width: 60%; }
.wf-line-accent { display: block; width: 55%; height: 20px; margin-top: auto; border-radius: 6px; background: #53CFA1; }
.wf-arrow { color: #53CFA1; font-size: 30px; line-height: 1; text-align: center; }
@media (max-width: 1000px) {
  .wf-layout { grid-template-columns: 1fr; gap: 42px; }
  .wf-flow { max-width: 390px; }
}
@media (max-width: 560px) {
  .wf-layout { margin-top: 28px; gap: 34px; }
  .wf-title { font-size: 30px; }
  .wf-desc { margin-top: 22px; font-size: 14px; }
  .wf-keywords { gap: 8px 16px; margin-top: 20px; font-size: 12px; }
  .wf-links { margin-top: 28px; }
  .wf-flow { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 7px; }
  .wf-panel { height: 188px; padding: 15px 10px; border-radius: 15px; }
  .wf-panel-head { gap: 5px; margin-bottom: 16px; font-size: 11px; }
  .wf-panel-head img { width: 19px; height: 19px; }
  .wf-plugin-icon { width: 22px; height: 22px; border-radius: 6px; font-size: 14px; }
  .wf-line { height: 5px; margin-bottom: 12px; }
  .wf-arrow { font-size: 24px; }
}

/* ============ 02 经历 ============ */
.exp-list { display: flex; flex-direction: column; }
.exp-list {
  position: relative;
  padding-left: 36px;
  list-style: none;
  --timeline-start: 0px;
  --timeline-length: 100%;
  --timeline-progress: 0;
}
.exp-list::before,
.exp-list::after {
  content: '';
  position: absolute;
  left: 5px;
  top: var(--timeline-start);
  width: 2px;
  height: var(--timeline-length);
  background: var(--line);
  pointer-events: none;
}
.exp-list::after {
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--timeline-progress));
}
.exp-item { position: relative; }
.exp-item + .exp-item { padding-top: 12px; }
.exp-list.is-enhanced .exp-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms var(--ease);
  transition-delay: var(--entry-delay, 0ms);
}
.exp-list.is-enhanced .exp-item.is-visible { opacity: 1; transform: none; }
.exp-group {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
  padding-top: 28px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-item:first-child .exp-group { padding-top: 0; }
.exp-group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.exp-row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 60px 1fr 32px;
  gap: 20px;
  align-items: start;
  padding: 28px 16px 28px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 250ms ease;
}
.exp-row::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 31px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  transition: background 400ms ease, border-color 400ms ease;
}
.exp-item.is-visible .exp-row::before { background: var(--accent); border-color: var(--accent); }
.exp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.exp-row:hover { background: var(--accent-soft); }
.exp-date {
  padding-top: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.exp-logo { display: flex; align-items: center; justify-content: center; }
.exp-logo img {
  width: 48px; height: 48px;
  object-fit: contain;
  transition: transform 350ms var(--spring);
}
.exp-row:hover .exp-logo img { transform: scale(1.08); }
.exp-company {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 200ms ease;
}
.exp-row:hover .exp-company { color: var(--accent); }
.exp-details { min-width: 0; }
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  list-style: none;
}
.exp-tags li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}
.exp-role {
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.exp-loc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  white-space: nowrap;
}
.exp-loc i { font-size: 10px; color: var(--accent); }
.exp-arrow {
  font-size: 17px;
  color: var(--ink-faint);
  text-align: center;
  transition: color 250ms ease, transform 250ms var(--spring);
}
.exp-row:hover .exp-arrow { color: var(--accent); transform: translateX(4px); }
.exp-group-startup { color: var(--accent); }
.exp-row-current {
  border-bottom: 0;
}
.exp-row-current::before { box-shadow: 0 0 0 5px var(--accent-soft); }
.exp-row-current > :last-child { grid-column: 3 / -1; }
.exp-row-current .exp-date,
.exp-row-current .exp-company { color: var(--accent); }
.exp-logo.shuai-wordmark { width: 60px; }
.exp-logo.shuai-wordmark img {
  width: 86px;
  height: auto;
  transition: none;
}
.exp-row:hover .shuai-wordmark img { transform: translate(-50%, -50%); }
.exp-current-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.exp-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
}
.exp-status::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
@media (max-width: 720px) {
  .exp-list { padding-left: 28px; }
  .exp-row::before { left: -27px; top: 34px; }
  .exp-row { grid-template-columns: 60px 1fr 32px; }
  .exp-row { gap: 12px; padding-right: 0; padding-left: 0; }
  .exp-date { grid-column: 1 / -1; padding-top: 0; }
  .exp-company { font-size: 21px; }
  .exp-group { letter-spacing: 0.12em; font-size: 10px; }
  .exp-row-current > :last-child { grid-column: 2 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .exp-list.is-enhanced .exp-item { opacity: 1; transform: none; transition: none; }
  .exp-row::before { transition: none; }
}

/* ============ 03 关于我 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-big {
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.about-big em { color: var(--accent); font-style: normal; }

/* 3D 标签球 */
.tag-sphere {
  position: relative;
  height: 400px;
  margin-top: 28px;
  overflow: hidden;
}
.tag-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.tag-sphere .tag {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  cursor: default;
  will-change: transform, opacity;
  color: var(--ink-soft);
  font-size: 15px;
  transition: color 250ms ease;
}
.tag-sphere .tag b { color: inherit; font-family: var(--serif); font-style: italic; font-weight: 400; margin-right: 1px; }
.tag-sphere .tag:hover { color: var(--accent); }
.tag-sphere .t-lg { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--ink); letter-spacing: -0.01em; }
.tag-sphere .t-md { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); }
.tag-sphere .t-it { font-family: var(--serif); font-style: italic; font-size: 18px; }
.tag-sphere .t-mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
@media (max-width: 900px) { .tag-sphere { height: 320px; } }

/* 照片：拍立得式装裱 */
.portrait {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 14px 0;
  transform: rotate(-1.4deg);
  box-shadow: 18px 18px 0 0 var(--bg-soft);
  transition: transform 450ms var(--spring), box-shadow 450ms ease;
}
.portrait:hover { transform: rotate(0deg); box-shadow: 10px 10px 0 0 var(--accent-soft); }
.portrait-img { overflow: hidden; }
.portrait-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 700ms var(--ease);
}
.portrait:hover .portrait-img img { transform: scale(1.02); }
.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 2px 14px;
  font-size: 12px;
  color: var(--ink-faint);
}
.portrait-caption .name { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink); }

/* ============ 04 服务 ============ */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1000px) { .connect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .connect-grid { grid-template-columns: 1fr; } }
.cc-card {
  border-top: 1px solid var(--ink);
  padding: 20px 16px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 350ms var(--ease), background 300ms ease, border-color 250ms ease;
}
.cc-card:hover {
  transform: translateY(-5px);
  background: var(--accent-soft);
  border-top-color: var(--accent);
}
.cc-en {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 14px;
}
.cc-name {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 6px;
  transition: color 200ms ease;
}
.cc-card:hover .cc-name { color: var(--accent); }
.cc-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-top: 10px;
  flex: 1;
}
.cc-more {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: color 250ms ease, gap 300ms var(--spring);
}
.cc-card:hover .cc-more { color: var(--accent); gap: 14px; }

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(26, 26, 26, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 40px 44px 36px;
  position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform 400ms var(--spring);
  box-shadow: 0 40px 80px -32px rgba(26, 26, 26, 0.4);
}
.modal-overlay.open .modal-card { transform: none; }
.modal-card.wide { max-width: 680px; }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  transition: all 250ms ease;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.m-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.m-desc { font-size: 14px; line-height: 1.8; color: var(--ink-soft); margin-top: 14px; }
/* 播客单集：1:1 封面 + 标题，歪一点的卡片感 */
.m-ep { display: flex; align-items: center; gap: 14px; }
.m-ep-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  transform: rotate(-2.5deg);
  box-shadow: 0 8px 16px -8px rgba(26, 26, 26, 0.35);
  transition: transform 350ms var(--spring);
}
.m-ep:hover .m-ep-img { transform: rotate(0deg) scale(1.05); }
.m-ep-body { min-width: 0; }
.m-ep-title { font-family: var(--serif); font-size: 14.5px; font-weight: 600; line-height: 1.55; display: block; }
.m-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.m-price { font-family: var(--serif); font-size: 16px; color: var(--accent); }
/* 微信沟通弹窗：完整微信名片缩小展示，右侧说明 */
.m-wechat-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}
.m-wechat-qr img {
  display: block;
  width: 170px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.m-wechat-info .m-desc { margin-top: 0; }
.m-coaching-offer { margin-top: 20px; }
.m-coaching-heading {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.m-coaching-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.m-coaching-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.m-coaching-list strong { color: var(--ink); font-weight: 600; }
.m-coaching-check {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 18px;
  flex: 0 0 16px;
  margin-top: 1px;
}
.m-coaching-check::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 11px;
  top: 1px;
  left: 4px;
  border: solid #34a464;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.m-coaching-example {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}
/* 弹窗内锚点（如「渠道」）：橙色小字 + 下划线 */
.m-anchor {
  color: var(--accent);
  cursor: pointer;
  border-bottom: 1px solid rgba(217, 119, 87, 0.4);
  transition: border-color 200ms ease;
}
.m-anchor:hover { border-bottom-color: var(--accent); }
/* 播客单集作为链接 */
a.m-ep { cursor: pointer; }
a.m-ep:hover .m-ep-title { color: var(--accent); }
.m-remark {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink);
}
.m-remark-copy {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding: 0;
}
.m-remark-copy:hover { text-decoration: underline; }
.m-back {
  margin-top: 20px;
  background: none;
  border: none;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 200ms ease;
}
.m-back:hover { color: var(--accent); }
/* 弹窗头部：logo + 标题同一行 */
.m-head { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.m-head .m-title { margin-top: 0; }
.m-head .m-meta { margin-top: 5px; }
.m-rows { margin-top: 24px; border-top: 1px solid var(--line); }
.m-row {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.m-row .k { color: var(--ink-faint); font-size: 12px; letter-spacing: 0.08em; flex-shrink: 0; width: 64px; padding-top: 2px; }
.m-row .v { color: var(--ink); }
.m-btn {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 250ms ease, transform 300ms var(--spring);
}
.m-btn:hover { background: var(--accent); transform: translateY(-2px); }
@media (max-width: 640px) { .modal-card { padding: 32px 26px 28px; } }

/* ============ 05 渠道 ============ */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .channel-grid { grid-template-columns: repeat(2, 1fr); } }
.ch-card {
  --row-hover: var(--brand-color, var(--accent));
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 16px;
  padding: 22px 24px 20px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
  transition: transform 350ms var(--ease), box-shadow 350ms ease, border-color 250ms ease;
}
.ch-card:hover {
  transform: translateY(-4px) rotate(-1.2deg);
  border-color: var(--row-hover);
  box-shadow: 0 20px 40px -22px rgba(26, 26, 26, 0.25);
}
.ch-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ch-icon {
  display: inline-flex;
  align-items: center;
  font-size: 21px;
  color: var(--ink);
  transition: color 250ms ease, transform 350ms var(--spring);
}
.ch-icon svg { width: 22px; height: 22px; display: block; }
.ch-card:hover .ch-icon { color: var(--row-hover); transform: scale(1.12); }
.ch-arrow {
  color: var(--ink-faint);
  font-size: 13px;
  padding-top: 4px;
  transition: color 250ms ease, transform 250ms var(--spring);
}
.ch-card:hover .ch-arrow { color: var(--row-hover); transform: translateX(3px); }
.ch-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin-top: 16px;
  transition: color 200ms ease;
}
.ch-handle { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.ch-card:hover .ch-name { color: var(--row-hover); }
.ch-copied { display: none; font-size: 12px; color: var(--row-hover); margin-top: 3px; }
.ch-card.is-copied .ch-copied { display: inline; }
.ch-card.is-copied .ch-handle { display: none; }

/* ============ Footer ============ */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.foot-mark { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ink); }
.foot-beian { color: var(--ink-faint); transition: color 200ms ease; }
.foot-beian:hover { color: var(--accent); }

/* Hero 自动轮播激活态（与 hover 同款表现） */
.hero-word.auto { color: var(--accent); transform: translateX(12px); }
.hero-word.auto .zh { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 360px) {
  /* 仅在超窄屏隐藏中文，避免 Thinking. 一行溢出视口 */
  .hero-word .zh { display: none; }
  .hero-word.auto { transform: translateX(6px); }
}

/* ============ 小屏补强（置于文件末尾，确保覆盖同名基础规则） ============ */
@media (max-width: 900px) {
  /* 内容高于一屏时，底部元素改为随流排布，避免压住照片 */
  .hero-blog { position: static; margin-top: 28px; justify-self: end; }
  .hero-scroll { display: none; }
}
@media (max-width: 640px) {
  .fx-stats { row-gap: 16px; }
  .fk-icon img { width: 88px; height: 88px; border-radius: 20px; }
  .hero-blog { font-size: 13px; letter-spacing: 0.18em; }
  .m-wechat-body { grid-template-columns: 1fr; }
  .m-wechat-qr img { margin: 0 auto; }
}
@media (max-width: 560px) {
  .channel-grid { grid-template-columns: 1fr; }
  .fx-stat { padding: 0 18px; }
  .modal-card { padding: 28px 20px 24px; }
}
