@charset "UTF-8";

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --navy: #0b1220;
  --accent: #0ea5e9;
  --accent-2: #f97316;
  --good: #059669;
  --bad: #dc2626;
  --c-intern: #0ea5e9;
  --c-master: #8b5cf6;
  --c-mbz: #f97316;
  --c-ug: #10b981;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 650; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 0 40px; height: 60px;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: saturate(160%) blur(10px);
  color: #e2e8f0;
}
.nav .brand { font-weight: 700; letter-spacing: .5px; color: #fff; white-space: nowrap; }
.nav .brand span { color: var(--accent); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.nav a { color: #cbd5e1; padding: 6px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a.on { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(14, 165, 233, .25), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(139, 92, 246, .22), transparent 60%),
              var(--navy);
  color: #e2e8f0;
  padding: 72px 40px 64px;
}
.hero-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .tag { display: inline-block; font-size: 12px; letter-spacing: 2px; color: var(--accent); border: 1px solid rgba(14, 165, 233, .5); padding: 3px 10px; border-radius: 99px; }
.hero h1 { font-size: 52px; margin: 16px 0 4px; color: #fff; letter-spacing: 2px; }
.hero h1 small { font-size: 22px; color: #94a3b8; font-weight: 500; margin-left: 10px; letter-spacing: 0; }
.hero .role { font-size: 20px; color: #cbd5e1; margin: 0 0 22px; }
.hero .contact { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: #94a3b8; margin-bottom: 28px; }
.hero .contact a { color: #cbd5e1; }
.edu { display: grid; gap: 12px; margin-bottom: 28px; }
.edu-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.edu-item h4 { margin: 0; color: #fff; font-size: 16px; }
.edu-item time { color: #94a3b8; font-size: 13px; font-variant-numeric: tabular-nums; }
.edu-item p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: #94a3b8; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 14px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); text-align: center; }
.stat b { display: block; font-size: 26px; color: #fff; line-height: 1.2; }
.stat span { font-size: 12.5px; color: #94a3b8; }

.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-media figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.hero-media figure:first-child { grid-column: 1 / -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: contain; }
.hero-media figcaption { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); padding: 3px 9px; border-radius: 99px; }

/* ---------- sections ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 0 40px 80px; }
.section { padding-top: 72px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 28px; }
.sec-head .no { font-size: 13px; letter-spacing: 2px; color: var(--muted); }
.sec-head h2 { margin: 2px 0 0; font-size: 30px; }
.sec-head h2 small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 10px; }
.sec-head .meta { text-align: right; font-size: 14px; color: var(--ink-2); }
.sec-head .meta time { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-intern { --c: var(--c-intern); }
.sec-master { --c: var(--c-master); }
.sec-mbz { --c: var(--c-mbz); }
.sec-ug { --c: var(--c-ug); }
.section[class*="sec-"] .sec-head { border-bottom-color: var(--c); }
.section[class*="sec-"] .sec-head .no { color: var(--c); }

.banner { position: relative; border-radius: var(--radius); overflow: hidden; height: 220px; margin-bottom: 28px; background: #0b1220; }
.banner > img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.banner .b-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 40px; color: #fff; background: linear-gradient(90deg, rgba(11, 18, 32, .92) 0%, rgba(11, 18, 32, .55) 55%, transparent 100%); }
.banner .b-body img { height: 34px; width: auto; align-self: flex-start; margin-bottom: 14px; }
.banner h3 { margin: 0; font-size: 26px; }
.banner p { margin: 6px 0 0; color: #cbd5e1; max-width: 640px; }

.platform { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 28px; }
.platform h3 { margin: 0 0 8px; font-size: 20px; }
.platform p { margin: 0 0 12px; color: var(--ink-2); }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.spec div { background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.spec b { display: block; font-size: 17px; }
.spec span { font-size: 12.5px; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip figure { margin: 0; border-radius: 10px; overflow: hidden; background: #f1f5f9; aspect-ratio: 1 / 1; }
.strip img { width: 100%; height: 100%; object-fit: contain; background: #fff; cursor: zoom-in; }
.strip figure.contain img { background: #fff; }

/* ---------- project card ---------- */
.proj { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; border-top: 3px solid var(--c, var(--accent)); }
.proj.flip { grid-template-columns: 7fr 5fr; }
.proj.flip .p-text { order: 2; }
.proj.stack { grid-template-columns: 1fr; }
.p-text .kicker { font-size: 12px; letter-spacing: 1.5px; color: var(--c, var(--accent)); font-weight: 650; text-transform: uppercase; }
.p-text h3 { margin: 4px 0 10px; font-size: 21px; line-height: 1.4; }
.p-text .resume { margin: 0 0 14px; padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--c, var(--accent)); border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: 14.5px; }
.p-text .resume::before { content: "简历原文"; display: block; font-size: 11px; letter-spacing: 1px; color: var(--muted); margin-bottom: 2px; }
.p-text h5 { margin: 14px 0 6px; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.p-text ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.p-text li { margin: 3px 0; }
.p-text li::marker { color: var(--c, var(--accent)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-top: 16px; }
.kpi { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.kpi b { display: block; font-size: 22px; color: var(--c, var(--accent)); line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.g { color: var(--good); font-weight: 650; }
.r { color: var(--bad); font-weight: 650; }

/* ---------- media ---------- */
.media { display: grid; gap: 12px; align-content: start; }
.media.two { grid-template-columns: 1fr 1fr; }
.media .span2 { grid-column: 1 / -1; }
.media figure { margin: 0; background: #f1f5f9; border-radius: 12px; overflow: hidden; align-self: start; }
.media figure img, .media figure video { width: 100%; height: auto; background: #0b1220; }
.media figure img { background: #fff; cursor: zoom-in; }
.media figure.dark img { background: #0b1220; }
.media figure.fixh img, .media figure.fixh video { height: 260px; object-fit: contain; background: #0b1220; }
.media figure.fixh.contain img { background: #fff; }
.media figure.portrait video { max-height: 460px; width: auto; margin: 0 auto; }
.media figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px 10px; line-height: 1.5; background: #fff; border-top: 1px solid var(--line); }
.media figcaption b { color: var(--ink-2); }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 99px; margin-right: 6px; vertical-align: 1px; font-weight: 600; }
.badge.vid { background: #fee2e2; color: #b91c1c; }
.badge.sim { background: #e0f2fe; color: #0369a1; }
.badge.real { background: #dcfce7; color: #15803d; }

/* ---------- table / chart ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.tbl th { color: var(--muted); font-weight: 600; background: var(--bg); }
.tbl td:first-child, .tbl th:first-child { text-align: left; }
.tbl tr.hl td { background: color-mix(in srgb, var(--c, #8b5cf6) 10%, #fff); font-weight: 650; }

.chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 12px; }
.chart h6 { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: end; height: 190px; border-bottom: 1px solid var(--line); }
.bars .grp { display: flex; gap: 4px; align-items: flex-end; height: 100%; justify-content: center; }
.bars .bar { width: 22%; min-width: 10px; border-radius: 4px 4px 0 0; position: relative; height: var(--v); }
.bars .bar::after { content: attr(data-v); position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.bars-x { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; text-align: center; font-size: 12px; color: var(--muted); padding-top: 6px; }
.c1 { background: #8b5cf6; } .c2 { background: #94a3b8; } .c3 { background: #fbbf24; }

/* ---------- extras ---------- */
.intern-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.intern-grid .proj { margin-bottom: 0; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr) 0.62fr; gap: 12px; margin-bottom: 28px; }
.vgrid figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.vgrid video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.vgrid figure.tall { grid-column: 4; grid-row: 1 / 3; }
.vgrid figure.tall video { aspect-ratio: 9 / 16; flex: 1; min-height: 0; height: 100%; }
.vgrid figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px 10px; line-height: 1.5; }
.sub-head { display: flex; align-items: center; gap: 12px; margin: 40px 0 16px; }
.sub-head h3 { margin: 0; font-size: 19px; }
.sub-head span { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; background: #fff; }

.pubs { display: grid; gap: 14px; }
.pub { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.pub .venue { font-weight: 700; font-size: 15px; color: var(--accent); }
.pub .venue small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.pub h4 { margin: 0 0 4px; font-size: 16px; line-height: 1.45; }
.pub p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pub .btn { font-size: 13px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); white-space: nowrap; }
.pub .btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.box h3 { margin: 0 0 12px; font-size: 18px; }
.box ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.box li { margin: 6px 0; }
.skills { display: grid; gap: 12px; }
.skill { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.skill > b { font-size: 14px; color: var(--muted); padding-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0 50px; }

/* ---------- lightbox ---------- */
#lb { position: fixed; inset: 0; z-index: 100; background: rgba(2, 6, 23, .92); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
#lb.on { display: flex; }
#lb img { max-width: 96vw; max-height: 86vh; object-fit: contain; background: #fff; border-radius: 6px; }
#lb p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cbd5e1; font-size: 14px; margin: 0; padding: 0 40px; }

@media (max-width: 1000px) {
  .hero-inner, .proj, .proj.flip, .platform, .two-col { grid-template-columns: 1fr; }
  .proj.flip .p-text { order: 0; }
  .hero-media { max-width: 640px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pub { grid-template-columns: 1fr; }
  .intern-grid { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .vgrid figure.tall { grid-column: auto; grid-row: span 2; }
  .nav { padding: 0 16px; }
  main, .hero { padding-left: 18px; padding-right: 18px; }
}

/* ---------- card: main media beside text, rest in gallery row ---------- */
.proj { align-items: start; }
.gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; border-top: 1px dashed var(--line); padding-top: 20px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.gallery figure img, .gallery figure video { width: 100%; height: 210px; object-fit: contain; background: #fff; }
.gallery figure img { cursor: zoom-in; }
.gallery figure video, .gallery figure.dark img { background: #000; }
.gallery figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px 10px; line-height: 1.5; border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .gallery { grid-template-columns: 1fr 1fr; } }
.proj.flip .gallery { order: 3; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figure.wide video { height: auto; aspect-ratio: auto; }
