:root {
  --c-navy: #0A1428;
  --c-navy-2: #0F1D3A;
  --c-navy-3: #14264B;
  --c-navy-4: #1A305F;
  --c-accent: #FF6B2C;
  --c-mist: #F5F7FA;
  --c-silver: #E1E6ED;
  --c-gray: #4A5568;
  --c-white: #FFFFFF;
  --font-heading: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-number: "JetBrains Mono", "SFMono-Regular", monospace;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 16px 40px rgba(10, 20, 40, 0.06);
  --shadow-accent: 0 12px 24px rgba(255, 107, 44, 0.28);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-mist);
  color: var(--c-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

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

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(255, 107, 44, 0.6);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--c-accent);
  color: var(--c-navy);
}

/* ---------- 通用容器与内容组件 ---------- */

.container {
  width: min(1280px, 100% - 32px);
  margin-inline: auto;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 28px;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.pill-btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.pill-btn--ghost:hover {
  border-color: var(--c-accent);
  background: rgba(255, 107, 44, 0.1);
  color: var(--c-white);
}

.pill-btn--ink {
  background: var(--c-navy);
  color: var(--c-white);
  border-color: var(--c-navy);
}

.pill-btn--ink:hover {
  background: var(--c-navy-4);
  box-shadow: 0 12px 28px rgba(10, 20, 40, 0.18);
}

.pill-btn--small {
  padding: 10px 18px;
  font-size: 13px;
}

.exh-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-silver);
  color: var(--c-navy);
  font-family: var(--font-number);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.exh-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.card {
  padding: 28px;
  border: 1px solid rgba(10, 20, 40, 0.04);
  border-radius: 32px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}

.card--dark {
  border: none;
  background: var(--c-navy);
  color: var(--c-white);
}

.label-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--c-silver);
  border-radius: 20px;
  background: var(--c-white);
  color: var(--c-gray);
  font-size: 13px;
}

.folio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.img-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--c-silver), var(--c-navy-4));
}

.img-frame--tall::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
}

.img-frame--wide::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 10;
}

.img-frame::after {
  content: "IMAGE";
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(10, 20, 40, 0.45);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-number);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 头部侧边轨道导航 ---------- */

.site-header {
  position: relative;
  z-index: 1000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 2px 8px 2px 2px;
  border-radius: 8px 14px 8px 8px;
  background: var(--c-accent);
  transform: rotate(-6deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 2px 2px 2px 8px;
  border-radius: 8px 8px 14px 8px;
  background: var(--c-white);
  box-shadow: 0 4px 12px rgba(10, 20, 40, 0.25);
  transform: rotate(6deg);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 24px;
  z-index: 10000;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--c-accent);
  color: var(--c-navy);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

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

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-pill);
  color: rgba(245, 247, 250, 0.72);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-link:hover {
  background: rgba(255, 107, 44, 0.1);
  color: var(--c-white);
}

.nav-link[aria-current="page"] {
  background: var(--c-accent);
  color: var(--c-navy);
  font-weight: 700;
  box-shadow: var(--shadow-accent);
}

.nav-index {
  font-family: var(--font-number);
  font-size: 10px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.nav-link[aria-current="page"] .nav-index {
  opacity: 1;
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-number);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.48);
}

.contact-value {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  color: var(--c-white);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.contact-value:hover {
  border-color: var(--c-accent);
}

.meta-line {
  display: block;
  margin-bottom: 16px;
  color: rgba(245, 247, 250, 0.5);
  font-size: 13px;
}

.progress-track {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.progress-fill {
  position: absolute;
  inset: 0;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.1s linear;
}

.nav-toggle {
  display: none;
}

/* ---------- 桌面端侧边轨道 ---------- */

@media (min-width: 960px) {
  body {
    padding: 24px 32px 24px 344px;
  }

  .site-header {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 296px;
    height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    padding: 28px 20px 24px;
    border-radius: var(--radius-xl);
    background: var(--c-navy);
    color: var(--c-white);
    box-shadow: 0 32px 80px rgba(10, 20, 40, 0.24);
    overflow: hidden;
  }

  .site-header .brand {
    padding: 0 12px;
  }

  .rail-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-top: 28px;
  }

  .nav-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .header-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: none;
  }
}

/* ---------- 移动端顶部条与抽屉 ---------- */

@media (max-width: 959.98px) {
  .site-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
    padding: 0 16px;
    background: var(--c-navy);
    color: var(--c-white);
    box-shadow: 0 4px 20px rgba(10, 20, 40, 0.14);
  }

  .site-header .brand {
    flex: 1;
    min-width: 0;
  }

  .brand-name {
    white-space: nowrap;
    font-size: 18px;
  }

  .rail-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1002;
    width: min(84vw, 360px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--c-navy-2);
    color: var(--c-white);
    box-shadow: 32px 0 64px rgba(10, 20, 40, 0.28);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
    overflow-y: auto;
  }

  .rail-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .rail-nav .brand {
    display: flex;
    margin-bottom: 24px;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .header-meta {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
  }

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

  .nav-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-white);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  }

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

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

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

  .progress-track {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: 3px;
  }

  .progress-fill {
    transform: scaleX(0);
    transform-origin: left;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ---------- 页脚信息牌 ---------- */

.site-footer {
  margin: 40px 24px 24px;
  border-radius: var(--radius-xl);
  background: var(--c-navy);
  color: #D8DFEA;
  overflow: hidden;
}

.footer-inner {
  display: grid;
  gap: 48px;
  padding: 56px clamp(20px, 5vw, 72px) 32px;
}

.footer-brand .brand {
  color: var(--c-white);
}

.footer-text {
  max-width: 540px;
  margin-top: 18px;
  color: rgba(245, 247, 250, 0.7);
  font-size: 14px;
  line-height: 1.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.footer-heading {
  margin-bottom: 22px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.footer-line {
  margin: 8px 0;
  color: rgba(245, 247, 250, 0.7);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 0;
  color: rgba(245, 247, 250, 0.82);
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--c-white);
  border-bottom-color: var(--c-accent);
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 250, 0.5);
  font-family: var(--font-number);
  font-size: 12px;
}

.footer-cert {
  margin: 0;
}

/* ---------- 滚动显现 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 动画偏好 ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress-fill {
    transition: none;
  }
}
