:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #11161c;
  --panel-2: #151b22;
  --panel-3: #0f141a;
  --line: rgba(221, 229, 238, 0.12);
  --line-strong: rgba(221, 229, 238, 0.22);
  --text: #edf2f7;
  --muted: #a7b0bd;
  --quiet: #768291;
  --accent: #d6a84f;
  --accent-2: #7fb7a6;
  --danger: #d56f5e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Aptos", "Bahnschrift", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(
      circle at 18% 0%,
      rgba(214, 168, 79, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #0b0d10 0%, #0d1014 48%, #080a0d 100%);
  background-size:
    40px 40px,
    40px 40px,
    auto,
    auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(
    120deg,
    rgba(127, 183, 166, 0.08),
    transparent 34%
  );
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.84);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0b0d10;
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--accent);
  border-radius: 6px;
}

.brand-text {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: 34px;
  align-items: stretch;
  min-height: calc(100dvh - 68px);
  padding: 64px 0 42px;
}

.hero-content,
.hero-panel,
.block,
.contact-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 22, 28, 0.78);
  box-shadow: var(--shadow);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.overline {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 8vw, 7.35rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.72rem, 3vw, 3rem);
  line-height: 1.13;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.34;
}

.position {
  max-width: 820px;
  margin-bottom: 22px;
  color: #dce5ee;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.55;
}

.hero-summary {
  max-width: 740px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.button.primary {
  color: #0b0d10;
  background: var(--accent);
  border-color: var(--accent);
}

.button.quiet {
  color: var(--muted);
}

.button:hover {
  border-color: rgba(214, 168, 79, 0.75);
}

.hero-panel {
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  overflow: hidden;
}

.portrait-frame {
  min-height: 0;
  background: #d9dde1;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(0.92) contrast(1.02);
}

.identity-card {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.identity-card div {
  padding: 18px 20px;
  background: rgba(12, 16, 21, 0.94);
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--quiet);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-card strong {
  color: #f7f9fb;
  font-size: 0.94rem;
  line-height: 1.45;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.signal-strip span {
  flex: 1 1 154px;
  min-height: 46px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  background: rgba(17, 22, 28, 0.86);
}

.block {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head.split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-note {
  max-width: 420px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.focus-card,
.project-card,
.honor-card,
.timeline-item,
.contact-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.focus-card {
  min-height: 236px;
  padding: 20px;
}

.focus-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 300px;
  padding: 22px;
}

.project-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.status {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #0b0d10;
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 999px;
  background: var(--accent-2);
}

.status.research {
  background: var(--accent);
}

.status.competition {
  background: #d7dce4;
}

.status.learning {
  background: #8fa7d7;
}

.project-value {
  margin-bottom: 18px;
  color: #dce5ee;
  font-size: 1rem;
  line-height: 1.65;
}

.project-progress {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.keyword-list,
.honor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword,
.tag {
  padding: 6px 8px;
  color: #c7d0dc;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #0b0d10;
  background: var(--accent);
  border-color: var(--accent);
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.honor-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.honor-media {
  display: grid;
  aspect-ratio: 16 / 11;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #171d25;
}

.honor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pdf-badge {
  display: grid;
  width: 92px;
  height: 118px;
  place-items: center;
  color: #0b0d10;
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  background: var(--accent);
  border-radius: 4px;
}

.honor-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.honor-meta {
  margin-bottom: 12px;
}

.honor-body p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.honor-action {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 18px 20px;
}

.timeline-time {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  margin-top: 22px;
  margin-bottom: 42px;
  padding: clamp(24px, 4vw, 38px);
}

.contact-grid {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 16px 18px;
  text-decoration: none;
}

.contact-item span {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item strong {
  font-size: 0.98rem;
}

.contact-item:hover {
  border-color: rgba(214, 168, 79, 0.7);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--quiet);
  font-size: 0.82rem;
}

.preview-dialog {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0b0d10;
}

.preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.dialog-bar h3 {
  margin: 0;
}

.dialog-close {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.preview-dialog img {
  width: 100%;
  max-height: calc(100dvh - 88px);
  object-fit: contain;
  background: #050607;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    grid-template-columns: 0.86fr 1.14fr;
    grid-template-rows: auto;
  }

  .portrait-frame {
    min-height: 430px;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .honor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 28px;
  }

  .hero-content,
  .block,
  .contact-section {
    padding: 22px;
  }

  .hero-panel,
  .project-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    min-height: 380px;
  }

  .section-head.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .focus-grid,
  .honor-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
