/* ============================================================
   皇冠中心 · 共享站务样式  /assets/site.css
   服务年鉴装帧体系：深墨绿封面 / 皇冠金线 / 暖砂米纸面
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

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

/* ---------- tokens ---------- */
:root {
  --ink: #0E2A24;
  --ink-soft: #1C3F36;
  --gold: #C8A24B;
  --gold-deep: #8C6A24;
  --gold-line: #E4D2A6;
  --sand: #F3EBDD;
  --paper: #FBF7EF;
  --terra: #D96C3B;
  --terra-deep: #A8481F;
  --steel: #5B7C8D;
  --steel-deep: #2F4A57;
  --text: #17211E;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --frame-max: 1240px;
  --edge: clamp(16px, 3vw, 32px);
  --shadow-soft: 0 18px 40px -32px rgba(14, 42, 36, 0.55);
  --dur: 220ms;
}

/* ---------- base ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--sand);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(14, 42, 36, 0.026) 0,
    rgba(14, 42, 36, 0.026) 1px,
    transparent 1px,
    transparent 6px
  );
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

#main-content {
  display: block;
  scroll-margin-top: 96px;
}

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

/* ---------- typography ---------- */
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0.04em;
  color: var(--ink);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(23px, 3vw, 28px);
  line-height: 1.36;
  letter-spacing: 0.04em;
  color: var(--ink);
}

h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--ink);
}

p {
  max-width: 42ch;
}

.lede {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--steel-deep);
  max-width: 42ch;
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--steel-deep);
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.section {
  padding: clamp(40px, 6vw, 76px) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.rule {
  height: 1px;
  border: 0;
  background: var(--gold-line);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(20px, 3vw, 44px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color var(--dur) ease, color var(--dur) ease,
    border-color var(--dur) ease;
}

.btn-primary {
  background: var(--terra-deep);
  border-color: var(--terra-deep);
  color: var(--paper);
}

.btn-primary:hover {
  background: #8f3b18;
  border-color: #8f3b18;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(200, 162, 75, 0.6);
  color: var(--gold);
}

.btn-ghost:hover {
  background: rgba(200, 162, 75, 0.12);
}

.btn-block {
  width: 100%;
}

/* ---------- cards / tags ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-soft);
  padding: clamp(18px, 2.4vw, 26px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--terra-deep);
  background: rgba(217, 108, 59, 0.09);
  border: 1px solid rgba(217, 108, 59, 0.34);
}

/* ---------- image frames ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-soft);
}

.img-frame__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.img-frame--wide .img-frame__media {
  aspect-ratio: 21 / 9;
}

.img-frame--tall .img-frame__media {
  aspect-ratio: 3 / 4;
}

.img-frame--square .img-frame__media {
  aspect-ratio: 1 / 1;
}

.img-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--sand);
  background: rgba(14, 42, 36, 0.78);
  border-top: 1px solid rgba(200, 162, 75, 0.4);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel-deep);
}

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

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: var(--gold);
  margin-right: 2px;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

.breadcrumb-link {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold-line);
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.breadcrumb-link:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 460ms ease, transform 460ms ease;
}

[data-js="on"] [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   页头 · 装帧框
   ============================================================ */
.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 200;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  transition: top var(--dur) ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--sand);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(200, 162, 75, 0.55);
  box-shadow: 0 12px 32px -28px rgba(0, 0, 0, 0.9);
}

.site-header :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  overflow: hidden;
}

[data-progress] {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.header-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  width: 100%;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 var(--edge);
  min-height: 78px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: rgba(200, 162, 75, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--sand);
}

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

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: rgba(243, 235, 221, 0.58);
  white-space: nowrap;
}

.site-nav {
  justify-self: end;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vw, 24px);
}

.nav-item {
  min-width: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 2px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(243, 235, 221, 0.82);
  transition: color var(--dur) ease;
}

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

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

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

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(200, 162, 75, 0.62);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

.nav-link[aria-current="page"]::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--terra);
  align-self: center;
}

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

.header-aside {
  display: flex;
  align-items: center;
  gap: 14px;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: none;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(243, 235, 221, 0.72);
  border: 1px solid rgba(200, 162, 75, 0.35);
  white-space: nowrap;
}

