/* ==========================================================================
   /assets/site.css — 9十年信誉备用 共享样式
   基调：墨蓝底幕 + 暖纸展板 + 朱砂重点 + 砂金秩序线 + 青瓷状态
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset, 92px) + 16px);
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

table { border-collapse: collapse; width: 100%; }

main { display: block; }

[id] { scroll-margin-top: calc(var(--header-offset, 92px) + 18px); }

/* --------------------------------------------------------------- 2. tokens */
:root {
  /* 品牌色板 */
  --ink-950: #071320;
  --ink-900: #0B1B2B;
  --ink-700: #1B3A52;
  --paper: #F7F0E4;
  --paper-2: #EFE2CC;
  --vermilion: #C43B2C;
  --vermilion-deep: #9E2B20;
  --vermilion-soft: #E0654F;
  --sand: #D6A253;
  --sand-soft: #F0D9A8;
  --celadon: #5F9C88;
  --celadon-soft: #DCEDE6;
  --ink-text: #121A22;

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Times New Roman", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 形状与节奏 */
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-plate: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-island: 0 20px 44px -26px rgba(2, 8, 16, 0.92);
  --shadow-card: 0 12px 28px -24px rgba(2, 8, 16, 0.75);

  --page-max: 1200px;
  --header-offset: 92px;
}

/* ------------------------------------------------------ 3. surfaces & type */
body,
.surface-dark {
  --surface: var(--ink-950);
  --fg: #F2EADB;
  --fg-dim: rgba(242, 234, 219, 0.64);
  --hair: rgba(214, 162, 83, 0.24);
}

.surface-ink {
  --surface: var(--ink-900);
  --fg: #F2EADB;
  --fg-dim: rgba(242, 234, 219, 0.64);
  --hair: rgba(214, 162, 83, 0.24);
  background-color: var(--ink-900);
  color: var(--fg);
}

.surface-paper,
.section--paper {
  --surface: var(--paper);
  --fg: var(--ink-text);
  --fg-dim: rgba(18, 26, 34, 0.66);
  --hair: rgba(18, 26, 34, 0.16);
  background-color: var(--paper);
  color: var(--fg);
}

body {
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--ink-950);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, .h1,
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

h1, .h1 {
  font-size: clamp(2.1rem, 4.8vw, 4.2rem);
  line-height: 1.06;
}

h2, .h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
  line-height: 1.4;
  color: var(--fg);
}

p { font-size: 1rem; }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.72;
  color: var(--fg-dim);
  max-width: 60ch;
}

.muted { color: var(--fg-dim); }

.mono,
.num {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sand);
}

.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background-color: currentColor;
  opacity: 0.7;
}

::selection {
  background-color: rgba(196, 59, 44, 0.85);
  color: #FFF4E4;
}

/* ------------------------------------------------------- 4. focus & motion */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

#main-content:focus { outline: none; }

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

  html[data-js] [data-reveal]:not([data-revealed]) {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- 5. layout */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 3rem);
}

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

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(1.8rem, 3.5vw, 2.8rem); }

.section--ink {
  --fg: #F2EADB;
  --fg-dim: rgba(242, 234, 219, 0.64);
  --hair: rgba(214, 162, 83, 0.24);
  background-color: var(--ink-900);
  color: var(--fg);
}

.section-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
  max-width: 68ch;
}

.section-head__title { margin: 0; }

.section-head__lead {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 62ch;
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--aside { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

.prose {
  max-width: 68ch;
  color: var(--fg);
}

.prose > * + * { margin-top: 1.05em; }

.prose p,
.prose li {
  font-size: 1.01rem;
  line-height: 1.78;
}

.prose h2, .prose h3 { margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 1.15rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--vermilion-soft);
  border-bottom: 1px solid currentColor;
}

.rule {
  height: 1px;
  border: 0;
  background-color: var(--hair);
}

.rule--gold {
  background-image: linear-gradient(90deg, var(--sand), rgba(214, 162, 83, 0));
  background-color: transparent;
  height: 1px;
  border: 0;
}

/* --------------------------------------------------------- 6. skip & header */
.skip-link {
  position: fixed;
  top: 0;
  left: 1rem;
  z-index: 200;
  padding: 0.68rem 1.1rem;
  border-radius: 0 0 14px 14px;
  background-color: var(--paper);
  color: var(--ink-text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: -3px;
}

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 120;
  padding: clamp(0.55rem, 1.4vw, 1rem) clamp(0.6rem, 2.2vw, 1.5rem);
  pointer-events: none;
}

.site-header__shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.4rem);
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: 0.42rem 0.42rem 0.42rem 0.85rem;
  border: 1px solid var(--hair, rgba(214, 162, 83, 0.24));
  border-radius: var(--radius-pill);
  background-color: rgba(11, 27, 43, 0.92);
  box-shadow: var(--shadow-island);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  transition: background-color 0.28s var(--ease), box-shadow 0.28s var(--ease), padding 0.28s var(--ease);
  pointer-events: auto;
}

