:root {
  --bg-top: #d6e7f7;
  --bg-mid: #a8c3e9;
  --bg-bottom: #8298c5;
  --bg: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
  --text: #0c2566;
  --text-muted: #3a4d7d;
  --text-faded: #6b7aa0;
  --accent: #1432a3;
  --accent-2: #2d4ec7;
  --highlight: #1432a3;
  --divider: rgba(20, 50, 163, 0.18);
  --gradient-1: #4e6df3;
  --gradient-2: #7a5bf2;
  --gradient-3: #ad6bf5;
  --gradient: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-2) 55%, var(--gradient-3) 100%);
  --radius-lg: 24px;
  --radius-md: 12px;
  --max-w: 1280px;
}

/* 通用渐变文字工具 */
.gradient-text,
.timeline__title-accent {
  background-image: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

html {
  min-height: 100%;
}

body {
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

/* ============ Hero · 自我介绍板块 ============ */
.section--hero {
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* 角落微光（柔和提亮） */
.section--hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.45) 0%, transparent 70%);
  pointer-events: none;
}

.section--hero .section__inner {
  position: relative;
  z-index: 1;
}

/* 社媒链接：白色胶囊，浮在横幅左下角，底部与横幅底部对齐 */
.hero__social {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  gap: 6px;
  background: #ffffff;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 30, 80, 0.22);
  z-index: 2;
}

.social-link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.22s ease, background 0.22s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.04);
}

.social-link svg,
.social-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}

.hero {
  /* 旧的两栏 grid 已废弃，hero__top + advantages 现在自己控制布局 */
}

.hero__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

@media (max-width: 960px) {
  .hero__top {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
}

/* 右侧横幅图片 */
.hero__visual {
  position: relative;
}

.hero__banner {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  box-shadow: 0 14px 40px rgba(15, 30, 80, 0.18);
}

.hero__banner img,
.hero__banner-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === 十大优势 === */
.advantages {
  margin-top: 24px;
}

.advantages__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.advantages__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;        /* 行高均分，每行卡片等高 */
  gap: 14px;
}

@media (min-width: 720px) {
  .advantages__list { grid-template-columns: repeat(4, 1fr); }
}

.advantage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.advantage:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.75);
}

.advantage__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.advantage__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

.advantage--linked {
  padding: 0;
}

.advantage__link {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.advantage__link .advantage__num {
  grid-column: 1 / -1;
}

.advantage__cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.advantage__cta span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.advantage--linked:hover .advantage__cta span {
  transform: translateY(2px);
}

.advantage--linked:hover .advantage__text {
  color: var(--accent);
}

.hero__intro .section__eyebrow {
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 18px;
  color: var(--text);
}

.hero__role {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent);
  letter-spacing: -0.005em;
}

/* 联系信息一行 */
.hero__contact {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.hero__contact-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.9;
}

.hero__contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__contact-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hero__lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 0;
}

/* === 右侧 像素场景 === */
.hero__viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.pixel-scene {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* 萤火微光动画 */
.pixel-scene .sparkle {
  animation: sparkleTwinkle 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .section--hero { padding: 80px 20px 40px; }
}

/* ============ Timeline · 工作经历 ============ */
.section--timeline {
  padding: 120px 24px;
}

.timeline__header {
  margin-bottom: 0;
  text-align: center;
}

.timeline__eyebrow {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.timeline__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}

/* .timeline__title-accent 的渐变样式已在文件顶部统一定义 */

/* Tab 切换栏：Plaud 风格通栏胶囊（荧光绿渐变） */
.timeline__tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.035);
  border-radius: 999px;
  margin-top: 64px;
  margin-bottom: 32px;
  width: 100%;
  padding: 22px 0;
}

.timeline__tabs .tab {
  flex: 1;
  border: none;
  font-family: inherit;
  font-size: 22px;
  font-weight: 500;
  padding: 0 24px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.02em;
  /* 蓝紫渐变：始终绑在文字上，靠 fill-color 控制是否显出来 */
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  transition: -webkit-text-fill-color 0.25s ease,
              font-weight 0.25s ease,
              opacity 0.2s ease;
}

.timeline__tabs .tab:hover {
  opacity: 0.7;
}

.timeline__tabs .tab.is-active {
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  opacity: 1;
}

/* 切换的 panel：默认 hide，加 .is-active 才显示 */
.timeline-panel {
  display: none;
  opacity: 0;
}

