.works-page {
  min-height: 100svh;
  overflow-x: hidden;
}

.works-main {
  min-height: 100svh;
  padding: 0 18px 58px;
}

.works-board {
  display: grid;
  width: min(calc(100% - 18px), 1360px);
  min-height: 100svh;
  margin: 0 auto;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(54px, 1fr));
  gap: clamp(10px, 1.25vw, 18px);
  padding: 104px 0 44px;
}

.index-card,
.media-index-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 64px rgba(25, 29, 36, 0.12);
}

.media-index-card {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.media-index-card:hover,
.media-index-card:focus-visible,
.other-projects-card:hover,
.other-projects-card:focus-visible,
.center-links a:hover,
.center-links a:focus-visible {
  box-shadow: 0 28px 86px rgba(25, 29, 36, 0.2);
  transform: translateY(-3px);
}

.media-index-card:focus-visible,
.other-projects-card:focus-visible,
.center-links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.media-index-card img,
.media-index-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-index-card span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 6px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.center-card {
  grid-column: 5 / 9;
  grid-row: 3 / 6;
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 24px;
  border-color: var(--ink);
  padding: clamp(22px, 4vw, 40px);
  text-align: center;
}

.center-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.3vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
}

.center-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.center-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 18, 18, 0.26);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  transition: box-shadow 220ms ease, transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.center-links a:hover,
.center-links a:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.other-projects-card {
  grid-column: 9 / 12;
  grid-row: 4 / 6;
  display: grid;
  width: 100%;
  min-width: 0;
  height: 100%;
  place-items: center;
  border-color: var(--ink);
  padding: 18px;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.other-projects-card span {
  color: var(--ink);
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.work-a {
  grid-column: 1 / 4;
  grid-row: 2 / 5;
}

.work-b {
  grid-column: 9 / 13;
  grid-row: 2 / 4;
}

.work-c {
  grid-column: 2 / 5;
  grid-row: 5 / 8;
}

.work-d {
  grid-column: 4 / 6;
  grid-row: 1 / 3;
}

.work-e {
  grid-column: 7 / 9;
  grid-row: 1 / 3;
}

.work-f {
  grid-column: 6 / 9;
  grid-row: 6 / 9;
}

.work-g {
  grid-column: 10 / 13;
  grid-row: 7 / 9;
}

.works-feed {
  display: grid;
  width: min(calc(100% - 18px), 1360px);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(240px, 28vw);
  gap: clamp(10px, 1.25vw, 18px);
  padding: 28px 0 26px;
  border-top: 1px solid var(--line);
}

.works-feed .wide {
  grid-column: span 2;
}

.works-feed .tall {
  grid-row: span 2;
}

.index-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease;
}

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

.project-detail-card {
  position: relative;
  width: min(1280px, 100%);
  height: min(860px, 88svh);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #2f58ff;
  isolation: isolate;
  user-select: none;
}

.project-detail-card h2 {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  margin: 0;
  background: rgba(255, 230, 0, 0.86);
  padding: 4px 10px 5px;
  color: #070707;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, "STSong", serif;
  font-size: clamp(18px, 2.1vw, 34px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  transform: rotate(-3deg);
}

.project-detail-card h2 .index-title-cn {
  margin-left: 0.4em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.project-orbit-hint {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 4;
  margin: 0;
  background: rgba(255, 230, 0, 0.82);
  padding: 4px 9px 5px;
  color: #070707;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, "STSong", serif;
  font-size: clamp(15px, 1.3vw, 22px);
  font-style: italic;
  line-height: 1;
  transform: rotate(2deg);
}

.project-detail-card::before,
.project-detail-card::after {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 18%;
  content: "";
  pointer-events: none;
}

.project-detail-card::before {
  top: 0;
  background: linear-gradient(#fff 20%, rgba(255, 255, 255, 0));
}

.project-detail-card::after {
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 82%);
}

.project-list {
  --project-duration: 28000ms;
  --project-start-y: 160vh;
  --project-quarter-y: 30vh;
  --project-half-y: -100vh;
  --project-three-quarter-y: -230vh;
  --project-end-y: -360vh;
  --project-tilt: 10deg;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  outline: 0;
  perspective: 42vh;
  perspective-origin: 54% 48%;
  transform-style: preserve-3d;
  white-space: nowrap;
  text-align: center;
  cursor: grab;
  touch-action: none;
}

.project-list.is-dragging {
  cursor: grabbing;
}

.project-item {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: #070707;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, "STSong", serif;
  font-size: clamp(22px, calc(70vw / var(--project-length)), 42px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  cursor: inherit;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: center center -260px;
  opacity: 0;
  transform: translateY(100vh);
  animation: project-corkscrew var(--project-duration) linear infinite;
  animation-play-state: paused;
  will-change: transform, opacity;
  transition: color 120ms ease, opacity 120ms ease, filter 120ms ease;
}

.index-modal.is-open .project-item {
  animation-play-state: running;
}

.project-item-label {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.project-item-label::before {
  position: absolute;
  z-index: -1;
  inset: 7% -0.28em 2%;
  background: rgba(255, 230, 0, 0.84);
  content: "";
  transform: rotate(var(--project-marker-rotation, -2deg)) scaleX(var(--project-marker-scale, 1));
  transform-origin: center;
}

.project-item:nth-child(3n + 1) .project-item-label::before {
  --project-marker-rotation: 2deg;
  --project-marker-scale: 1.08;
}

.project-item:nth-child(3n + 2) .project-item-label::before {
  --project-marker-rotation: -4deg;
  --project-marker-scale: 0.94;
}

.project-item:hover,
.project-item:focus-visible {
  color: #0037ff;
  filter: none !important;
}

.project-item.is-active {
  color: #ffffff;
}

.project-item.is-active .project-item-label::before {
  background: #2f58ff;
}

.project-item:focus-visible {
  outline: 0;
}

.project-list:focus-visible .project-item:nth-child(1) .project-item-label::before {
  box-shadow: 0 0 0 2px rgba(47, 88, 255, 0.28);
}

@keyframes project-corkscrew {
  0% {
    opacity: 0;
    transform: rotateY(104deg) translateY(var(--project-start-y)) rotate(var(--project-tilt));
  }

  10% {
    opacity: 0.22;
  }

  25% {
    opacity: 1;
    transform: rotateY(-22deg) translateY(var(--project-quarter-y)) rotate(var(--project-tilt));
  }

  50% {
    opacity: 1;
    transform: rotateY(-148deg) translateY(var(--project-half-y)) rotate(var(--project-tilt));
  }

  75% {
    opacity: 1;
    transform: rotateY(-274deg) translateY(var(--project-three-quarter-y)) rotate(var(--project-tilt));
  }

  90% {
    opacity: 0.16;
  }

  100% {
    opacity: 0;
    transform: rotateY(-400deg) translateY(var(--project-end-y)) rotate(var(--project-tilt));
  }
}

@media (max-width: 980px) {
  .works-board {
    min-height: auto;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(82px, 12vw));
    padding-top: 92px;
  }

  .center-card {
    grid-column: 2 / 6;
    grid-row: 1 / 4;
  }

  .work-a {
    grid-column: 1 / 4;
    grid-row: 4 / 7;
  }

  .work-b {
    grid-column: 4 / 7;
    grid-row: 4 / 6;
  }

  .work-c {
    grid-column: 1 / 3;
    grid-row: 7 / 10;
  }

  .other-projects-card {
    grid-column: 3 / 7;
    grid-row: 6 / 8;
  }

  .work-d {
    grid-column: 3 / 5;
    grid-row: 8 / 11;
  }

  .work-e {
    grid-column: 5 / 7;
    grid-row: 8 / 11;
  }

  .work-f,
  .work-g {
    display: none;
  }

  .works-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(190px, 40vw);
  }
}

@media (max-width: 640px) {
  .works-main {
    padding: 0 12px 34px;
  }

  .works-board,
  .works-feed {
    width: 100%;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .works-board {
    display: flex;
    min-height: auto;
    padding-top: 86px;
    flex-direction: column;
  }

  .center-card,
  .other-projects-card,
  .work-a,
  .work-b,
  .work-c,
  .work-d,
  .work-e,
  .work-f,
  .work-g,
  .works-feed .wide,
  .works-feed .tall {
    display: block;
    grid-column: auto;
    grid-row: auto;
  }

  .center-card {
    display: grid;
    min-height: 280px;
    order: 1;
  }

  .work-a {
    order: 2;
  }

  .work-b {
    order: 3;
  }

  .other-projects-card {
    display: grid;
    min-height: 170px;
    order: 4;
  }

  .work-c,
  .work-d,
  .work-e,
  .work-f,
  .work-g {
    order: 5;
  }

  .media-index-card {
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .media-index-card.tall {
    aspect-ratio: 4 / 5;
  }

  .works-feed {
    display: grid;
  }

  .project-detail-card {
    padding: 22px;
  }
}

.works-infinite {
  height: 100svh;
  overflow: hidden;
}

.works-infinite .works-main {
  height: 100svh;
  min-height: 0;
  padding: 0;
}

.works-infinite .site-footer {
  position: fixed;
  z-index: 30;
  left: 28px;
  bottom: 24px;
  width: auto;
  margin: 0;
  padding: 0;
  border-top: 0;
}

.works-infinite .filing-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(25, 29, 36, 0.1);
  padding: 0 12px;
  backdrop-filter: blur(18px);
}

.infinite-stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
}

.canvas-hint {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 30;
  border: 1px solid rgba(18, 18, 18, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 54px rgba(25, 29, 36, 0.1);
  padding: 9px 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.other-projects-gateway {
  position: fixed;
  z-index: 32;
  top: 50%;
  right: 28px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 18, 18, 0.82);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 18px 54px rgba(25, 29, 36, 0.16);
  padding: 0 16px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-50%);
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.other-projects-gateway:hover,
.other-projects-gateway:focus-visible {
  background: #ffe600;
  color: var(--ink);
  box-shadow: 0 24px 68px rgba(25, 29, 36, 0.22);
  transform: translateY(calc(-50% - 2px));
}

.other-projects-gateway:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.infinite-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
}

.infinite-viewport.is-dragging {
  cursor: grabbing;
}

.infinite-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.canvas-slot {
  position: absolute;
  display: flex;
  width: 424px;
  height: 289px;
  align-items: center;
  justify-content: center;
  margin-left: -212px;
  margin-top: -144.5px;
  user-select: none;
}

.canvas-card {
  position: relative;
  display: block;
  width: 360px;
  height: 225px;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 2px;
  background: #f5f5f2;
  color: var(--ink);
  box-shadow: 0 22px 72px rgba(25, 29, 36, 0.08);
  transform: translate3d(0, 0, 0);
}

.canvas-media-card {
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.canvas-media-card:hover,
.canvas-media-card:focus-visible {
  border-color: rgba(18, 18, 18, 0.28);
  box-shadow: 0 32px 86px rgba(25, 29, 36, 0.16);
  transform: translate3d(0, -3px, 0);
}

.canvas-media-card:focus-visible,
.canvas-project-card:focus-visible,
.identity-links a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.canvas-media-card img,
.canvas-media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canvas-media-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.canvas-identity-card,
.canvas-project-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  border-color: rgba(18, 18, 18, 0.18);
  background: #ffffff;
  text-align: center;
}

.canvas-identity-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.canvas-identity-card h1 .brand-mark-logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 auto;
}

.identity-tagline {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.identity-tagline::before,
.identity-tagline::after {
  content: "—";
  margin: 0 0.6em;
  color: rgba(18, 18, 18, 0.24);
  letter-spacing: 0;
}

.identity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.identity-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 18, 18, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.identity-links a:hover,
.identity-links a:focus-visible {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.canvas-project-card {
  width: 360px;
  height: 240px;
  display: block;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: none;
}

.canvas-project-card:hover,
.canvas-project-card:focus-visible {
  box-shadow: none;
  transform: none;
}

.project-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .works-infinite {
    overflow: hidden;
  }

  .canvas-hint {
    right: 14px;
    bottom: 16px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .other-projects-gateway {
    top: auto;
    right: auto;
    bottom: 58px;
    left: 50%;
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
    transform: translateX(-50%);
  }

  .other-projects-gateway:hover,
  .other-projects-gateway:focus-visible {
    transform: translate(-50%, -2px);
  }

  .works-infinite .site-footer {
    left: 14px;
    bottom: 16px;
  }

  .works-infinite .filing-link {
    min-height: 29px;
    padding: 0 10px;
    font-size: 11px;
  }

  .canvas-slot {
    width: 336px;
    height: 232px;
    margin-left: -168px;
    margin-top: -116px;
  }

  .canvas-card,
  .canvas-project-card {
    width: 300px;
    height: 188px;
  }

  .canvas-project-card {
    height: 200px;
  }

  .canvas-identity-card h1 {
    max-width: 268px;
    font-size: 40px;
    white-space: normal;
  }

  .canvas-identity-card h1 .brand-mark-logo {
    width: 168px;
  }

  .identity-links {
    gap: 6px;
  }

  .identity-links a {
    min-height: 31px;
    padding: 0 10px;
    font-size: 11px;
  }

  .project-detail-card {
    width: 100%;
    height: 86svh;
  }

  .project-list {
    perspective: 42vh;
    perspective-origin: 54% 48%;
    --project-start-y: 150vh;
    --project-quarter-y: 35vh;
    --project-half-y: -80vh;
    --project-three-quarter-y: -195vh;
    --project-end-y: -310vh;
    --project-tilt: 8deg;
  }

  .project-detail-card h2 {
    top: 12px;
    left: 12px;
    padding: 4px 8px 5px;
    font-size: clamp(17px, 5.4vw, 27px);
  }

  .project-orbit-hint {
    right: 12px;
    bottom: 12px;
    font-size: 14px;
  }

  .project-item {
    font-size: clamp(16px, calc(78vw / var(--project-length)), 27px);
    transform-origin: center center -180px;
  }
}

/* ═══════════════════════ Other Projects · 时间轴 + 联动浮窗 ═══════════════════════ */
.project-timeline-card .project-timeline-hint {
  text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px;
}
.timeline-wrap {
  position: relative; margin-top: 32px;
  display: flex; gap: 28px; align-items: flex-start;
}
.project-list.project-timeline {
  position: relative; inset: auto; z-index: 1; overflow: visible;
  perspective: none; transform-style: flat; white-space: normal;
  text-align: left; cursor: default; list-style: none; padding: 0;
  margin: 0; flex: 1; min-width: 0;
}
.timeline-year {
  display: flex; align-items: baseline; gap: 16px; margin: 32px 0 12px;
}
.timeline-year:first-child { margin-top: 0; }
.timeline-year .ty-num {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 36px; font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; font-style: italic;
}
.timeline-year .ty-line { flex: 1; height: 1px; background: var(--line); }
.timeline-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 22; border-radius: 8px; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
  outline: none;
}
.timeline-item:hover, .timeline-item:focus-visible, .timeline-item.is-active {
  background: var(--soft);
}
.timeline-item:hover .ti-title, .timeline-item:focus-visible .ti-title { color: var(--accent); }
.timeline-item .ti-dot {
  flex: none; width: 8px; height: 8px; border-radius: 999px;
  background: var(--ink); opacity: .25; transition: all .18s ease;
}
.timeline-item:hover .ti-dot, .timeline-item:focus-visible .ti-dot, .timeline-item.is-active .ti-dot {
  background: var(--accent); opacity: 1; transform: scale(1.4);
}
.timeline-item .ti-title {
  font-size: 16px; color: var(--ink); font-weight: 500;
  transition: color .18s ease;
}
.timeline-empty {
  padding: 32px 16px; color: var(--muted); text-align: center; font-size: 14px;
}
.timeline-preview {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
.timeline-preview .tp-frame {
  position: absolute; width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(25,29,36,.16); overflow: hidden;
  opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease;
  pointer-events: auto;
}
.timeline-preview.is-shown .tp-frame {
  opacity: 1; transform: translateY(0);
}
.timeline-preview img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #f4f4f4; }
.timeline-preview .tp-title {
  font-size: 14px; font-weight: 600; padding: 12px 14px 0; margin: 0;
}
.timeline-preview .tp-meta {
  font-size: 12px; color: var(--muted); padding: 4px 14px 12px; margin: 0;
}
.timeline-preview .tp-cloud {
  display: block; padding: 10px 14px; font-size: 12px;
  color: var(--accent); border-top: 1px solid var(--line);
}
.timeline-preview .tp-cloud[hidden] { display: none; }

@media (max-width: 760px) {
  .timeline-wrap { flex-direction: column; gap: 16px; }
  .timeline-preview { position: relative; inset: auto; min-height: 1px; }
  .timeline-preview .tp-frame { position: relative; top: auto !important; left: auto !important; width: 100%; }
  .timeline-year .ty-num { font-size: 28px; }
  .timeline-item .ti-title { font-size: 14px; }
}

/* ═══════════════════════ Project page 头部 ═══════════════════════ */
body.project-page .project-header {
  padding: 96px 24px 24px; background: var(--paper);
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: baseline;
  border-bottom: 1px solid var(--line);
}
body.project-page .project-header .ph-title {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(26px, 3vw, 40px); font-weight: 700; color: var(--ink);
  margin: 0; flex: 1 1 auto;
}
body.project-page .project-header .ph-year {
  font-family: Georgia, serif; font-style: italic; font-size: 22px;
  color: var(--muted);
}
body.project-page .project-header .ph-back,
body.project-page .project-header .ph-cloud {
  font-size: 13px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); background: var(--paper);
  text-decoration: none; transition: all .18s ease;
}
body.project-page .project-header .ph-back:hover,
body.project-page .project-header .ph-cloud:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
body.project-page .project-header .ph-cloud { color: var(--accent); border-color: var(--accent); }
body.project-page .project-header .ph-cloud:hover { background: var(--accent); color: #fff; }
