/* ==========================================================
   球盟会 QMH 全站共享样式 /assets/site.css
   ========================================================== */

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

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

body {
  background-color: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

input {
  font: inherit;
}

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

a {
  color: var(--gold);
  transition: color var(--t-fast);
}

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

::selection {
  background: var(--red);
  color: var(--white);
}

/* ---------- 2. Variables ---------- */
:root {
  --bg-deep: #0B0F19;
  --bg-card: #1B1F2A;
  --bg-blue: #1A2233;
  --red: #E60012;
  --gold: #D4AF37;
  --green: #39FF14;
  --white: #F5F7FA;
  --gray: #A0A8B8;
  --dark-red: #8A0D16;
  --light-gold: #E8C96A;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-heavy: -apple-system, BlinkMacSystemFont, "Segoe UI Black", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;

  --header-h: 76px;
  --content-max: 1280px;
  --container-x: 24px;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.3s var(--ease-out);
  --t-base: 0.45s var(--ease-out);
  --t-slow: 0.6s var(--ease-out);
  --cut-size: 16px;
}

/* ---------- 3. Basic Layout ---------- */
.container-wide {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--container-x);
}

.container-narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--container-x);
}

.section {
  padding-block: var(--container-y, 80px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#main-content {
  outline: none;
}

/* ---------- 4. Typography ---------- */
.page-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  position: relative;
}

.section-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 24px;
}

.section-title--line::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 0.82em;
  background: var(--red);
  margin-right: 14px;
  vertical-align: -0.08em;
}

.subhead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray);
  max-width: 640px;
}

.data-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--green);
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--green);
  font-size: 1.2em;
}

.v-note {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gray);
  text-transform: uppercase;
  white-space: nowrap;
}

.giant-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(120px, 24vw, 300px);
  line-height: 0.8;
  color: rgba(245, 247, 250, 0.04);
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-heavy);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--white);
  background: transparent;
  border-radius: 4px;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
    color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}

.btn-cut {
  clip-path: polygon(0 0, calc(100% - var(--cut-size)) 0, 100% var(--cut-size), 100% 100%, 0 100%);
  border-radius: 0;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(230, 0, 18, 0.25);
}

.btn-primary:hover {
  background: #ff1120;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(230, 0, 18, 0.38);
}

.btn-ghost {
  border: 1px solid rgba(245, 247, 250, 0.35);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--light-gold);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 800;
}

.btn-gold:hover {
  background: var(--light-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.32);
}

/* ---------- 6. Tags & Filters ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  line-height: 1.4;
}

.tag-red {
  background: var(--red);
  color: var(--white);
}

.tag-gold {
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
}

.tag-outline {
  border: 1px solid rgba(160, 168, 184, 0.4);
  color: var(--gray);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--gray);
  border: 1px solid rgba(160, 168, 184, 0.2);
  border-radius: 2px;
  transition: all var(--t-fast);
}

.filter-btn:hover {
  color: var(--light-gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.filter-btn[aria-pressed="true"],
.filter-btn.is-active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ---------- 7. Cards & Panels ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(160, 168, 184, 0.1);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-cut {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.card-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 20px;
  color: var(--white);
  margin-bottom: 10px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.06em;
}

.data-panel {
  background: var(--bg-blue);
  padding: 32px;
  border-left: 4px solid var(--red);
  position: relative;
}

.data-panel::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: rgba(230, 0, 18, 0.12);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* ---------- 8. Data Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid rgba(160, 168, 184, 0.12);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.data-table th {
  font-family: var(--font-heavy);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(160, 168, 184, 0.15);
  background: var(--bg-blue);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(160, 168, 184, 0.08);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
}

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

.data-table tr:hover td {
  background: rgba(212, 175, 55, 0.05);
}

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  opacity: 0.5;
}

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

/* ---------- 10. Grids ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 28px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 11. Image Frame ---------- */
.image-frame {
  position: relative;
  background: var(--bg-card);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  overflow: hidden;
}

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

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 0, 18, 0.1) 0%, rgba(212, 175, 55, 0.06) 100%);
  pointer-events: none;
}

.image-frame .image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--white);
  background: linear-gradient(transparent, rgba(11, 15, 25, 0.85));
}

/* ---------- 12. Poster Hero ---------- */
.poster-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 64px;
  position: relative;
  overflow: hidden;
}

.poster-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: 58%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(230, 0, 18, 0.18) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.poster-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-x);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* ---------- 13. Header ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: top var(--t-fast);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color var(--t-base), border-color var(--t-base),
    box-shadow var(--t-base), backdrop-filter var(--t-base);
}

.site-header[data-scrolled="true"] {
  background: rgba(11, 15, 25, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--container-x);
  height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.brand-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1;
  transition: color var(--t-fast);
}

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

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-link {
  display: inline-block;
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-radius: 2px;
  transition: color var(--t-fast), background-color var(--t-fast);
}

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

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

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

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

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

