:root {
  --deep: #0A1F44;
  --deep-body: #0E2A5C;
  --deep-soft: #163A6E;
  --gold: #D4AF37;
  --gold-soft: rgba(212, 175, 55, 0.32);
  --coral: #FF6F61;
  --turquoise: #1ABC9C;
  --paper: #F4F2EA;
  --ink: #1A1A2E;
  --muted: #5C5C77;
  --line: #D8D5CB;
  --header-w: 288px;
  --header-h: 64px;
  --radius: 24px;
  --radius-s: 14px;
  --radius-pill: 999px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  min-height: 65vh;
}

#main-content {
  scroll-margin-top: var(--header-h);
}

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

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
}

button {
  font: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1500;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--deep);
  font-weight: 700;
  transform: translateY(-300%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-progress {
  --progress: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 3px;
  height: 100vh;
  background: rgba(212, 175, 55, 0.14);
  pointer-events: none;
}

.site-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--progress, 0));
  transform-origin: 0 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--coral) 100%);
  border-radius: 0 3px 3px 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-h);
  background: linear-gradient(165deg, var(--deep) 0%, var(--deep-body) 100%);
  color: var(--paper);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 40px rgba(10, 31, 68, 0.25);
}

.site-header__bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.75rem 1rem;
  min-height: var(--header-h);
}

.site-header__bar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
}

.brand:hover {
  color: var(--paper);
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--gold) 0%, #F3D67A 100%);
  color: var(--deep);
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 8px 20px rgba(212, 175, 55, 0.22);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.brand__badge {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-pill);
  padding: 0.15em 0.55em;
  margin-top: 0.25em;
  width: max-content;
  background: rgba(212, 175, 55, 0.06);
}

.return-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.return-link:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold);
}

.return-link__arrow {
  font-family: var(--font-mono);
  transition: transform 0.2s ease;
}

.return-link:hover .return-link__arrow {
  transform: translateX(3px);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
}

