/* ============================================================
   王晓凯 · 个人简历页  —  莫兰迪深绿 · 留白极简
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* 莫兰迪深绿主色系 */
  --c-ink: #2D3D2F;          /* 主色：深松绿 */
  --c-ink-2: #3F5242;        /* 略浅 */
  --c-mist: #7B8B7E;         /* 灰绿 */
  --c-fog: #B5BFBA;          /* 雾绿 */
  --c-paper: #F4F1E9;        /* 米宣 */
  --c-paper-2: #ECE7DC;      /* 略深米 */
  --c-seal: #C97B5C;         /* 印泥橙（点缀） */
  --c-text: #1A1F1C;         /* 主文字 */
  --c-text-2: #5C635E;       /* 次文字 */
  --c-line: rgba(45, 61, 47, 0.12);

  /* 字体（系统栈 + 兜底） */
  --f-serif: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "宋体", serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* 节奏 */
  --r-1: 8px;
  --r-2: 16px;
  --r-3: 24px;
  --r-4: 40px;

  /* 缓动 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* 容器 */
  --container: 1120px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity 0.2s var(--ease); }
a:hover { opacity: 0.72; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Section 通用 ---------- */
[data-section] {
  position: relative;
  padding: 120px 0;
}

/* ---------- Section Title ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 72px;
  font-family: var(--f-serif);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.02em;
}
.title-num {
  font-family: var(--f-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--c-mist);
  font-weight: 400;
  letter-spacing: 0.1em;
}
.title-text {
  font-size: 36px;
  font-weight: 500;
  color: var(--c-ink);
}
.title-en {
  font-family: var(--f-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--c-mist);
  margin-left: auto;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(244, 241, 233, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--c-line);
  transition: all 0.3s var(--ease);
}
.brand {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.08em;
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  color: var(--c-text-2);
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--c-ink); opacity: 1; }
.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--c-ink);
  border-radius: 100px;
  color: var(--c-ink) !important;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--c-ink);
  color: var(--c-paper) !important;
  opacity: 1;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 160px 0 120px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-2) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(123, 139, 126, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-text {
  animation: fadeUp 1.1s var(--ease) both;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--f-serif);
  font-size: 14px;
  font-style: italic;
  color: var(--c-mist);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.hero-name {
  font-family: var(--f-serif);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  display: flex;
  gap: 8px;
}
.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: charIn 0.9s var(--ease) forwards;
}
.hero-name .char:nth-child(1) { animation-delay: 0.2s; }
.hero-name .char:nth-child(2) { animation-delay: 0.32s; }
.hero-name .char:nth-child(3) { animation-delay: 0.44s; }

.hero-tagline {
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--c-ink-2);
  letter-spacing: 0.18em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.7s forwards;
}
.hero-bio {
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text-2);
  max-width: 480px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.85s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1s forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn-primary:hover {
  background: var(--c-ink-2);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(45, 61, 47, 0.35);
}
.btn-ghost {
  color: var(--c-ink);
  border-color: var(--c-ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--c-ink);
  color: var(--c-paper);
  opacity: 1;
}

/* Hero portrait */
.hero-portrait {
  position: relative;
  animation: fadeUp 1.1s var(--ease) 0.3s both;
}
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-paper-2);
  box-shadow:
    0 30px 60px -20px rgba(45, 61, 47, 0.25),
    0 8px 20px -8px rgba(45, 61, 47, 0.15);
  transition: transform 0.6s var(--ease);
}
.portrait-frame:hover {
  transform: translateY(-6px);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(45, 61, 47, 0.2) 100%);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 1.2s var(--ease);
}
.portrait-frame:hover img {
  transform: scale(1.04);
}
.portrait-tag {
  position: absolute;
  bottom: -18px;
  right: 24px;
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 20px -6px rgba(45, 61, 47, 0.4);
}

/* Hero scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-serif);
  font-size: 12px;
  font-style: italic;
  color: var(--c-mist);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.4s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--c-mist) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.scroll-line::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 1px;
  height: 40px;
  background: var(--c-ink);
  animation: scrollLine 2s var(--ease) infinite;
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--c-paper);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.about-card {
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  transition: all 0.4s var(--ease);
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-mist);
  background: rgba(255, 255, 255, 0.85);
}
.about-num {
  font-family: var(--f-serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.about-num span {
  font-size: 18px;
  color: var(--c-mist);
  margin-left: 4px;
  font-style: italic;
}
.about-card p {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.6;
}
.about-bio {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}
.about-bio p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text-2);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.about-bio em {
  font-style: normal;
  color: var(--c-ink);
  font-weight: 500;
  position: relative;
  padding: 0 6px;
}
.about-bio em::before, .about-bio em::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--c-seal);
  border-radius: 50%;
  transform: translateY(-50%);
}
.about-bio em::before { left: -2px; }
.about-bio em::after { right: -2px; }

/* ---------- CORE — 翻转卡片 ---------- */
.core {
  background: var(--c-paper-2);
}
.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.core-card {
  position: relative;
  background: transparent;
  border-radius: 8px;
  perspective: 1200px;
  cursor: pointer;
  height: 300px;
}
.core-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 5;
}
.core-card:hover::before { transform: scaleX(1); }
.core-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
  transform-style: preserve-3d;
}
.core-card.flipped .core-card-inner { transform: rotateY(180deg); }
.core-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}
.core-card-front {
  padding: 44px 32px 32px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.core-card:hover .core-card-front {
  border-color: var(--c-fog);
  box-shadow: 0 20px 40px -16px rgba(45, 61, 47, 0.18);
}
.core-card-back {
  transform: rotateY(180deg);
  background: var(--c-ink);
}
.core-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear;
}
.core-card.flipped .core-card-back img { transform: scale(1.05); }
.core-back-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: var(--c-paper);
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  border-radius: 100px;
}
.core-icon {
  font-family: var(--f-serif);
  font-size: 32px;
  color: var(--c-ink);
  margin-bottom: 24px;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.core-card:hover .core-icon { transform: rotate(-6deg) scale(1.05); }
.core-card h3 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.core-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-text-2);
  flex: 1;
}
.core-flip-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--c-seal);
  letter-spacing: 0.1em;
  transition: gap 0.3s var(--ease);
}
.core-card:hover .core-flip-hint { gap: 10px; }

