:root {
  color-scheme: dark;
  --bg: #090a0f;
  --panel: #111620;
  --panel-soft: #151b27;
  --text: #f4f7fb;
  --muted: #aeb8c7;
  --line: rgba(183, 198, 224, 0.18);
  --accent: #5fd0c8;
  --accent-strong: #ffcc66;
  --radius: 8px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(95, 208, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 208, 200, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(95, 208, 200, 0.16), transparent 32rem),
    var(--bg);
  background-size: 38px 38px, 38px 38px, auto, auto;
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button:focus-visible,
a:focus-visible,
.project-card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.site-header {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 15, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero {
  min-height: min(720px, calc(100svh - 62px));
  display: grid;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11em;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 10vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.7rem, 5vw, 3rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.hero-subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}

.tag-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.tag-row span {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  background: rgba(17, 22, 32, 0.72);
}

.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #06100f;
}

.button.secondary {
  background: rgba(17, 22, 32, 0.78);
  color: var(--text);
}

.proof-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: rgba(17, 22, 32, 0.8);
  box-shadow: var(--shadow);
}

.proof-label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.proof-panel strong {
  display: block;
  color: var(--accent-strong);
  font-size: clamp(1.6rem, 8vw, 3.2rem);
  line-height: 1.1;
}

.proof-panel p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1.4rem;
}

.role-grid,
.project-grid,
.evidence-grid {
  display: grid;
  gap: 1rem;
}

.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.project-grid,
.evidence-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.role-card,
.project-card,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(17, 22, 32, 0.78);
}

.role-card p,
.project-card p,
.evidence-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-card {
  cursor: pointer;
}

.project-position {
  color: var(--accent);
}

.project-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.project-detail > p {
  overflow: hidden;
}

.project-card.is-open .project-detail {
  grid-template-rows: 1fr;
  margin-top: 0.8rem;
}

.evidence-card img,
.evidence-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.evidence-card img {
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.evidence-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(95, 208, 200, 0.14), rgba(255, 204, 102, 0.08)),
    var(--panel-soft);
}

.fit-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.fit-list li {
  border-left: 3px solid var(--accent);
  padding: 0.55rem 0.75rem;
  background: rgba(17, 22, 32, 0.7);
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-button {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

a.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-empty {
  color: var(--muted);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  max-width: min(100%, 1100px);
  max-height: 82svh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.modal-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  background: var(--panel);
  color: var(--text);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .button {
    flex: 1 1 10rem;
  }

  .hero {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-detail {
    transition: none;
  }
}
