:root {
  --bg-page: #f9f7f2;
  --bg-white: #ffffff;
  --text: #1a1f2e;
  --text-muted: #5c6478;
  --blue: #8da3d9;
  --blue-deep: #6b87c9;
  --blue-soft: #e8eef9;
  --pink: #f0a8b8;
  --pink-soft: #fce4ec;
  --green: #8cc9a8;
  --green-soft: #e3f4ea;
  --peach: #f5c9a6;
  --sky: #b8d4f0;
  --mint: #c5e8d5;
  --shadow: 0 18px 40px rgba(60, 72, 102, 0.08);
  --shadow-sm: 0 8px 24px rgba(60, 72, 102, 0.06);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --container: 1080px;
  --font-sans: "Noto Sans SC", "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  display: none;
}

body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: -50px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(141, 163, 217, 0.12);
}

.nav-link.active {
  background: var(--blue);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    right: 20px;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    min-width: 200px;
    display: none;
  }

  .site-header.is-open .nav {
    display: flex;
  }
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-home {
  --header-h: 68px;
  padding-top: clamp(24px, 4vh, 44px);
  padding-bottom: clamp(36px, 6vh, 56px);
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.section-home .container.home-grid {
  width: 100%;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 52px);
  align-items: center;
}

.home-visual {
  overflow: visible;
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-visual {
    order: -1;
    justify-self: center;
  }
}

.home-copy {
  padding-left: clamp(88px, 20vw, 200px);
}

@media (max-width: 900px) {
  .home-copy {
    padding-left: clamp(32px, 9vw, 72px);
  }
}

.home-greeting {
  margin: 0;
  font-size: clamp(2.28rem, 4.45vw, 3.12rem);
  font-weight: 700;
  line-height: 1.15;
}

.home-name-cn {
  margin: 0;
  font-size: clamp(2.28rem, 4.45vw, 3.12rem);
  font-weight: 700;
  line-height: 1.15;
}

.home-name-prefix {
  color: var(--text);
  margin-right: 0.35em;
}

.home-name-highlight {
  color: var(--blue-deep);
}

.home-name-en {
  margin: 2px 0 22px;
  font-family: "DM Sans", var(--font-sans);
  font-size: clamp(2.62rem, 6.25vw, 3.72rem);
  font-weight: 600;
  color: var(--pink);
  letter-spacing: 0.04em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
}

