/* ========== 莫兰迪色系 + 纸张黄 ========== */
:root {
  --white: #fff;
  --white-95: rgba(255, 255, 255, 0.95);
  --white-90: rgba(255, 255, 255, 0.9);
  --paper: #F5F0E6;
  --paper-light: #F7F3E8;
  --paper-warm: #F4EFE4;
  --morandi-blue: #8B9A9E;
  --morandi-terracotta: #B8A088;
  --morandi-mauve: #9B8B9E;
  --morandi-sage: #7A8F7A;
  --morandi-dark: #5C5C5C;
  --morandi-border: #D4CFC7;
  --text-dark: #4A4A4A;
  --text-mid: #6B6B6B;
  --text-light: #8B8B8B;
}

/* ========== 基础 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--paper);
}

/* ========== 滚动定位轴（刻度尺样式，悬浮不占宽度） ========== */
.scroll-axis {
  position: fixed;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  z-index: 99;
  /* position: fixed 脱离文档流，悬浮于内容之上，不占实际宽度 */
}

.scroll-axis__track {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--paper) 8%, var(--paper) 92%, transparent 100%);
  pointer-events: none;
  transition: background 0.3s ease;
}

.scroll-axis__tick {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 24px;
  height: 48px;
  text-decoration: none;
  z-index: 1;
}

.scroll-axis__tick::before {
  content: '';
  position: absolute;
  right: 0;
  width: 6px;
  height: 1px;
  background: var(--paper);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s,
              right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-axis__tick:hover::before,
.scroll-axis__tick.active::before {
  width: 12px;
  right: -6px;
  background: var(--paper);
}

.scroll-axis__tick[data-section="hero"]:hover::before,
.scroll-axis__tick[data-section="hero"].active::before { background: var(--paper); }
.scroll-axis__tick[data-section="intro"]:hover::before,
.scroll-axis__tick[data-section="intro"].active::before { background: var(--paper); }
.scroll-axis__tick[data-section="design-tools"]:hover::before,
.scroll-axis__tick[data-section="design-tools"].active::before { background: var(--paper); }
.scroll-axis__tick[data-section="cursor"]:hover::before,
.scroll-axis__tick[data-section="cursor"].active::before { background: var(--paper); }
.scroll-axis__tick[data-section="cursor-workflow"]:hover::before,
.scroll-axis__tick[data-section="cursor-workflow"].active::before { background: var(--paper); }
.scroll-axis__tick[data-section="reflection"]:hover::before,
.scroll-axis__tick[data-section="reflection"].active::before { background: var(--paper); }

.scroll-axis__label {
  position: absolute;
  right: 32px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: transparent;
  opacity: 0;
  transform: translateX(6px) scale(0.9);
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.2s,
              font-size 0.2s;
  white-space: nowrap;
}

.scroll-axis__tick .scroll-axis__label {
  text-transform: uppercase;
}

.scroll-axis__tick[data-section="hero"] .scroll-axis__label,
.scroll-axis__tick[data-section="intro"] .scroll-axis__label,
.scroll-axis__tick[data-section="cursor-workflow"] .scroll-axis__label,
.scroll-axis__tick[data-section="reflection"] .scroll-axis__label {
  text-transform: none;
  letter-spacing: 0.04em;
}

.scroll-axis__tick:hover .scroll-axis__label,
.scroll-axis__tick.active .scroll-axis__label {
  opacity: 1;
  transform: translateX(0) scale(1.08);
  font-size: 12px;
  color: var(--paper);
}

.scroll-axis__tick[data-section="hero"]:hover .scroll-axis__label,
.scroll-axis__tick[data-section="hero"].active .scroll-axis__label { color: var(--paper); }
.scroll-axis__tick[data-section="intro"]:hover .scroll-axis__label,
.scroll-axis__tick[data-section="intro"].active .scroll-axis__label { color: var(--paper); }
.scroll-axis__tick[data-section="design-tools"]:hover .scroll-axis__label,
.scroll-axis__tick[data-section="design-tools"].active .scroll-axis__label { color: var(--paper); }
.scroll-axis__tick[data-section="cursor"]:hover .scroll-axis__label,
.scroll-axis__tick[data-section="cursor"].active .scroll-axis__label { color: var(--paper); }
.scroll-axis__tick[data-section="cursor-workflow"]:hover .scroll-axis__label,
.scroll-axis__tick[data-section="cursor-workflow"].active .scroll-axis__label { color: var(--paper); }

/* 浅色区域时滚动条改为莫兰迪深色 */
.scroll-axis--light .scroll-axis__track {
  background: linear-gradient(to bottom, transparent 0%, var(--morandi-dark) 8%, var(--morandi-dark) 92%, transparent 100%);
}

.scroll-axis--light .scroll-axis__tick::before {
  background: var(--morandi-dark);
}

.scroll-axis--light .scroll-axis__tick:hover::before,
.scroll-axis--light .scroll-axis__tick.active::before {
  background: var(--morandi-dark);
}

.scroll-axis--light .scroll-axis__tick[data-section]:hover::before,
.scroll-axis--light .scroll-axis__tick[data-section].active::before {
  background: var(--morandi-dark);
}

.scroll-axis--light .scroll-axis__tick:hover .scroll-axis__label,
.scroll-axis--light .scroll-axis__tick.active .scroll-axis__label {
  color: var(--morandi-dark);
}

.scroll-axis--light .scroll-axis__tick[data-section]:hover .scroll-axis__label,
.scroll-axis--light .scroll-axis__tick[data-section].active .scroll-axis__label {
  color: var(--morandi-dark);
}

/* ========== 主内容区 ========== */
.page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh; /* 动态视口，移动端排除地址栏 */
  padding: clamp(48px, 10vh, 80px) 48px clamp(40px, 8vh, 64px);
  padding-left: max(48px, env(safe-area-inset-left));
  padding-right: max(48px, env(safe-area-inset-right));
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__tagline {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--white-90);
  margin: 0 0 16px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: 0.2em;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: 20px;
  color: var(--white-95);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* 首屏下方滚动提示 */
.hero__scroll-hint {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--white-90);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero__scroll-hint__text {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.75) 25%,
    rgba(255, 255, 255, 0.85) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.85) 60%,
    rgba(255, 255, 255, 0.75) 75%,
    rgba(255, 255, 255, 0.75) 100%
  );
  background-size: 300% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-scroll-sweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

