/* =========================================================================
 *  style.css —— 全站样式
 *  学术蓝主色 + 4 个能力方向强调色；简洁清晰但好看。
 *  配色说明：
 *    背景 #FFFFFF / 交替 #F6F8FA；正文 #1F2937；次级 #64748B；分隔 #E5E7EB
 *    主色 #2563EB；分析=#2563EB 工程=#0D9488 建模=#F59E0B 可视化=#EC4899 暖黄=#EAB308
 * ========================================================================= */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F8FA;
  --text: #1F2937;
  --text-2: #64748B;
  --line: #E5E7EB;
  --primary: #2563EB;
  --primary-soft: rgba(37, 99, 235, 0.10);
  --c-analysis: #2563EB;
  --c-engineering: #0D9488;
  --c-ml: #F59E0B;
  --c-viz: #EC4899;
  --accent-warm: #EAB308;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 6px 24px -8px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 50px -12px rgba(15, 23, 42, 0.22);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================== 导航 ============================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #0EA5E9);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.logo-name { white-space: nowrap; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 7px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-soft); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang-btn {
  border: none; background: transparent; padding: 7px 13px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all .18s;
}
.lang-btn.active { background: var(--primary); color: #fff; }
.nav-burger { display: none; border: none; background: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ============================== Hero ============================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 110px 24px 70px; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-blob {
  position: absolute; top: -10%; right: -5%; width: 46vw; height: 46vw; opacity: 0.5;
  fill: rgba(37, 99, 235, 0.07); animation: blob 22s ease-in-out infinite;
}
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4%, 5%) scale(1.08); } }
.particle {
  position: absolute; border-radius: 50%; opacity: 0.55; filter: blur(0.5px);
  animation: float 14s ease-in-out infinite;
}
.p1 { width: 14px; height: 14px; background: var(--c-analysis); left: 12%; top: 26%; animation-delay: 0s; }
.p2 { width: 8px; height: 8px; background: var(--c-engineering); left: 22%; top: 64%; animation-delay: -3s; }
.p3 { width: 10px; height: 10px; background: var(--c-ml); right: 16%; top: 30%; animation-delay: -6s; }
.p4 { width: 6px; height: 6px; background: var(--c-viz); right: 28%; bottom: 24%; animation-delay: -9s; }
.p5 { width: 12px; height: 12px; background: #7c9cbf; left: 8%; bottom: 22%; animation-delay: -4s; }
.p6 { width: 9px; height: 9px; background: #EAB308; right: 8%; top: 60%; animation-delay: -7s; }
@keyframes float {
  0%,100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-22px) translateX(8px); }
  50% { transform: translateY(-10px) translateX(-6px); }
  75% { transform: translateY(-30px) translateX(4px); }
}

.hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.hero-avatar { width: 118px; height: 118px; margin: 0 auto 22px; }
.hero-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 4px solid #fff; box-shadow: var(--shadow-lg);
}
.hero-greet { font-size: 30px; margin-bottom: 4px; }
.hero-name { font-size: clamp(2.4rem, 6vw, 3.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.hero-role {
  margin-top: 14px; font-size: clamp(1.05rem, 2.6vw, 1.45rem); font-weight: 600; color: var(--primary);
}
.hero-tagline { margin-top: 10px; font-size: 1.05rem; color: var(--text-2); font-style: italic; }
.hero-intro { margin: 18px auto 0; max-width: 640px; color: var(--text-2); font-size: 0.98rem; }
.hero-location { margin-top: 14px; font-size: 0.95rem; font-weight: 500; color: var(--text); }

.hero-cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 11px; font-weight: 600; font-size: 15px;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #0EA5E9); color: #fff; box-shadow: 0 8px 22px -8px rgba(37, 99, 235, 0.6); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.7); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-social { margin-top: 26px; display: flex; gap: 14px; justify-content: center; }
.hero-social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--text-2); transition: all .18s;
}
.hero-social a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.hero-social svg { width: 20px; height: 20px; }