.timeline-panel.is-active {
  display: block;
  animation: panelFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.timeline-panel.is-leaving {
  animation: panelFadeOut 0.2s ease forwards;
}

@keyframes panelFadeIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes panelFadeOut {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* tab 激活时也有淡入 */
.timeline__tabs .tab.is-active {
  animation: tabActivate 0.4s ease;
}

@keyframes tabActivate {
  0%   { letter-spacing: 0.02em; }
  50%  { letter-spacing: 0.1em; }
  100% { letter-spacing: 0.02em; }
}

/* 视口 + 可滚动轨道 */
.timeline {
  width: 100%;
}

.timeline__viewport {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.timeline__track {
  position: absolute;
  top: 0;
  left: 0;
  width: 1800px;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.timeline__track.is-dragging {
  transition: none;
}

.timeline__curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 事件卡：默认 "三角在顶 → 内容向下" */
.event {
  position: absolute;
  max-width: 240px;
  z-index: 2;
}

.event__marker {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--accent);
  margin-bottom: 18px;
}

.event__year {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.event__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.event__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 可点击事件卡（带详情弹窗的工作经历） */
.event--clickable {
  cursor: pointer;
}

.event__company {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -4px;
  margin-bottom: 10px;
}

/* 品牌外链（卡片 + 弹窗共用） */
.event__brand,
.modal__brand {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.event__brand:hover,
.modal__brand:hover {
  text-decoration: underline;
}

.event__brand span,
.modal__brand span {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.event__brand:hover span,
.modal__brand:hover span {
  transform: translate(2px, -2px);
}

.event__cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.event--clickable:hover .event__cta {
  gap: 8px;
}

.event--clickable:hover .event__title {
  color: var(--accent);
}

/* ============ 内容发布 · Publications（仿 Aleyda Solis 板块） ============ */
.section--publications {
  padding: 100px 24px;
}

/* 外层卡片：浅蓝紫渐变 + 圆角 */
.pub-card-wrapper {
  background: linear-gradient(135deg, #d5e6f9 0%, #d4d3f0 100%);
  border-radius: 32px;
  padding: 56px;
  max-width: 1100px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(20, 30, 80, 0.08);
}

/* 顶部标题 + 社媒区 */
.pub-header {
  margin-bottom: 36px;
}

.pub-header__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.pub-heading {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
}

.pub-header__social {
  display: inline-flex;
  gap: 6px;
  background: #ffffff;
  padding: 10px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(20, 30, 80, 0.18);
  flex-shrink: 0;
}

.pub-desc {
  color: #2b2f4d;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}

@media (max-width: 720px) {
  .pub-card-wrapper { padding: 32px 24px; border-radius: 24px; }
  .pub-header__top { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* 内层白色卡片（包住网格） */
.pub-inner {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 28px;
}

@media (max-width: 720px) {
  .pub-inner { padding: 18px; }
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 880px) {
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pub-grid { grid-template-columns: 1fr; }
}

/* 单卡 */
.pub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease;
}

.pub-card:hover {
  transform: translateY(-3px);
}

.pub-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #d8dbe2;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
  transition: background 0.2s ease;
}

.pub-card:hover .pub-card__thumb {
  background: #c9cdd6;
}

/* 真正有图时用 */
.pub-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pub-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #15163a;
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s ease;
}

.pub-card:hover .pub-card__title {
  color: var(--accent);
}

/* ============ 工作经历详情弹窗 ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 16, 50, 0.3);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.modal__year {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.modal__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.modal__company {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.modal__sections section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.modal__sections section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.modal__sections h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  background-image: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.modal__sections p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.modal__list {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  padding-left: 20px;
}

.modal__list li {
  margin-bottom: 4px;
}

.modal__list li:last-child {
  margin-bottom: 0;
}

.modal__list strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .modal { padding: 32px 24px; }
  .modal__title { font-size: 22px; }
}

/* 加宽变体（多角色 / 内容多的工作弹窗） */
.modal--wide { max-width: 820px; }

/* 弹窗内角色 Tabs */
.modal__role-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 4px;
  margin: 4px 0 28px;
}

.modal-tab {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-tab:hover { color: var(--text); }

.modal-tab.is-active {
  background: #ffffff;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 弹窗内角色 panel */
.modal__role-panel { display: none; }
.modal__role-panel.is-active { display: block; }

.modal__role-panel section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider);
}

.modal__role-panel section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.modal__role-panel section h5 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  background-image: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.modal__role-panel section p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

.modal__role-panel section p strong {
  color: var(--text);
  font-weight: 600;
}

/* 紧凑版（教育经历只显示年份 + 标题，更密集） */
.event--compact {
  max-width: 200px;
}

.event--compact .event__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.45;
}

.event--compact .event__marker {
  margin-bottom: 14px;
}

/* 底部年份尺 */
.scrubber {
  margin-top: 40px;
  padding: 0 4%;
}

.scrubber__track {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 28px;
  padding-bottom: 4px;
}

.scrubber__ticks {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.scrubber__tick {
  width: 1px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.scrubber__tick--major {
  height: 16px;
  background: rgba(0, 0, 0, 0.5);
}

.scrubber__thumb {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 4px;
  white-space: nowrap;
  cursor: grab;
  touch-action: none;
  user-select: none;
  z-index: 2;
}

.scrubber__thumb:active {
  cursor: grabbing;
}

.scrubber__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 6px;
}

.scrubber__labels span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 760px) {
  .timeline { height: 600px; }
  .event { max-width: 200px; }
  .event__title { font-size: 16px; }
  .event__desc { font-size: 13px; }
}

/* ============ 通用 Section ============ */
.section {
  padding: 120px 24px;
}

/* 滚动淡入：除 Hero 外的板块初始隐藏，进入视口后浮现 */
.section:not(.section--hero) {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

/* 板块标题再延迟一点点淡入，让节奏感更分明 */
.section:not(.section--hero) .section__header,
.section:not(.section--hero) .timeline__header,
.section:not(.section--hero) .pub-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.section.is-visible .section__header,
.section.is-visible .timeline__header,
.section.is-visible .pub-header {
  opacity: 1;
  transform: translateY(0);
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 80px;
}

.section__eyebrow {
  color: var(--accent);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--text);
}

.section__subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* 两栏布局 */
.section__body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* --flip：媒体右、列表左（镜像版） */
.section--flip .section__body {
  grid-template-columns: 1fr 1.1fr;
}

.section--flip .media {
  order: 2;
}

@media (max-width: 960px) {
  .section__body,
  .section--flip .section__body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .section--flip .media { order: 0; }
  .section { padding: 80px 20px; }
}

/* ============ 媒体区 ============ */
.media {
  width: 100%;
}

.media__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
}

.media__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.media__slide.is-active {
  opacity: 1;
}

.media__slide img,
.media__slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ============ 原型设计 slide · 一变多方案动画 ============ */
.media__slide--prototype .wireframe-svg {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: auto;
  max-height: 74%;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.18));
}

.wf-card {
  transform-box: view-box;
  transform-origin: 120px 120px;
}

.wf-left,
.wf-right {
  opacity: 0;
}

.media__slide--prototype.is-active .wf-left {
  animation: wfFanLeft 5s ease-in-out 0.3s infinite;
}

.media__slide--prototype.is-active .wf-right {
  animation: wfFanRight 5s ease-in-out 0.3s infinite;
}

.media__slide--prototype.is-active .wf-center {
  animation: wfCenterPulse 5s ease-in-out 0.3s infinite;
}

@keyframes wfFanLeft {
  0%, 18%   { transform: translate(0, 0) rotate(0); opacity: 0; }
  38%, 70%  { transform: translate(-72px, 6px) rotate(-5deg); opacity: 1; }
  92%, 100% { transform: translate(0, 0) rotate(0); opacity: 0; }
}

@keyframes wfFanRight {
  0%, 18%   { transform: translate(0, 0) rotate(0); opacity: 0; }
  38%, 70%  { transform: translate(72px, 6px) rotate(5deg); opacity: 1; }
  92%, 100% { transform: translate(0, 0) rotate(0); opacity: 0; }
}

@keyframes wfCenterPulse {
  0%, 18%   { transform: scale(1); }
  30%       { transform: scale(1.06); }
  45%, 70%  { transform: scale(1); }
  100%      { transform: scale(1); }
}

/* ============ 沟通桥梁 slide · 天平摆动动画 ============ */
.media__slide--scale .scale-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: auto;
  max-height: 80%;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.18));
}

