/* ========================================
   产品经理作品集 · 样式表
   ======================================== */

/* ===== 设计系统 ===== */
:root {
  --bg-warm: #faf7f2;
  --card-white: #ffffff;
  --primary: #1e3a6a;
  --primary-light: #2a5090;
  --gold: #c4944a;
  --gold-light: #c4944a20;
  --text: #333333;
  --text-secondary: #555555;
  --text-light: #888888;
  --text-muted: #aaaaaa;
  --border: #e0dcd4;
  --border-light: #f0eee8;
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.08);
  --radius-card: 12px;
  --radius-btn: 25px;
  --radius-sm: 8px;
  --section-gap: 100px;
  --max-width: 1100px;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', serif;
  --font-sans: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 全局重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-warm);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
html { scrollbar-color: var(--border) var(--bg-warm); }

/* ===== 阅读进度条 ===== */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--gold));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
  will-change: width;
}

/* ===== 背景微纹理 ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(196,148,74,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30,58,106,0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(196,148,74,0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ===== 打字动画光标 ===== */
@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(196,148,74,0.3); }
  70% { box-shadow: 0 0 0 18px rgba(196,148,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(196,148,74,0); }
}

/* ===== 滚动入场增强 ===== */
.scroll-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-hidden-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

/* ===== 交错入场子元素 ===== */
.stagger-enter.scroll-visible > .stagger-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.stagger-enter.scroll-visible > .stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-enter.scroll-visible > .stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-enter.scroll-visible > .stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-enter.scroll-visible > .stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-enter.scroll-visible > .stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-enter.scroll-visible > .stagger-item:nth-child(6) { animation-delay: 0.3s; }

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,247,242,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(224,220,212,0.5);
  transition: transform 0.3s;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 6px;
}
.nav-links a {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: #fff;
}
.nav-links a.active {
  box-shadow: 0 2px 8px rgba(30,58,106,0.2);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

/* ===== 板块通用 ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) 24px;
}

/* 交替板块背景（全宽） */
.section-bg-light {
  position: relative;
}
.section-bg-light::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: var(--card-white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 -1px 0 rgba(0,0,0,0.02);
  z-index: -1;
  pointer-events: none;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 36px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0.3;
}
.section-num {
  font-size: 14px;
  font-weight: 700;
  margin-right: 4px;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--gold), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(30,58,106,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

/* ==========================================
   HERO 首屏
   ========================================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196,148,74,0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,58,106,0.05) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-text {
  flex: 1.4;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  min-height: 1.2em;
}
.hero-name-typing::after {
  content: '|';
  animation: cursorBlink 0.8s step-end infinite;
  color: var(--gold);
  font-weight: 300;
  margin-left: 2px;
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 14px;
  padding: 4px 20px;
  border-radius: 20px;
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-tag.visible {
  opacity: 1;
}
.hero-motto {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 18px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-motto.visible {
  opacity: 1;
}
.hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,58,106,0.25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--primary);
  padding: 11px 26px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  border: 1.5px solid var(--primary);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,58,106,0.15);
}
.hero-photo-wrap {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-photo-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 6px var(--gold-light), 0 8px 24px rgba(0,0,0,0.08);
  animation: ringPulse 3s ease-in-out infinite;
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-photo-ring:hover .hero-photo-img {
  transform: scale(1.05);
}
.hero-dot-1, .hero-dot-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-dot-1 {
  top: -10px; right: 0;
  width: 40px; height: 40px;
  border: 2px dashed var(--gold);
  opacity: 0.4;
  animation: float 6s ease-in-out infinite;
}
.hero-dot-2 {
  bottom: 10px; left: -8px;
  width: 24px; height: 24px;
  background: var(--primary);
  opacity: 0.08;
  animation: float 8s ease-in-out infinite reverse;
}

/* ==========================================
   关于我 — 最终设计稿
   上：左轮播(3:4竖图重叠) + 右个人信息
   下：互动路线图（横向节点+连接线）
   ========================================== */

/* ===== 上半部分 ===== */
.about-top {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  background: var(--card-white);
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

/* 左：轮播区 */
.about-carousel-wrap {
  flex: 0.9;
  min-width: 200px;
  background: linear-gradient(135deg, #1e3a6a08, #c4944a12);
  padding: 28px;
  display: flex;
  justify-content: center;
}
.about-carousel {
  position: relative;
  width: 100%;
  max-width: 240px;
}
.ac-viewport {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  position: relative;
  background: #e8ddd0;
}
.ac-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  border-radius: 14px;
  border: 3px solid #fff;
  transition: opacity 0.4s;
}
.ac-stack {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 3px solid #fff;
}
.ac-stack-2 {
  z-index: 2;
  transform: rotate(3deg);
  background: linear-gradient(135deg, #c9b89a, #d5c9b5);
}
.ac-stack-3 {
  z-index: 1;
  transform: rotate(-3deg);
  background: linear-gradient(135deg, #b8a88a, #c8bca8);
}
.ac-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ac-btn:hover { background: var(--primary); color: #fff; }
.ac-prev { left: -8px; }
.ac-next { right: -8px; }
.ac-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.ac-dot {
  height: 4px;
  border-radius: 2px;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  width: 12px;
}
.ac-dot.active { width: 28px; background: var(--primary); }

/* 右：个人信息区 */
.about-info-panel {
  flex: 1.5;
  min-width: 250px;
  padding: 28px 28px 28px 20px;
}
.about-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}
.about-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 3px 14px;
  border-radius: 16px;
  font-size: 13px;
  margin-top: 6px;
}
.about-details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
}
.about-detail-row .icon { color: var(--gold); font-size: 16px; }
.about-intro-box {
  margin-top: 16px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}
.about-intro-box p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}
.about-resume-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* 分隔线 */
.about-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #c4944a40, transparent);
  margin: 0 28px;
}

/* ===== 下半：互动路线图 ===== */
.roadmap-section {
  padding: 24px 28px 32px;
  background: var(--card-white);
  border: none;
  border-top: 1px solid var(--border-light);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.roadmap-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}
.roadmap-sub {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 4px;
  margin-bottom: 20px;
}
.roadmap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 10px;
}
.roadmap-line {
  position: absolute;
  top: 22px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--gold));
  border-radius: 2px;
}
.roadmap-node {
  text-align: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.roadmap-node .node-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 8px;
  transition: all 0.3s;
  color: #fff;
}
.roadmap-node .node-circle.blue { background: var(--primary); box-shadow: 0 4px 12px rgba(30,58,106,0.3); }
.roadmap-node .node-circle.gold { background: var(--gold); box-shadow: 0 4px 12px rgba(196,148,74,0.3); }
.roadmap-node .node-circle:hover { transform: scale(1.1); }
.roadmap-node .node-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.roadmap-node .node-version {
  font-size: 11px;
  color: var(--text-light);
}
.roadmap-detail {
  margin-top: 16px;
  background: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px dashed var(--gold);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================
   实习经历 — 最终设计稿
   并排数据卡片 + 照片条 + 指标 + 灯箱
   ========================================== */
.intern-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.intern-card {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  background: var(--card-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
}
.intern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--gold), var(--primary));
  border-radius: 0 0 2px 2px;
  z-index: 1;
  opacity: 0.3;
}
.intern-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.intern-strip {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  overflow: hidden;
}
.intern-strip-1 { background: linear-gradient(135deg, #1e3a6a20, #c4944a20); }
.intern-strip-2 { background: linear-gradient(135deg, #c4944a20, #1e3a6a20); }
.intern-photo-count {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
}
.intern-body {
  padding: 14px 18px 18px;
}
.intern-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.intern-period-tag {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
}
.intern-role-tag {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
}
.intern-company {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}
.intern-metrics {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px solid #f0ece4;
  border-bottom: 1px solid #f0ece4;
}
.intern-metric {
  flex: 1;
  text-align: center;
}
.intern-metric .num {
  font-size: 18px;
  font-weight: 700;
}
.intern-metric .num.blue { color: var(--primary); }
.intern-metric .num.gold { color: var(--gold); }
.intern-metric .lbl {
  font-size: 10px;
  color: var(--text-light);
}
.intern-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.6;
}
.intern-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.intern-tag {
  font-size: 9px;
  background: #f0ece4;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 8px;
}
.intern-photo-btn-area {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0ece4;
  text-align: center;
}
.intern-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0ece4;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 18px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.intern-photo-btn:hover { background: var(--primary); color: #fff; }

/* ===== 灯箱 (Lightbox) ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox-overlay.active { display: flex; }
.lightbox-inner {
  max-width: 560px;
  width: 90%;
}
.lightbox-close {
  position: absolute;
  top: -32px;
  right: 0;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-image-area {
  position: relative;
  background: #2a2a3a;
  border-radius: 10px;
  height: 70vh;
  max-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-placeholder {
  font-size: 60px;
  color: #555;
}
.lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}
.lightbox-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lb-nav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.lb-nav-btn:hover { color: #fff; }
.lb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.3s;
}
.lb-dot.active {
  width: 20px; height: 6px;
  border-radius: 3px;
  background: var(--gold);
}

/* ==========================================
   项目经历 — 布局优化版
   主项目 + 副项目 左右并排
   ========================================== */
.project-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* 主项目卡片 */
.project-main-card {
  background: var(--card-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.project-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--gold));
  border-radius: 0 0 2px 2px;
  z-index: 1;
  opacity: 0.3;
}
.project-main-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.project-main-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-main-visual {
  flex: none;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
  overflow: hidden;
}
.project-main-visual .tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 10px;
}
.project-main-visual .num {
  position: absolute;
  bottom: 12px; right: 16px;
  color: rgba(255,255,255,0.2);
  font-size: 42px;
  font-weight: 700;
  font-family: var(--font-serif);
}
.project-main-body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.project-main-body h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}
.project-main-body .meta {
  font-size: 11px;
  color: var(--gold);
  margin-top: 2px;
}
.project-main-desc {
  margin-top: 8px;
  flex: 1;
}
.project-main-desc p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.project-data-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.project-data-row > div {
  flex: 1;
  background: #faf7f2;
  border-radius: 8px;
  padding: 6px;
  text-align: center;
}
.project-data-row .num {
  font-size: 16px;
  font-weight: 700;
}
.project-data-row .num.blue { color: var(--primary); }
.project-data-row .num.gold { color: var(--gold); }
.project-data-row .lbl {
  font-size: 9px;
  color: var(--text-light);
}
.project-view-btn {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
}
.project-view-btn .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 22px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.project-view-btn .btn:hover { background: var(--primary-light); }

/* 副项目全宽卡片 — 与主卡对称竖排 */
.project-sub-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.project-sub-card {
  flex: 1;
  width: 100%;
  background: var(--card-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.project-sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--gold));
  border-radius: 0 0 2px 2px;
  z-index: 1;
  opacity: 0.3;
}
.project-sub-card:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.project-sub-header {
  flex: none;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
}
.project-sub-header .tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 10px;
}
.project-sub-body {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.sub-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.sub-body-content .desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 副卡标题和元信息 — 与主卡保持一致 */
.project-sub-body > h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}
.project-sub-body > .meta {
  font-size: 11px;
  color: var(--gold);
  margin-top: 2px;
}