/* ---------- JOURNEY ---------- */
.journey {
  background: var(--c-paper);
}
.timeline {
  position: relative;
  padding-left: 60px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-mist) 50%, transparent 100%);
}
.tl-item {
  position: relative;
  padding-bottom: 56px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -60px;
  top: 8px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--c-paper);
  border: 2px solid var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.tl-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--c-ink);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}
.tl-item:hover .tl-dot {
  background: var(--c-ink);
  transform: scale(1.15);
}
.tl-item:hover .tl-dot::after {
  background: var(--c-seal);
  transform: scale(1.3);
}
.tl-time {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--c-mist);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.tl-content {
  max-width: 720px;
}
.tl-content h3 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.tl-content p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text-2);
}
.tl-btn {
  margin-top: 16px;
  padding: 10px 22px;
  background: transparent;
  color: var(--c-ink);
  border: 1px solid var(--c-ink);
  border-radius: 100px;
  font-family: var(--f-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.tl-btn:hover {
  background: var(--c-ink);
  color: var(--c-paper);
  transform: translateX(4px);
}

/* ---------- CERTS — 双栏横条列表 ---------- */
.certs {
  background: var(--c-paper-2);
}
.certs-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 960px;
  margin: 0 auto;
}
.certs-col-title {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-line);
}
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 20px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  transition: all 0.3s var(--ease);
}
.cert-row:hover {
  border-color: var(--c-fog);
  transform: translateX(4px);
  box-shadow: 0 4px 16px -6px rgba(45, 61, 47, 0.1);
}
.cert-row-num {
  font-family: var(--f-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--c-seal);
  letter-spacing: 0.15em;
  flex-shrink: 0;
  width: 24px;
  padding-top: 2px;
}
.cert-row-info h3 {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.cert-row-info p {
  font-size: 13px;
  color: var(--c-text-2);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 22, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 40px;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}
.lightbox.open .lightbox-content { transform: scale(1); }
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
#lightbox-caption {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--c-paper);
  letter-spacing: 0.1em;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--c-paper);
  font-size: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.3s var(--ease);
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ---------- XIAOHONGSHU 屑宽横幅 ---------- */
.xhs-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 44px;
  margin-bottom: 56px;
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  border: 1px solid var(--c-ink);
}
.xhs-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(123, 139, 126, 0.3) 0%, transparent 60%);
  pointer-events: none;
}
.xhs-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(45, 61, 47, 0.35);
  opacity: 1;
}
.xhs-banner-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  min-width: 0;
}
.xhs-banner-decor {
  font-family: var(--f-serif);
  font-size: 88px;
  font-weight: 500;
  line-height: 1;
  color: var(--c-fog);
  opacity: 0.35;
  letter-spacing: 0.04em;
  user-select: none;
  flex-shrink: 0;
}
.xhs-banner-info { flex: 1; min-width: 0; }
.xhs-banner-label {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--c-seal);
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}
.xhs-banner-info h3 {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--c-paper);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.xhs-banner-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 241, 233, 0.75);
  letter-spacing: 0.02em;
}
.xhs-banner-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--c-seal);
  color: var(--c-paper);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.xhs-banner-cta .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.xhs-banner:hover .xhs-banner-cta { background: var(--c-paper); color: var(--c-ink); }
.xhs-banner:hover .xhs-banner-cta .arrow { transform: translateX(4px); }