.scale-beam {
  transform-origin: 120px 115px;
  transform-box: view-box;
}

.media__slide--scale.is-active .scale-beam {
  animation: scaleSwing 3.6s cubic-bezier(0.45, 0, 0.55, 1) 0.3s both;
}

@keyframes scaleSwing {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(20deg); }
  25%  { transform: rotate(-15deg); }
  42%  { transform: rotate(10deg); }
  58%  { transform: rotate(-6deg); }
  75%  { transform: rotate(3deg); }
  90%  { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* ============ 风险识别 slide · 放大镜扫描动画 ============ */
.media__slide--magnifier .magnifier-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: auto;
  max-height: 85%;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.18));
}

.magnifier {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translate(150px, 175px);
}

.media__slide--magnifier.is-active .magnifier {
  animation: magnifierScan 5s ease-in-out 0.3s infinite;
}

@keyframes magnifierScan {
  0%   { transform: translate(150px, 175px); }
  22%  { transform: translate(75px, 165px); }
  40%  { transform: translate(80px, 110px); }
  60%  { transform: translate(155px, 95px); }
  78%  { transform: translate(150px, 140px); }
  100% { transform: translate(150px, 175px); }
}

/* ============ 视觉设计 slide · 左到右擦除动画 ============ */
.media__slide--handwriting img {
  clip-path: inset(0 100% 0 0);
}

