:root {
  --color-bg: #050509;
  --color-bg-soft: #080812;
  --color-panel: rgba(255, 255, 255, 0.06);
  --color-panel-strong: rgba(255, 255, 255, 0.09);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(168, 85, 247, 0.38);
  --color-text: rgba(255, 255, 255, 0.92);
  --color-muted: rgba(255, 255, 255, 0.66);
  --color-subtle: rgba(255, 255, 255, 0.42);
  --color-violet: #8b5cf6;
  --color-violet-hot: #a855f7;
  --color-indigo: #6366f1;
  --color-cyan: #67e8f9;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 24px 80px rgba(99, 102, 241, 0.22);
  --shadow-panel: 0 18px 60px rgba(0, 0, 0, 0.36);
  --blur-glass: 22px;
  --container: 1180px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(139, 92, 246, 0.22), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.16), transparent 28rem),
    linear-gradient(180deg, #050509 0%, #080812 48%, #050509 100%);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-violet {
  top: 10vh;
  left: -12rem;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.36), transparent 68%);
}

.ambient-blue {
  right: -14rem;
  bottom: 16vh;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 70%);
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

.section {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 112px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 9, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(var(--blur-glass));
}

.navbar {
  width: min(100% - 40px, var(--container));
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links a {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-violet-hot), var(--color-cyan));
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.nav-links a {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 0.88rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--color-text);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: min(100% - 72px, 1480px);
  padding-top: calc(var(--header-height) + 54px);
  padding-bottom: 76px;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-section::before {
  inset: auto auto 4% -18%;
  width: min(760px, 58vw);
  height: min(760px, 58vw);
  background:
    radial-gradient(circle at 48% 52%, rgba(139, 92, 246, 0.28), transparent 58%),
    radial-gradient(circle at 34% 62%, rgba(99, 102, 241, 0.12), transparent 62%);
  filter: blur(16px);
  opacity: 0.86;
}

.hero-section::after {
  inset: 16% -16% auto auto;
  width: min(680px, 52vw);
  height: min(680px, 52vw);
  background:
    radial-gradient(circle at 52% 48%, rgba(34, 211, 238, 0.15), transparent 55%),
    radial-gradient(circle at 48% 52%, rgba(168, 85, 247, 0.2), transparent 62%);
  filter: blur(22px);
  opacity: 0.82;
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 31vw, 500px);
  align-items: center;
  gap: clamp(72px, 8vw, 132px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--color-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  min-width: 0;
  max-width: 860px;
  padding-left: clamp(18px, 2.4vw, 34px);
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 3px;
  height: clamp(180px, 28vw, 340px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.8), rgba(139, 92, 246, 0.62), transparent);
  box-shadow: 0 0 30px rgba(103, 232, 249, 0.22);
  opacity: 0.68;
}

.hero-greeting {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(2.8rem, 4.45vw, 5rem);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-positioning {
  display: grid;
  gap: 12px;
  margin-top: clamp(28px, 3.2vw, 42px);
}

.hero-school,
.hero-school-cn,
.hero-major,
.hero-role-cn,
.hero-role-subtitle {
  max-width: 100%;
  overflow-wrap: break-word;
  margin: 0;
  letter-spacing: 0;
}

.hero-school {
  color: var(--color-cyan);
  font-size: clamp(2.35rem, 3.8vw, 4.1rem);
  font-weight: 760;
  line-height: 1.08;
  text-shadow: 0 0 30px rgba(103, 232, 249, 0.16);
}

.hero-major,
.hero-school-cn,
.hero-role-cn {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.9rem, 2.85vw, 3.25rem);
  font-weight: 720;
  line-height: 1.2;
}

.hero-school-cn {
  color: rgba(255, 255, 255, 0.8);
}

.hero-major {
  color: rgba(255, 255, 255, 0.78);
}

.hero-role-cn {
  color: rgba(255, 255, 255, 0.86);
}

.hero-role-block {
  display: grid;
  gap: 7px;
  margin-top: clamp(4px, 0.6vw, 8px);
}

.hero-role-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(1.18rem, 1.45vw, 1.75rem);
  font-weight: 680;
  line-height: 1.35;
}

.hero-description {
  max-width: 720px;
  margin: clamp(28px, 3vw, 38px) 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.22vw, 1.22rem);
  line-height: 1.82;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
  font-size: 0.98rem;
}

