/* =========================================================
   周豪鑫 · 作品集网站
   Clean engineering-portfolio style · navy / blueprint accents
   ========================================================= */
:root {
  --navy: #152E52;
  --navy-2: #1F3864;
  --navy-3: #0F203B;
  --blue: #2E74B5;
  --blue-2: #5D9BD6;
  --blue-soft: #EAF2FB;
  --ink: #121A2A;
  --body: #4A5568;
  --muted: #6B7789;
  --line: #E3E9F2;
  --bg: #F5F7FB;
  --white: #FFFFFF;
  --gold: #B98945;
  --gold-soft: #F8F1E5;
  --radius: 22px;
  --shadow: 0 24px 64px rgba(18, 26, 42, .10);
  --shadow-soft: 0 12px 32px rgba(18, 26, 42, .06);
  --max: 1180px;
  --nav-h: 74px;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(46, 116, 181, .2); }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- scroll progress / helpers ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }
.icon {
  width: 1.12em;
  height: 1.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(227, 233, 242, .9);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 36px rgba(18, 26, 42, .07);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: 0 8px 20px rgba(31, 56, 100, .18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; letter-spacing: .06em; color: var(--ink); }
.brand-text small {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  color: #46536A;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--navy); background: #F1F5FA; }
.nav-links a.active { color: var(--navy); background: var(--blue-soft); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
}
.nav-toggle:hover { background: #F7F9FC; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(21, 46, 82, .18);
}
.btn-primary:hover { background: #1B3A68; box-shadow: 0 18px 36px rgba(21, 46, 82, .24); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #B9CBE2; background: #FAFCFF; }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: 12.5px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #F3F7FC; }
.btn-ghost-light {
  background: transparent;
  color: #D6E4F5;
  border-color: rgba(255, 255, 255, .24);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }

/* ---------- type / section heads ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}
h1, h2, h3, p { margin-top: 0; }
h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--navy);
  font-weight: 800;
}
.section-lead {
  max-width: 660px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--body);
}
.section { padding: 104px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 46px;
}
.section-head .section-lead { margin-top: 4px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 74px) 0 52px;
  background:
    radial-gradient(circle at 84% 8%, rgba(46, 116, 181, .12), transparent 34%),
    radial-gradient(circle at 8% 16%, rgba(31, 56, 100, .06), transparent 32%),
    linear-gradient(135deg, #FFFFFF 0%, #F8FAFD 56%, #EEF4FB 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 56, 100, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 56, 100, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 116, 181, .14), transparent 66%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 72px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(58px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -.05em;
  color: var(--navy);
  font-weight: 800;
}
.hero h1 .dot { color: var(--blue); }
.hero-role {
  margin: 0 0 20px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--navy-2);
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-intro {
  max-width: 585px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--body);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.hero-school {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  max-width: 660px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 56, 100, .12);
}
.hero-school span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-school strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.hero-side { position: relative; display: flex; justify-content: flex-end; }
.portrait-wrap {
  position: relative;
  width: min(356px, 100%);
  z-index: 1;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: 28px;
  background: #D9E7F5;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 30px 70px rgba(21, 46, 82, .25);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -20px -20px 18px;
  z-index: -1;
  border: 1px solid rgba(31, 56, 100, .18);
  border-radius: 30px;
}
.portrait-wrap::after {
  content: "";
  position: absolute;
  top: -24px;
  left: -32px;
  width: 96px;
  height: 96px;
  border-top: 2px solid rgba(46, 116, 181, .38);
  border-left: 2px solid rgba(46, 116, 181, .38);
  border-radius: 2px;
}
.portrait-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 8px 22px rgba(21, 46, 82, .12);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--navy);
  font-weight: 600;
}
.portrait-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.portrait-badge {
  position: absolute;
  left: -30px;
  bottom: 34px;
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 11px;
  color: var(--muted);
}
.portrait-badge strong { font-size: 13px; color: var(--navy); letter-spacing: .02em; }
.portrait-badge span { display: flex; align-items: center; gap: 6px; }
.portrait-badge span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-2);
}

/* stats */
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 56, 100, .12);
}
.stat { padding: 0 24px; border-left: 1px solid rgba(31, 56, 100, .1); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--navy);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.stat-value small { font-size: 12px; font-weight: 700; color: var(--blue); }
.stat-label { margin-top: 4px; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, .76fr);
  gap: 64px;
  align-items: start;
}
.about-copy p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--body);
}
.about-copy p strong { color: var(--navy); font-weight: 600; }
.about-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.about-sign::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.process-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.process-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #F2F7FD;
  border: 1px solid #DFEAF6;
  color: var(--navy-2);
  font-size: 11.5px;
  letter-spacing: .03em;
}
.process-strip span b { color: var(--blue); font-weight: 700; margin-right: 4px; }

