/* ============================================================
   极简白格 · Minimal White Grid
   设计系统 / 响应式 / 滚动动效
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8c8c8c;
  --line: #ebebeb;
  --invert: #111111;
  --accent: #FF6B5B;
  --maxw: 1180px;
  --gut: 28px;
  --nav-h: 66px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
}
.nav__links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav__links a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--fg); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--fg);
}

/* ---------- 通用区块 ---------- */
.section { padding: clamp(64px, 11vw, 140px) 0; }
.section--tight { padding: clamp(48px, 8vw, 90px) 0; }

/* ---------- 区块标题（与 hero 排版统一） ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.section-head__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-head__sub {
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}
.section-head__title {
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--fg);
  margin: 0;
}
.section-head__dot { color: var(--accent); }

/* 迷你几何标记，呼应 hero 图形语言 */
.section-mark {
  width: clamp(48px, 6vw, 72px);
  height: auto;
  flex: 0 0 auto;
  overflow: visible;
}
.section-mark .sm-ripple {
  transform-origin: 40px 40px;
  animation: smRipple 4s ease-in-out infinite;
}
.section-mark .sm-ripple:nth-child(2) { animation-delay: 0.6s; }
@keyframes smRipple {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

.label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

/* ---------- Hero（参考排版：左侧大字标题 + 右侧几何图形） ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 860px);
  padding: calc(var(--nav-h) + clamp(32px, 5vw, 64px)) 0 clamp(48px, 7vw, 80px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  overflow: hidden;
}

/* 左侧文字列 */
.hero__left {
  flex: 1 1 55%;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 28px;
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

.hero__line { display: block; }

/* StrokeText 描边绘制动效（React Bits 原生移植；用 WAAPI 替代 gsap） */
.stroke-text__svg {
  display: block;
  overflow: visible;
}

.hero__greeting {
  font-size: 1em;
}
.hero__dot {
  color: var(--accent);
}

.hero__verb {
  font-size: 0.72em;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.hero__name {
  font-size: 1.15em;
  font-weight: 800;
  margin-top: 2px;
  letter-spacing: -0.04em;
}

.hero__role {
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 38ch;
  line-height: 1.5;
}

.hero__left .prose {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  color: #666;
  max-width: 42ch;
  line-height: 1.65;
}

/* TextType 打字机动效（React Bits 原生移植；光标闪烁用 CSS 替代 gsap） */
.text-type__content { white-space: pre-wrap; }
.text-type__cursor {
  display: inline-block;
  margin-left: 0.08em;
  color: var(--accent);
  font-weight: 400;
  animation: textTypeBlink 1s steps(1, end) infinite;
}
@keyframes textTypeBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* 右侧几何图形 */
.hero__gfx {
  flex: 1 1 40%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 340px;
  z-index: 1;
}

.hero-art {
  width: clamp(260px, 38vw, 420px);
  height: auto;
  max-height: 480px;
  overflow: visible;
}

/* ---- 几何图形动效 ---- */

/* 半圆：缓慢浮入 */
.ha-semi {
  transform-origin: 320px 120px;
  animation: haSemiFloat 7s ease-in-out infinite;
}
@keyframes haSemiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* 同心波纹：依次扩散 */
.ha-ripples circle {
  transform-origin: 340px 200px;
  animation: haRippleExpand 5s ease-in-out infinite;
}
.ha-ripples circle:nth-child(1) { animation-delay: 0s; }
.ha-ripples circle:nth-child(2) { animation-delay: 0.3s; }
.ha-ripples circle:nth-child(3) { animation-delay: 0.6s; }
.ha-ripples circle:nth-child(4) { animation-delay: 0.9s; }

@keyframes haRippleExpand {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* 珊瑚圆点：脉冲呼吸 */
.ha-dot {
  transform-origin: 310px 260px;
  animation: haDotPulse 3.5s ease-in-out infinite;
}
@keyframes haDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.88; }
}

/* 点阵圆：缓慢旋转 */
.ha-dots {
  transform-origin: 300px 360px;
  animation: haDotsSpin 20s linear infinite;
}
@keyframes haDotsSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 底部弧形：交错漂移 */
.ha-arc--1 {
  transform-origin: 330px 380px;
  animation: haArcDrift1 6s ease-in-out infinite;
}
.ha-arc--2 {
  transform-origin: 390px 360px;
  animation: haArcDrift2 7s ease-in-out infinite;
}
@keyframes haArcDrift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-6px, -4px) rotate(-2deg); }
}
@keyframes haArcDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, -6px) rotate(2deg); }
}

