/* ==========================================================================
   360体育站 · /assets/site.css
   共享外壳：reset、变量、中文排版、头部、页脚、基础组件
   ========================================================================== */

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

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

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

ul, ol { padding: 0; 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; }

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

/* ---------- 02 Variables ---------- */
:root {
  --ink: #0E2A22;
  --ink-deep: #081D16;
  --ink-2: #143A2E;
  --paper: #F4EFE2;
  --paper-2: #E8DFCB;
  --paper-3: #FBF8F0;
  --red: #D6402F;
  --yellow: #F2B705;
  --cyan: #3FB6C9;
  --deep-cyan: #1E6F7A;
  --glow: #FFE9B8;
  --edge: #5C7A6E;

  --font-display: "Barlow Condensed", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Noto Sans SC", monospace;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --rule: 1px solid rgba(92, 122, 110, 0.28);
  --shadow-card: 0 2px 0 rgba(92, 122, 110, 0.16), 0 18px 32px -28px rgba(14, 42, 34, 0.8);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 03 Base ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--yellow); color: var(--ink); }

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

.site-header :focus-visible,
.site-footer :focus-visible,
.section--ink :focus-visible,
.section--band :focus-visible { outline-color: var(--glow); }

.nav-locked { overflow: hidden; }

/* ---------- 04 Layout primitives ---------- */
.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}

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

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.span-4  { grid-column: span 4; }
.span-6  { grid-column: span 6; }
.span-8  { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.ruler {
  height: 10px;
  background-image: repeating-linear-gradient(90deg, rgba(92, 122, 110, 0.5) 0 1px, transparent 1px 14px);
  background-position: 0 50%;
  background-size: 100% 6px;
  background-repeat: repeat-x;
  opacity: 0.8;
}

.hairline {
  height: 1px;
  border: 0;
  background: rgba(92, 122, 110, 0.3);
}

/* ---------- 05 Typography components ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--deep-cyan);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.section--ink .kicker,
.section--band .kicker { color: var(--cyan); }

.section-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: rgba(92, 122, 110, 0.28);
}

.section--ink .section-number,
.section--band .section-number { color: rgba(244, 239, 226, 0.16); }

.prose {
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.85;
}

.prose > p + p { margin-top: 1.1em; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.6em 0 0.55em;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3;
  margin: 1.4em 0 0.4em;
}

.prose ul { margin: 1em 0; }

.prose li {
  position: relative;
  padding-left: 20px;
  line-height: 1.8;
}

.prose li + li { margin-top: 0.35em; }

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.86em;
  width: 10px;
  height: 2px;
  background: var(--cyan);
}

.prose blockquote {
  margin: 1.4em 0;
  border-left: 3px solid var(--red);
  padding-left: 18px;
  color: var(--deep-cyan);
  font-size: 18px;
}

.prose__lead {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.72;
  color: var(--deep-cyan);
  max-width: 60ch;
}

.section--ink .prose,
.section--band .prose,
.section--ink .prose__lead,
.section--band .prose__lead { color: rgba(244, 239, 226, 0.86); }

.section--ink .prose blockquote,
.section--band .prose blockquote { color: var(--glow); }

/* ---------- 06 Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.06em;
  line-height: 1.1;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 -2px rgba(14, 42, 34, 0.35);
}

.btn--primary:hover { background: var(--glow); }

.btn--signal {
  background: var(--red);
  color: #FFF6EF;
  box-shadow: 0 6px 0 -2px rgba(14, 42, 34, 0.35);
}

.btn--signal:hover { background: #E4543F; }

.btn--ghost {
  border-color: rgba(92, 122, 110, 0.55);
  color: var(--ink);
  background: transparent;
}

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

.section--ink .btn--ghost,
.section--band .btn--ghost,
.site-footer .btn--ghost {
  border-color: rgba(244, 239, 226, 0.42);
  color: var(--paper);
}

.section--ink .btn--ghost:hover,
.section--band .btn--ghost:hover,
.site-footer .btn--ghost:hover {
  border-color: var(--glow);
  color: var(--glow);
}

.btn--link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--deep-cyan);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

.btn--link:hover { color: var(--red); transform: none; }

.section--ink .btn--link,
.section--band .btn--link { color: var(--cyan); }

/* ---------- 07 Marks: chips / tags / stats ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(92, 122, 110, 0.45);
  border-radius: 2px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: var(--deep-cyan);
  white-space: nowrap;
}

.chip--version {
  border-color: rgba(63, 182, 201, 0.5);
  background: rgba(63, 182, 201, 0.16);
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.chip--yellow {
  border-color: rgba(242, 183, 5, 0.65);
  background: rgba(242, 183, 5, 0.2);
  color: #7A5C00;
}

.chip--red {
  border-color: rgba(214, 64, 47, 0.6);
  background: rgba(214, 64, 47, 0.14);
  color: #A22B1D;
}

.chip--cyan {
  border-color: rgba(63, 182, 201, 0.6);
  background: rgba(63, 182, 201, 0.15);
  color: var(--deep-cyan);
}

.section--ink .chip--yellow,
.section--band .chip--yellow,
.site-footer .chip--yellow { color: var(--yellow); }

.section--ink .chip--red,
.section--band .chip--red,
.site-footer .chip--red { color: #F0907F; }

.section--ink .chip--cyan,
.section--band .chip--cyan,
.site-footer .chip--cyan { color: var(--cyan); }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 1px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--edge);
}

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

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 0.88;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.stat__label {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--edge);
}

.section--ink .stat__value,
.section--band .stat__value { color: var(--glow); }

.section--ink .stat__label,
.section--band .stat__label { color: rgba(244, 239, 226, 0.55); }

/* ---------- 08 Breadcrumb ---------- */
.breadcrumb {
  background: var(--paper-2);
  border-bottom: var(--rule);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 12px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--edge);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 6px; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(92, 122, 110, 0.6);
}