.project-sub-stats {
  display: flex;
  gap: 8px;
}
.project-sub-stats > div {
  flex: 1;
  text-align: center;
  background: #faf7f2;
  border-radius: 8px;
  padding: 8px 10px;
}
.project-sub-stats .num {
  font-size: 16px;
  font-weight: 700;
}
.project-sub-stats .num.blue { color: var(--primary); }
.project-sub-stats .num.gold { color: var(--gold); }
.project-sub-stats .lbl {
  font-size: 9px;
  color: var(--text-light);
  margin-top: 2px;
}
.project-sub-footer {
  margin-top: auto;
  padding-top: 12px;
  text-align: center;
}
.project-sub-footer .btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.project-sub-footer .btn-sub:hover { background: var(--primary-light); }

/* ==========================================
   项目封面装饰 — 极简极美
   ========================================== */

/* SVG 装饰层 — 铺满封面背景 */
.cover-deco-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 内容叠层 — 图标 + 标题 + 副标题 */
.cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.cover-emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  text-align: center;
}

.cover-sub {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
  margin-top: 2px;
}

/* 米白封面 — 标签/序号/装饰适配 */
.pm-cover .tag,
.bk-cover .tag {
  background: var(--gold-light);
  color: var(--gold);
}
.pm-cover .num {
  color: rgba(196,148,74,0.15);
}