.scrollcue {
  position: absolute;
  left: var(--gut);
  bottom: clamp(24px, 4vw, 40px);
  z-index: 3;
  pointer-events: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scrollcue span {
  width: 38px; height: 1px; background: var(--fg);
  display: inline-block;
  animation: cue 2.2s var(--ease) infinite;
  transform-origin: left;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ---------- 作品列表（横向三排 · 编辑型索引） ---------- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.work {
  display: grid;
  grid-template-columns: minmax(120px, 22%) 1fr auto;
  align-items: center;
  gap: clamp(18px, 3.5vw, 44px);
  padding: clamp(20px, 3vw, 32px) 16px;
  border-top: 1px solid var(--line);
  color: var(--fg);
  background: transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.work:last-child { border-bottom: 1px solid var(--line); }
.work__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
  border-radius: 3px;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease),
    filter 0.4s var(--ease);
}
.work__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
.work__index {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease);
}
.work__title {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}
.work__tag {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.work__go {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.work:hover {
  background: var(--invert);
  color: #fff;
  border-color: var(--invert);
}
.work:hover .work__media img {
  transform: scale(1.05);
  opacity: 0.82;
  filter: saturate(0.9);
}
.work:hover .work__index,
.work:hover .work__tag { color: rgba(255, 255, 255, 0.6); }
.work:hover .work__go { opacity: 1; transform: translateX(0); }

/* ---------- 文字区块 ---------- */
.lede {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0;
  font-weight: 600;
  color: var(--fg);
}
.prose { max-width: 60ch; color: #2a2a2a; }
.prose p { margin: 0 0 1.1em; }

/* ---------- 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.cap-list { list-style: none; margin: 0; padding: 0; }
.cap-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.cap-list li:last-child { border-bottom: 1px solid var(--line); }
.cap-list span:last-child { color: var(--muted); text-align: right; }

/* ---------- 关于页 · 个人优势（编辑型索引） ---------- */
.strength-list { list-style: none; margin: 0; padding: 0; }
.strength {
  display: grid;
  grid-template-columns: minmax(180px, 22%) 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.strength:last-child { border-bottom: 1px solid var(--line); }
.strength__no {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.strength__title {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.strength__desc {
  margin: 0;
  max-width: 56ch;
  color: #2a2a2a;
  font-size: 15.5px;
  line-height: 1.78;
}
@media (max-width: 640px) {
  .strength { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- 作品详情 ---------- */
.project { padding-top: calc(var(--nav-h) + 40px); }
.back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
  transition: color 0.25s var(--ease);
}
.back:hover { color: var(--fg); }
.project__cat {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.project__title {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 28px;
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  list-style: none;
  margin: 0 0 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project__meta div { display: flex; flex-direction: column; gap: 4px; }
.project__meta dt {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.project__meta dd { margin: 0; font-size: 15px; font-weight: 500; }
.project__cover {
  margin: 0 0 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #f4f4f4;
}
.project__cover img { width: 100%; height: auto; }
.project__body { max-width: 60ch; margin: 0 0 clamp(48px, 8vw, 90px); }
.project__body p { margin: 0 0 1.2em; color: #2a2a2a; }
.p-desc__heading {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 1.8em 0 0.6em;
}
.p-desc__heading:first-child { margin-top: 0; }
.project__gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: clamp(48px, 8vw, 90px);
}
.project__gallery figure { margin: 0; border-radius: 4px; overflow: hidden; background: #f4f4f4; }
.project__gallery img { width: 100%; height: auto; display: block; }
.project__next {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.project__next a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.project__next .n-label {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.project__next .n-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.3s var(--ease);
}
.project__next a:hover .n-title { opacity: 0.55; }

/* ---------- 文字链接 ---------- */
.link-more {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-more:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Connect 联系区（section-head 统一风格） ---------- */
.connect {
  padding: clamp(64px, 10vw, 120px) 0 clamp(80px, 12vw, 140px);
}
.connect .section-head {
  margin-bottom: clamp(28px, 4.5vw, 48px);
}
.connect__body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.connect__left {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  padding-top: 8px;
}
.connect__lede {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
  color: #444;
  max-width: 38ch;
  margin: 0;
}
.connect__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 100px;
  width: fit-content;
}
.connect__badge i {
  width: 7px; height: 7px;
  background: var(--fg);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* 右侧：卡片 + CV条（纵向堆叠） */
.connect__right {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
}

.connect__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.8vw, 18px);
}
.connect-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px clamp(18px, 2.4vw, 24px);
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}
.connect-card__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.connect-card__value {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
  word-break: break-all;
}
.connect-card--static {
  position: relative;
}

/* CV 展示条（在右侧栏内，与卡片同宽） */
.connect__cv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #1a1a1a;
  color: #fff;
  padding: 22px 28px;
  border-radius: 10px;
}
.connect__cv-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.connect__cv-text small {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 500;
}
.connect__cv-text strong {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.connect__cv-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ---------- 页脚（精简版） ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer__socials { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__socials a {
  font-size: 13px; color: var(--muted);
  transition: color 0.25s var(--ease);
}
.footer__socials a:hover { color: var(--fg); }
.footer__copy { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- 滚动入场动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .ha-semi, .ha-ripples circle, .ha-dot, .ha-dots, .ha-arc--1, .ha-arc--2 {
    animation: none !important;
  }
  .section-mark .sm-ripple { animation: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .connect__body { grid-template-columns: 1fr; gap: clamp(32px, 5vw, 48px); }
  /* Hero: 窄屏时文字占满、图形缩小到右下角 */
  .hero { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__left { flex: none; width: 100%; }
  .hero__gfx { flex: none; position: absolute; right: -10px; bottom: 30px; min-height: 200px; opacity: 0.55; }
  .hero-art { width: clamp(180px, 32vw, 280px); max-height: 300px; }
}
@media (max-width: 640px) {
  :root { --gut: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-mark { display: none; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 22px var(--gut) 26px;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: inline-block; }
  .work { grid-template-columns: 1fr; gap: 14px; padding: 20px 4px; }
  .work__go { display: none; }
  .project__gallery { grid-template-columns: 1fr; }
  /* Hero: 手机端图形进一步缩小 */
  .hero__gfx { right: -20px; bottom: 20px; opacity: 0.35; min-height: 140px; }
  .hero-art { width: clamp(140px, 38vw, 220px); max-height: 200px; }
  /* Connect Me 手机端 */
  .connect__cards { grid-template-columns: 1fr; }
}

/* ---------- 关于页 · 工作经历时间轴 ---------- */
.timeline {
  border-top: 1px solid var(--line);
}
.timeline__item {
  border-bottom: 1px solid var(--line);
}
.timeline__header {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(140px, 22%) 1fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: baseline;
  padding: clamp(24px, 3.2vw, 36px) 0;
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.timeline__period,
.timeline__company,
.timeline__toggle {
  transition: transform 0.35s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.timeline__period {
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timeline__company {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--fg);
}
.timeline__item:not(.is-active) .timeline__company {
  color: var(--muted);
}
.timeline__toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.55;
}
.timeline__toggle svg {
  width: 12px;
  height: 12px;
  transform: rotate(0deg);
  transition: transform 0.45s var(--ease);
}
.timeline__item.is-active .timeline__toggle svg {
  transform: rotate(180deg);
}
.timeline__item:not(.is-active):hover .timeline__header {
  background: rgba(0, 0, 0, 0.01);
}
.timeline__item:not(.is-active):hover .timeline__period {
  transform: translateX(4px);
  color: var(--fg);
}
.timeline__item:not(.is-active):hover .timeline__company {
  transform: translateX(6px);
}
.timeline__item:not(.is-active):hover .timeline__toggle {
  opacity: 1;
}

/* body 展开动画：grid-template-rows 0fr → 1fr */
.timeline__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline__item.is-active .timeline__body {
  grid-template-rows: 1fr;
  opacity: 1;
}
.timeline__body-inner {
  overflow: hidden;
  padding-bottom: clamp(28px, 4vw, 44px);
  transform: translateY(14px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline__item.is-active .timeline__body-inner {
  transform: translateY(0);
}

/* 展开内容样式 */
.timeline__role {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.timeline__company-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--muted);
  margin: 0 0 clamp(20px, 2.6vw, 28px);
}
.timeline__lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--fg);
  margin: 0 0 14px;
  font-weight: 500;
}
.timeline__duties {
  list-style: disc;
  margin: 0;
  padding-left: 1.2em;
  color: #2a2a2a;
  font-size: clamp(0.88rem, 1.5vw, 1.02rem);
  line-height: 1.78;
}
.timeline__duties--num {
  list-style: decimal;
  padding-left: 1.3em;
}
.timeline__duties li {
  margin-bottom: 0.55em;
  padding-left: 0.4em;
}
.timeline__duties li:last-child { margin-bottom: 0; }
.timeline__duties li strong {
  font-weight: 600;
  color: var(--fg);
}

@media (max-width: 640px) {
  .timeline__header {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }
  .timeline__period { grid-column: 1 / -1; }
  .timeline__company { grid-column: 1 / 2; }
  .timeline__toggle {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__body,
  .timeline__body-inner,
  .timeline__toggle svg,
  .timeline__period,
  .timeline__company,
  .timeline__toggle {
    transition: none !important;
  }
  .timeline__body-inner { transform: none !important; }
}

/* ---------- 页脚邮箱复制浮窗 ---------- */
.copy-tip {
  position: fixed;
  z-index: 999;
  padding: 7px 14px;
  background: var(--invert);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.copy-tip.is-in {
  opacity: 1;
  transform: translateY(0);
}