.hero-actions,
.console-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  color: white;
  background: linear-gradient(135deg, var(--color-violet), var(--color-indigo));
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.28);
  cursor: pointer;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.secondary-action {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.05);
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.glass-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--color-panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(var(--blur-glass));
}

.hero-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px;
  transform: translateZ(0);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0.72;
  background: radial-gradient(circle at 70% 18%, rgba(168, 85, 247, 0.28), transparent 34%);
  pointer-events: none;
}

.signal-header,
.signal-score,
.signal-lines,
.signal-metrics {
  position: relative;
  z-index: 1;
}

.signal-header,
.console-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.82);
}

.signal-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 44px;
}

.signal-score span {
  color: var(--color-muted);
}

.signal-score strong {
  color: white;
  font-size: 5rem;
  line-height: 0.8;
}

.signal-lines {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.signal-lines span {
  display: block;
  width: var(--line-width);
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.82), rgba(103, 232, 249, 0.48));
}

.signal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.signal-metrics div {
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.signal-metrics strong,
.signal-metrics span {
  display: block;
}

.signal-metrics strong {
  font-size: 1.25rem;
}

.signal-metrics span {
  margin-top: 6px;
  color: var(--color-subtle);
  font-size: 0.72rem;
}

.hero-portrait-card {
  min-height: clamp(600px, 70vh, 740px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background:
    radial-gradient(circle at 70% 18%, rgba(168, 85, 247, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.045);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.42),
    0 0 76px rgba(99, 102, 241, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero-portrait-card:hover {
  transform: translateY(-7px) rotate(0.4deg);
  border-color: rgba(103, 232, 249, 0.25);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.48),
    0 0 92px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-portrait-card::before {
  z-index: 2;
  opacity: 0.38;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 5, 9, 0.76) 100%),
    radial-gradient(circle at 18% 12%, rgba(103, 232, 249, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%);
}

.hero-portrait-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  pointer-events: none;
}

.hero-portrait-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(600px, 70vh, 740px);
  object-fit: cover;
  object-position: 52% 45%;
  filter: saturate(0.94) contrast(1.04);
}

.hero-portrait-caption {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(8, 8, 18, 0.7), rgba(8, 8, 18, 0.4)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
}

.hero-portrait-caption span,
.hero-portrait-caption strong {
  display: block;
}

.hero-portrait-caption span {
  color: #67e8f9;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-portrait-caption strong {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.18rem;
}

.hero-portrait-caption p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.strengths-section {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.strengths-section::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 50%;
  width: min(520px, 70vw);
  height: 320px;
  pointer-events: none;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 68%);
  filter: blur(8px);
}

.strengths-heading {
  position: relative;
  z-index: 1;
}

.strength-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.strength-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgba(139, 92, 246, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.strength-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 92px;
  height: 92px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.11), transparent 68%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.strength-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.35);
  background:
    radial-gradient(circle at 86% 10%, rgba(168, 85, 247, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 72px rgba(99, 102, 241, 0.18);
}

.strength-card:hover::after {
  opacity: 1;
}

.strength-index {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  color: rgba(103, 232, 249, 0.9);
  background: rgba(103, 232, 249, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
}

.strength-title {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  line-height: 1.35;
}

.strength-description {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.76;
}

.strength-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.strength-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.84rem;
  font-weight: 650;
}

.projects-section {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.projects-section::before {
  content: "";
  position: absolute;
  inset: 4% 0 auto auto;
  width: min(620px, 70vw);
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 68%);
  filter: blur(10px);
}

.projects-heading,
.project-bento-grid {
  position: relative;
  z-index: 1;
}

.project-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.project-card {
  position: relative;
  grid-column: span 6;
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 8%, rgba(103, 232, 249, 0.09), transparent 34%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 68px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.project-card-featured {
  background:
    radial-gradient(circle at 88% 10%, rgba(168, 85, 247, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.055);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.36);
  background:
    radial-gradient(circle at 82% 8%, rgba(168, 85, 247, 0.17), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.074), rgba(255, 255, 255, 0.042));
  box-shadow: 0 26px 78px rgba(99, 102, 241, 0.18);
}

.project-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 24% 24%, rgba(139, 92, 246, 0.34), transparent 36%),
    radial-gradient(circle at 82% 72%, rgba(34, 211, 238, 0.16), transparent 34%),
    #0b0b14;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

