/* ==========================================================================
   博发真人馆 / assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、通用组件
   ========================================================================== */

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --navy: #0B1F3A;
  --midnight: #132B4A;
  --orange: #FF6B2C;
  --celadon: #4FAE9F;
  --mist: #C9D1DA;
  --warm: #F7F4EE;
  --rock: #6B7280;
  --moss: #7A8F6B;
  --clay: #B86B4B;
  --cream: #EFE8DA;

  --ink: #0B1F3A;
  --paper: #F7F4EE;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --line: rgba(201, 209, 218, 0.16);
  --line-strong: rgba(201, 209, 218, 0.3);
  --radius: 2px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--warm);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p, figure, blockquote, dl, dd { margin: 0; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

/* ---------- 布局与排版工具 ---------- */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(201, 209, 218, 0.62);
  line-height: 1.4;
}

.section { padding-block: clamp(40px, 6vw, 88px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--celadon);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: rgba(247, 244, 238, 0.78);
}

/* ---------- 跳至主要内容 ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  display: inline-block;
  padding: 10px 18px;
  background: var(--orange);
  color: #08182C;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  color: #08182C;
}

/* ---------- 滚动进度 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: rgba(11, 31, 58, 0.55);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--celadon) 100%);
  transition: transform 0.12s linear;
}

/* ---------- 页头 ---------- */

.site-header {
  position: relative;
  z-index: 20;
  color: var(--warm);
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 150% at 50% -30%, rgba(79, 174, 159, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(19, 43, 74, 0.9) 0%, rgba(11, 31, 58, 1) 100%);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 3px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, var(--orange) 0 16%, rgba(201, 209, 218, 0.22) 16% 84%, var(--celadon) 84% 100%);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(16px, 3vw, 30px) var(--gutter) 0;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px 24px;
  padding-bottom: clamp(12px, 1.8vw, 20px);
}

.masthead-index {
  grid-column: 1;
  justify-self: start;
  padding-bottom: 8px;
}

.masthead-brand {
  grid-column: 2;
  justify-self: center;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--warm);
}

.masthead-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0 46%, var(--celadon) 46% 100%);
}

.masthead-brand:hover,
.masthead-brand:focus-visible { color: var(--warm); }

.masthead-tagline {
  grid-column: 3;
  justify-self: end;
  padding-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(201, 209, 218, 0.78);
  text-align: right;
}

/* ---------- 导航条 ---------- */

.nav-bar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  margin-top: clamp(10px, 1.6vw, 16px);
  padding-block: 10px;
  border-top: 1px solid var(--line);
}

.site-nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 30px);
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(201, 209, 218, 0.86);
  transition: color 0.2s ease;
}

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(201, 209, 218, 0.5);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--warm); }

.nav-link:hover .nav-link__idx,
.nav-link:focus-visible .nav-link__idx { color: var(--celadon); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--warm); }

.nav-link[aria-current="page"] .nav-link__idx { color: var(--orange); }

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--celadon);
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: #08182C;
  background: var(--orange);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 44, 0.5);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: #08182C;
  background: #FF8347;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.22);
}

/* ---------- 移动菜单按钮 ---------- */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--warm);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--orange);
  background: rgba(255, 107, 44, 0.08);
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.24s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.24s ease, top 0.24s ease;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.site-header[data-open] .nav-toggle__bars { background: transparent; }
.site-header[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.site-header[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  color: #08182C;
  background: var(--orange);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #08182C;
  background: #FF8347;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.2);
}

.btn--ghost {
  color: var(--warm);
  border-color: var(--line-strong);
  background: rgba(247, 244, 238, 0.04);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--warm);
  border-color: var(--celadon);
  background: rgba(79, 174, 159, 0.12);
}

.btn--light {
  color: var(--navy);
  background: var(--warm);
}

.btn--light:hover,
.btn--light:focus-visible {
  color: var(--navy);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(247, 244, 238, 0.2);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  padding-block: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(201, 209, 218, 0.6);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "/";
  color: rgba(201, 209, 218, 0.35);
}

.breadcrumb a { color: rgba(201, 209, 218, 0.8); transition: color 0.2s ease; }

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--orange); }

.breadcrumb [aria-current="page"] { color: var(--warm); }

/* ---------- 网格、面板与状态 ---------- */

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.panel {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  background: rgba(247, 244, 238, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.tag--success { color: var(--celadon); }
.tag--warn { color: var(--clay); }
.tag--info { color: var(--mist); }

/* ---------- 图片容器基础（页面阶段放置占位图） ---------- */

.figure-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--midnight);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-frame--tall { aspect-ratio: 4 / 5; }
.figure-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(201, 209, 218, 0.82);
  background-color: var(--midnight);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -4%;
  right: -4%;
  height: 2px;
  background: linear-gradient(90deg, var(--celadon) 0 38%, var(--orange) 62% 100%);
  opacity: 0.85;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 209, 218, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 209, 218, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(32px, 5vw, 60px);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}

.footer-brandline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--warm);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--celadon);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 1.25fr);
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(24px, 3vw, 36px);
  padding-block: clamp(26px, 4vw, 44px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-nav__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--celadon);
}

.footer-nav__list { list-style: none; }

.footer-nav__list li + li { margin-top: 10px; }

.footer-nav__list a {
  display: inline-block;
  font-size: 14px;
  color: rgba(201, 209, 218, 0.86);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav__list a:hover,
.footer-nav__list a:focus-visible {
  color: var(--orange);
  transform: translateX(3px);
}

.footer-contact__list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.footer-contact__item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(201, 209, 218, 0.5);
  margin-bottom: 2px;
}

.footer-contact__item dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--warm);
  word-break: break-word;
}

.footer-contact__item a { color: var(--celadon); transition: color 0.2s ease; }

.footer-contact__item a:hover,
.footer-contact__item a:focus-visible { color: var(--orange); }

.footer-contact__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(201, 209, 218, 0.22);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(201, 209, 218, 0.62);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(201, 209, 218, 0.66);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.footer-legal-list a {
  font-size: 13px;
  color: rgba(201, 209, 218, 0.82);
  transition: color 0.2s ease;
}

.footer-legal-list a:hover,
.footer-legal-list a:focus-visible { color: var(--orange); }

/* ---------- 显现动效 ---------- */

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 1; }

  .nav-bar { flex-wrap: wrap; }

  .header-cta { order: 2; margin-left: auto; }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.32s ease, visibility 0.32s ease;
  }

  .site-header[data-open] .site-nav {
    max-height: 78vh;
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list li + li { border-top: 1px solid rgba(201, 209, 218, 0.1); }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 14px 4px;
    font-size: 16px;
    gap: 12px;
  }

  .nav-link__idx { font-size: 11px; }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] {
    padding-left: 12px;
    border-left: 3px solid var(--orange);
    background: rgba(255, 107, 44, 0.08);
  }

  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 8px;
  }

  .masthead-index,
  .masthead-tagline {
    grid-column: 1;
    justify-self: center;
    text-align: center;
    padding-bottom: 0;
  }

  .masthead-brand { grid-column: 1; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

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

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .footer-legal-list { gap: 14px; }

  .header-cta { padding: 9px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress__bar { transition: none; }

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