/* Tools */
.header-side {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.search-box-desktop {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-desktop .search-input {
  width: 200px;
  padding: 8px 12px 8px 36px;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(160, 168, 184, 0.25);
  border-radius: 4px;
  color: var(--white);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t-fast), width var(--t-fast), background-color var(--t-fast);
}

.search-box-desktop .search-input:focus {
  border-color: var(--gold);
  background: rgba(11, 15, 25, 0.9);
  width: 250px;
}

.search-box-desktop .search-input::placeholder {
  color: rgba(160, 168, 184, 0.55);
}

/* Search Icon */
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray);
}

.search-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -1px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: bottom right;
  border-radius: 1px;
}

/* Update Badge */
.update-badge,
.nav-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  color: var(--gray);
}

.update-badge {
  padding: 5px 12px;
  background: rgba(27, 31, 42, 0.7);
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: 100px;
  white-space: nowrap;
}

.update-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.6);
  }
  50% {
    opacity: 0.4;
    box-shadow: 0 0 2px rgba(57, 255, 20, 0.3);
  }
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1002;
  border-radius: 2px;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--t-fast), opacity var(--t-fast), background-color var(--t-fast);
}

.nav-toggle:hover .toggle-bar {
  background: var(--light-gold);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer search */
.nav-search-mobile {
  display: none;
  position: relative;
}

.nav-search-mobile .search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-deep);
  border: 1px solid rgba(160, 168, 184, 0.3);
  border-radius: 4px;
  color: var(--white);
  font-size: 15px;
  outline: none;
  transition: border-color var(--t-fast);
}

.nav-search-mobile .search-input:focus {
  border-color: var(--gold);
}

.nav-search-mobile .search-input::placeholder {
  color: rgba(160, 168, 184, 0.5);
}

.nav-update-badge {
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(57, 255, 20, 0.15);
  border-radius: 100px;
  width: fit-content;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 1003;
  pointer-events: none;
}

/* Mobile nav drawer / body overlay */
body.nav-open {
  overflow: hidden;
}

body.nav-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.55);
  z-index: 999;
  animation: fade-in 0.3s var(--ease-out);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(230, 0, 18, 0.5);
  position: relative;
  margin-top: 96px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  z-index: 1;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.5fr 1.1fr;
  gap: 48px;
  padding-block: 64px 48px;
}

.footer-brand-col .brand-footer {
  margin-bottom: 18px;
}

.brand-footer .brand-code {
  color: var(--light-gold);
}

.footer-about {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.72);
  margin-bottom: 18px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.5);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin-bottom: 0;
}

.footer-heading {
  font-family: var(--font-heavy);
  font-weight: 700;
  font-size: 14px;
  color: var(--light-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-link {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(245, 247, 250, 0.78);
  text-decoration: none;
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.footer-link:hover {
  color: var(--light-gold);
  padding-left: 6px;
}

.footer-contact-col .contact-line {
  width: 100%;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(245, 247, 250, 0.8);
  text-align: left;
}

.contact-line-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245, 247, 250, 0.5);
}

.contact-line-value {
  color: var(--white);
  word-break: break-all;
}

.contact-line-copy {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gold);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-line-copy::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.contact-line.is-email-btn {
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

.contact-line.is-email-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}

.contact-line.is-email-btn[data-copied="true"] {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.08);
}

.contact-line.is-email-btn[data-copied="true"] .contact-line-value {
  color: var(--green);
}

.footer-modules-list li {
  font-size: 13px;
  color: rgba(245, 247, 250, 0.6);
  padding: 5px 0 5px 16px;
  position: relative;
}

.footer-modules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

.footer-bottom {
  background: var(--dark-red);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(245, 247, 250, 0.75);
}

.footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom-link {
  color: rgba(245, 247, 250, 0.75);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-bottom-link:hover {
  color: var(--light-gold);
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1180px) {
  .update-badge {
    display: none;
  }
}

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(340px, 86vw);
    margin: 0;
    padding: calc(var(--header-h) + 20px) 24px 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: linear-gradient(150deg, var(--bg-card) 0%, var(--bg-deep) 70%);
    border-left: 1px solid rgba(212, 175, 55, 0.22);
    transform: translateX(105%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    z-index: 1001;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  }

  .main-nav[data-open="true"] {
    transform: translateX(0);
  }

  .main-nav .nav-link {
    padding: 16px 12px;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    border-bottom: 1px solid rgba(160, 168, 184, 0.1);
    border-radius: 0;
    transition: color var(--t-fast), background-color var(--t-fast), padding-left var(--t-fast);
  }

  .main-nav .nav-link:hover {
    background: rgba(230, 0, 18, 0.08);
    color: var(--light-gold);
    padding-left: 18px;
  }

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

  .main-nav .nav-link[aria-current="page"] {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
  }

  .nav-search-mobile {
    display: block;
    margin-bottom: 20px;
  }

  .search-box-desktop {
    display: none;
  }

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

@media (max-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-mark {
    font-size: 13px;
    padding: 5px 8px;
  }

  .brand-code {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding-block: 48px 32px;
  }

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

/* ---------- 16. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

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

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

/* ---------- 17. Focus & Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

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

  .update-dot {
    animation: none;
  }
}