@keyframes hero-scroll-sweep {
  0% { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

/* ========== 个人介绍（时间轴） ========== */
.section--intro {
  background: var(--paper-light);
}

.section--intro .section-inner__media {
  margin-top: 0;
}

.intro__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0 0 40px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline__line {
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--morandi-border);
  border-radius: 1px;
  /* 竖线中心在 6px，与 .timeline__dot 中心对齐 */
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  position: relative;
  padding-bottom: 28px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -22px;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--morandi-dark);
  transform: rotate(45deg);
  /* 菱形中心与右侧标题（24px 第一行）垂直居中对齐 */
}

.timeline__content {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.timeline__year {
  font-size: 24px;
  font-weight: 600;
  color: rgba(74, 74, 74, 1);
  letter-spacing: 0.02em;
}

.timeline__role {
  font-size: 24px;
  font-weight: 600;
  color: rgba(74, 74, 74, 1);
}

.timeline__place {
  font-size: 16px;
  color: var(--text-mid);
  /* 与时间范围色值一致 */
  width: 100%;
  margin-top: 2px;
}

/* ========== 金句区块（履历下方） ========== */
.section--tagline {
  background: var(--morandi-sage);
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 0.5px,
      transparent 0.5px,
      transparent 24px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 0.5px,
      transparent 0.5px,
      transparent 24px
    );
  text-align: center;
  padding: 48px 48px;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--tagline--design-tools {
  background: var(--morandi-mauve);
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 0.5px,
      transparent 0.5px,
      transparent 24px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 0.5px,
      transparent 0.5px,
      transparent 24px
    );
}

.section--tagline--learn {
  background: var(--morandi-dark);
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 0.5px,
      transparent 0.5px,
      transparent 24px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 0.5px,
      transparent 0.5px,
      transparent 24px
    );
}

.section--tagline--learn .tagline__text {
  color: var(--paper);
}

.section--tagline--learn .tagline__link {
  margin-top: 20px;
}

.tagline__link {
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.tagline__link:hover {
  opacity: 0.9;
}

.tagline__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tagline__text {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--paper);
  line-height: 1.6;
  margin: 0;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.tagline__text .no-wrap {
  white-space: nowrap;
}

.tagline__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

.tagline__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  animation: tagline-float 2.5s ease-in-out infinite;
}