.stats-grid {
  margin-top: 42px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  max-width: 820px; margin-left: auto; margin-right: auto;
}
.stat {
  background: rgba(255,255,255,0.75); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 10px; box-shadow: var(--shadow-sm); backdrop-filter: blur(4px);
}
.stat-value { font-size: 1.9rem; font-weight: 800; color: var(--primary); font-family: var(--mono); }
.stat:nth-child(1) .stat-value { color: var(--c-analysis); }
.stat:nth-child(2) .stat-value { color: var(--c-engineering); }
.stat:nth-child(3) .stat-value { color: var(--c-ml); }
.stat:nth-child(4) .stat-value { color: var(--c-viz); }
.stat:nth-child(5) .stat-value { color: var(--accent-warm); }
.stat-label { margin-top: 4px; font-size: 0.78rem; color: var(--text-2); font-weight: 500; }

.scroll-hint { display: inline-block; margin-top: 40px; }
.mouse { width: 26px; height: 42px; border: 2px solid var(--text-2); border-radius: 14px; display: block; position: relative; }
.wheel { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--text-2); border-radius: 3px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---- 封面装饰：悬浮数据卡片 + 圆环 ---- */
.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(37, 99, 235, 0.12); pointer-events: none; }
.r1 { width: 420px; height: 420px; left: -150px; top: -70px; animation: spin 44s linear infinite; }
.r2 { width: 300px; height: 300px; right: -90px; top: 8%; border-color: rgba(13, 148, 136, 0.18); animation: spin 36s linear infinite reverse; }
.r3 { width: 240px; height: 240px; right: 5%; bottom: -60px; border-color: rgba(245, 158, 11, 0.18); animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow); backdrop-filter: blur(6px);
  animation: floaty 9s ease-in-out infinite;
}
.fb-1 { left: 3%; top: 30%; }
.fb-2 { left: 7%; bottom: 20%; animation-delay: -2.5s; }
.fb-3 { right: 3%; top: 32%; animation-delay: -4.5s; }
.fb-4 { right: 7%; bottom: 22%; animation-delay: -6.5s; }
.fb-ico { font-size: 1.35rem; line-height: 1; }
.fb-v { font-family: var(--mono); font-weight: 800; font-size: 1.05rem; color: var(--primary); }
.fb-l { font-size: 0.7rem; color: var(--text-2); max-width: 88px; line-height: 1.25; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---- 封面贴纸（数据分析主题 emoji 贴纸） ---- */
.sticker {
  position: absolute; z-index: 0; font-size: 34px; line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
  animation: stickerFloat 8s ease-in-out infinite;
  transform: rotate(var(--rot, 0deg));
}
.st-1 { left: 5%; top: 16%; animation-delay: 0s; }
.st-2 { left: 15%; bottom: 24%; animation-delay: -2s; }
.st-3 { right: 13%; top: 20%; animation-delay: -4s; }
.st-4 { right: 5%; bottom: 28%; animation-delay: -6s; }
.st-5 { left: 44%; top: 7%; animation-delay: -3s; }
.st-6 { right: 38%; bottom: 9%; animation-delay: -5s; }
@keyframes stickerFloat {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(calc(var(--rot, 0deg) + 6deg)) translateY(-16px); }
}

/* ---- 封面迷你图表（动态柱状 + 折线描线） ---- */
.hero-mini-chart { position: absolute; width: 230px; height: 150px; right: 6%; bottom: 7%; opacity: 0.85; animation: bob 7s ease-in-out infinite; }
.hc-bars rect { transform-box: fill-box; transform-origin: 50% 100%; animation: barGrow 1.2s cubic-bezier(.22, 1, .36, 1) both; }
.hc-bars rect:nth-child(1) { fill: var(--c-analysis); }
.hc-bars rect:nth-child(2) { fill: var(--c-engineering); animation-delay: .1s; }
.hc-bars rect:nth-child(3) { fill: var(--c-ml); animation-delay: .2s; }
.hc-bars rect:nth-child(4) { fill: var(--c-viz); animation-delay: .3s; }
.hc-bars rect:nth-child(5) { fill: var(--accent-warm); animation-delay: .4s; }
.hc-line { stroke: #0EA5E9; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: drawLine 2.4s ease forwards .5s; }
@keyframes barGrow { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================== 区块通用 ============================== */
.section { padding: 88px 24px; position: relative; }
.section.alt { background: var(--bg-alt); }
.section.alt::before, .section.alt::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.section.alt::before { width: 300px; height: 300px; left: -120px; top: 8%; background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%); }
.section.alt::after { width: 360px; height: 360px; right: -140px; bottom: 4%; background: radial-gradient(circle, rgba(236, 72, 153, 0.07), transparent 70%); }
.section-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.section-title::after {
  content: ''; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-analysis), var(--c-engineering), var(--c-ml), var(--c-viz));
  margin: 14px auto 0;
}
.section-sub { text-align: center; color: var(--text-2); margin: 12px 0 40px; font-size: 0.95rem; }
.sub-title { margin: 48px 0 20px; font-size: 1.25rem; font-weight: 700; color: var(--primary); }