.tag-blue {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.tag-pink {
  background: var(--pink-soft);
  color: #c2185b;
}

.tag-green {
  background: var(--green-soft);
  color: #2e7d57;
}

.bio-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.bio-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.bio-card strong {
  color: var(--text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(141, 163, 217, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

/* Hero photos — 并排错落 + 点击气泡 */
.photo-stack-wrap {
  width: 100%;
  max-width: 548px;
  margin-inline: auto;
  overflow: visible;
}

.photo-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 22px);
  width: 100%;
  padding: 28px 0 8px;
  position: relative;
  height: auto;
  overflow: visible;
}

.photo-slot {
  position: relative;
  flex: 1 1 42%;
  max-width: 248px;
  display: flex;
  justify-content: center;
  overflow: visible;
}

.photo-bubble-anchor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.photo {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 280 / 360;
  box-shadow: var(--shadow);
}

.photo--tap {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.photo--tap:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.photo-slot--1 {
  align-self: flex-end;
  margin-top: 36px;
}

.photo-slot--2 {
  align-self: flex-start;
  margin-bottom: 36px;
}

.photo-back {
  transform: rotate(-3deg);
  border: 4px solid rgba(184, 212, 240, 0.65);
  animation: home-photo-float-a 6.2s ease-in-out infinite;
}

.photo-front {
  transform: rotate(5deg);
  border: 4px solid rgba(240, 168, 184, 0.65);
  animation: home-photo-float-b 7s ease-in-out infinite;
  animation-delay: -1.5s;
}

.photo-stack-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-bottom: 4px;
}

.photo-stack-hint__arrows {
  display: flex;
  justify-content: space-between;
  width: min(280px, 72%);
  font-size: 1.35rem;
  color: var(--blue-deep);
  opacity: 0.85;
  line-height: 1;
}

.photo-stack-hint__pixel {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(0.48rem, 1.85vw, 0.65rem);
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  text-shadow:
    1px 0 0 rgba(255, 255, 255, 0.9),
    -1px 0 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 -1px 0 rgba(255, 255, 255, 0.9);
}

.hero-speech-bubble {
  position: absolute;
  max-width: min(360px, 62vw);
  padding: 11px 18px;
  background: #fff;
  border: 3px solid #1a1f2e;
  border-radius: 16px;
  box-shadow:
    4px 4px 0 rgba(141, 163, 217, 0.45),
    inset 0 -2px 0 rgba(248, 244, 238, 0.9);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
  animation: hero-bubble-in 0.28s ease;
  z-index: 2;
  white-space: nowrap;
}

.hero-speech-bubble--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.15em;
  white-space: nowrap;
  max-width: none !important;
  width: auto;
  padding: 10px 14px;
  border-radius: 16px;
  border: 3px solid #1a1f2e;
}

.hero-speech-bubble--pos-top {
  left: 50%;
  bottom: calc(100% + 42px);
  top: auto;
  right: auto;
  transform: translateX(-50%);
}

.hero-speech-bubble--pos-left {
  right: calc(100% + 28px);
  left: auto;
  top: 20%;
  bottom: auto;
  transform: translateY(-50%);
}

.hero-speech-bubble--pos-right {
  left: calc(100% + 28px);
  right: auto;
  top: 20%;
  bottom: auto;
  transform: translateY(-50%);
}

/* Down tail (bubble above photo): inner white + outer stroke, overlap to hide seam */
.hero-speech-bubble--tail-down::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -17px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 12px 0 12px;
  border-color: #1a1f2e transparent transparent transparent;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.hero-speech-bubble--tail-down::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 10px 0 10px;
  border-color: #fff transparent transparent transparent;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

/* Tail points right (bubble on left of photo) */
.hero-speech-bubble--tail-right::after {
  content: "";
  position: absolute;
  right: -15px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 14px;
  border-color: transparent transparent transparent #1a1f2e;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.hero-speech-bubble--tail-right::before {
  content: "";
  position: absolute;
  right: -11px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 11px;
  border-color: transparent transparent transparent #fff;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

/* Tail points left (bubble on right of photo) */
.hero-speech-bubble--tail-left::after {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 14px 12px 0;
  border-color: transparent #1a1f2e transparent transparent;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.hero-speech-bubble--tail-left::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 11px 9px 0;
  border-color: transparent #fff transparent transparent;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.hero-speech-bubble--out {
  animation: hero-bubble-out 0.38s ease forwards;
}

@keyframes hero-bubble-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-bubble-out {
  to {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-speech-bubble {
    animation: none;
  }

  .hero-speech-bubble--out {
    animation: none;
    opacity: 0;
  }
}

@keyframes home-photo-float-a {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0);
    box-shadow: var(--shadow);
  }
  50% {
    transform: rotate(-3deg) translateY(-10px);
    box-shadow: 0 22px 44px rgba(60, 72, 102, 0.12);
  }
}

@keyframes home-photo-float-b {
  0%,
  100% {
    transform: rotate(5deg) translateY(0);
    box-shadow: var(--shadow);
  }
  50% {
    transform: rotate(5deg) translateY(-8px);
    box-shadow: 0 22px 44px rgba(60, 72, 102, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-back,
  .photo-front {
    animation: none;
  }
}

.photo-fallback {
  min-height: 260px;
  aspect-ratio: 280 / 360;
  background: linear-gradient(145deg, #dfe8fb, #cfd9f5);
}

.photo-fallback-blue {
  background: linear-gradient(145deg, #dfe8fb, #cfd9f5);
}

@media (max-width: 520px) {
  .photo-stack {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .photo-slot--1,
  .photo-slot--2 {
    margin: 0;
    align-self: center;
    max-width: 280px;
    width: 88%;
  }

  .photo-stack-hint__arrows {
    width: min(300px, 88%);
  }
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head-spaced {
  margin-top: 64px;
}

.pill {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.82rem, 3.15vw, 2.32rem);
  font-weight: 700;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.12rem, 2.15vw, 1.3rem);
}

/* Project cards — 文字 : 媒体 ≈ 6 : 4 */
.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  overflow: hidden;
}

.project-card--accent {
  border-top: 4px solid transparent;
}

.project-card--clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-card--clickable:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.project-card-split {
  display: grid;
  gap: 0;
  align-items: stretch;
  padding: 0;
}

/* 媒体 40% | 正文 60% */
.project-card-media-left {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.project-card-media-right {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.project-card-split .project-body {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card-split .project-thumb {
  min-height: 200px;
  align-self: stretch;
  margin: 14px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 10px 32px rgba(60, 72, 102, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.project-card-media-left .project-thumb {
  margin-right: 10px;
  margin-left: 14px;
}

.project-card-media-right .project-thumb {
  margin-left: 10px;
  margin-right: 14px;
}

.project-hint {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.92;
}

.project-card.accent-pink .project-hint {
  color: #c2185b;
}

.project-card.accent-pink-soft .project-hint {
  color: #ad4d7a;
}

.project-card.accent-blue .project-hint {
  color: var(--blue-deep);
}

.project-card.accent-green .project-hint {
  color: #2e7d57;
}

@media (max-width: 768px) {
  .project-card-media-left,
  .project-card-media-right {
    grid-template-columns: 1fr;
  }

  .project-card-media-left .project-thumb,
  .project-card-media-right .project-thumb {
    order: -1;
    min-height: 200px;
    max-height: 280px;
    margin: 14px 14px 10px;
  }
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.badge-pink {
  background: linear-gradient(135deg, #f48fb1, #ec809f);
}

.badge-blue {
  background: linear-gradient(135deg, var(--blue), #6b87c9);
}

.badge-green {
  background: var(--green);
}

.badge-pink-soft {
  background: #f5a3bc;
}

.badge-blue-soft {
  background: #9eb4e8;
}

.badge-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
}

.project-lead {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.88;
}

.project-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.project-thumb {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(120deg, var(--blue-soft), var(--pink-soft));
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.project-thumb--has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b87c9'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 28px 28px;
  pointer-events: none;
}

.project-thumb-empty {
  background: linear-gradient(120deg, #eef3fb, #f5f0fa);
  min-height: 140px;
}

.accent-green {
  border-top-color: var(--green);
}

.accent-pink {
  border-top-color: var(--pink);
}

.accent-blue {
  border-top-color: var(--blue);
}

/* Project modal */
body.project-modal-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.project-modal[hidden] {
  display: none;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 46, 0.52);
  backdrop-filter: blur(8px);
}

.project-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: min(92vh, 880px);
  overflow: auto;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(40, 50, 80, 0.18);
}

.project-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s;
}

.project-modal__close:hover {
  background: var(--blue-soft);
  color: var(--text);
}

.project-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-height: 420px;
}

@media (max-width: 900px) {
  .project-modal__grid {
    grid-template-columns: 1fr;
  }
}

.project-modal__media {
  background: #f3f5fa;
  padding: 28px 24px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal__detail {
  padding: 36px 32px 40px;
  overflow-y: auto;
  max-height: min(92vh, 880px);
}

.pm-carousel {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.pm-carousel__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e8ecf4;
  box-shadow: var(--shadow-sm);
}

.project-modal.project-modal--video-only .pm-carousel {
  max-width: min(100%, 560px);
}

.project-modal.project-modal--video-only .pm-carousel__viewport {
  aspect-ratio: 16 / 9;
  max-height: min(50vh, 440px);
}

/* 项目 4 等：视频按原始比例（contain），高度随视频Intrinsic变化 */
.project-modal.project-modal--video-natural .pm-carousel__viewport {
  aspect-ratio: unset;
  max-height: none;
  height: auto;
}

.project-modal.project-modal--video-natural .pm-carousel__track {
  position: relative;
  width: 100%;
  height: auto;
}

.project-modal.project-modal--video-natural .pm-carousel__slide {
  position: static;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: none;
}

.project-modal.project-modal--video-natural .pm-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
}

.project-modal.project-modal--video-natural .pm-carousel__slide video {
  width: 100%;
  height: auto;
  max-height: min(72vh, 880px);
  object-fit: contain;
  background: #12151f;
}

.pm-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.pm-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.pm-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.pm-carousel__slide img,
.pm-carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pm-carousel__slide video {
  background: #000;
}

.pm-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s;
}

.pm-carousel__btn:hover {
  background: #fff;
}

.pm-carousel__btn--prev {
  left: 10px;
}

.pm-carousel__btn--next {
  right: 10px;
}

.pm-carousel__btn[hidden] {
  display: none;
}

.pm-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.pm-carousel__dots[hidden] {
  display: none;
}

.pm-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(107, 135, 201, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.2s;
}

.pm-carousel__dot.is-active {
  width: 28px;
  background: var(--blue);
}

.pm-detail__head {
  margin-bottom: 18px;
}

.pm-detail__index {
  margin-bottom: 12px;
}

.pm-detail__title {
  margin: 0 0 8px;
  font-size: clamp(1.22rem, 2.25vw, 1.48rem);
  font-weight: 700;
  line-height: 1.3;
}

.pm-detail__lead {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.9;
}

.pm-detail__lead:empty {
  display: none;
}

.pm-detail__role {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pm-callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.pm-detail__section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.pm-detail__core {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.pm-detail__core li {
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.pm-detail__core li span {
  display: block;
  margin-top: 4px;
}

.pm-detail__results {
  margin-bottom: 0;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

.skill-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.skill-icon-blue {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.skill-icon-pink {
  background: var(--pink-soft);
  color: #ad1457;
}

.skill-icon-green {
  background: var(--green-soft);
  color: #2e7d57;
}

.skill-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.skill-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.skill-card:nth-child(2) .skill-list li::before {
  background: var(--pink);
}

.skill-card:nth-child(3) .skill-list li::before {
  background: var(--green);
}

.skill-list strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.skill-list span {
  display: block;
  margin-top: 2px;
}

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 768px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

.award-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.award-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.award-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--blue-soft), var(--pink-soft));
}

.award-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.award-body {
  padding: 18px 20px 22px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.award-title {
  margin: 0 0 8px;
  font-size: clamp(0.92rem, 2.1vw, 1.05rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.award-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Hobbies */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

@media (max-width: 480px) {
  .hobby-grid {
    grid-template-columns: 1fr;
  }
}

.hobby-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 268px;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hobby-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hobby-photo {
  position: absolute;
  inset: 0;
}

.hobby-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hobby-card:hover .hobby-photo img {
  transform: scale(1.06);
}

.hobby-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: linear-gradient(
    to top,
    rgba(26, 31, 46, 0.93) 0%,
    rgba(26, 31, 46, 0.5) 52%,
    transparent 100%
  );
  color: #fff;
  border-bottom: 4px solid transparent;
}

.hobby-accent-pink .hobby-caption {
  border-bottom-color: #f48fb1;
}

.hobby-accent-peach .hobby-caption {
  border-bottom-color: #f0b27a;
}

.hobby-accent-sky .hobby-caption {
  border-bottom-color: #8eb5e5;
}

.hobby-accent-mint .hobby-caption {
  border-bottom-color: #8cc9a8;
}

.hobby-name {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hobby-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

/* Contact */
.section-contact {
  background: var(--bg-white);
  padding: 80px 0;
}

.contact-inner {
  text-align: center;
  max-width: 640px;
}

.contact-title {
  margin: 0 0 14px;
  font-size: clamp(1.72rem, 3vw, 2.12rem);
  font-weight: 700;
}

.contact-sub {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: clamp(1.12rem, 2.15vw, 1.3rem);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.contact-card {
  flex: 1 1 240px;
  max-width: 300px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.2s;
}

a.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.contact-card-mail .contact-card-icon {
  background: var(--pink-soft);
  color: #c2185b;
}

.contact-card-wechat .contact-card-icon {
  background: var(--green-soft);
  color: #2e7d57;
}

.contact-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: none;
}

.contact-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

.contact-copy {
  margin-top: 10px;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}

.contact-copy:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa3b5;
}

.site-footer p {
  margin: 0;
}