.breadcrumb__link {
  color: var(--deep-cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s var(--ease);
}

.breadcrumb__link:hover { border-bottom-color: currentColor; }

.breadcrumb__current { color: var(--ink); font-weight: 500; }

/* ---------- 09 Cards ---------- */
.card {
  position: relative;
  padding: 20px 22px;
  background: var(--paper-3);
  border: 1px solid rgba(92, 122, 110, 0.28);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}

.card--stack::before,
.card--stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(92, 122, 110, 0.22);
  border-radius: 2px;
  background: var(--paper-2);
  z-index: -1;
}

.card--stack::before { transform: translate(6px, 6px); }
.card--stack::after  { transform: translate(3px, 3px); background: var(--paper-3); }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.card__meta {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--edge);
  white-space: nowrap;
}

/* ---------- 10 Media frame (页面图片占位基础) ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(92, 122, 110, 0.35);
  border-radius: 2px;
  background-color: var(--ink-2);
  background-image:
    radial-gradient(120% 120% at 15% 0%, rgba(63, 182, 201, 0.35), transparent 55%),
    linear-gradient(135deg, rgba(30, 111, 122, 0.5), rgba(14, 42, 34, 0.92)),
    repeating-linear-gradient(90deg, rgba(244, 239, 226, 0.14) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(0deg, rgba(244, 239, 226, 0.1) 0 1px, transparent 1px 38px);
  background-size: cover, cover, auto, auto;
}

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

.media-frame__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(8, 29, 22, 0.84);
  color: var(--paper);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

/* ---------- 11 Data table ---------- */
.data-table {
  font-family: var(--font-data);
  font-size: 13px;
  background: var(--paper-3);
  border: 1px solid rgba(92, 122, 110, 0.25);
}

.data-table caption {
  caption-side: bottom;
  padding-top: 10px;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--edge);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(92, 122, 110, 0.22);
}