.tagline__icon--1 { animation-delay: 0s; }
.tagline__icon--2 { animation-delay: 0.4s; }
.tagline__icon--3 { animation-delay: 0.8s; }

@keyframes tagline-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 金句区块内横向时间轴：UI/UX 工具发展历程 */
.section--tagline--with-timeline .tagline__inner {
  width: 100%;
  max-width: 1200px;
}

/* 跟随指针的设计师话术 */
.tagline-phrase {
  position: fixed;
  z-index: 100;
  padding: 0;
  width: 180px;
  height: 64px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-out, visibility 0.45s ease-out, transform 0.1s ease;
  transform: translateY(-100%);
}

.tagline-phrase.is-visible {
  opacity: 1;
  visibility: visible;
}

.tools-timeline {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding: 0 24px;
  width: 100%;
}

.tools-timeline__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30.5px;
  height: 1px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.4);
  z-index: 0;
}

.tools-timeline__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.tools-timeline__year {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-90);
  letter-spacing: 0.02em;
}

.tools-timeline__name {
  font-size: 16px;
  font-weight: 500;
  color: var(--paper);
}

.tools-timeline__item--future .tools-timeline__name {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
}

.tools-timeline__item::before {
  content: '';
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--paper);
}

/* ========== 章节通用 ========== */
.section {
  padding: 64px 48px;
}

.section__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 40px;
  color: var(--text-dark);
}

.section__subtitle {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--text-dark);
}

.content-block {
  margin-bottom: 32px;
  max-width: 720px;
}

.content-block:last-of-type {
  margin-bottom: 0;
}

.content-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-dark);
}

.content-block p {
  font-size: 16px;
  color: var(--text-mid);
  margin: 0 0 8px;
}

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

/* 章节背景色（纸张黄及微调） */
.section--design-tools { background: var(--paper-warm); height: 640px; overflow-y: auto; }
.section--cursor { background: var(--paper); height: 640px; overflow-y: auto; }
.section--side-projects {
  background: var(--paper);
}

.side-projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.side-projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.side-projects__card {
  display: flex;
  flex-direction: column;
}

.side-projects__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.side-projects__link:hover {
  opacity: 0.85;
}

.side-projects__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(74, 74, 74, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-projects__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.side-projects__media.has-img img {
  display: block;
}

.side-projects__media--fill img {
  object-fit: cover;
}

.side-projects__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.section--reflection { background: var(--paper); height: 640px; }

.reflection-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section--cursor-workflow {
  background: var(--morandi-blue);
  min-height: 640px;
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 0.5px,
      transparent 0.5px,
      transparent 24px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.12) 0,
      rgba(255, 255, 255, 0.12) 0.5px,
      transparent 0.5px,
      transparent 24px
    );
  padding-left: 48px;
  padding-right: 48px;
}

.section--cursor-workflow .section__title {
  margin-bottom: 40px;
  text-align: center;
  color: var(--paper);
}

.workflow-cols {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-width: 0;
  border-style: none;
  border-color: transparent;
  border-image: none;
  overflow: hidden;
  background: var(--paper);
}

.workflow-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--morandi-border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.workflow-col:hover {
  background: rgba(255, 255, 255, 0.15);
}

.workflow-col:last-child {
  border-right: none;
}

.workflow-col__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
}

.workflow-col__num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.workflow-col__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.4;
}

.workflow-col__media {
  aspect-ratio: 1024 / 640;
  margin: 0 12px 12px;
  background: rgba(74, 74, 74, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-col__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.workflow-col__media.has-img img {
  display: block;
}

.workflow-col__body {
  flex: 1;
  min-height: 0;
}

.workflow-col__body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
  padding: 0 16px 20px;
}

/* 实战工作流下方 Skills 推荐 */
.workflow-skills {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0 0;
  text-align: center;
}

.workflow-skills__desc {
  font-size: 14px;
  color: var(--white);
  margin: 0 0 16px;
}

.workflow-skills__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.workflow-skills__list li {
  font-size: 14px;
  color: var(--paper);
}

.workflow-skills__list a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.workflow-skills__list a:hover {
  opacity: 0.85;
}

/* ========== 实战工作流详情全屏模态 ========== */
.workflow-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.3s ease, pointer-events 0.3s ease;
}