/* ---------- CONNECT ---------- */
.connect {
  background: var(--c-paper-2);
}
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto 64px;
}
.qr-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding: 40px 32px 32px;
  text-align: center;
  transition: all 0.4s var(--ease);
}
.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(45, 61, 47, 0.18);
}
.qr-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 8px;
  border: 1px solid var(--c-line);
}
.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-card h3 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--c-ink);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.qr-card p {
  font-size: 15px;
  color: var(--c-text-2);
  margin-bottom: 16px;
}
.qr-hint {
  display: inline-block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--c-mist);
  letter-spacing: 0.15em;
  padding: 6px 14px;
  background: rgba(123, 139, 126, 0.1);
  border-radius: 100px;
}
.contact-line {
  text-align: center;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 20px -8px rgba(45, 61, 47, 0.3);
}
.contact-pill:hover {
  background: var(--c-ink-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(45, 61, 47, 0.4);
  opacity: 1;
}
.contact-label {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--c-fog);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.contact-value {
  font-family: var(--f-serif);
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--c-ink);
  color: var(--c-fog);
  padding: 48px 0;
  text-align: center;
}
.footer p {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.footer-tag {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--c-paper);
  letter-spacing: 0.3em;
  font-size: 14px;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes charIn {
  from { opacity: 0; transform: translateY(40px) rotate(2deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes scrollLine {
  0%   { top: -40px; }
  100% { top: 100%; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  [data-section] { padding: 80px 0; }
  .container { padding: 0 24px; }
  .topbar { padding: 16px 24px; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }

  .hero { padding: 130px 0 100px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 0 24px;
  }
  .hero-text { order: 1; text-align: left; }
  .hero-portrait { order: 0; max-width: 360px; margin: 0 auto; }
  .hero-name { font-size: clamp(56px, 14vw, 80px); }
  .hero-tagline { font-size: 20px; }
  .hero-scroll-hint { display: none; }

  .section-title { margin-bottom: 48px; }
  .title-text { font-size: 28px; }
  .title-en { display: none; }

  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-num { font-size: 36px; }

  .core-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .core-card { height: 280px; }
  .core-card-front { padding: 32px 24px 28px; }
  .core-card h3 { font-size: 19px; }

  .certs-columns { gap: 24px; }

  .tl-btn { padding: 9px 18px; font-size: 12px; }

  .timeline { padding-left: 40px; }
  .timeline::before { left: 6px; }
  .tl-dot { left: -40px; width: 18px; height: 18px; }
  .tl-dot::after { width: 5px; height: 5px; }
  .tl-content h3 { font-size: 19px; }

  .xhs-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 32px;
    text-align: center;
  }
  .xhs-decor {
    font-size: 120px;
    text-align: center;
  }
  .xhs-handle { font-size: 36px; }
  .xhs-desc { margin-left: auto; margin-right: auto; }
  .xhs .btn { justify-content: center; }

  .connect-grid { grid-template-columns: 1fr; max-width: 360px; }
  .qr-wrap { width: 180px; height: 180px; }
}

@media (max-width: 540px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav { gap: 0; }
  /* Core 与 Certs 都保持 2 列（不单列） */
  .core-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .core-card { height: 240px; }
  .core-card-front { padding: 20px 14px 16px; }
  .core-card h3 { font-size: 16px; margin-bottom: 10px; }
  .core-card p { font-size: 12px; line-height: 1.6; }
  .core-flip-hint { font-size: 11px; margin-top: 12px; padding-top: 10px; }
  .core-icon { font-size: 24px; margin-bottom: 14px; }
  .certs-columns { grid-template-columns: 1fr; gap: 32px; }
  .certs-col-title { font-size: 17px; margin-bottom: 14px; }
  .cert-row { padding: 12px 14px; gap: 14px; }
  .cert-row-num { font-size: 11px; width: 20px; }
  .cert-row-info h3 { font-size: 14px; }
  .cert-row-info p { font-size: 11px; }
  /* About 移动端：2 排均衡 */
  .about-bio { max-width: 100%; padding: 0 8px; }
  .about-bio p { font-size: 13px; line-height: 1.85; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .lightbox { padding: 20px; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 22px; }
  /* XHS banner 移动端保持屑宽型 */
  .xhs-banner {
    flex-direction: row;
    align-items: center;
    padding: 18px 18px;
    gap: 14px;
    margin-bottom: 32px;
  }
  .xhs-banner-left {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }
  .xhs-banner-decor {
    font-size: 40px;
    line-height: 1;
  }
  .xhs-banner-info {
    flex: 1;
    min-width: 0;
  }
  .xhs-banner-label {
    font-size: 9px;
    margin-bottom: 4px;
    letter-spacing: 0.2em;
  }
  .xhs-banner-info h3 {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .xhs-banner-desc {
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .xhs-banner-cta {
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
  }
  .xhs-banner-cta .arrow { display: none; }
  /* Connect QR 2 列 */
  .connect-grid { grid-template-columns: 1fr 1fr; gap: 10px; max-width: 100%; }
  .qr-card { padding: 18px 12px 16px; }
  .qr-wrap { width: 120px; height: 120px; margin-bottom: 14px; }
  .qr-card h3 { font-size: 16px; }
  .qr-card p { font-size: 11px; margin-bottom: 10px; }
  .qr-hint { font-size: 10px; padding: 4px 10px; }
  .contact-pill { padding: 10px 20px; gap: 12px; }
  .contact-pill .contact-value { font-size: 16px; }
  .contact-pill .contact-label { font-size: 11px; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease);
  z-index: 300;
  box-shadow: 0 12px 32px -8px rgba(45, 61, 47, 0.4);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- 减少动效（用户偏好）---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