.edu-card {
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(46, 116, 181, .1), transparent 40%),
    linear-gradient(155deg, #F9FBFE 0%, #EFF5FC 100%);
  border: 1px solid #DCE8F4;
  box-shadow: var(--shadow-soft);
}
.edu-label {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.edu-card h3 { margin: 0 0 4px; font-size: 20px; color: var(--navy); letter-spacing: -.01em; }
.edu-major { margin: 0 0 18px; font-size: 13px; color: var(--body); }
.edu-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(31, 56, 100, .1);
  font-size: 12.5px;
  color: var(--body);
}
.edu-line span { color: var(--muted); flex: none; margin-right: 14px; }
.edu-line strong { text-align: right; font-weight: 600; color: var(--ink); }
.gpa-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 4px 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #D8E6F3;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.gpa-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.gpa-best {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -3px 0 15px;
  color: var(--body);
  font-size: 11px;
  line-height: 1.5;
}
.gpa-best::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-2);
  flex: none;
}
.course-title {
  margin: 6px 0 8px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.course-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.course-chips span {
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid #DCE8F4;
  color: #53647B;
  font-size: 10.5px;
}
.edu-now {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 56, 100, .1);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--body);
}
.edu-now b { display: block; font-size: 10px; letter-spacing: .12em; color: var(--blue); margin-bottom: 3px; }

/* 课程成绩 */
.course-board {
  margin-top: 32px;
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F8FAFD 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.course-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.course-board-head .edu-label { margin-bottom: 5px; }
.course-board-head h3 { margin: 0; color: var(--navy); font-size: 17px; letter-spacing: -.01em; }
.course-board-note { margin: 0; color: var(--muted); font-size: 11px; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.course-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #F8FAFD;
  border: 1px solid #E8EEF7;
  color: var(--body);
  font-size: 11.5px;
  line-height: 1.35;
}
.course-grid b { color: var(--navy); font-size: 11.5px; font-weight: 700; flex: none; }
.course-others {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #E1E9F3;
  color: var(--muted);
  font-size: 10.8px;
}
.course-others b {
  margin-right: 3px;
  color: var(--navy-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}
.course-others span + span::before {
  content: "·";
  margin-right: 9px;
  color: #B9C6D7;
}
.ability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}
.ability {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ability:hover {
  transform: translateY(-5px);
  border-color: #CFDDEB;
  box-shadow: var(--shadow-soft);
}
.ability-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}
.ability h3 { margin: 0 0 10px; font-size: 15.5px; color: var(--ink); }
.ability ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.ability li {
  padding: 5px 8px;
  border-radius: 7px;
  background: #F6F8FB;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.honor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}
.honor-strip strong {
  color: var(--navy);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.honor-strip span {
  position: relative;
  padding-left: 14px;
}
.honor-strip span::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* =========================================================
   WORK
   ========================================================= */
.work { background: var(--bg); }
.work-count { flex: none; text-align: right; color: var(--navy); }
.work-count strong { display: block; font-size: 46px; line-height: .9; letter-spacing: -.04em; font-weight: 800; }
.work-count span { display: block; margin-top: 7px; font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  outline: none;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: #CCDCEB;
  box-shadow: var(--shadow);
}
.work-card:focus-visible { box-shadow: 0 0 0 3px rgba(46, 116, 181, .35); }
.work-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  min-height: 430px;
}
.work-media { position: relative; overflow: hidden; background: #EEF3F9; }
.work-card:not(.featured) .work-media { aspect-ratio: 16 / 10; }
.work-card.featured .work-media { height: 100%; min-height: 330px; }
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s cubic-bezier(.2, .7, .2, 1);
}
.work-card:hover .work-media img { transform: scale(1.035); }
.work-media.document img {
  object-fit: contain;
  padding: 20px;
  background: #fff;
}
.work-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
}
.work-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(21, 46, 82, .9);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.work-card:hover .work-hint { opacity: 1; transform: translateY(0); }
.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 24px;
}
.work-card.featured .work-body { justify-content: center; padding: 38px 42px; }
.work-card.featured .work-tags { margin: 18px 0 16px; }
.work-card.featured .text-link { margin-top: 0; }
.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 11px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-meta span + span::before { content: "·"; margin-right: 9px; color: #B3C1D4; }
.work-body h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: -.015em;
}
.work-card.featured h3 { font-size: 30px; line-height: 1.28; }
.work-body p { margin: 0 0 18px; font-size: 14px; line-height: 1.85; color: var(--body); }
.work-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: auto 0 16px; list-style: none; }
.work-tags li {
  padding: 5px 9px;
  border-radius: 8px;
  background: #F3F7FC;
  border: 1px solid #E2EBF5;
  color: var(--navy-2);
  font-size: 10.5px;
  line-height: 1.3;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}