.data-table thead th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--deep-cyan);
  background: rgba(232, 223, 203, 0.7);
  border-bottom: 1px solid rgba(30, 111, 122, 0.45);
}

.data-table tbody tr:nth-child(even) { background: rgba(232, 223, 203, 0.45); }
.data-table tbody tr:hover { background: rgba(63, 182, 201, 0.16); }

.data-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- 12 Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-bar__label {
  margin-right: 4px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--edge);
}

.filter-btn {
  padding: 7px 14px;
  border: 1px solid rgba(92, 122, 110, 0.42);
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--ink);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.filter-btn:hover { border-color: var(--deep-cyan); color: var(--deep-cyan); }

.filter-btn[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}

.section--ink .filter-btn,
.section--band .filter-btn {
  color: rgba(244, 239, 226, 0.8);
  border-color: rgba(244, 239, 226, 0.3);
}

.section--ink .filter-btn:hover,
.section--band .filter-btn:hover { color: var(--glow); border-color: var(--glow); }

.is-filtered-out { display: none !important; }

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

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

/* ---------- 14 Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--ink);
}

/* ---------- 15 Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(244, 239, 226, 0.16);
  box-shadow: 0 14px 30px -26px rgba(0, 0, 0, 0.95);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 2px;
  overflow: hidden;
  background: rgba(244, 239, 226, 0.12);
}

.header-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--yellow) 60%, var(--red));
}

/* 上层：品牌说明 + 数据版本 + 服务联络 */
.header-utility {
  max-height: 56px;
  overflow: hidden;
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(244, 239, 226, 0.1);
  transition: max-height 0.3s var(--ease), opacity 0.24s var(--ease);
}

.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding-block: 4px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.utility-line {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 226, 0.72);
  white-space: nowrap;
}

.signal-mark {
  display: inline-flex;
  gap: 3px;
  margin-right: 10px;
}

.signal-mark i {
  display: block;
  width: 5px;
  height: 13px;
  border-radius: 1px;
  background: var(--yellow);
}

.signal-mark i:first-child { background: var(--red); }

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--glow);
  border-bottom: 1px dashed rgba(255, 233, 184, 0.45);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.utility-link:hover {
  color: #FFF8E4;
  border-bottom-style: solid;
  border-bottom-color: var(--yellow);
}

.utility-link__sep { opacity: 0.6; }
.utility-link__num { font-variant-numeric: tabular-nums; }

/* 下层：品牌 + 栏目 */
.header-main { background: var(--ink); }

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding-block: 10px;
  transition: min-height 0.3s var(--ease), padding 0.3s var(--ease);
}

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

.brand__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 2px rgba(14, 42, 34, 0.14);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.18s var(--ease);
}

.brand:hover .brand__name { color: var(--glow); }

.brand__sub {
  font-family: var(--font-data);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(244, 239, 226, 0.52);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(244, 239, 226, 0.32);
  border-radius: 2px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--paper);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  border-color: var(--yellow);
  color: var(--yellow);
}

.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: box-shadow 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__rounds { display: none; }
.site-nav__rounds-title { display: none; }

.round-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.round-chip {
  padding: 7px 13px;
  border: 1px solid rgba(244, 239, 226, 0.3);
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: rgba(244, 239, 226, 0.8);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.round-chip:hover { color: var(--glow); border-color: var(--glow); }

.round-chip[aria-pressed="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  font-weight: 600;
}

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

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 12px 13px;
  border-radius: 2px;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: rgba(244, 239, 226, 0.78);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.site-nav__link:hover {
  color: var(--glow);
  background: rgba(255, 233, 184, 0.08);
}

.site-nav__link[aria-current="page"] { color: var(--glow); }

.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 3px;
  background: var(--yellow);
  border-radius: 1px;
}