.media__slide--handwriting.is-active img {
  animation: handwrite 1.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) 0.25s forwards;
}

@keyframes handwrite {
  to { clip-path: inset(0 0 0 0); }
}

/* ============ 数据抓取 slide · 爬取动画 + AI Prompt 卡片 ============ */
.scrape-svg {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-height: 48%;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(30, 64, 175, 0.18));
}

.scrape-web .prod,
.scrape-data .row {
  transform-box: fill-box;
  transform-origin: center;
}

.media__slide--data.is-active .prod-1 { animation: prodPulse1 4s linear infinite; }
.media__slide--data.is-active .prod-2 { animation: prodPulse2 4s linear infinite; }
.media__slide--data.is-active .prod-3 { animation: prodPulse3 4s linear infinite; }
.media__slide--data.is-active .prod-4 { animation: prodPulse4 4s linear infinite; }

@keyframes prodPulse1 {
  0%, 3%, 16%, 100% { fill: rgba(255,255,255,0.05); stroke-width: 1.5; }
  8% { fill: rgba(255,255,255,0.55); stroke-width: 2.4; }
}
@keyframes prodPulse2 {
  0%, 18%, 31%, 100% { fill: rgba(255,255,255,0.05); stroke-width: 1.5; }
  23% { fill: rgba(255,255,255,0.55); stroke-width: 2.4; }
}
@keyframes prodPulse3 {
  0%, 33%, 46%, 100% { fill: rgba(255,255,255,0.05); stroke-width: 1.5; }
  38% { fill: rgba(255,255,255,0.55); stroke-width: 2.4; }
}
@keyframes prodPulse4 {
  0%, 48%, 61%, 100% { fill: rgba(255,255,255,0.05); stroke-width: 1.5; }
  53% { fill: rgba(255,255,255,0.55); stroke-width: 2.4; }
}

.row { opacity: 0; }

.media__slide--data.is-active .row-1 { animation: rowAppear1 4s ease infinite; }
.media__slide--data.is-active .row-2 { animation: rowAppear2 4s ease infinite; }
.media__slide--data.is-active .row-3 { animation: rowAppear3 4s ease infinite; }
.media__slide--data.is-active .row-4 { animation: rowAppear4 4s ease infinite; }

@keyframes rowAppear1 {
  0%, 11% { opacity: 0; transform: translateX(-8px); }
  16%, 92% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}
@keyframes rowAppear2 {
  0%, 26% { opacity: 0; transform: translateX(-8px); }
  31%, 92% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}
@keyframes rowAppear3 {
  0%, 41% { opacity: 0; transform: translateX(-8px); }
  46%, 92% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}
@keyframes rowAppear4 {
  0%, 56% { opacity: 0; transform: translateX(-8px); }
  61%, 92% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}

.ai-prompt {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  width: 92%;
  padding: 18px 14px 18px 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 10px 28px rgba(15, 23, 42, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.ai-prompt__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  align-self: flex-start;
  padding-top: 1px;
}

.ai-prompt__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ai-prompt__text {
  flex: 1;
  min-width: 0;
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.55;
  color: #1f2937;
  word-break: break-word;
}

.ai-prompt__cursor {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: aiCursorBlink 1s steps(1, end) infinite;
}

@keyframes aiCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ai-prompt__chat {
  flex-shrink: 0;
  font-size: 13px;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: 2px;
}

.ai-prompt__send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #ef6739;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  box-shadow: 0 2px 8px rgba(239, 103, 57, 0.35);
  transition: background 0.15s ease;
}

.ai-prompt__send:hover {
  background: #df5a2d;
}

.ai-prompt__send svg {
  width: 16px;
  height: 16px;
}

/* ============ 技能列表 ============ */
.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-item {
  position: relative;
  padding: 24px 28px;
  border-left: 3px solid var(--divider);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.skill-item:hover {
  border-left-color: var(--text-faded);
}

.skill-item.is-active {
  border-left-color: var(--highlight);
}

.skill-item__eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.skill-item.is-active .skill-item__eyebrow {
  opacity: 1;
}

.skill-item__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-faded);
  margin-bottom: 0;
  transition: color 0.2s ease;
}

.skill-item.is-active .skill-item__title {
  color: var(--text);
}

.skill-item__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.skill-item.is-active .skill-item__desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 12px;
}

.skill-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease, gap 0.2s ease;
}

.skill-item.is-active .skill-item__cta {
  margin-top: 16px;
  max-height: 32px;
  opacity: 1;
}

.skill-item__cta:hover {
  gap: 10px;
}

.skill-item__cta span {
  transition: transform 0.2s ease;
}

.skill-item__cta:hover span {
  transform: translateX(2px);
}