.workflow-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s, pointer-events 0s;
}

.workflow-modal.is-open .workflow-modal__content {
  transform: scale(1);
}

.workflow-modal__center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  overflow: visible;
}

/* 遮罩无过渡，打开时立即显示，避免 backdrop-filter 计算延迟 */
.workflow-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.workflow-modal__content {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: transparent;
  padding: 48px 40px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.workflow-modal__close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.workflow-modal__close:hover {
  opacity: 0.8;
}

.workflow-modal__img-wrap {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.workflow-modal__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.workflow-modal__img-wrap:not(.has-img) {
  display: none;
}

/* 三区块内部左右布局：左侧内容 + 右侧 4:3 图片区，顶部对齐 */
.section-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.section-inner__content {
  flex: 1;
  min-width: 0;
}

.section-inner__media {
  flex-shrink: 0;
  width: min(460px, 40%);
  /* 与左侧首个选项顶部对齐：标题行高(2rem×1.6) + 标题下边距(40px) */
  margin-top: calc(2rem * 1.6 + 40px);
}

.section-inner__img {
  width: 100%;
  background: rgba(74, 74, 74, 0.08);
  border-radius: 0;
  overflow: visible;
  position: relative;
  /* 容器高度由图片自然比例决定 */
}

/* 拍立得相纸外框（履历图片）——凹凸质感 */
.section-inner__img--polaroid {
  padding: 14px 14px 56px;
  background: linear-gradient(145deg, #faf8f4 0%, #f2efe8 50%, #f8f5f0 100%);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -2px -2px 4px rgba(0, 0, 0, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.1);
  transform: rotate(-1.5deg);
  isolation: isolate;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* 照片窗口凹陷区域 */
.section-inner__img--polaroid::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 56px;
  background: transparent;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 1px;
  pointer-events: none;
  z-index: 0;
}

.section-inner__img--polaroid > img:first-child {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.section-inner__img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  transition: opacity 0.25s ease;
}

.section-inner__img img {
  display: none;
}

.section-inner__img.has-img img {
  display: block;
}

/* Sketch/Figma/Cursor 区块右侧图片：点击放大查看 */
.section-inner:has(.section-list) .section-inner__img.has-img {
  cursor: pointer;
}

/* 履历图片旁散落文字贴纸（叠在拍立得相纸之上） */
.section--intro .intro-sticker {
  position: absolute !important;
  width: auto !important;
  max-width: 120px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}
.section--intro .intro-sticker--tools {
  top: 5%;
  right: -12%;
  transform: rotate(-8deg);
}
.section--intro .intro-sticker--design {
  bottom: 18%;
  left: -15%;
  transform: rotate(6deg);
}

/* ========== 章节信息列表（参考玻璃拟态布局） ========== */

.section-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}

.section-list__item {
  border-left: 1px solid transparent;
  margin-left: -1px;
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.section-list__header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  padding-left: 24px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.section-list__item:hover .section-list__header {
  color: var(--text-mid);
}

.section-list__item.active .section-list__header {
  color: var(--text-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-list__item.active {
  border-left-color: currentColor;
}

.section-list__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 24px;
  transition: max-height 0.5s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.4s ease,
              padding 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.section-list__item.active .section-list__body {
  max-height: 420px;
  opacity: 1;
  padding: 0 24px 24px 24px;
  transition: max-height 0.5s cubic-bezier(0.32, 0.72, 0, 1),
              opacity 0.4s ease 0.06s,
              padding 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}

.section-list__body p {
  font-size: 16px;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* 设计工具模块：Sketch 面板用陶土色，Figma 面板用紫灰 */
.section--design-tools .design-tools__panel[data-tool="sketch"] .section-list__item.active {
  color: var(--morandi-terracotta);
  border-left-color: var(--morandi-terracotta);
}

.section--design-tools .design-tools__panel[data-tool="figma"] .section-list__item.active {
  color: var(--morandi-mauve);
  border-left-color: var(--morandi-mauve);
}

/* 设计工具切换器 */
.design-tools__switcher {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}

.design-tools__tab {
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid var(--morandi-border);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.design-tools__tab:first-child {
  border-radius: 1px;
}

.design-tools__tab:last-child {
  border-radius: 1px;
  margin-left: -1px;
}

.design-tools__tab:hover {
  color: var(--text-dark);
  background: rgba(74, 74, 74, 0.04);
}

.design-tools__tab.active {
  color: var(--text-dark);
  font-weight: 600;
  background: var(--paper);
  border-color: var(--morandi-terracotta);
  box-shadow: none;
}

.design-tools__tab.active[data-tool="figma"] {
  border-color: var(--morandi-mauve);
}

/* Sketch/Figma 右侧图片与左侧 tab 切换器顶部对齐 */
#design-tools .section-inner__media {
  margin-top: calc(2rem * 1.6 + 40px);
}

/* Sketch/Figma 图片左下角品牌图标 */
#design-tools .section-inner__img .design-tools__icon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
  display: none;
}
#design-tools .section-inner__img.has-img[data-tool="sketch"] .design-tools__icon--sketch,
#design-tools .section-inner__img.has-img[data-tool="figma"] .design-tools__icon--figma {
  display: block;
}

.design-tools__panels {
  position: relative;
}

.design-tools__panel {
  display: none;
}

.design-tools__panel.active {
  display: block;
}

.section--cursor .section-list__item.active {
  color: rgba(139, 154, 159, 1);
  border-left-color: rgba(139, 154, 159, 1);
}

/* ========== Cursor 四步流程卡片 ========== */
.flow-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.flow-card {
  padding: 20px;
  background: var(--paper);
  border-radius: 8px;
}

.flow-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.flow-card p {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
}

/* ========== 高亮金句 ========== */
.highlight {
  margin: 40px 0 0;
  padding: 20px 24px;
  background: rgba(139, 154, 158, 0.15);
  border-left: 4px solid var(--morandi-blue);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  max-width: 720px;
}

/* ========== 页脚 ========== */
.footer {
  padding: 0 48px;
  height: 80px;
  display: flex;
  align-items: center;
  background: var(--morandi-dark);
  color: var(--paper);
}

.footer p {
  margin: 0;
  font-size: 14px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .scroll-axis {
    right: 16px;
  }

  .scroll-axis__tick {
    height: 40px;
  }

  .scroll-axis__label {
    font-size: 9px;
  }

  .scroll-axis__tick:hover .scroll-axis__label,
  .scroll-axis__tick.active .scroll-axis__label {
    font-size: 10px;
  }

  .hero {
    padding: clamp(32px, 8vh, 48px) 24px clamp(24px, 6vh, 40px);
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .section {
    padding: 48px 24px;
  }

  .section-inner {
    flex-direction: column;
    gap: 24px;
  }

  .section-inner__media {
    width: 100%;
    max-width: 320px;
  }

  /* design-tools 垂直分布时，图片宽度与左侧文本区域一致 */
  #design-tools .section-inner__media {
    max-width: none;
  }

  .section__title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .intro__title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .section--cursor-workflow {
    padding-left: 24px;
    padding-right: 24px;
  }

  .workflow-skills {
    padding: 24px 0 0;
  }

  .workflow-skills__list {
    flex-direction: column;
    align-items: center;
  }

  .section--intro .intro-sticker {
    max-width: 80px;
  }

  .workflow-cols {
    flex-direction: column;
  }

  .workflow-col {
    border-right: none;
    border-bottom: 1px solid var(--morandi-border);
  }

  .workflow-col:last-child {
    border-bottom: none;
  }

  .workflow-col__num {
    font-size: 36px;
  }

  .workflow-col__title {
    font-size: 13px;
  }

  .tools-timeline {
    margin-top: 48px;
    padding: 0 16px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .tools-timeline__item {
    flex: 0 0 auto;
    min-width: 72px;
  }

  .tools-timeline__year {
    font-size: 12px;
  }

  .tools-timeline__name {
    font-size: 14px;
  }

  .section--tagline {
    padding: 40px 24px;
  }

  .side-projects__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow-cards {
    grid-template-columns: 1fr;
  }

  .section-list__header {
    padding: 12px 16px;
    padding-left: 20px;
    font-size: 24px;
  }

  .section-list__body {
    padding: 0 20px;
  }

  .section-list__item.active .section-list__body {
    max-height: 500px;
    padding: 0 20px 20px 20px;
  }

  .section-list__body p {
    font-size: 16px;
    line-height: 1.7;
  }

  .footer {
    padding: 0 24px;
  }
}
