/* =========================================================
   IM电竞娱乐 / 共享 Site CSS
   暗夜档案 · 技术蓝图系统
   ========================================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.015em;
  color: #E6EAF7;
  background-color: #0A0E27;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Design Tokens ---------- */
:root {
  --color-bg: #0A0E27;
  --color-surface: #111838;
  --color-surface-alt: #0B1029;
  --color-ink: #E6EAF7;
  --color-muted: #8A93B4;
  --color-dim: #565F82;
  --color-line: rgba(0, 229, 255, 0.15);
  --color-faint-line: rgba(230, 234, 247, 0.07);
  --color-accent: #00E5FF;
  --color-accent-strong: #7B2FBE;
  --color-warning: #FF6A00;
  --color-code-bg: #050916;
  --color-black: #040612;
  --gradient-main: linear-gradient(135deg, #00E5FF 0%, #7B2FBE 100%);
  --font-heading: "Orbitron", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "Noto Sans SC", "Courier New", monospace;
  --text-h1: 40px;
  --text-h2: 28px;
  --text-h3: 20px;
  --text-body: 16px;
  --text-caption: 12px;
  --container: 1200px;
  --radius: 2px;
  --shadow-panel: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ---------- Base Elements ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
}

h1 { font-size: var(--text-h1); letter-spacing: 0.03em; }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  margin-bottom: 1em;
  text-wrap: pretty;
}

a {
  color: var(--color-accent);
  text-decoration-color: rgba(0, 229, 255, 0.4);
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--color-ink);
  text-decoration-color: var(--color-accent);
}

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

ul, ol {
  list-style-position: inside;
}

::selection {
  background: var(--color-accent);
  color: var(--color-black);
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: #232C54;
  border: 2px solid var(--color-bg);
  border-radius: 6px;
}

/* ---------- Layout ---------- */
#main-content {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 32px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-desc {
  margin-left: auto;
  font-size: var(--text-caption);
  color: var(--color-muted);
  max-width: 320px;
  text-align: right;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-line);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  text-align: center;
}

.btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.06);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #06122A;
}

.btn-primary:hover {
  background: rgba(0, 229, 255, 0.85);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.3);
  color: #06122A;
}

.btn-ghost {
  border-color: var(--color-line);
  color: var(--color-accent);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  background: rgba(0, 229, 255, 0.06);
  color: var(--color-accent);
}

.btn-warning {
  background: var(--color-warning);
  border-color: var(--color-warning);
  color: #140700;
}

.btn-warning:hover {
  background: rgba(255, 106, 0, 0.85);
  box-shadow: 0 0 28px rgba(255, 106, 0, 0.35);
  color: #140700;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 20px 0 4px;
}

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

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--color-dim);
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ---------- Page Head ---------- */
.page-head {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 40px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.page-title::before {
  content: "//";
  color: var(--color-accent);
  margin-right: 10px;
  font-weight: 700;
}

.page-meta {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 3000;
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: top 0.25s ease;
}

.skip-link:hover {
  color: var(--color-black);
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: none;
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.5);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.header-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 32px;
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-dim);
  background: var(--color-black);
  border-bottom: 1px solid var(--color-faint-line);
  white-space: nowrap;
  overflow: hidden;
}

.header-topline-right {
  color: var(--color-dim);
  flex-shrink: 0;
}

.header-masthead {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 28px 24px 22px;
  background:
    radial-gradient(ellipse 640px 160px at 50% 0%, rgba(123, 47, 190, 0.16), transparent 70%);
}

.header-masthead::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gradient-main);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}

.header-meta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-dim);
  white-space: nowrap;
  pointer-events: none;
}

.header-meta-left {
  left: 28px;
}

.header-meta-right {
  right: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-black);
  background: var(--gradient-main);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.3);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.brand:hover .brand-badge {
  box-shadow: 0 0 44px rgba(0, 229, 255, 0.55);
  transform: translateY(-1px);
}

.brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-ink);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

/* ---------- Main Nav ---------- */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  border-top: 1px solid var(--color-faint-line);
  border-bottom: 1px solid var(--color-line);
  background: rgba(5, 9, 22, 0.7);
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, text-shadow 0.2s ease;
}

.main-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--color-faint-line);
}

.main-nav a:hover {
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.04);
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.05);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}

/* ---------- Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

/* ---------- Data Card ---------- */
.data-card {
  position: relative;
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.data-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.data-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 36px;
  height: 3px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.data-card:hover::before {
  opacity: 1;
}

.card-index {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-dim);
}

.card-title {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-ink);
}

.card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius);
}

/* ---------- Image Frame ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-faint-line);
  aspect-ratio: 16 / 9;
}

.img-frame::before {
  content: attr(data-label);
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(0, 229, 255, 0.55);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

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

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

/* ---------- Grids ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

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

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

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-strong), var(--color-accent));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  transition: width 0.1s linear;
}

/* ---------- Back to Top ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top-icon {
  font-size: 14px;
  line-height: 1;
}

.to-top-text {
  letter-spacing: 0.16em;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background-color: var(--color-code-bg);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  border-top: 1px solid var(--color-line);
  padding-top: 56px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 25%, var(--color-accent-strong) 75%, transparent 100%);
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-ink);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-brand:hover {
  text-decoration: none;
  color: var(--color-ink);
}

.footer-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  font-weight: 900;
  color: var(--color-black);
  background: var(--gradient-main);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 280px;
}

.footer-more {
  align-self: flex-start;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-faint-line);
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}

.footer-link {
  color: var(--color-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--color-accent);
  padding-left: 4px;
  text-decoration: none;
}

.footer-text {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-address {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-dim);
  line-height: 1.8;
}

.footer-note {
  font-size: 12px;
  color: var(--color-dim);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--color-faint-line);
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.25);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-dim);
}

.footer-copyright {
  margin-right: auto;
}

.footer-icp {
  color: var(--color-dim);
}

.footer-trust {
  width: 100%;
  font-size: 10px;
  color: rgba(138, 147, 180, 0.5);
  margin-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header-meta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 820px) {
  .header-topline {
    height: 26px;
    padding: 0 12px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .header-masthead {
    justify-content: space-between;
    padding: 14px 16px;
  }

  .brand-badge {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .brand-title {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .brand-sub {
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface-alt);
    border-bottom: 2px solid var(--color-line);
    box-shadow: var(--shadow-panel);
  }

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

  .main-nav a {
    display: block;
    padding: 15px 24px;
    text-align: center;
    border-top: 1px solid var(--color-faint-line);
    white-space: normal;
  }

  .main-nav a + a::before {
    display: none;
  }

  .main-nav a[aria-current="page"]::after {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    left: auto;
    width: 2px;
    height: 20px;
  }

  .page-head {
    padding: 36px 0 20px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 30px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-desc {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .container {
    width: 100% - 24px;
    width: calc(100% - 24px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

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

  .footer-copyright {
    margin-right: 0;
  }

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

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

  .to-top-text {
    display: none;
  }

  .to-top {
    padding: 10px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skip-link {
    transition: none;
  }

  .scroll-progress-bar {
    transition: none;
  }
}