/* ============================== About ============================== */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.about-text p { margin-bottom: 14px; color: var(--text); }
.about-text p:first-child::first-letter { font-size: 2.6em; float: left; line-height: 0.85; padding: 4px 8px 0 0; color: var(--primary); font-weight: 800; }
.chart-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.chart-canvas-wrap { position: relative; height: 300px; }
.bar-wrap { height: 240px; }
.chart-note { margin-top: 8px; font-size: 0.8rem; color: var(--text-2); text-align: center; }

.edu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
}
.edu-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.edu-head h4 { font-size: 1.15rem; font-weight: 700; }
.edu-degree { color: var(--primary); font-weight: 600; margin-top: 3px; }
.edu-meta { text-align: right; font-size: 0.85rem; color: var(--text-2); display: flex; flex-direction: column; gap: 2px; }
.edu-detail { font-weight: 700; color: var(--c-ml); font-family: var(--mono); }
.edu-courses { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--text-2); }
.mini-label { font-weight: 600; color: var(--text); }

.skill-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skill-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.skill-group h5 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 500;
  background: var(--primary-soft); color: var(--primary); border: 1px solid transparent;
}

/* ============================== 时间线 Experience ============================== */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--primary), var(--c-engineering), var(--c-ml), var(--c-viz)); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-marker {
  position: absolute; left: -34px; top: 24px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent, var(--primary)); box-shadow: 0 0 0 4px #fff, var(--shadow-sm);
}
.tl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative; overflow: hidden;
}
.tl-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--primary)); }
.tl-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); border-color: var(--accent, var(--primary)); }
.tl-period { font-family: var(--mono); font-size: 0.8rem; color: var(--accent, var(--primary)); font-weight: 600; }
.tl-card h4 { font-size: 1.15rem; font-weight: 700; margin-top: 2px; }
.tl-role { color: var(--text); font-weight: 600; margin-top: 2px; }
.tl-loc { font-size: 0.85rem; color: var(--text-2); margin-top: 2px; }
.tl-summary { margin-top: 8px; color: var(--text-2); font-size: 0.9rem; }
.tl-tech { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================== 筛选 + 项目 ============================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--text-2);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px; transition: all .18s;
}
.filter-btn:hover { border-color: var(--c, var(--primary)); color: var(--c, var(--primary)); transform: translateY(-1px); }
.filter-btn.active { background: var(--c, var(--primary)); border-color: var(--c, var(--primary)); color: #fff; box-shadow: 0 6px 16px -6px var(--c, var(--primary)); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent, var(--primary)); }
.proj-img { height: 150px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ph-icon svg { width: 40px; height: 40px; opacity: 0.9; }
.ph-hint { font-size: 0.7rem; color: var(--text-2); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.7; }
.proj-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.proj-body h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.proj-role { font-size: 0.8rem; color: var(--text-2); margin-top: 3px; font-weight: 500; }
.proj-summary { margin-top: 8px; font-size: 0.86rem; color: var(--text-2); flex: 1; }
.proj-metrics { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.metric { display: flex; flex-direction: column; }
.m-value { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--accent, var(--primary)); }
.m-label { font-size: 0.68rem; color: var(--text-2); }
.proj-tech { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================== 数据亮点 Data Highlights ============================== */
.viz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; }
.viz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.viz-card .chart-canvas-wrap { height: 260px; }

/* ============================== Tableau 风格看板 ============================== */
.tableau {
  background: #EFEFED; border: 1px solid #D9D9D7; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-lg); font-size: 13px; text-align: left; color: #333;
}
.tb-toolbar { display: flex; align-items: center; gap: 16px; padding: 8px 14px; background: #fff; border-bottom: 1px solid #E2E2E0; }
.tb-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #2F6B9E; white-space: nowrap; }
.tb-logo { width: 22px; height: 22px; border-radius: 4px; display: grid; place-items: center; background: linear-gradient(135deg, #2F6B9E, #3C9D6E); color: #fff; font-size: 12px; font-weight: 800; }
.tb-app { font-size: 13px; }
.tb-tabs { display: flex; gap: 3px; overflow-x: auto; }
.tb-tab { padding: 5px 13px; font-size: 12.5px; color: #666; cursor: pointer; border-radius: 4px 4px 0 0; border: 1px solid transparent; white-space: nowrap; }
.tb-tab.active { background: #EFEFED; border-color: #D9D9D7; color: #2F6B9E; font-weight: 600; }
.tb-tools { margin-left: auto; display: flex; gap: 4px; }
.tb-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; color: #666; font-size: 14px; cursor: pointer; }
.tb-ico:hover { background: #F0F0EE; }

.tb-body { display: grid; grid-template-columns: 188px 1fr; min-height: 560px; }
.tb-data { background: #fff; border-right: 1px solid #E2E2E0; padding: 12px; }
.tb-pane-title { font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tb-group-label { font-size: 10.5px; font-weight: 700; color: #A0A09E; text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 6px; }
.tb-pill { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 4px; margin-bottom: 3px; font-size: 12px; cursor: default; }
.tb-pill.dim { background: #E8F0F8; color: #1F5C8A; }
.tb-pill.meas { background: #E7F4EC; color: #2E7D52; }
.pill-ico { font-size: 9.5px; font-weight: 700; opacity: .55; min-width: 18px; }

.tb-main { padding: 12px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tb-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.tb-filter { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #D9D9D7; border-radius: 4px; padding: 5px 10px; font-size: 12px; }
.tf-name { color: #888; }
.tf-value { color: #2F6B9E; font-weight: 600; }
.tf-value i { font-style: normal; font-size: 9px; color: #888; }

.tb-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tb-kpi { background: #fff; border: 1px solid #E2E2E0; border-radius: 6px; padding: 13px 15px; }
.tb-kpi-label { font-size: 11px; color: #888; }
.tb-kpi-value { font-size: 23px; font-weight: 800; font-family: var(--mono); color: #333; margin: 3px 0 1px; letter-spacing: -0.01em; }
.tb-kpi-delta { font-size: 11px; font-weight: 600; }
.tb-kpi-delta.up { color: #2E7D52; }
.tb-kpi-delta.down { color: #C0392B; }

.tb-sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-sheet { background: #fff; border: 1px solid #E2E2E0; border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
.tb-sheet-full { grid-column: 1 / -1; }
.tb-sheet-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #F0F0EE; }
.tb-sheet-ico { width: 10px; height: 10px; border-radius: 2px; background: #2F6B9E; flex-shrink: 0; }
.tb-sheet-title { font-size: 12.5px; font-weight: 600; color: #333; }
.tb-sheet-menu { margin-left: auto; color: #BBB; cursor: pointer; font-size: 15px; }
.tb-sheet-body { position: relative; height: 230px; padding: 6px 12px 6px; }
.tb-sheet-full .tb-sheet-body { height: 250px; }
.tb-sheet-note { font-size: 10.5px; color: #999; padding: 0 12px 10px; }

/* ---- 数据看板项目卡片（挂在 Projects 网格内，全宽） ---- */
.dash-proj { grid-column: 1 / -1; cursor: default; }
.dash-proj:hover { transform: none; box-shadow: var(--shadow); border-color: var(--accent, var(--primary)); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 24px 24px 0; flex-wrap: wrap; }
.dash-head h4 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.dash-head .proj-role { margin-top: 3px; }
.dash-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dash-head-meta .proj-tags { margin-bottom: 0; }
.dash-head-meta .proj-tech { margin-top: 0; }
.dash-summary { padding: 10px 24px 0; font-size: 0.9rem; color: var(--text-2); max-width: 900px; }
.dash-proj .tb-kpis { padding: 16px 24px 0; }
.dash-proj .tb-sheets { padding: 16px 24px 24px; }

@media (max-width: 900px) {
  .tb-body { grid-template-columns: 1fr; }
  .tb-data { display: none; }
  .tb-kpis { grid-template-columns: repeat(2, 1fr); }
  .tb-sheets { grid-template-columns: 1fr; }
  .tb-sheet-full { grid-column: 1; }
  .tb-tabs { max-width: 46vw; }
}
@media (max-width: 640px) {
  .tb-kpis { grid-template-columns: 1fr 1fr; }
  .tb-tools { display: none; }
}

/* ============================== Engineering（卡片 + 点击弹窗，封面=架构图） ============================== */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eng-mini .proj-img { height: 180px; background: var(--bg-alt); }
.eng-mini .proj-img img { object-fit: contain; padding: 14px; }
.repo-btn {
  display: inline-block; padding: 9px 16px; border-radius: 9px; background: var(--primary-soft); color: var(--primary);
  font-weight: 600; font-size: 0.85rem; white-space: nowrap; transition: all .18s;
}
.repo-btn:hover { background: var(--primary); color: #fff; }

/* ============================== Research ============================== */
.pub-list { display: grid; gap: 16px; }
.pub-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
  box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.pub-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.pub-year { font-family: var(--mono); font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.pub-title { font-weight: 600; line-height: 1.4; }
.pub-meta { margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-2); }
.pub-venue { color: var(--c-engineering); font-weight: 600; }
.badge-book { background: var(--c-viz); color: #fff; font-size: 0.68rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.pub-metric { text-align: right; min-width: 110px; }

/* ============================== Awards ============================== */
.awards-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.award-level { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.award-level-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.award-items { display: grid; gap: 10px; }
.award-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.award-medal { font-size: 1.1rem; }
.award-text { flex: 1; }
.award-year { font-family: var(--mono); font-size: 0.78rem; color: var(--text-2); }

.campus-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campus-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; font-size: 0.9rem; }
.campus-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-engineering); flex-shrink: 0; }
.campus-period { margin-left: auto; font-size: 0.78rem; color: var(--text-2); font-family: var(--mono); }

/* ============================== Contact ============================== */
.contact { background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 100%); text-align: center; }
.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; box-shadow: var(--shadow-sm);
  transition: all .18s;
}
.contact-pill:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-pill.static { cursor: default; }
.footer-note { margin-top: 40px; font-size: 0.8rem; color: var(--text-2); }

/* ============================== Modal ============================== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); animation: fadeIn .2s; }
.modal-panel {
  position: relative; max-width: 720px; max-height: 86vh; margin: 5vh auto; overflow-y: auto;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 34px 34px 30px;
  animation: slideUp .28s cubic-bezier(.22,1,.36,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; color: var(--text-2);
  transition: all .18s;
}
.modal-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.modal-body h3 { font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.m-accent { position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 18px 18px 0 0; }
.m-role { font-weight: 700; color: var(--primary); }
.m-meta { color: var(--text-2); font-size: 0.88rem; margin-top: 2px; }
.m-summary { margin-top: 14px; color: var(--text); }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.m-bullets { margin: 16px 0; padding-left: 22px; display: grid; gap: 8px; color: var(--text); }
.m-bullets li::marker { color: var(--primary); }
.m-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.92rem; }
.m-label { font-weight: 700; color: var(--text); }
.m-metrics { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.m-img { margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.diag-zoom img { background: #fff; }
.m-chart { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.m-chart-head { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.m-chart-canvas { position: relative; height: 240px; }
.m-chart-note { margin-top: 6px; font-size: 0.78rem; color: var(--text-2); }

/* ============================== 动效 ============================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================== 响应式 ============================== */
@media (max-width: 900px) {
  .about-grid, .edu-list, .skill-groups, .awards-wrap, .campus-list { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .viz-grid { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-item { grid-template-columns: 1fr; gap: 8px; }
  .pub-metric { text-align: left; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .float-badge { display: none; }
  .sticker, .hero-mini-chart { display: none; }
  .ring { opacity: 0.5; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .lang-switch { margin-left: 0; }
  .project-grid { grid-template-columns: 1fr; }
  .eng-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 90px; }
  .section { padding: 64px 20px; }
}
