:root {
  --navy-950: #050d19;
  --navy-900: #071426;
  --navy-850: #0a1b31;
  --navy-800: #0d233d;
  --cyan-500: #16c6c8;
  --cyan-400: #40dde0;
  --cyan-100: #d9f8f7;
  --blue-500: #2e75ff;
  --ink-900: #122033;
  --ink-700: #34445b;
  --ink-500: #66758a;
  --line: #dfe7ef;
  --surface: #ffffff;
  --surface-muted: #f3f7fa;
  --shadow-sm: 0 12px 35px rgba(11, 34, 59, 0.08);
  --shadow-lg: 0 30px 80px rgba(2, 14, 29, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1160px;
  --header-height: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--surface);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.menu-open, body.project-detail-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--navy-950);
  background: var(--cyan-400);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: #e9f4ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 13, 25, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled { background: rgba(5, 13, 25, 0.94); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.nav-shell { width: min(calc(100% - 48px), var(--container)); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--navy-950); background: linear-gradient(135deg, var(--cyan-400), #8af2ed); border-radius: 11px; font-size: 13px; font-weight: 900; letter-spacing: 0.06em; box-shadow: 0 0 24px rgba(64, 221, 224, 0.22); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: 0.08em; }
.brand-copy small { margin-top: 4px; color: #8da2b9; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; color: #aebed0; font-size: 14px; font-weight: 600; transition: color 0.2s ease; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--cyan-400); transition: right 0.25s ease; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a.active::after { right: 0; }
.site-nav .nav-contact { padding: 9px 17px; color: var(--navy-950); background: var(--cyan-400); border-radius: 9px; }
.site-nav .nav-contact::after { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px auto; background: #fff; transition: transform 0.25s ease, opacity 0.25s ease; }

.hero {
  position: relative;
  min-height: 880px;
  padding: 160px 0 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, #0b213a);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(to top, rgba(3, 11, 21, 0.8), transparent); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: 0.18; background-image: linear-gradient(rgba(63, 221, 224, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 221, 224, 0.15) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none; }
.hero-glow-one { width: 460px; height: 460px; top: 70px; right: 5%; background: radial-gradient(circle, rgba(23, 196, 199, 0.17), transparent 68%); }
.hero-glow-two { width: 400px; height: 400px; left: -170px; bottom: 80px; background: radial-gradient(circle, rgba(46, 117, 255, 0.16), transparent 70%); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); align-items: center; gap: 80px; }
.eyebrow { display: flex; align-items: center; gap: 12px; width: max-content; padding: 7px 13px; color: #b6f3ef; background: rgba(33, 201, 204, 0.08); border: 1px solid rgba(64, 221, 224, 0.22); border-radius: 999px; font-size: 13px; letter-spacing: 0.08em; }
.eyebrow span { width: 7px; height: 7px; background: var(--cyan-400); border-radius: 50%; box-shadow: 0 0 0 5px rgba(64, 221, 224, 0.1); }
.hero-kicker { margin: 38px 0 2px; color: #6f879e; font-size: 12px; font-weight: 800; letter-spacing: 0.32em; }
.hero h1 { margin: 0; font-size: clamp(56px, 7.2vw, 92px); line-height: 1.05; letter-spacing: -0.05em; }
.hero h1 span { display: block; margin-top: 13px; color: var(--cyan-400); font-size: clamp(24px, 3.4vw, 40px); font-weight: 600; letter-spacing: 0.18em; }
.hero-lead { max-width: 690px; margin: 30px 0 0; color: #b5c5d5; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.85; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.hero-tags span { padding: 6px 13px; color: #9eb6ca; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 22px; border-radius: 10px; font-size: 15px; font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy-950); background: var(--cyan-400); box-shadow: 0 12px 30px rgba(64, 221, 224, 0.18); }
.button-primary:hover { box-shadow: 0 16px 38px rgba(64, 221, 224, 0.28); }
.button-secondary { color: #eaf6ff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.18); }
.button-secondary:hover { border-color: rgba(64, 221, 224, 0.55); }
.hero-contact { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; }
.hero-contact a { display: flex; align-items: center; gap: 9px; color: #aebfd0; font-size: 14px; transition: color 0.2s ease; }
.hero-contact a:hover { color: #fff; }
.hero-contact span { color: var(--cyan-400); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; }

.portrait-column { position: relative; min-height: 500px; display: grid; place-items: center; }
.portrait-frame { position: relative; z-index: 2; width: min(340px, 82vw); padding: 10px; overflow: hidden; background: linear-gradient(155deg, rgba(25, 51, 76, 0.96), rgba(6, 18, 33, 0.98)); border: 1px solid rgba(92, 226, 226, 0.22); border-radius: 28px; box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36), 0 0 45px rgba(22, 198, 200, 0.08); }
.portrait-frame::before { content: ""; position: absolute; z-index: 2; inset: 5px auto auto 5px; width: 58px; height: 58px; border-left: 2px solid var(--cyan-400); border-top: 2px solid var(--cyan-400); border-radius: 21px 0 0; pointer-events: none; }
.portrait-frame img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; border-radius: 20px; filter: saturate(0.94) contrast(1.02); }
.portrait-caption { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 9px; padding: 12px 14px 11px; background: rgba(10, 28, 48, 0.86); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px 12px 18px 18px; }
.status-dot { width: 10px; height: 10px; flex: none; background: var(--cyan-400); border-radius: 50%; box-shadow: 0 0 0 6px rgba(64, 221, 224, 0.1), 0 0 16px var(--cyan-400); }
.portrait-caption div { display: flex; flex-direction: column; line-height: 1.4; }
.portrait-caption strong { font-size: 14px; }
.portrait-caption small { color: #879bad; font-size: 11px; letter-spacing: 0.08em; }
.portrait-orbit { position: absolute; width: 440px; height: 440px; border: 1px dashed rgba(64, 221, 224, 0.18); border-radius: 50%; animation: rotate 28s linear infinite; }
.portrait-orbit::after { content: ""; position: absolute; top: 44px; right: 42px; width: 8px; height: 8px; background: var(--cyan-400); border-radius: 50%; box-shadow: 0 0 20px var(--cyan-400); }
.code-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 9px 13px; color: #adbed0; background: rgba(7, 20, 38, 0.92); border: 1px solid rgba(64, 221, 224, 0.2); border-radius: 9px; box-shadow: 0 14px 30px rgba(0,0,0,0.18); font: 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-chip b { color: var(--cyan-400); }
.chip-one { top: 36px; left: -10px; }
.chip-two { right: -20px; bottom: 58px; }
.hero-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, 0.11); }
.hero-stats div { padding: 28px 26px 30px; border-right: 1px solid rgba(255, 255, 255, 0.11); }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; color: #fff; font-size: 30px; line-height: 1.2; }
.hero-stats strong span { margin-left: 3px; color: var(--cyan-400); font-size: 15px; }
.hero-stats p { margin: 7px 0 0; color: #7e93a8; font-size: 13px; }

.section { padding: 112px 0; }
.section-light { background: var(--surface); }
.section-muted { background: var(--surface-muted); }
.section-dark { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); }
.section-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 95% 10%, rgba(22, 198, 200, 0.12), transparent 28%), radial-gradient(circle at 5% 90%, rgba(46, 117, 255, 0.1), transparent 25%); }
.section-heading { position: relative; display: grid; grid-template-columns: 1fr 0.9fr; align-items: end; gap: 80px; margin-bottom: 55px; }
.section-index { margin: 0 0 10px; color: #0baeb1; font-size: 11px; font-weight: 900; letter-spacing: 0.24em; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4.5vw, 50px); line-height: 1.2; letter-spacing: -0.035em; }
.section-heading > p { margin: 0; color: var(--ink-500); font-size: 16px; }
.section-heading-dark > p { color: #8fa3b8; }

.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.advantage-card { position: relative; min-height: 300px; padding: 32px 27px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.advantage-card::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 4px; background: var(--cyan-500); transition: right 0.3s ease; }
.advantage-card:hover { transform: translateY(-6px); border-color: #b6e7e6; box-shadow: var(--shadow-sm); }
.advantage-card:hover::after { right: 0; }
.card-number { position: absolute; top: 20px; right: 22px; color: #dce6ee; font-size: 24px; font-weight: 900; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #058e92; background: var(--cyan-100); border-radius: 13px; font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.05em; }
.advantage-card h3 { margin: 28px 0 12px; font-size: 20px; }
.advantage-card p { margin: 0; color: var(--ink-500); font-size: 14px; line-height: 1.9; }

.timeline { position: relative; max-width: 1000px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 10px; left: 170px; width: 1px; background: #ccd9e4; }
.timeline-item { position: relative; display: grid; grid-template-columns: 145px 1fr; gap: 55px; padding-bottom: 52px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; top: 7px; left: 164px; width: 13px; height: 13px; background: var(--surface-muted); border: 3px solid var(--cyan-500); border-radius: 50%; box-shadow: 0 0 0 6px rgba(22, 198, 200, 0.11); }
.timeline-date { padding-top: 1px; color: #718298; font: 700 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.timeline-content { padding: 30px 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(15, 37, 58, 0.045); }
.role-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #e6edf3; }
.role-line h3 { margin: 0; font-size: 21px; line-height: 1.4; }
.role-line p { margin: 6px 0 0; color: #088f92; font-weight: 700; }
.role-line > span { flex: none; padding: 5px 10px; color: #357079; background: #e9f8f7; border-radius: 6px; font-size: 11px; font-weight: 800; }
.detail-list, .project-points { margin: 22px 0 0; padding: 0; list-style: none; }
.detail-list li, .project-points li { position: relative; padding-left: 20px; color: var(--ink-700); font-size: 14px; line-height: 1.85; }
.detail-list li + li, .project-points li + li { margin-top: 9px; }
.detail-list li::before, .project-points li::before { content: ""; position: absolute; top: 0.72em; left: 0; width: 6px; height: 6px; background: var(--cyan-500); border-radius: 50%; }

.project-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { position: relative; display: flex; flex-direction: column; min-height: 450px; padding: 35px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11); border-radius: var(--radius-lg); cursor: pointer; transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.project-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.065); border-color: rgba(64, 221, 224, 0.35); }
.project-featured { background: linear-gradient(145deg, rgba(22, 198, 200, 0.12), rgba(255, 255, 255, 0.035)); }
.project-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.project-topline span { color: var(--cyan-400); font: 800 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.15em; }
.project-topline time { color: #71869b; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.project-card h3 { margin: 0; font-size: clamp(23px, 2.5vw, 31px); line-height: 1.35; }
.project-subtitle { margin: 9px 0 23px !important; color: #79d4d3 !important; font-size: 13px !important; font-weight: 700; }
.project-card > p { margin: 0; color: #9eb0c1; font-size: 14px; line-height: 1.9; }
.project-points { margin-bottom: 24px; }
.project-points li { color: #bdc9d5; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 22px; }
.tag-list span { padding: 6px 10px; color: #9eb8cc; background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 6px; font-size: 11px; }
.project-link { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; color: #dffefd; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 800; }
.project-link span { color: var(--cyan-400); font-size: 17px; transition: transform 0.2s ease; }
.project-card:hover .project-link span { transform: translate(3px, -3px); }
.metric-inline { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: baseline; gap: 8px; margin: 28px 0 5px; padding: 18px 0; border-block: 1px solid rgba(255, 255, 255, 0.09); }
.metric-inline strong { color: var(--cyan-400); font-size: 27px; }
.metric-inline span { color: #8498ab; font-size: 11px; }

.project-detail { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 28px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, visibility 0.25s ease; }
.project-detail:target { visibility: visible; opacity: 1; pointer-events: auto; }
.project-detail-backdrop { position: absolute; inset: 0; background: rgba(2, 9, 18, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.project-detail-panel { position: relative; width: min(100%, 980px); max-height: min(88vh, 860px); padding: 42px 46px 38px; overflow-y: auto; color: var(--ink-900); background: #f8fbfd; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 24px; box-shadow: 0 38px 100px rgba(0, 0, 0, 0.45); overscroll-behavior: contain; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid #dce6ee; }
.detail-type { margin: 0 0 9px; color: #06979a; font: 800 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.12em; }
.detail-header h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.035em; }
.detail-header div > p:last-child { margin: 8px 0 0; color: var(--ink-500); font-size: 14px; }
.detail-close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; color: #183047; background: #e8f0f5; border-radius: 50%; font-size: 28px; line-height: 1; transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease; }
.detail-close:hover { color: var(--navy-950); background: var(--cyan-400); transform: rotate(5deg); }
.detail-summary { padding: 27px 0; }
.detail-summary > p { margin: 0; color: var(--ink-700); font-size: 15px; line-height: 1.9; }
.detail-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 23px; }
.detail-highlights span { display: flex; flex-direction: column; padding: 15px 17px; color: #54677a; background: #eaf2f6; border-radius: 11px; font-size: 12px; }
.detail-highlights b { margin-bottom: 3px; color: #07888b; font-size: 11px; }
.detail-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.detail-block { padding: 24px; background: #fff; border: 1px solid #dde7ee; border-radius: 14px; }
.detail-block h3 { margin: 0 0 16px; font-size: 18px; }
.detail-block ul { margin: 0; padding: 0; list-style: none; }
.detail-block li { position: relative; padding-left: 17px; color: #526579; font-size: 13px; line-height: 1.8; }
.detail-block li + li { margin-top: 8px; }
.detail-block li::before { content: ""; position: absolute; top: 0.72em; left: 0; width: 5px; height: 5px; background: var(--cyan-500); border-radius: 50%; }
.detail-tech { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; }
.detail-tech span { padding: 6px 10px; color: #436073; background: #e8f1f5; border-radius: 6px; font-size: 11px; }
.detail-footer-close { display: none; margin-top: 26px; padding: 12px 18px; color: var(--navy-950); background: var(--cyan-400); border-radius: 9px; text-align: center; font-size: 14px; font-weight: 800; }

.skills-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.skill-panel { padding: 28px 30px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.skill-panel:hover { border-color: #a9dddd; box-shadow: var(--shadow-sm); }
.skill-panel-wide { grid-column: 1 / -1; }
.skill-panel-title { display: flex; align-items: center; gap: 14px; margin-bottom: 21px; }
.skill-panel-title span { display: grid; place-items: center; width: 34px; height: 34px; color: #087c80; background: var(--cyan-100); border-radius: 9px; font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.skill-panel-title h3 { margin: 0; font-size: 19px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tags span { padding: 7px 12px; color: #4d6075; background: #f2f6f9; border-radius: 7px; font-size: 13px; }

.skill-showcase { position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, #081526, #0a2138); }
.skill-showcase::before { content: ""; position: absolute; inset: 0; opacity: 0.16; background-image: linear-gradient(rgba(64, 221, 224, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 221, 224, 0.14) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(circle at center, #000, transparent 80%); pointer-events: none; }
.craft-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.craft-card { min-height: 260px; padding: 27px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.11); border-radius: 16px; transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease; }
.craft-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.07); border-color: rgba(64, 221, 224, 0.32); }
.craft-top { display: flex; align-items: center; justify-content: space-between; }
.craft-top span { color: var(--cyan-400); font: 800 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.14em; }
.craft-top b { color: #3b5269; font-size: 21px; }
.craft-card h3 { margin: 25px 0 13px; overflow-wrap: anywhere; font: 700 18px/1.45 ui-monospace, SFMono-Regular, Consolas, "Microsoft YaHei", monospace; }
.craft-card p { margin: 0; color: #93a6b8; font-size: 13px; line-height: 1.85; }
.craft-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.craft-tags span { padding: 5px 9px; color: #9fc0cf; background: rgba(255, 255, 255, 0.055); border-radius: 5px; font-size: 10px; }

.education-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; }
.education-card, .honor-card, .certificate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.education-card { display: flex; align-items: flex-start; gap: 25px; padding: 38px; }
.school-mark { display: grid; place-items: center; width: 68px; height: 68px; flex: none; color: #087f82; background: linear-gradient(145deg, #daf8f6, #eefcfc); border: 1px solid #b9e9e7; border-radius: 18px; font-size: 19px; font-weight: 900; }
.education-date { color: #8090a2; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.education-card h3 { margin: 8px 0 2px; font-size: 24px; }
.education-card .degree { margin: 0 0 20px; color: #088d90; font-weight: 700; }
.education-card div > p:last-child { margin: 0; color: var(--ink-500); font-size: 14px; }
.honor-column { display: grid; gap: 16px; }
.honor-card, .certificate-card { padding: 28px 30px; }
.mini-label { margin: 0; color: #0aa4a7; font: 800 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.15em; }
.honor-card h3 { margin: 5px 0 17px; font-size: 21px; }
.honor-card ul { margin: 0; padding: 0; list-style: none; }
.honor-card li { display: grid; grid-template-columns: 105px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid #edf1f4; font-size: 13px; }
.honor-card li strong { color: #077f83; }
.honor-card li span { color: var(--ink-500); }
.certificate-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.certificate-tags span { padding: 6px 10px; color: #526477; background: #eff4f7; border-radius: 6px; font-size: 12px; }

.contact-section { position: relative; overflow: hidden; padding: 110px 0; color: #fff; background: linear-gradient(135deg, #071426, #09243d); }
.contact-section::before { content: ""; position: absolute; width: 500px; height: 500px; right: -130px; top: -260px; background: radial-gradient(circle, rgba(64, 221, 224, 0.16), transparent 68%); }
.contact-layout { position: relative; display: grid; grid-template-columns: 1fr 0.8fr; align-items: center; gap: 100px; }
.contact-layout h2 { margin: 0; font-size: clamp(40px, 5vw, 62px); line-height: 1.2; letter-spacing: -0.04em; }
.contact-layout h2 span { color: var(--cyan-400); }
.contact-layout > div > p:last-child { max-width: 530px; margin: 24px 0 0; color: #9cb0c3; }
.contact-card { background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-md); }
.contact-card a { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 18px; padding: 22px 25px; transition: background 0.2s ease; }
.contact-card a + a { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.contact-card a:hover { background: rgba(64, 221, 224, 0.06); }
.contact-card .contact-label { color: #6f879e; font-size: 12px; }
.contact-card strong { font-size: 15px; }
.contact-card a > span:last-child { color: var(--cyan-400); font-size: 18px; }

.site-footer { color: #6e8297; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,0.07); }
.site-footer .container { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; font-size: 11px; letter-spacing: 0.12em; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; color: var(--navy-950); background: var(--cyan-400); border: 0; border-radius: 12px; box-shadow: 0 12px 28px rgba(4, 28, 40, 0.25); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (max-width: 1024px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .portrait-orbit { width: 400px; height: 400px; }
  .hero-stats { margin-top: 65px; }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-card { min-height: 260px; }
  .craft-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { gap: 55px; }
}

@media (max-width: 820px) {
  :root { --header-height: 68px; }
  .container, .nav-shell { width: min(calc(100% - 36px), var(--container)); }
  .menu-toggle { display: block; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-height) 0 auto; display: grid; gap: 0; padding: 18px; background: rgba(5, 13, 25, 0.98); border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 45px rgba(0,0,0,0.25); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 13px 8px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .site-nav a::after { display: none; }
  .site-nav .nav-contact { margin-top: 10px; text-align: center; }
  .hero { padding-top: 120px; }
  .hero-layout { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-tags, .hero-actions, .hero-contact { justify-content: center; margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .portrait-column { min-height: 450px; }
  .portrait-frame { width: 310px; }
  .portrait-orbit { width: 370px; height: 370px; }
  .chip-one { left: calc(50% - 180px); }
  .chip-two { right: calc(50% - 190px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { padding-left: 22px; }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.11); }
  .hero-stats div:nth-child(3) { padding-left: 0; }
  .section { padding: 85px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .project-grid, .education-grid, .contact-layout { grid-template-columns: 1fr; }
  .project-detail { padding: 18px; }
  .project-detail-panel { padding: 34px 30px 30px; }
  .detail-columns { grid-template-columns: 1fr; }
  .contact-layout { gap: 45px; }
}

@media (max-width: 620px) {
  .container, .nav-shell { width: min(calc(100% - 28px), var(--container)); }
  .brand-copy small { display: none; }
  .hero { padding-top: 110px; }
  .hero-kicker { margin-top: 28px; }
  .hero h1 { font-size: clamp(50px, 16vw, 68px); }
  .hero h1 span { font-size: 24px; letter-spacing: 0.12em; }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 360px; }
  .hero-contact { flex-direction: column; align-items: center; gap: 8px; }
  .portrait-column { min-height: 410px; }
  .portrait-frame { width: 280px; }
  .portrait-orbit { width: 322px; height: 322px; }
  .code-chip { display: none; }
  .hero-stats { margin-top: 50px; }
  .hero-stats div { padding: 22px 12px; }
  .hero-stats div:nth-child(odd) { padding-left: 0; }
  .hero-stats strong { font-size: 25px; }
  .hero-stats p { font-size: 11px; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 36px; }
  .section-heading > p { font-size: 14px; }
  .advantage-grid, .skills-layout { grid-template-columns: 1fr; }
  .advantage-card { min-height: auto; }
  .skill-panel-wide { grid-column: auto; }
  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: 13px; padding-left: 28px; }
  .timeline-marker { left: 0; }
  .timeline-date { padding-top: 0; }
  .timeline-content { padding: 25px 22px; }
  .role-line { flex-direction: column; gap: 12px; }
  .project-grid { gap: 15px; }
  .project-card { min-height: auto; padding: 27px 22px; }
  .project-topline { flex-direction: column; gap: 4px; margin-bottom: 20px; }
  .metric-inline { grid-template-columns: auto 1fr; }
  .project-detail { display: block; padding: 0; }
  .project-detail-panel { width: 100%; max-height: 100vh; min-height: 100vh; padding: 26px 18px 32px; border: 0; border-radius: 0; }
  .detail-header { gap: 14px; }
  .detail-header h2 { font-size: 29px; }
  .detail-close { width: 40px; height: 40px; }
  .detail-highlights { grid-template-columns: 1fr; }
  .detail-block { padding: 21px 18px; }
  .detail-footer-close { display: block; }
  .craft-grid { grid-template-columns: 1fr; }
  .craft-card { min-height: auto; }
  .education-card { flex-direction: column; padding: 28px 23px; }
  .honor-card, .certificate-card { padding: 25px 22px; }
  .honor-card li { grid-template-columns: 1fr; gap: 2px; }
  .contact-section { padding: 80px 0; }
  .contact-layout h2 { font-size: 40px; }
  .contact-card a { grid-template-columns: 43px minmax(0, 1fr) auto; gap: 10px; padding: 19px 17px; }
  .contact-card strong { overflow-wrap: anywhere; font-size: 13px; }
  .site-footer .container { flex-direction: column; justify-content: center; gap: 3px; padding-block: 18px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