.site-header[data-scrolled] .site-header__shell {
  padding-block: 0.24rem;
  background-color: rgba(7, 19, 32, 0.97);
  box-shadow: 0 22px 40px -30px rgba(0, 0, 0, 0.95);
}

.brand {
  order: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  border-radius: var(--radius-pill);
}

.brand__seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background-image: linear-gradient(158deg, var(--vermilion) 0%, var(--vermilion-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 230, 0.34), 0 6px 14px -10px rgba(196, 59, 44, 0.9);
  color: #FFF3E6;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
  transition: width 0.28s var(--ease), height 0.28s var(--ease), font-size 0.28s var(--ease);
}

.site-header[data-scrolled] .brand__seal {
  width: 2.05rem;
  height: 2.05rem;
  font-size: 1rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.14;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
  white-space: nowrap;
}

.brand__claim {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--sand);
  white-space: nowrap;
}

.nav-toggle {
  order: 4;
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--hair, rgba(214, 162, 83, 0.24));
  border-radius: var(--radius-pill);
  background-color: rgba(247, 240, 228, 0.07);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover { background-color: rgba(247, 240, 228, 0.13); }

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle__label { white-space: nowrap; }

.site-nav {
  order: 2;
  display: flex;
  margin-inline: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.12rem;
}

.site-nav__item { display: block; }

.site-nav__link {
  display: inline-block;
  padding: 0.48rem 0.78rem;
  border-radius: var(--radius-pill);
  color: rgba(242, 234, 219, 0.66);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
  background-color: rgba(247, 240, 228, 0.09);
}

.site-nav__link[aria-current="page"] {
  color: #FFF4E4;
  font-weight: 600;
  background-color: rgba(196, 59, 44, 0.3);
  box-shadow: inset 0 0 0 1px rgba(224, 101, 79, 0.42);
}

.header-side {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-hours {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  color: rgba(242, 234, 219, 0.62);
  white-space: nowrap;
}

.header-hours__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--celadon);
  box-shadow: 0 0 0 3px rgba(95, 156, 136, 0.22);
}

/* -------------------------------------------------------------- 7. buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.btn--primary {
  background-color: var(--vermilion);
  color: #FFF6EC;
  box-shadow: 0 10px 22px -16px rgba(196, 59, 44, 0.95);
}

.btn--primary:hover { background-color: var(--vermilion-soft); }

.btn--ghost {
  border-color: var(--hair);
  background-color: transparent;
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--sand);
  color: var(--sand);
}

.btn--sand {
  background-color: var(--sand);
  color: #21170A;
}

.btn--sand:hover { background-color: var(--sand-soft); }

.btn--sm {
  padding: 0.5rem 0.98rem;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------------------- 8. footer */
.site-footer {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4.8rem) 1.3rem;
  border-top: 1px solid var(--hair, rgba(214, 162, 83, 0.24));
  background-image: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 64%);
  background-color: var(--ink-950);
  color: #F2EADB;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
  gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: start;
}

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

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-seal {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background-image: linear-gradient(158deg, var(--vermilion) 0%, var(--vermilion-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 243, 230, 0.3);
  color: #FFF3E6;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.2;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-brand__claim {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--sand);
}

.site-footer__desc {
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.78;
  color: rgba(242, 234, 219, 0.62);
}

.site-footer__heading {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--sand);
}

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

.site-footer__link {
  display: inline-block;
  color: rgba(242, 234, 219, 0.78);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.2s var(--ease);
}

.site-footer__link:hover { color: var(--sand); }

.site-footer__link--legal {
  font-size: 0.82rem;
  color: rgba(242, 234, 219, 0.56);
}

.site-footer__link--legal:hover { color: var(--sand); }

.footer-contact {
  display: grid;
  gap: 0.78rem;
  font-style: normal;
}

.footer-contact__item {
  display: grid;
  gap: 0.16rem;
}

.footer-contact__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(242, 234, 219, 0.46);
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  word-break: break-word;
}

.footer-contact__value--plain {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(242, 234, 219, 0.88);
}

.site-footer__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(242, 234, 219, 0.5);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.6rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(214, 162, 83, 0.2);
  font-size: 0.8rem;
  color: rgba(242, 234, 219, 0.52);
}

.site-footer__copyright { font-size: 0.8rem; }

.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(242, 234, 219, 0.58);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}

/* ----------------------------------------------------- 9. 通用基础组件 */
.card {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  background-color: rgba(27, 58, 82, 0.42);
  box-shadow: var(--shadow-card);
  color: var(--fg);
}