.project-card-featured .project-media {
  height: 260px;
}

.project-media img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 180ms ease;
}

.project-media img.is-hidden {
  display: none;
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-media-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 26px;
  color: rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 9, 0.44) 100%);
}

.project-media-fallback h3,
.project-media-fallback p {
  margin: 0;
}

.project-media-fallback h3 {
  max-width: 92%;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.project-media-fallback p {
  max-width: 92%;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 720;
  line-height: 1.5;
}

.project-media-fallback span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 6px 10px;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 999px;
  color: rgba(103, 232, 249, 0.9);
  background: rgba(103, 232, 249, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.project-category {
  align-self: flex-start;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: rgba(103, 232, 249, 0.9);
  background: rgba(103, 232, 249, 0.07);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-description,
.project-value {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.76;
}

.project-value {
  color: rgba(255, 255, 255, 0.74);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.82rem;
  font-weight: 650;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 999px;
  color: white;
  background: rgba(139, 92, 246, 0.18);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.project-button:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, 0.38);
  background: rgba(139, 92, 246, 0.26);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.18);
}

.project-button.secondary {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
}

.project-detail-hint {
  min-height: 24px;
  margin: 18px 0 0;
  color: rgba(103, 232, 249, 0.78);
  font-size: 0.92rem;
}

.education-section,
.skills-section {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.education-section::before,
.skills-section::before {
  content: "";
  position: absolute;
  width: min(520px, 46vw);
  height: min(520px, 46vw);
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.75;
  pointer-events: none;
}

.education-section::before {
  inset: 12% auto auto -12%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 64%);
}

.skills-section::before {
  inset: 8% -14% auto auto;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 64%);
}

.education-heading,
.skills-heading,
.education-layout,
.coursework-card,
.skills-grid {
  position: relative;
  z-index: 1;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 42px;
}

.education-main-card,
.ranking-card,
.coursework-card,
.skill-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(22px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.education-main-card::before,
.ranking-card::before,
.coursework-card::before,
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(139, 92, 246, 0.14), transparent 34%),
    radial-gradient(circle at 96% 24%, rgba(34, 211, 238, 0.09), transparent 34%);
  opacity: 0.7;
  pointer-events: none;
}

.education-main-card:hover,
.ranking-card:hover,
.coursework-card:hover,
.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.34);
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), 0 0 30px rgba(139, 92, 246, 0.11);
}

.education-main-card {
  display: grid;
  min-height: 360px;
  padding: 34px;
}

.education-kicker,
.education-school,
.education-school-cn,
.education-degree,
.education-meta,
.ranking-source,
.ranking-number,
.ranking-label,
.ranking-card p,
.coursework-header,
.coursework-grid,
.skill-card-title,
.skill-card-description,
.skill-tags {
  position: relative;
  z-index: 1;
}

