/* ==========================================================================
   Site Kit · 至尊信誉9172 / trust-echo-zhizun.com.cn
   共享样式：reset、变量、中文排版、页头、页脚、按钮、面包屑、栅格与基础组件
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

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

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

a { color: inherit; }

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

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

/* ---------- 2. Variables ---------- */
:root {
  --ink: #0B1B2B;
  --ink-deep: #07131F;
  --ink-2: #132C44;
  --paper: #F4EFE4;
  --paper-hi: #FBF8F0;
  --gold: #C8A45A;
  --gold-soft: #E3C47E;
  --cinnabar: #B33A2B;
  --mist: #7D8FA3;
  --text: #171512;
  --line: #D9C79C;
  --line-soft: rgba(217, 199, 156, 0.55);
  --on-ink: rgba(244, 239, 228, 0.78);
  --on-ink-strong: #FBF8F0;

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

  --shell: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-float: 0 16px 40px -26px rgba(11, 27, 43, 0.9);
}

/* ---------- 3. Typography / base ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 4%, rgba(200, 164, 90, 0.10), transparent 44%),
    radial-gradient(circle at 90% -2%, rgba(19, 44, 68, 0.09), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
h3 { font-size: clamp(1.08rem, 1.7vw, 1.3rem); font-weight: 400; line-height: 1.45; }
h4 { font-size: 1.02rem; font-weight: 400; }

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

.site-header :focus-visible,
.site-footer :focus-visible,
.page-section--ink :focus-visible {
  outline-color: var(--gold-soft);
}

::selection {
  background: rgba(200, 164, 90, 0.34);
  color: var(--ink);
}

/* ---------- 4. Layout utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-main { display: block; }

.prose { max-width: 38em; }
.prose > * + * { margin-top: 1em; }
.prose p,
.prose li { max-width: 36em; }
.prose h2,
.prose h3 { margin-top: 2.1em; }
.prose a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.prose a:hover { border-bottom-color: var(--cinnabar); }

.lead {
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.85;
  color: #33302B;
  max-width: 36em;
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  background: rgba(251, 248, 240, 0.72);
}

.rule-gold {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin-block: clamp(1.6rem, 3vw, 2.4rem);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background: transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn--gold {
  background: linear-gradient(180deg, #E3C47E 0%, #C8A45A 100%);
  color: #171512;
  border-color: rgba(200, 164, 90, 0.9);
  box-shadow: 0 6px 16px -10px rgba(200, 164, 90, 0.95);
}

.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(200, 164, 90, 1);
}

.btn--ink {
  background: var(--ink);
  color: var(--gold-soft);
  border-color: var(--ink-2);
}

.btn--ink:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(251, 248, 240, 0.65);
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: var(--paper-hi);
}

.btn--sm {
  padding: 0.5em 1.15em;
  font-size: 13px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: 14px 10px;
  background: linear-gradient(
    to bottom,
    rgba(244, 239, 228, 0.97) 0%,
    rgba(244, 239, 228, 0.88) 58%,
    rgba(244, 239, 228, 0) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -90px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--gold-soft);
  border: 1px solid var(--gold);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  transition: top 0.28s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { top: 0; }

.site-header__capsule {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  background:
    radial-gradient(ellipse at 12% -40%, rgba(200, 164, 90, 0.18), transparent 60%),
    var(--ink);
  border: 1px solid rgba(200, 164, 90, 0.42);
  border-radius: 999px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(227, 196, 126, 0.14);
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--on-ink-strong);
}

.brand__seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: var(--cinnabar);
  color: var(--paper-hi);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(251, 248, 240, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--paper-hi);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  line-height: 1.3;
  color: rgba(200, 164, 90, 0.88);
}

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(200, 164, 90, 0.5);
  border-radius: 999px;
  background: rgba(200, 164, 90, 0.08);
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(200, 164, 90, 0.18);
  border-color: rgba(200, 164, 90, 0.8);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__label { line-height: 1; }

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(244, 239, 228, 0.78);
  transition: color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--paper-hi);
  background: rgba(200, 164, 90, 0.1);
}

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

.site-nav__link[aria-current="page"] {
  color: var(--gold-soft);
  background: rgba(200, 164, 90, 0.12);
}

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

.site-header__cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(200, 164, 90, 0.14), transparent 58%),
    linear-gradient(180deg, #0B1B2B 0%, #07131F 100%);
  color: var(--on-ink);
  border-top: 1px solid rgba(200, 164, 90, 0.5);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 1px;
  background: rgba(200, 164, 90, 0.22);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(2.8rem, 6vw, 4.4rem) clamp(1.6rem, 4vw, 2.4rem);
}

.site-footer__col { min-width: 0; }

.site-footer__col--brand { max-width: 30em; }

.footer-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--paper-hi);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.footer-brand:hover {
  color: var(--gold-soft);
  border-bottom-color: rgba(227, 196, 126, 0.6);
}

.footer-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(244, 239, 228, 0.62);
  max-width: 26em;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 6px 13px;
  border: 1px solid rgba(200, 164, 90, 0.42);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
}

.footer-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(179, 58, 43, 0.24);
}

.footer-heading {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 164, 90, 0.22);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.4;
  color: var(--gold);
}

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

.footer-list li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.66);
  overflow-wrap: anywhere;
}

.footer-list a {
  text-decoration: none;
  color: rgba(244, 239, 228, 0.72);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--gold-soft);
  border-bottom-color: rgba(227, 196, 126, 0.65);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  padding-block: 18px 26px;
  border-top: 1px solid rgba(200, 164, 90, 0.22);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: rgba(244, 239, 228, 0.5);
}

/* ---------- 8. Breadcrumbs ---------- */
.crumbs { padding-block: 18px 0; }

.crumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

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

.crumbs__list li::after {
  content: "/";
  color: var(--line);
}

.crumbs__list li:last-child::after { content: ""; }

.crumbs__link {
  text-decoration: none;
  color: var(--mist);
  transition: color 0.2s var(--ease);
}

.crumbs__link:hover { color: var(--ink); }

.crumbs__current {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 9. Sections & grids ---------- */
.page-section { padding-block: clamp(2.4rem, 6vw, 4.5rem); }

.page-section--ink {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(200, 164, 90, 0.14), transparent 55%),
    var(--ink);
  color: var(--on-ink);
}

.page-section--ink h1,
.page-section--ink h2,
.page-section--ink h3 { color: var(--paper-hi); }

.page-section--ink .lead { color: rgba(244, 239, 228, 0.78); }

.page-section--ink .eyebrow { color: var(--gold-soft); }

.page-section--band {
  background: var(--ink-2);
  color: var(--on-ink);
}

.page-section--band h2,
.page-section--band h3 { color: var(--paper-hi); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head .eyebrow { margin-bottom: 8px; }

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
}

/* ---------- 10. Media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(90deg, rgba(200, 164, 90, 0.16) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, #132C44 0%, #0B1B2B 64%, #07131F 100%);
}

.media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 228, 0.8);
  background: linear-gradient(to top, rgba(7, 19, 31, 0.86), rgba(7, 19, 31, 0));
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 11. Index list ---------- */
.index-list {
  display: grid;
  border-top: 1px solid var(--line-soft);
}

.index-item {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.22s var(--ease), padding-left 0.22s var(--ease);
}

.index-item:hover,
.index-item:focus-visible {
  background: rgba(200, 164, 90, 0.12);
  padding-left: 14px;
}

.index-item__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  line-height: 1.7;
}

.index-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}

.index-item__desc {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.75;
  color: #4A463F;
}

/* ---------- 12. Scroll UI ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 58%, var(--cinnabar) 100%);
}

.scroll-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 90, 0.55);
  background: var(--ink);
  color: var(--gold-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s var(--ease), background-color 0.24s var(--ease);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scroll-top:hover { background: var(--ink-2); }

.scroll-top__ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 90, 0.3);
  pointer-events: none;
}

.scroll-top__arrow {
  font-size: 15px;
  line-height: 1;
}

/* ---------- 13. Reveal ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

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

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav__link { padding-inline: 9px; font-size: 13.5px; }
  .site-nav { gap: 6px; }
}

@media (max-width: 920px) {
  .site-header__capsule {
    flex-wrap: wrap;
    row-gap: 0;
    padding: 10px 12px;
    border-radius: 22px;
  }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    order: 3;
    display: none;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 10px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(200, 164, 90, 0.26);
  }

  .site-header[data-open="true"] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .site-nav__link {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 15px;
  }

  .site-nav__link::after {
    left: 12px;
    right: auto;
    bottom: 8px;
    width: 24px;
  }

  .site-header__cta {
    width: 100%;
    margin-top: 10px;
    padding-block: 0.7em;
  }

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

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.4rem;
  }

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

@media (max-width: 620px) {
  body { font-size: 16px; }

  .site-header { padding-block: 10px 8px; }

  .brand__name { font-size: 15.5px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.22em; }
  .brand__seal { width: 30px; height: 30px; font-size: 14px; }

  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 9px 11px; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }

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

  .index-item { grid-template-columns: 3.2rem minmax(0, 1fr); }

  .scroll-top { width: 44px; height: 44px; }
}

/* ---------- 15. 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;
  }

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

  .scroll-top { transform: none; }
}