.section--paper .card,
.surface-paper .card {
  background-color: #FFFBF3;
  border-color: rgba(18, 26, 34, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 16px 30px -28px rgba(18, 26, 34, 0.6);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(214, 162, 83, 0.3);
  border-radius: var(--radius-pill);
  background-color: rgba(240, 217, 168, 0.14);
  color: var(--sand-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  white-space: nowrap;
}

.pill--ok {
  border-color: rgba(95, 156, 136, 0.42);
  background-color: rgba(95, 156, 136, 0.16);
  color: #BFDCCF;
}

.pill--alert {
  border-color: rgba(196, 59, 44, 0.45);
  background-color: rgba(196, 59, 44, 0.18);
  color: #F3B7AB;
}

.section--paper .pill,
.surface-paper .pill {
  border-color: rgba(154, 110, 34, 0.32);
  background-color: var(--sand-soft);
  color: #5B3D12;
}

.section--paper .pill--ok,
.surface-paper .pill--ok {
  border-color: rgba(95, 156, 136, 0.42);
  background-color: var(--celadon-soft);
  color: #2E5A4B;
}

.section--paper .pill--alert,
.surface-paper .pill--alert {
  border-color: rgba(196, 59, 44, 0.34);
  background-color: rgba(196, 59, 44, 0.12);
  color: var(--vermilion-deep);
}

.data-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 14px;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  background-color: rgba(27, 58, 82, 0.55);
  color: var(--sand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table .mono,
.data-table .num {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.section--paper .data-table th,
.surface-paper .data-table th {
  background-color: var(--paper-2);
  color: #6B4A14;
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  background-image: linear-gradient(158deg, rgba(27, 58, 82, 0.55), rgba(11, 27, 43, 0.9));
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--3x4 { aspect-ratio: 3 / 4; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

.media-frame--placeholder {
  display: grid;
  place-items: center;
  background-image:
    repeating-linear-gradient(0deg, rgba(214, 162, 83, 0.14) 0 1px, transparent 1px 34px),
    linear-gradient(158deg, rgba(27, 58, 82, 0.6), rgba(11, 27, 43, 0.92));
}

.media-frame--placeholder::before {
  content: attr(data-label);
  padding: 0.4rem 0.9rem;
  border: 1px dashed rgba(214, 162, 83, 0.42);
  border-radius: var(--radius-pill);
  color: rgba(240, 217, 168, 0.82);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
}

.media-frame__caption {
  margin-top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.breadcrumbs__link {
  color: var(--fg-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumbs__link:hover {
  color: var(--sand);
  border-bottom-color: currentColor;
}

.breadcrumbs__sep {
  color: var(--sand);
  opacity: 0.7;
}

.breadcrumbs__current {
  color: var(--fg);
  font-weight: 600;
}

.ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  padding: clamp(1.05rem, 2.4vw, 1.55rem) clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius-plate);
  background-image: linear-gradient(118deg, rgba(196, 59, 44, 0.94), rgba(158, 43, 32, 0.97));
  box-shadow: 0 22px 46px -32px rgba(0, 0, 0, 0.92);
  color: #FFF3E6;
}

.ribbon__label {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 243, 230, 0.72);
}

.ribbon__text {
  flex: 1 1 16rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #FFF6EC;
}

.toc {
  display: grid;
  gap: 0.15rem;
}

.toc__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-left: 1px solid var(--hair);
  border-radius: 0 10px 10px 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc__link:hover {
  color: var(--fg);
  background-color: rgba(247, 240, 228, 0.06);
}

.toc__link[aria-current] {
  border-left-color: var(--sand);
  background-color: rgba(214, 162, 83, 0.12);
  color: var(--sand);
  font-weight: 600;
}

.to-top {
  position: fixed;
  right: clamp(0.8rem, 2.2vw, 1.7rem);
  bottom: clamp(0.8rem, 2.2vw, 1.7rem);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(214, 162, 83, 0.3);
  border-radius: var(--radius-pill);
  background-color: rgba(11, 27, 43, 0.94);
  box-shadow: var(--shadow-island);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
              visibility 0.26s var(--ease), background-color 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background-color: var(--ink-700); }

.to-top__arrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--sand);
}

.to-top__label { white-space: nowrap; }

[data-reveal] {
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

html[data-js] [data-reveal]:not([data-revealed]) {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------------------------------------------------------- 10. responsive */
@media (max-width: 1180px) {
  .header-hours { display: none; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .site-footer__col--brand { grid-column: 1 / -1; }
  .site-footer__desc { max-width: 52ch; }
}

@media (max-width: 1020px) {
  :root { --header-offset: 78px; }

  .site-header__shell { gap: 0.5rem; }

  .nav-toggle { display: inline-flex; }

  .header-side { margin-inline-start: auto; }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-inline: 0;
    padding: 0.55rem;
    border: 1px solid rgba(214, 162, 83, 0.24);
    border-radius: 22px;
    background-color: var(--ink-900);
    box-shadow: 0 26px 48px -26px rgba(0, 0, 0, 0.95);
  }

  .site-nav[data-open] { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav__link {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .site-nav__link[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(224, 101, 79, 0.45); }
}

@media (max-width: 980px) {
  .grid--aside { grid-template-columns: minmax(0, 1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand__claim { display: none; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .data-table { font-size: 0.84rem; }
  .data-table th, .data-table td { padding: 0.6rem 0.65rem; }
  .to-top__label { display: none; }
  .to-top { padding: 0.62rem 0.78rem; }
}

@media (max-width: 520px) {
  .header-side { display: none; }
  .brand__name { font-size: 0.94rem; }
  .brand__seal { width: 2.1rem; height: 2.1rem; font-size: 1rem; }
  .site-header__shell { padding-left: 0.7rem; }
}