.education-kicker {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.education-school {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(2rem, 4.2vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.education-school-cn {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 750;
}

.education-degree {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.education-degree p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 820;
}

.education-degree span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
}

.education-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.education-meta div {
  min-height: 102px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.education-meta span,
.education-meta small {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.82rem;
  font-weight: 700;
}

.education-meta strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.25;
}

.education-meta small {
  margin-top: 8px;
  line-height: 1.45;
}

.ranking-grid {
  display: grid;
  gap: 18px;
}

.ranking-card {
  min-height: 158px;
  padding: 24px;
}

.ranking-source {
  display: block;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ranking-number {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.ranking-label {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 760;
}

.ranking-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.84rem;
}

.coursework-card {
  margin-top: 18px;
  padding: 30px;
}

.coursework-header h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.coursework-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.coursework-group {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.coursework-title {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.coursework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.coursework-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 650;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.skill-card {
  grid-column: span 6;
  min-height: 260px;
  padding: 28px;
}

.skill-card-large {
  grid-column: span 4;
}

.skill-card-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.18rem, 1.5vw, 1.45rem);
  line-height: 1.25;
}

.skill-card-description {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
  line-height: 1.75;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.skill-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  font-weight: 650;
}

.jd-console {
  overflow: hidden;
  margin-top: 36px;
}

.console-topbar {
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.console-lights {
  display: flex;
  gap: 8px;
}

.console-lights span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.console-lights span:nth-child(1) {
  background: #ff5f57;
}

.console-lights span:nth-child(2) {
  background: #febc2e;
}

.console-lights span:nth-child(3) {
  background: #28c840;
}

.console-title {
  color: rgba(255, 255, 255, 0.78);
}

.console-status {
  color: var(--color-cyan);
}

.console-body {
  padding: 26px;
}

.console-body label {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.console-body textarea {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  padding: 18px;
  color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(5, 5, 9, 0.58);
  outline: none;
  line-height: 1.7;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.console-body textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.console-body textarea:focus {
  border-color: var(--color-border-strong);
  background: rgba(5, 5, 9, 0.76);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.console-button {
  min-width: 172px;
}

.console-note {
  margin: 0;
  color: var(--color-subtle);
  font-size: 0.9rem;
}

.match-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.match-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed 0%, #8b5cf6 35%, #22d3ee 100%);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.28), 0 0 20px rgba(34, 211, 238, 0.18);
  transition: width 80ms linear;
}

.match-preview {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.match-preview p {
  margin: 0;
  line-height: 1.7;
}

.match-preview--ready {
  border-color: rgba(168, 85, 247, 0.3);
  background:
    radial-gradient(circle at 88% 12%, rgba(168, 85, 247, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 54px rgba(99, 102, 241, 0.14);
}

.match-preview--warning {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(254, 188, 46, 0.32);
  background: rgba(254, 188, 46, 0.07);
}

.match-preview--loading {
  border-color: rgba(139, 92, 246, 0.32);
  background:
    radial-gradient(circle at 8% 16%, rgba(103, 232, 249, 0.12), transparent 30%),
    rgba(103, 232, 249, 0.05);
  box-shadow: 0 18px 48px rgba(99, 102, 241, 0.12);
}

.match-loading-card {
  display: grid;
  gap: 14px;
}

.match-loading-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.match-loading-top span {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.match-loading-top strong {
  color: #67e8f9;
  font-size: 0.9rem;
  font-weight: 700;
}

.preview-score-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.preview-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
}

.preview-score-row strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.preview-label {
  display: block;
  color: var(--color-cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-level {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.14);
}

.preview-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.preview-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
}

.preview-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.preview-highlight {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(5, 5, 9, 0.34);
}

.preview-highlight strong {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.45;
}

.preview-highlight p {
  margin-top: 9px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.preview-highlight small {
  display: block;
  margin-top: 10px;
  color: rgba(103, 232, 249, 0.82);
  line-height: 1.55;
}

.preview-report-button {
  margin-top: 18px;
}

.preview-summary {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.75;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 180ms ease, background 180ms ease, backdrop-filter 180ms ease;
}

.project-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
}

.project-modal {
  position: relative;
  width: min(100%, 1080px);
  max-height: 85vh;
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 3%, rgba(103, 232, 249, 0.13), transparent 30%),
    radial-gradient(circle at 10% 8%, rgba(168, 85, 247, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.045)),
    rgba(8, 8, 18, 0.9);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.62), 0 0 70px rgba(99, 102, 241, 0.16);
  transform: translateY(16px) scale(0.985);
  transition: transform 180ms ease;
}

.project-modal-backdrop.is-open .project-modal {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: -8px -8px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.project-modal-close span {
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.86);
}

.project-modal-close span:first-child {
  transform: rotate(45deg);
}

.project-modal-close span:last-child {
  transform: rotate(-45deg);
}

.project-modal-header {
  padding-right: 48px;
}

.project-modal-category {
  display: inline-flex;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 999px;
  color: rgba(103, 232, 249, 0.92);
  background: rgba(103, 232, 249, 0.07);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal-title {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.project-modal-subtitle {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.26rem);
  font-weight: 720;
  line-height: 1.55;
}

.project-modal-tags,
.project-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-detail-card {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.project-detail-card > p {
  max-width: 920px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.85;
}

.project-detail-section-title {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
}

.project-gallery {
  display: grid;
  gap: 14px;
}

.project-gallery-main {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 26% 22%, rgba(139, 92, 246, 0.26), transparent 36%),
    radial-gradient(circle at 78% 70%, rgba(34, 211, 238, 0.15), transparent 34%),
    #080812;
  background-size: 30px 30px, 30px 30px, auto, auto, auto;
}

.project-gallery-main img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
}

.project-gallery-main img.is-hidden {
  display: none;
}

.project-gallery-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.project-gallery-fallback strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  letter-spacing: 0.04em;
}

.project-gallery-fallback span {
  display: block;
  margin-top: 12px;
  color: rgba(103, 232, 249, 0.86);
  font-weight: 780;
}

.project-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-thumb {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.project-thumb:hover,
.project-thumb.is-active {
  color: white;
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(103, 232, 249, 0.1);
  transform: translateY(-1px);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-detail-item {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(5, 5, 9, 0.26);
}

.project-detail-item h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.project-detail-item p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.7;
}

.project-method-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.84rem;
  font-weight: 650;
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 180ms ease, background 180ms ease, backdrop-filter 180ms ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(18px);
}

.match-modal {
  position: relative;
  width: min(100%, 1040px);
  max-height: 85vh;
  overflow: auto;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 4%, rgba(168, 85, 247, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(8, 8, 18, 0.88);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.62), 0 0 70px rgba(99, 102, 241, 0.16);
  transform: translateY(16px) scale(0.985);
  transition: transform 180ms ease;
}

.modal-backdrop.is-open .match-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: -8px -8px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.modal-close span {
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.86);
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.match-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.modal-kicker {
  margin: 0 0 10px;
  color: var(--color-cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-modal-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.match-modal-header p:not(.modal-kicker) {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.match-score-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
}

.match-score-hero span {
  align-self: flex-start;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.match-score-hero.level-high span,
.match-score-hero.level-mid-high span {
  background: rgba(139, 92, 246, 0.22);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.16);
}

.match-score-hero.level-medium span {
  background: rgba(103, 232, 249, 0.14);
}

.match-score-hero.level-low span {
  background: rgba(254, 188, 46, 0.14);
}

.score-number {
  color: white;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.85;
  letter-spacing: 0;
}

.score-number small {
  margin-left: 6px;
  color: var(--color-subtle);
  font-size: 1rem;
}

.modal-section {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.modal-section-title h3 {
  margin: 0;
  font-size: 1.08rem;
}

.modal-section-title p {
  max-width: 520px;
  margin: 0;
  color: var(--color-subtle);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dimension-row {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.dimension-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.dimension-row-top span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.dimension-row-top strong {
  color: white;
  font-size: 1.2rem;
}

.dimension-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.dimension-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-violet), var(--color-indigo), var(--color-cyan));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.32);
}

.keyword-cloud,
.risk-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(139, 92, 246, 0.1);
  font-size: 0.9rem;
}

.keyword-pill--muted {
  border-color: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.04);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.highlight-card,
.summary-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.highlight-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.highlight-card span,
.summary-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-card p,
.summary-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.72;
}

.summary-card {
  margin-top: 6px;
  padding: 20px;
  border-color: rgba(168, 85, 247, 0.24);
  background:
    radial-gradient(circle at 92% 12%, rgba(168, 85, 247, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.045);
}

.summary-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.modal-empty {
  margin: 0;
  color: var(--color-subtle);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-section {
  position: relative;
  padding-bottom: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 8% 8% auto auto;
  width: min(680px, 70vw);
  height: min(520px, 54vw);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 28%, rgba(139, 92, 246, 0.2), transparent 56%),
    radial-gradient(circle at 70% 52%, rgba(34, 211, 238, 0.14), transparent 58%);
  filter: blur(18px);
  opacity: 0.86;
  pointer-events: none;
}

.contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(circle at 78% 16%, rgba(34, 211, 238, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032)),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(24px);
}

.contact-copy h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.contact-subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.contact-copy h3 {
  max-width: 760px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.45rem, 2.5vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.contact-description {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.85;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.34);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.14);
}

.contact-button.primary {
  border-color: rgba(139, 92, 246, 0.5);
  color: #fff;
  background: linear-gradient(135deg, var(--color-violet), var(--color-indigo));
  box-shadow: 0 18px 44px rgba(99, 102, 241, 0.24);
}

.contact-side-card {
  min-width: 0;
}

.wechat-card {
  display: grid;
  gap: 18px;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);
}

.wechat-qr-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
}

.wechat-qr-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.24;
  object-fit: cover;
}

.wechat-card span {
  display: block;
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wechat-card strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
}

.wechat-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.site-footer {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding: 30px 0 64px;
  color: var(--color-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(240px, 1fr) minmax(280px, 1.35fr);
  gap: 18px;
  align-items: center;
}

.footer-brand {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-meta strong {
  color: rgba(255, 255, 255, 0.82);
}

.footer-meta span,
.footer-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-note {
  margin: 0;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-panel {
    justify-self: center;
    width: 100%;
    max-width: 560px;
  }

  .hero-portrait-card {
    min-height: 620px;
  }

  .hero-portrait-card img {
    min-height: 620px;
  }

  .strength-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    grid-column: span 1;
  }

  .education-layout,
  .coursework-grid {
    grid-template-columns: 1fr;
  }

  .ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-card,
  .skill-card-large {
    grid-column: span 1;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-side-card {
    max-width: 380px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .preview-highlights {
    grid-template-columns: 1fr;
  }

  .match-modal-header,
  .dimension-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .match-score-hero {
    min-height: 132px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .section {
    width: min(100% - 28px, var(--container));
    padding: 82px 0;
  }

  .navbar {
    width: min(100% - 28px, var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(8, 8, 18, 0.9);
    box-shadow: var(--shadow-panel);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
    min-height: 44px;
  }

  .hero-section {
    width: min(100% - 28px, 360px);
    min-height: auto;
    padding-top: calc(var(--header-height) + 56px);
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy::before {
    height: 220px;
  }

  .hero-greeting {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  .hero-positioning {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-school {
    font-size: clamp(1.85rem, 7.2vw, 2.35rem);
  }

  .hero-school-cn,
  .hero-major,
  .hero-role-cn {
    font-size: clamp(1.18rem, 5vw, 1.42rem);
  }

  .hero-role-subtitle {
    font-size: clamp(1rem, 4.8vw, 1.35rem);
  }

  .hero-description {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    margin-top: 22px;
  }

  .hero-tags {
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .hero-actions {
    width: 100%;
    max-width: 100%;
  }

  .hero-tags span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero-portrait-card {
    max-width: 100%;
    min-height: 520px;
    border-radius: 28px;
  }

  .hero-portrait-card img {
    min-height: 520px;
  }

  .hero-portrait-card::after {
    inset: 12px;
    border-radius: 22px;
  }

  .hero-portrait-caption {
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 15px;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .strength-card {
    min-height: auto;
    padding: 22px;
  }

  .project-bento-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-featured {
    grid-column: 1 / -1;
  }

  .project-media,
  .project-card-featured .project-media {
    height: 210px;
  }

  .project-content {
    padding: 20px;
  }

  .project-media-fallback {
    padding: 22px;
  }

  .education-layout,
  .ranking-grid,
  .coursework-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .education-main-card,
  .coursework-card,
  .ranking-card,
  .skill-card {
    min-height: auto;
    padding: 22px;
  }

  .education-meta {
    grid-template-columns: 1fr;
  }

  .education-school {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .contact-card {
    padding: 24px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-button {
    width: 100%;
  }

  .contact-side-card {
    max-width: none;
  }

  .project-modal-backdrop {
    padding: 14px;
  }

  .project-modal {
    width: 94vw;
    max-height: 88vh;
    padding: 22px;
    border-radius: 22px;
  }

  .project-modal-header {
    padding-right: 42px;
  }

  .project-detail-card {
    padding: 18px;
  }

  .project-gallery-main,
  .project-gallery-main img {
    min-height: 240px;
  }

  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-modal-actions {
    justify-content: stretch;
  }

  .project-modal-actions .project-button {
    flex: 1 1 140px;
  }

  .console-body {
    padding: 18px;
  }

  .signal-metrics {
    grid-template-columns: 1fr;
  }

  .preview-score-row {
    flex-direction: column;
  }

  .preview-meta {
    align-items: flex-start;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .match-modal {
    max-height: 88vh;
    padding: 22px 16px;
    border-radius: 22px;
  }

  .modal-close {
    margin-right: -2px;
  }

  .modal-section-title {
    display: block;
  }

  .modal-section-title p {
    margin-top: 8px;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions .primary-action,
  .modal-actions .secondary-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