/* 滚动后收起上层 */
.site-header.is-condensed .header-utility {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.site-header.is-condensed .header-main__inner {
  min-height: 58px;
  padding-block: 6px;
}

/* ---------- 16 Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(244, 239, 226, 0.16);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background-image: repeating-linear-gradient(90deg, rgba(63, 182, 201, 0.55) 0 1px, transparent 1px 14px);
  opacity: 0.55;
}

.site-footer__inner { padding-block: clamp(32px, 5vw, 56px) 26px; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: clamp(24px, 3vw, 34px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

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

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-brand__desc {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: rgba(244, 239, 226, 0.55);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(244, 239, 226, 0.32);
  border-radius: 2px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--paper);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.to-top__text { line-height: 1; }
.to-top__arrow { line-height: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid rgba(244, 239, 226, 0.14);
  border-bottom: 1px solid rgba(244, 239, 226, 0.14);
}

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

.footer-col__title {
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid rgba(242, 183, 5, 0.55);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--glow);
}

.footer-col__link { transition: color 0.18s var(--ease); }
.footer-col__link:hover { color: var(--yellow); }

.footer-col__list { display: flex; flex-direction: column; gap: 6px; }

.footer-col__item {
  position: relative;
  padding-left: 14px;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(244, 239, 226, 0.68);
}

.footer-col__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 1px;
  background: rgba(244, 239, 226, 0.38);
}

.footer-col__anchor {
  color: rgba(244, 239, 226, 0.82);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-col__anchor:hover {
  color: var(--glow);
  border-bottom-color: rgba(255, 233, 184, 0.7);
}

.footer-contact { display: flex; flex-direction: column; gap: 2px; }

.footer-contact__label {
  margin-top: 8px;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(63, 182, 201, 0.85);
}

.footer-contact__value {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(244, 239, 226, 0.85);
  overflow-wrap: anywhere;
}

.footer-contact__note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(244, 239, 226, 0.5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(244, 239, 226, 0.5);
}

.footer-legal { line-height: 1.7; }

.footer-version {
  padding: 2px 9px;
  border: 1px solid rgba(244, 239, 226, 0.24);
  border-radius: 2px;
  color: rgba(244, 239, 226, 0.6);
  letter-spacing: 0.12em;
}

/* ---------- 17 Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 12px; }
  .site-nav__link { padding-inline: 10px; font-size: 14.5px; }
  .site-nav__link[aria-current="page"]::after { left: 10px; right: 10px; }
}

@media (max-width: 960px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-4, .span-6, .span-8 { grid-column: span 6; }

  .nav-toggle { display: inline-flex; position: relative; z-index: 77; }
  .header-main__inner > .brand { position: relative; z-index: 77; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 76;
    display: block;
    padding: 118px var(--gutter) 44px;
    background: var(--ink-deep);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__rounds {
    display: block;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(244, 239, 226, 0.16);
  }

  .site-nav__rounds-title {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-data);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(244, 239, 226, 0.55);
  }

  .site-nav__list { display: block; }
  .site-nav__list li + li { border-top: 1px solid rgba(244, 239, 226, 0.12); }

  .site-nav__link {
    display: block;
    padding: 16px 2px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 21px;
    letter-spacing: 0.04em;
    background: none;
  }

  .site-nav__link[aria-current="page"] { padding-left: 16px; }

  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 4px;
    height: 22px;
    transform: translateY(-50%);
  }

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

@media (max-width: 640px) {
  .grid--12, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .span-4, .span-6, .span-8, .span-12 { grid-column: span 1; }

  .utility-link__sep,
  .utility-link__num { display: none; }

  .utility-left { gap: 10px; }
  .utility-line { font-size: 12px; letter-spacing: 0.02em; }
  .chip--version { display: none; }

  .brand__name { font-size: 19px; }
  .brand__sub { font-size: 9.5px; letter-spacing: 0.1em; }
  .brand__badge { width: 34px; height: 34px; font-size: 13px; }

  .footer-top { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-brand__name { font-size: 21px; }

  .card { padding: 18px 16px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 9px; }
}

/* ---------- 18 Motion preference ---------- */
@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;
  }

  .btn:hover { transform: none; }

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