/* 点阵纹理 — PM Agent 细密点（靛蓝） */
.pm-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20px 20px, rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* 点阵纹理 — BiliKnowledge 疏点（琥珀金） */
.bk-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 28px 28px, rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .cover-emoji { font-size: 28px; margin-bottom: 4px; }
  .cover-title { font-size: 15px; }
  .cover-sub { font-size: 10px; }
}

@media (max-width: 480px) {
  .cover-emoji { font-size: 24px; margin-bottom: 2px; }
  .cover-title { font-size: 14px; }
  .cover-sub { display: none; }
}

/* ==========================================
   专业技能 — 最终设计稿
   2×2叙事卡 + 词云（5层级）
   ========================================== */
.skills-narrative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.skill-nar-card {
  background: var(--card-white);
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.3s ease;
}
.skill-nar-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.skill-nar-card.border-blue { border-left: 3px solid var(--primary); }
.skill-nar-card.border-gold { border-left: 3px solid var(--gold); }
.skill-nar-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-nar-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.skill-nar-icon.bg-blue { background: #1e3a6a10; }
.skill-nar-icon.bg-gold { background: #c4944a10; }
.skill-nar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
.skill-nar-quote {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 0;
  font-style: italic;
}
.skill-nar-desc {
  font-size: 11px;
  color: var(--text-light);
  margin: 2px 0 0;
}

/* 词云容器 */
.skills-cloud-wrap {
  background: var(--card-white);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.skills-cloud-title {
  text-align: center;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  line-height: 1.4;
}
.cloud-word {
  display: inline-block;
  transition: all 0.2s;
  cursor: default;
}
.cloud-word {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}
.cloud-word:hover {
  transform: scale(1.15) translateY(-2px);
  color: var(--primary) !important;
}
.cloud-word.size-xxl { font-size: 22px; font-weight: 700; color: var(--primary); font-family: var(--font-serif); }
.cloud-word.size-xl { font-size: 20px; font-weight: 700; color: #2a5090; }
.cloud-word.size-lg { font-size: 18px; font-weight: 700; color: var(--gold); }
.cloud-word.size-md { font-size: 15px; font-weight: 600; }
.cloud-word.size-md.bg-blue { color: var(--primary); background: #1e3a6a08; padding: 2px 10px; border-radius: 12px; }
.cloud-word.size-md.bg-gold { color: var(--gold); background: #c4944a10; padding: 2px 10px; border-radius: 12px; }
.cloud-word.size-sm { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.cloud-word.size-xs { font-size: 13px; color: var(--text-light); }
.cloud-word.size-xxs { font-size: 11px; color: #999; background: #f5f5f5; padding: 1px 8px; border-radius: 8px; }
.cloud-word.size-tiny { font-size: 10px; color: #aaa; }

/* ==========================================
   获奖情况 — 重构版
   ========================================== */

/* 仪表盘 */
.award-dashboard {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: #fff;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid #e8e0d4;
  margin-bottom: 6px;
}
.award-dash-left { flex-shrink: 0; }
.award-dash-count { display: flex; align-items: baseline; gap: 4px; }
.award-dash-num {
  font-size: 32px; font-weight: 700; color: var(--primary, #1e3a6a);
  font-family: var(--font-serif, 'Noto Serif SC', serif); line-height: 1;
}
.award-dash-label { font-size: 13px; color: var(--text-light, #888); }
.award-dash-divider { width: 1px; height: 24px; background: #e0d8cc; flex-shrink: 0; }
.award-dash-levels { display: flex; gap: 14px; flex: 1; }
.award-dash-level { display: flex; align-items: center; gap: 4px; }
.award-dash-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.award-dash-text { font-size: 12px; color: var(--text-secondary, #555); }
.award-dash-num-small { font-size: 12px; font-weight: 600; }

/* 列表 */
.award-list { display: flex; flex-direction: column; gap: 3px; }
.award-list-item {
  display: flex; align-items: center; padding: 9px 14px;
  background: #fff; border-radius: 10px; border: 1px solid #eee;
  cursor: default; transition: all 0.2s ease;
}
.award-list-item:hover { border-color: #e0d8cc; box-shadow: 0 2px 8px rgba(30,58,106,0.04); }
.award-year { font-size: 11px; color: var(--text-light, #888); width: 40px; flex-shrink: 0; font-weight: 500; }
.award-name { font-size: 13px; color: var(--text, #333); flex: 1; }
.award-level { font-size: 10px; padding: 2px 10px; border-radius: 20px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.award-view-btn {
  font-size: 11px; color: var(--gold, #c4944a); margin-left: 14px;
  cursor: pointer; border-bottom: 1px dashed var(--gold, #c4944a);
  white-space: nowrap; flex-shrink: 0; transition: opacity 0.2s;
}
.award-view-btn:hover { opacity: 0.7; }

/* 响应式 — 获奖区 */
@media (max-width: 768px) {
  .award-dashboard { flex-wrap: wrap; gap: 10px; padding: 12px 14px; }
  .award-dash-levels { flex-wrap: wrap; gap: 8px; }
  .award-list-item { padding: 8px 10px; flex-wrap: wrap; gap: 4px; }
  .award-year { width: 32px; font-size: 10px; }
  .award-name { font-size: 12px; width: calc(100% - 36px); }
  .award-level { font-size: 9px; padding: 1px 8px; }
  .award-view-btn { font-size: 10px; margin-left: auto; }
}

/* ==========================================
   旅游足迹图
   ========================================== */
.travel-layout {
  display: flex;
  gap: 24px;
  background: var(--card-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.travel-map-wrap {
  flex: 2;
  position: relative;
  min-height: 480px;
  min-width: 0;
  background: #e8e4dc;
}
#travelMap {
  width: 100%;
  height: 100%;
  min-height: 480px;
}
.travel-map-wrap .leaflet-container {
  background: #e8e4dc !important;
  font-family: var(--font-sans) !important;
}
.travel-map-wrap .leaflet-control-zoom { display: none !important; }
.travel-map-wrap .leaflet-control-attribution {
  font-size: 9px !important;
  opacity: 0.4;
  padding: 2px 6px !important;
}

.travel-sidebar {
  flex: 1;
  min-width: 220px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.travel-label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 3px;
  font-weight: 700;
}
.travel-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.travel-divider {
  width: 32px;
  height: 3px;
  background: var(--gold);
}
.travel-stat {
  font-size: 14px;
  color: var(--text-secondary);
}
.travel-stat strong { color: var(--primary); }
.travel-quote {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.travel-quote em { color: var(--primary); font-style: normal; font-weight: 600; }
.travel-stats {
  display: flex;
  gap: 8px;
}
.travel-stats > div {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.travel-stats .num { font-size: 22px; font-weight: 700; line-height: 1.2; }
.travel-stats .num.gold { color: var(--gold); }
.travel-stats .num.blue { color: var(--primary); }
.travel-stats .lbl { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.travel-tip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-light);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.travel-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-light);
  pointer-events: none;
  line-height: 1.7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.travel-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
}
.travel-legend .dot.visited { background: var(--gold); opacity: 0.5; border: 1px solid var(--gold); }
.travel-legend .dot.unvisited { background: #f0eee8; border: 1px solid #d8d4cc; }

/* 地图加载状态 */
.travel-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e4dc;
  z-index: 500;
  font-size: 14px;
  color: #999;
  transition: opacity 0.5s;
}
.travel-loading.hide {
  opacity: 0;
  pointer-events: none;
}

/* 地图弹出框样式 */
.city-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}
.city-popup .leaflet-popup-content { margin: 10px 14px; font-size: 13px; line-height: 1.7; }
.city-popup .leaflet-popup-content strong { color: var(--primary); font-size: 15px; }
.city-popup .leaflet-popup-tip { border-top-color: var(--gold); }

/* ==========================================
   寄语 + 联系
   ========================================== */
.contact-section {
  text-align: center;
  padding-top: 60px;
}
.contact-divider {
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 32px;
}
.contact-main {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  white-space: pre-line;
}
.contact-label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 4px;
  font-weight: 500;
  margin-top: 14px;
}
.contact-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-line;
}
.contact-card {
  max-width: 420px;
  margin: 24px auto 0;
  background: var(--card-white);
  border-radius: 16px;
  padding: 32px;
  border: 1.5px solid var(--primary);
  box-shadow: 0 4px 24px rgba(30,58,106,0.06);
  text-align: left;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-icon.email { background: #1e3a6a08; }
.contact-icon.wechat { background: #1e3a6a08; }
.contact-icon.resume { background: var(--gold-light); }
.contact-label-sm {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 1px;
  min-width: 56px;
}
.contact-value {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.contact-value-copy {
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.contact-value-copy:hover {
  color: var(--gold);
}
.contact-value-copy::after {
  content: '📋';
  font-size: 10px;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.contact-value-copy:hover::after {
  opacity: 0.6;
}
.contact-value-copy.copied::after {
  content: '✅';
  opacity: 1;
}
.contact-resume-btn {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-resume-btn:hover { background: var(--primary-light); }

/* ===== 页脚 ===== */
.footer {
  text-align: center;
  padding: 50px 24px 40px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.footer-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--gold));
  margin: 0 auto 18px;
  border-radius: 1px;
}
.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(196,148,74,0.2);
}
.footer-top:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(30,58,106,0.04);
}

/* ==========================================
   项目详情页
   ========================================== */
.project-detail-body {
  background: var(--card-white);
}
.detail-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }
.detail-content h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 8px;
}
.detail-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.detail-section {
  margin-bottom: 36px;
}
.detail-section h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
}
.detail-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==========================================
   响应式设计 — 全面适配
   ========================================== */

/* ---- 平板及以下 1024px ---- */
@media (max-width: 1024px) {
  :root { --section-gap: 80px; }
  .hero { padding: 130px 24px 60px; }
}

/* ---- 小桌面 / 大平板 900px ---- */
@media (max-width: 900px) {
  :root { --section-gap: 70px; }
  .about-top { flex-direction: column; }
  .skills-narrative { grid-template-columns: 1fr; }
  .travel-layout { flex-direction: column; }
  .travel-map-wrap { min-height: 360px; }
  #travelMap { min-height: 360px; }
  .project-stack { grid-template-columns: 1fr; }
  .project-main-inner { flex-direction: row; }
  .project-main-visual { height: 110px; flex: 0 0 180px; font-size: 36px; }
  .project-main-body { padding: 16px 20px; }
  .project-data-row { gap: 6px; margin-top: 8px; }
  .project-data-row > div { padding: 4px 6px; }
  .project-data-row .num { font-size: 14px; }
  .project-view-btn { margin-top: 8px; }
  .project-sub-header { height: 110px; }
  .project-main-visual { height: 110px; flex: 0 0 180px; font-size: 36px; }
  .roadmap-line { display: none; }
  .roadmap { gap: 8px; flex-wrap: wrap; justify-content: center; }
}

/* ---- 平板 768px ---- */
@media (max-width: 768px) {
  :root { --section-gap: 60px; }

  /* 导航：移动端汉堡菜单 */
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250,247,242,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    gap: 2px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  }
  .nav-links a {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
  }
  .nav-links a:hover { background: var(--primary); color: #fff; }

  /* 项目详情页：只有一个"返回"链接，始终可见 */
  .project-detail-body .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .project-detail-body .nav-links a {
    font-size: 13px;
    padding: 6px 12px;
    width: auto;
  }

  /* Hero */
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }
  .hero-text { flex: none; width: 100%; }
  .hero-motto {
    border-left: none;
    padding-left: 0;
    font-size: 15px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btns { justify-content: center; }
  .hero-name { font-size: 34px; }
  .hero-photo-wrap { flex: none; }
  .hero-photo-ring { width: 180px; height: 180px; }

  /* About */
  .about-carousel-wrap { padding: 20px; }
  .about-info-panel { padding: 20px; }
  .about-name { font-size: 24px; }

  /* Roadmap 纵向 */
  .roadmap-section { padding: 20px 16px 24px; }
  .roadmap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    position: relative;
  }
  .roadmap::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--gold));
    border-radius: 1px;
  }
  .roadmap-node {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0 14px 48px;
    text-align: left;
  }
  .roadmap-node .node-circle {
    position: absolute;
    left: 10px;
    margin: 0;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .roadmap-node .node-year {
    font-size: 13px;
    min-width: 50px;
  }
  .roadmap-node .node-version {
    font-size: 12px;
  }
  .roadmap-detail { margin-top: 12px; font-size: 13px; padding: 12px 16px; }

  /* Projects */
  .project-main-inner { flex-direction: column; }
  .project-main-visual { height: 100px; flex: none; font-size: 32px; }
  .project-sub-header { height: 100px; }
  .project-sub-row { width: 100%; }
  .project-sub-card { width: 100%; }

  /* Internships */
  .intern-grid { flex-direction: column; align-items: center; }
  .intern-card { max-width: 100%; width: 100%; }
  .intern-metric .num { font-size: 16px; }

  
  /* Travel */
  .travel-sidebar { padding: 24px 20px; }
  .travel-title { font-size: 22px; }
  .travel-map-wrap { min-height: 320px; }
  #travelMap { min-height: 320px; }

  /* Contact */
  .contact-card { padding: 20px; }
  .contact-main { font-size: 22px; }

  /* Section titles */
  .section-title { font-size: 24px; margin-bottom: 24px; }
}

/* ---- 手机 600px ---- */
@media (max-width: 600px) {
  :root { --section-gap: 50px; }
  .hero { padding: 110px 16px 50px; }
  .section { padding: var(--section-gap) 16px; }
  .hero-photo-ring { width: 150px; height: 150px; }
  .hero-name { font-size: 30px; }
  .hero-tag { font-size: 12px; padding: 3px 16px; }
  .hero-motto { font-size: 14px; }
  .hero-btns { gap: 10px; }
  .btn-primary, .btn-outline { padding: 10px 22px; font-size: 13px; }

  /* About */
  .about-carousel-wrap { padding: 16px; }
  .about-top { gap: 0; }
  .about-info-panel { padding: 16px; }
  .about-name { font-size: 22px; }
  .about-badge { font-size: 12px; }
  .about-detail-row { font-size: 13px; }
  .about-intro-box { padding: 12px; }
  .about-intro-box p { font-size: 13px; }

  /* Internships */
  .intern-body { padding: 12px 14px 16px; }
  .intern-company { font-size: 15px; }
  .intern-desc { font-size: 12px; }
  .intern-metrics { gap: 8px; }
  .intern-metric .num { font-size: 15px; }

  /* Projects */
  .project-main-body { padding: 16px 18px; }
  .project-main-body h3 { font-size: 18px; }
  .project-pb-card { padding: 6px 8px; }
  .project-data-row > div { padding: 5px; }
  .project-data-row .num { font-size: 14px; }
  .project-sub-body { padding: 12px 14px 16px; }
  .project-sub-body h4 { font-size: 15px; }

  /* Skills */
  .skill-nar-card { padding: 10px 12px; }
  .skill-nar-title { font-size: 12px; }
  .cloud-word.size-xxl { font-size: 19px; }
  .cloud-word.size-xl { font-size: 17px; }
  .cloud-word.size-lg { font-size: 16px; }
  .cloud-word.size-md { font-size: 14px; }
  .cloud-word.size-sm { font-size: 13px; }

  
  /* Travel */
  .travel-map-wrap { min-height: 260px; }
  #travelMap { min-height: 260px; }
  .travel-sidebar { padding: 18px 16px; gap: 12px; }
  .travel-title { font-size: 20px; }
  .travel-quote { font-size: 12px; padding-left: 10px; }
  .travel-stats { flex-direction: column; gap: 6px; }

  /* Contact */
  .contact-section { padding-top: 40px; }
  .contact-card { padding: 16px 14px; }
  .contact-row { padding: 10px 0; gap: 8px; }
  .contact-icon { width: 32px; height: 32px; font-size: 14px; }
  .contact-label-sm { min-width: 44px; font-size: 10px; }
  .contact-value { font-size: 13px; }
  .contact-resume-btn { font-size: 11px; padding: 5px 14px; }
  .contact-main { font-size: 20px; }
  .contact-sub { font-size: 12px; }

  /* Footer */
  .footer { padding: 30px 16px 24px; }

  /* Section titles */
  .section-title { font-size: 22px; margin-bottom: 18px; }
  .section-num { font-size: 12px; }

  /* Back to top */
  .back-to-top { width: 38px; height: 38px; font-size: 16px; bottom: 20px; right: 20px; }

  /* Detail pages */
  .detail-content { padding: 100px 16px 40px; }
  .detail-content h1 { font-size: 26px; }
  .detail-section h2 { font-size: 18px; }
  .detail-section p { font-size: 14px; }

  /* Lightbox */
  .lightbox-image-area { height: 220px; }
  .lightbox-inner { width: 95%; }
}

/* ---- 小屏手机 480px ---- */
@media (max-width: 480px) {
  :root { --section-gap: 40px; }
  .hero { padding: 100px 12px 40px; min-height: auto; }
  .section { padding: var(--section-gap) 12px; }

  .hero-photo-ring { width: 130px; height: 130px; }
  .hero-name { font-size: 26px; }
  .hero-tag { font-size: 11px; padding: 3px 14px; }
  .hero-motto { font-size: 13px; margin-top: 12px; }
  .hero-btns { margin-top: 16px; flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 240px; text-align: center; padding: 11px 20px; font-size: 13px; }
  .hero-dot-1 { width: 28px; height: 28px; top: -6px; }
  .hero-dot-2 { width: 18px; height: 18px; bottom: 6px; }

  /* Nav */
  .nav-inner { padding: 12px 14px; }
  .nav-logo { font-size: 18px; }

  /* About */
  .about-carousel-wrap { padding: 12px; }
  .about-info-panel { padding: 14px; }
  .about-name { font-size: 20px; }
  .about-detail-row { font-size: 12px; gap: 6px; }
  .about-intro-box p { font-size: 12px; line-height: 1.7; }
  .ac-viewport { max-width: 180px; }
  .ac-btn { width: 28px; height: 28px; font-size: 12px; }
  .ac-prev { left: -4px; }
  .ac-next { right: -4px; }

  /* Internships */
  .intern-card { border-radius: 12px; }
  .intern-strip { height: 80px; font-size: 26px; }
  .intern-body { padding: 10px 12px 14px; }
  .intern-company { font-size: 14px; }
  .intern-metric .num { font-size: 14px; }
  .intern-metrics { gap: 6px; padding: 6px 0; }
  .intern-desc { font-size: 11px; }
  .intern-tag { font-size: 8px; padding: 2px 6px; }

  /* Projects */
  .project-main-body { padding: 14px 14px; }
  .project-main-body h3 { font-size: 16px; }
  .project-main-visual { height: 130px; font-size: 36px; }
  .project-sub-header { min-height: 70px; height: 70px; font-size: 28px; }
  .project-sub-body { padding: 12px 14px; }
  .sub-body-content .desc { font-size: 11px; }
  .project-view-btn .btn { padding: 6px 16px; font-size: 12px; }
  .project-sub-footer .btn-sub { padding: 6px 14px; font-size: 11px; }

  /* Skills */
  .skills-narrative { gap: 6px; }
  .skills-cloud-wrap { padding: 10px 12px; }
  .skills-cloud { gap: 6px 12px; }
  .cloud-word.size-xxl { font-size: 17px; }
  .cloud-word.size-xl { font-size: 15px; }
  .cloud-word.size-lg { font-size: 14px; }
  .cloud-word.size-md { font-size: 13px; }
  .cloud-word.size-sm { font-size: 12px; }
  .cloud-word.size-xs { font-size: 11px; }
  .cloud-word.size-xxs { font-size: 10px; }
  .cloud-word.size-tiny { font-size: 9px; }

  
  /* Travel */
  .travel-map-wrap { min-height: 220px; }
  #travelMap { min-height: 220px; }
  .travel-sidebar { padding: 14px 14px; }
  .travel-title { font-size: 18px; }
  .travel-stat { font-size: 13px; }
  .travel-quote { font-size: 11px; line-height: 1.7; }
  .travel-stats > div { padding: 8px 6px; }
  .travel-stats .num { font-size: 18px; }
  .travel-tip { font-size: 10px; padding: 3px 10px; bottom: 8px; left: 8px; }
  .travel-legend { font-size: 10px; padding: 4px 8px; top: 8px; right: 8px; }

  /* Contact */
  .contact-card { padding: 14px 12px; }
  .contact-row { padding: 8px 0; }
  .contact-icon { width: 28px; height: 28px; font-size: 12px; }
  .contact-value { font-size: 12px; }
  .contact-main { font-size: 18px; }

  /* Footer */
  .footer { padding: 24px 12px 20px; }
  .footer-text { font-size: 11px; }

  /* Detail pages */
  .detail-content { padding: 90px 12px 30px; }
  .detail-content h1 { font-size: 22px; }
  .detail-section h2 { font-size: 17px; }
  .detail-section p { font-size: 13px; }
  .back-link { font-size: 12px; margin-bottom: 20px; }
}

/* ---- 极小屏 360px ---- */
@media (max-width: 380px) {
  .hero-photo-ring { width: 110px; height: 110px; border-width: 2px; }
  .hero-name { font-size: 22px; }
  .hero-tag { font-size: 10px; padding: 2px 12px; }
  .about-name { font-size: 18px; }
  .ac-viewport { max-width: 150px; }
  .roadmap-node { padding-left: 40px; }
  .roadmap-node .node-circle { width: 22px; height: 22px; font-size: 10px; left: 8px; }
  .roadmap::before { left: 18px; }
  .roadmap-node .node-year { font-size: 12px; min-width: 40px; }
  .cloud-word.size-xxl { font-size: 15px; }
  .section-title { font-size: 20px; }
  .travel-title { font-size: 16px; }
  .detail-content h1 { font-size: 20px; }
  .nav-links a { font-size: 13px; padding: 10px 14px; }
  .intern-metric .num { font-size: 13px; }
  .project-data-row .num { font-size: 13px; }
}

/* ==========================================
   Touch 优化 — 移动端交互增强
   ========================================== */
@media (hover: none) and (pointer: coarse) {
  /* 增大可点击区域 */
  .nav-links a { padding: 14px 16px; }
  .ac-btn { width: 36px; height: 36px; }
  .intern-photo-btn { padding: 10px 20px; font-size: 13px; }
  .project-view-btn .btn { padding: 10px 24px; }
  .project-sub-footer .btn-sub { padding: 8px 18px; }
  .contact-resume-btn { padding: 8px 20px; }
  .back-to-top { width: 44px; height: 44px; bottom: 24px; right: 24px; font-size: 18px; }

  /* 禁用在触摸设备上的 hover 效果以防止 sticky hover */
  .intern-card:hover { transform: none; }
  .project-main-card:hover { transform: none; }
  .project-sub-card:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .roadmap-node .node-circle:hover { transform: none; }
}

/* ==========================================
   打印样式
   ========================================== */
@media print {
  .navbar, .back-to-top, .footer-top { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
  .section { padding: 40px 0; page-break-inside: avoid; }
  .intern-card, .project-main-card, .project-sub-card { break-inside: avoid; }
  .lightbox-overlay { display: none !important; }
  .travel-map-wrap { min-height: 300px; }
  #travelMap { min-height: 300px; }
}