.text-link .icon { stroke-width: 2; transition: transform .25s ease; }
.work-card:hover .text-link .icon { transform: translateX(4px); }

/* =========================================================
   JOURNEY
   ========================================================= */
.journey { background: #fff; }
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 16px;
  left: 136px;
  width: 1px;
  background: linear-gradient(180deg, #DCE8F4, #E8EEF6 70%, transparent);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 36px minmax(0, 1fr);
  gap: 0 18px;
  padding-bottom: 30px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date {
  padding-top: 4px;
  text-align: right;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
.timeline-date small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .02em;
}
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin: 7px auto 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}
.timeline-item.current .timeline-dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(185, 137, 69, .13);
}
.timeline-card {
  padding: 21px 24px;
  border-radius: 16px;
  background: #F8FAFD;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.timeline-card:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.timeline-card h3 { margin: 0 0 6px; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.timeline-card p { margin: 0; color: var(--body); font-size: 12.8px; line-height: 1.8; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.timeline-tags span {
  padding: 4px 8px;
  border-radius: 6px;
  background: #EFF5FC;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: .03em;
}

/* =========================================================
   SELF EVALUATION
   ========================================================= */
.evaluation { background: linear-gradient(180deg, #fff 0%, #F5F8FC 100%); }
.eval-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  gap: 70px;
  align-items: start;
}
.eval-quote {
  margin: 24px 0 20px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.025em;
}
.eval-quote em {
  font-style: normal;
  color: var(--blue);
  border-bottom: 2px solid rgba(46, 116, 181, .28);
}
.eval-copy { margin: 0 0 24px; color: var(--body); font-size: 15.5px; line-height: 1.95; }
.methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.methods span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #DEE9F4;
  color: var(--navy-2);
  font-size: 11px;
  letter-spacing: .03em;
}
.methods span b { color: var(--blue); margin-right: 4px; font-weight: 700; }
.eval-cards { display: grid; gap: 13px; }
.eval-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 21px 22px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(18, 26, 42, .02);
}
.eval-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.eval-card h3 { margin: 0 0 4px; color: var(--ink); font-size: 14.5px; }
.eval-card p { margin: 0; color: var(--muted); font-size: 12.3px; line-height: 1.75; }
.eval-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 26px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #75552A;
  font-size: 11.8px;
  line-height: 1.65;
}
.eval-note .icon { color: var(--gold); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  overflow: hidden;
  padding: 94px 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(93, 155, 214, .22), transparent 38%),
    linear-gradient(135deg, #142C4E 0%, #1F3864 55%, #173153 100%);
  color: #fff;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: end;
}
.contact .eyebrow { color: #9BC4EE; }
.contact h2 { margin-bottom: 16px; color: #fff; }
.contact-copy { max-width: 600px; margin: 0; color: #BACADB; font-size: 15.5px; line-height: 1.9; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  letter-spacing: .01em;
  transition: color .2s ease;
}
.contact-link:hover { color: #BBD9F5; }
.contact-link .icon { width: 18px; height: 18px; color: #8EB8E2; }
.contact-meta { color: #9FB2C8; font-size: 12px; line-height: 1.8; }
.resume-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.resume-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #D6E4F5;
  font-size: 11px;
  transition: background .2s ease, border-color .2s ease;
}
.resume-links a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .38); }
.resume-links .icon { width: 13px; height: 13px; }
.wechat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  margin-top: 6px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(4, 12, 24, .18);
}
.wechat-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
  flex: none;
}
.wechat-text { display: flex; flex-direction: column; gap: 4px; }
.wechat-text strong { color: var(--navy); font-size: 13px; letter-spacing: .05em; }
.wechat-text span { max-width: 150px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

/* ---------- footer ---------- */
.footer { background: #0F203B; color: #8FA3BC; font-size: 11.5px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}
.footer a { color: #C7D6E8; }
.footer a:hover { color: #fff; }

/* ---------- back to top ---------- */
.backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { background: #F7FAFD; }
.backtop .icon { width: 17px; height: 17px; }

/* =========================================================
   PROJECT MODAL
   ========================================================= */
dialog.project-modal {
  width: min(1040px, 93vw);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(4, 12, 24, .38);
  overflow: hidden;
}
dialog.project-modal::backdrop {
  background: rgba(8, 17, 31, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  max-height: 90vh;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(18, 26, 42, .12);
}
.modal-close:hover { background: #F4F8FC; }
.modal-media {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  background: #F2F6FB;
  border-right: 1px solid var(--line);
}
.modal-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #E2EAF4;
  background: #fff;
}
.modal-main img { max-width: 100%; max-height: 48vh; object-fit: contain; }
.modal-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.modal-thumbs button {
  width: 66px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  border: 2px solid transparent;
  background: #fff;
  opacity: .82;
  transition: opacity .2s ease, border-color .2s ease;
}
.modal-thumbs button:hover { opacity: 1; }
.modal-thumbs button.active { border-color: var(--blue); opacity: 1; }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-caption { margin: 10px 2px 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.modal-content { min-height: 0; padding: 34px 34px 28px; overflow: auto; }
.modal-content .eyebrow { margin-bottom: 8px; }
.modal-title { margin: 0 0 4px; color: var(--navy); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.3; letter-spacing: -.025em; }
.modal-role { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.modal-summary { margin: 0 0 20px; color: var(--body); font-size: 13.5px; line-height: 1.85; }
.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.modal-spec {
  padding: 11px 13px;
  border-radius: 11px;
  background: #F7F9FD;
  border: 1px solid #E8EEF7;
}
.modal-spec b { display: block; color: var(--navy); font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.modal-spec span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.modal-highlights { display: grid; gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; }
.modal-highlights li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--body);
  font-size: 12.2px;
  line-height: 1.75;
}
.modal-highlights .icon { width: 13px; height: 13px; margin-top: 4px; color: var(--blue); }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.modal-tags span {
  padding: 5px 9px;
  border-radius: 7px;
  background: #F1F6FC;
  border: 1px solid #E0EBF6;
  color: var(--navy-2);
  font-size: 10.5px;
}
.modal-process {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.modal-process span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #FAFCFE;
  border: 1px solid #E5EDF6;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .03em;
}
.modal-process span::before {
  content: attr(data-step);
  color: var(--blue);
  font-weight: 700;
}

/* =========================================================
   RESUME CHOOSER
   ========================================================= */
dialog.resume-modal {
  width: min(780px, 92vw);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(4, 12, 24, .38);
  overflow: hidden;
}
dialog.resume-modal::backdrop {
  background: rgba(8, 17, 31, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.resume-modal-inner { padding: 34px 34px 28px; }
.resume-modal-inner h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: clamp(23px, 2.6vw, 29px);
  line-height: 1.3;
  letter-spacing: -.02em;
}
.resume-modal-sub { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.resume-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.resume-option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #F8FAFD;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.resume-option:hover {
  transform: translateY(-3px);
  border-color: #C9DBEB;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.resume-option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  flex: none;
}
.resume-option-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.resume-option-body strong { color: var(--navy); font-size: 13.5px; line-height: 1.45; }
.resume-option-body small { color: var(--muted); font-size: 10.8px; line-height: 1.6; }
.resume-dl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  flex: none;
}
.resume-dl .icon { width: 12px; height: 12px; }
.resume-modal-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
@media (max-width: 620px) {
  .resume-modal-inner { padding: 26px 20px 22px; }
  .resume-options { grid-template-columns: 1fr; margin-top: 18px; }
  .resume-option { padding: 15px 14px; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(18, 26, 42, .22);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
html.capture [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
html.capture .scroll-progress { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-grid { gap: 44px; }
  .hero-school { gap: 16px 26px; }
  .about-grid { gap: 42px; }
  .eval-grid { gap: 44px; }
  .contact-grid { gap: 42px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(18, 26, 42, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 12px; border-radius: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 56px); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-side { justify-content: center; }
  .portrait-wrap { width: min(320px, 82vw); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; margin-top: 44px; }
  .stat { padding: 0 18px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { margin-top: 4px; margin-bottom: 0; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 78px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .ability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card.featured { grid-column: auto; display: flex; min-height: 0; }
  .work-card.featured .work-media { min-height: 280px; aspect-ratio: 16 / 10; }
  .work-card.featured .work-body { padding: 26px 28px 24px; }
  .work-card.featured h3 { font-size: 23px; }
  .timeline::before { left: 120px; }
  .timeline-item { grid-template-columns: 88px 30px minmax(0, 1fr); gap: 0 14px; }
  .eval-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-info { padding-left: 0; padding-top: 24px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .modal-shell { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal-media { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .modal-main { min-height: 220px; }
  .modal-main img { max-height: 36vh; }
  .modal-content { overflow: visible; padding: 26px 24px 28px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .brand-text small { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 42px); padding-bottom: 38px; }
  .hero h1 { font-size: clamp(48px, 16vw, 70px); }
  .hero-intro { font-size: 14.8px; }
  .hero-actions .btn { flex: 1 1 160px; }
  .hero-school { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px 0; padding-top: 20px; }
  .stat { padding: 0 14px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .course-board { padding: 20px 18px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-board-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .wechat-card { width: 100%; }
  .wechat-text span { max-width: none; }
  .stat:nth-child(3), .stat:nth-child(4) { margin-top: 0; }
  .stat-value { font-size: 25px; }
  .portrait-wrap { width: min(280px, 78vw); }
  .portrait-badge { left: -14px; bottom: 22px; padding: 11px 13px; }
  .portrait-wrap::before { inset: 12px -12px -12px 12px; }
  .portrait-wrap::after { left: -18px; top: -16px; width: 64px; height: 64px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .about-copy p { font-size: 14.8px; }
  .ability-grid { grid-template-columns: 1fr; gap: 12px; }
  .edu-card { padding: 22px 20px; }
  .work-body { padding: 22px 20px 20px; }
  .work-card.featured .work-body { padding: 22px 20px 20px; }
  .work-card.featured h3 { font-size: 21px; }
  .work-body h3 { font-size: 19px; }
  .work-body p { font-size: 13.2px; }
  .timeline::before { display: none; }
  .timeline-item { display: block; padding-bottom: 22px; }
  .timeline-date { padding: 0 0 8px; text-align: left; }
  .timeline-dot { display: none; }
  .timeline-card { padding: 18px 18px; }
  .timeline-card h3 { font-size: 14.5px; }
  .timeline-card p { font-size: 12.2px; }
  .eval-quote { font-size: 23px; }
  .eval-card { grid-template-columns: 38px minmax(0, 1fr); padding: 18px 16px; gap: 12px; }
  .modal-shell { max-height: 94vh; }
  .modal-media { padding: 16px; }
  .modal-main { min-height: 180px; }
  .modal-main img { max-height: 30vh; }
  .modal-thumbs button { width: 52px; height: 42px; }
  .modal-specs { gap: 6px; }
  .modal-spec b { font-size: 16px; }
  .contact { padding: 64px 0; }
  .contact-link { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .backtop { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .work-media img, .btn, .work-card, .ability, .timeline-card { transition: none; }
}