.update-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 3px rgba(217, 108, 59, 0.18);
  flex: none;
}

.header-cta {
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 16px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--sand);
  border: 1px solid rgba(200, 162, 75, 0.55);
  transition: border-color var(--dur) ease, color var(--dur) ease;
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transition: background-color 180ms ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--gold);
  transition: transform 220ms ease;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-header[data-open] .nav-toggle-bars {
  background: transparent;
}

.site-header[data-open] .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ============================================================
   页脚 · 版权页
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(243, 235, 221, 0.78);
  border-top: 1px solid var(--gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0.85;
}

.footer-frame {
  width: 100%;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) var(--edge) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 0.75fr 0.85fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid rgba(200, 162, 75, 0.28);
}

.footer-brand-col {
  min-width: 0;
}

.footer-brand {
  max-width: none;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  color: var(--sand);
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(243, 235, 221, 0.66);
  max-width: 32ch;
}

.footer-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.seal-box {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  max-width: none;
  padding-bottom: 10px;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 1px solid rgba(200, 162, 75, 0.22);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list li {
  min-width: 0;
}

.footer-link {
  display: inline-block;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(243, 235, 221, 0.8);
  border-bottom: 1px solid transparent;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.footer-link:hover {
  color: var(--gold);
  border-bottom-color: rgba(200, 162, 75, 0.7);
}

.footer-contact {
  display: grid;
  gap: 2px;
}

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  max-width: none;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px dashed rgba(200, 162, 75, 0.16);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-label {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: rgba(200, 162, 75, 0.78);
}

.contact-value {
  color: rgba(243, 235, 221, 0.88);
  overflow-wrap: anywhere;
}

.footer-note {
  max-width: 30ch;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(243, 235, 221, 0.52);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(200, 162, 75, 0.16);
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(243, 235, 221, 0.55);
}

.footer-bottom .footer-note {
  margin-top: 0;
  max-width: none;
  font-size: 12px;
  color: rgba(243, 235, 221, 0.55);
}

.footer-icp {
  max-width: none;
  color: rgba(243, 235, 221, 0.62);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-link {
  color: rgba(243, 235, 221, 0.68);
  border-bottom: 1px solid rgba(200, 162, 75, 0.35);
  transition: color var(--dur) ease, border-color var(--dur) ease;
}

.legal-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .update-badge {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1.3fr 1.2fr 1fr;
  }
}

@media (max-width: 960px) {
  .header-frame {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "aside aside";
    align-items: center;
    gap: 0;
    min-height: 66px;
    padding-top: 8px;
  }

  .header-brand {
    grid-area: brand;
    padding-bottom: 10px;
  }

  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    margin-bottom: 10px;
  }

  .site-nav,
  .site-header[data-open] .site-nav,
  .site-nav[data-open] {
    grid-area: nav;
    justify-self: stretch;
    min-width: 0;
  }

  .site-nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top: 1px solid rgba(200, 162, 75, 0);
    transition: max-height 300ms ease, opacity 220ms ease,
      border-color 220ms ease;
  }

  .site-header[data-open] .site-nav,
  .site-nav[data-open] {
    max-height: 62vh;
    opacity: 1;
    overflow-y: auto;
    padding-top: 6px;
    border-top-color: rgba(200, 162, 75, 0.3);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 6px;
  }

  .nav-item {
    border-bottom: 1px solid rgba(200, 162, 75, 0.14);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 2px;
    font-size: 15.5px;
  }

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

  .nav-link[aria-current="page"] {
    padding-left: 4px;
    border-left: 2px solid var(--terra);
  }

  .nav-link[aria-current="page"]::before {
    display: none;
  }

  .header-aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 300ms ease, opacity 220ms ease,
      padding 220ms ease;
  }

  .site-header[data-open] .header-aside {
    max-height: 10rem;
    opacity: 1;
    padding-bottom: 16px;
  }

  .header-cta {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
}

@media (max-width: 620px) {
  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .footer-desc,
  .footer-note {
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

  [data-progress] {
    transition: none;
  }
}