.nav-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 1050;
  background: linear-gradient(180deg, var(--deep) 0%, var(--deep-body) 100%);
  padding: 1.25rem 0 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.site-nav[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.site-nav__intro {
  display: flex;
  justify-content: space-between;
  padding: 0 1.5rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(244, 242, 234, 0.5);
}

.site-nav__label {
  color: rgba(244, 242, 234, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-nav__count {
  color: var(--gold);
}

.site-nav__list {
  counter-reset: navIndex;
}

.site-nav__item {
  counter-increment: navIndex;
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  color: rgba(244, 242, 234, 0.78);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__link::before {
  content: "0" counter(navIndex);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(212, 175, 55, 0.6);
  min-width: 2ch;
}

.site-nav__link:hover {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.site-nav__link[aria-current="page"] {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  font-weight: 700;
}

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
}

.site-nav__foot {
  padding: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.site-nav__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(244, 242, 234, 0.5);
  line-height: 1.7;
}

.site-footer {
  position: relative;
  background: linear-gradient(145deg, var(--deep) 0%, var(--deep-body) 60%, var(--deep-soft) 100%);
  color: rgba(244, 242, 234, 0.85);
  padding: clamp(3rem, 6vw, 5rem) 0 1.75rem;
  border-top: 2px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
}

.site-footer::before {
  content: "LEYU";
  position: absolute;
  right: -0.2em;
  bottom: -0.15em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(6rem, 18vw, 12rem);
  line-height: 1;
  color: rgba(212, 175, 55, 0.05);
  pointer-events: none;
  letter-spacing: -0.04em;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: -6rem;
  right: 2rem;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(212, 175, 55, 0.16);
  transform: rotate(30deg);
  border-radius: 3rem;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: clamp(2rem, 4vw, 4rem);
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer__note {
  margin-top: 1.25rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-footer__trust {
  margin-top: 0.75rem;
  max-width: 34em;
  color: rgba(244, 242, 234, 0.58);
  font-size: 0.9rem;
  line-height: 1.8;
}

.site-footer__skill-path {
  width: min(260px, 100%);
  margin-top: 1.5rem;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.site-footer__title {
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.site-footer__list {
  display: grid;
  gap: 0.6rem;
}

.site-footer__list a {
  color: rgba(244, 242, 234, 0.7);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-footer__list a:hover {
  color: var(--gold);
}

.contact-list {
  display: grid;
  gap: 0.6rem;
}

.contact-list__item {
  display: flex;
  gap: 0.5rem;
  color: rgba(244, 242, 234, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-all;
}

.contact-list__item::before {
  content: "·";
  color: var(--gold);
  font-family: var(--font-mono);
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: min(1180px, calc(100% - 2rem));
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  font-size: 0.75rem;
  color: rgba(244, 242, 234, 0.45);
}

.site-footer__copy {
  color: var(--gold);
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.container--narrow {
  max-width: 760px;
}

.container--wide {
  max-width: 1320px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--deep {
  background: var(--deep);
  color: var(--paper);
}

.section--soft {
  background: var(--deep-soft);
  color: var(--paper);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.page-head {
  padding: clamp(2.5rem, 7vw, 5rem) 0 1.5rem;
}

.page-head__index {
  display: block;
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.14em;
}

.page-head__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

.section--deep .page-head__title,
.section--soft .page-head__title {
  color: var(--paper);
}

.page-head__intro {
  margin-top: 1rem;
  max-width: 42em;
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--gold);
  color: var(--deep);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn--gold:hover {
  background: #E4C04B;
}

.btn--ghost {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(212, 175, 55, 0.08);
}

.btn--coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 111, 97, 0.18);
}

.btn--coral:hover {
  background: #FF8174;
}

.btn--turquoise {
  background: var(--turquoise);
  color: var(--deep);
  box-shadow: 0 8px 22px rgba(26, 188, 156, 0.2);
}

.btn--turquoise:hover {
  background: #2FD4B1;
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.3em 0.75em;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
}

.tag--gold {
  color: var(--gold);
}

.tag--coral {
  color: var(--coral);
}

.tag--turquoise {
  color: var(--turquoise);
}

.tag--muted {
  color: var(--muted);
}

.card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card--dark {
  background: var(--deep-soft);
  border-color: rgba(212, 175, 55, 0.18);
  color: var(--paper);
}

.card--paper {
  background: var(--paper);
  border-color: var(--line);
}

.card__title {
  font-size: 1.2rem;
  font-weight: 900;
}

.card p {
  margin: 0.75rem 0 0;
}

.card--dark .card__title {
  color: var(--gold);
}

.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-soft) 0%, var(--deep-body) 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0) 100%);
}

.media--16-9 {
  aspect-ratio: 16 / 9;
}

.media--4-3 {
  aspect-ratio: 4 / 3;
}

.media--2-1 {
  aspect-ratio: 2 / 1;
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.media__placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(244, 242, 234, 0.55);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.breadcrumb {
  padding: 1rem 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

.breadcrumb__link {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--gold);
}

.breadcrumb__current {
  color: var(--ink);
  font-weight: 700;
}

.accordion {
  border-bottom: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 700;
  cursor: pointer;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::after {
  content: "＋";
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 500;
}

.accordion__item[open] .accordion__summary::after {
  content: "－";
}

.accordion__panel {
  padding: 0 0 1.5rem;
  color: var(--muted);
  max-width: 60ch;
}

.skill-path {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-path__step {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.skill-path__step.is-active {
  background: var(--gold);
}

.skill-path__line {
  flex: 1;
  height: 2px;
  min-width: 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.7), rgba(212, 175, 55, 0.12));
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.js .reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-progress {
    height: 3px;
    width: 100%;
    background: rgba(212, 175, 55, 0.12);
  }

  .site-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--coral));
    transform: scaleX(var(--progress, 0));
    border-radius: 0 3px 3px 0;
  }

  .site-header__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    min-height: var(--header-h);
  }

  .site-header__bar-actions {
    margin-left: auto;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__col--contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1025px) {
  body {
    margin-left: var(--header-w);
    padding-top: 0;
  }

  .site-header {
    width: var(--header-w);
    height: 100vh;
    min-height: 0;
    right: auto;
    border-right: 1px solid rgba(212, 175, 55, 0.22);
    border-bottom: 0;
    box-shadow: none;
  }

  .site-header__bar {
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  }

  .site-header__bar-actions {
    width: 100%;
  }

  .site-header__bar-actions .return-link {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    flex: 1;
    position: relative;
    inset: auto;
    z-index: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem 0 0;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    border-top: 0;
  }

  .site-nav__foot {
    margin-top: auto;
    padding: 1.25rem;
    border-top: 1px solid rgba(212, 175, 55, 0.14);
  }

  .site-nav__meta {
    gap: 0.2rem;
  }

  .site-footer__bottom {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .brand__badge {
    display: none;
  }

  .brand__text {
    font-size: 1rem;
  }

  .return-link {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

@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;
  }

  .js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .skip-link,
  .site-nav,
  .site-nav__link,
  .return-link,
  .nav-toggle__line,
  .btn,
  .card,
  .site-footer__list a,
  .accordion__summary {
    transition: none !important;
  }
}
