/* =========================================================
   KAIYUN竞技 /assets/site.css
   共享 Site Kit：Reset / 变量 / 排版 / 头部 / 页脚 / 基础组件
   深蓝 × 金 × 红点缀 · 大圆角 · 磨砂玻璃 · Bento
   ========================================================= */

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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(27, 75, 140, 0.28), transparent),
    var(--primary-900);
  color: var(--neutral-100);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--white);
}

/* ---------- 2. Variables ---------- */
:root {
  --primary-900: #081426;
  --primary-800: #0A1F3D;
  --primary-700: #12305A;
  --primary-600: #1B4B8C;
  --accent-gold: #D4AF37;
  --accent-gold-light: #E8C87A;
  --accent-red: #E63946;
  --neutral-100: #F2F4F8;
  --neutral-700: #4A5568;
  --neutral-900: #1A1A1A;
  --white: #FFFFFF;
  --border: #2D3A54;

  --font-headline: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;

  --font-size-base: 16px;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 6px 24px rgba(212, 175, 55, 0.3);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 76px;
  --container: 1280px;
  --gap: 1.25rem;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 3rem;
}

#main-content {
  min-height: 60vh;
  scroll-margin-top: var(--header-height);
  outline: none;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: var(--font-size-xxl);
  position: relative;
  padding-left: 1.25rem;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-gold-light));
}

.section-heading .section-sub {
  font-size: 0.9375rem;
  color: rgba(242, 244, 248, 0.55);
  max-width: 48ch;
}

.prose {
  max-width: 72ch;
  color: rgba(242, 244, 248, 0.85);
  line-height: 1.85;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose h2 {
  font-size: var(--font-size-xl);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: var(--font-size-lg);
  margin: 2rem 0 0.75rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--accent-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

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

.prose blockquote {
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: rgba(242, 244, 248, 0.65);
  font-style: italic;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 70%);
  color: var(--primary-900);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 70%);
  box-shadow: 0 10px 36px rgba(212, 175, 55, 0.42);
}

.btn-ghost {
  background: rgba(10, 31, 61, 0.4);
  border-color: var(--border);
  color: var(--neutral-100);
}

.btn-ghost:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
}

/* ---------- 5. Tags & Live Dot ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(27, 75, 140, 0.22);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--neutral-100);
  letter-spacing: 0.04em;
}

.tag-live {
  background: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.35);
  color: #FF8A94;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

/* ---------- 6. Cards ---------- */
.card {
  background: linear-gradient(160deg, rgba(10, 31, 61, 0.92), rgba(8, 20, 38, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.4);
}

/* ---------- 7. Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 244, 248, 0.5);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.9375rem 1rem;
  border-bottom: 1px solid rgba(45, 58, 84, 0.5);
  font-variant-numeric: tabular-nums;
}

.data-table tbody tr {
  transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
  background: rgba(27, 75, 140, 0.12);
}

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

/* ---------- 8. Image Containers ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

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

.media[data-ratio="16/9"] {
  aspect-ratio: 16 / 9;
}

.media[data-ratio="4/3"] {
  aspect-ratio: 4 / 3;
}

.media[data-ratio="1/1"] {
  aspect-ratio: 1 / 1;
}

.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(135deg, var(--primary-800), var(--primary-700));
  color: rgba(242, 244, 248, 0.4);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.img-placeholder::before {
  content: attr(data-label);
  position: relative;
  z-index: 1;
}

.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.02) 12px,
    rgba(255, 255, 255, 0.02) 13px
  );
}

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1rem;
  font-size: var(--font-size-sm);
  color: rgba(242, 244, 248, 0.5);
}

.breadcrumb a {
  color: rgba(242, 244, 248, 0.65);
  transition: color 0.2s ease;
}

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

.breadcrumb-sep {
  color: var(--border);
}

.breadcrumb-current {
  color: var(--accent-gold);
  font-weight: 600;
}

/* ---------- 10. Page Hero ---------- */
.page-hero {
  padding-block: 3.5rem 3rem;
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(27, 75, 140, 0.35), transparent 60%),
    linear-gradient(180deg, var(--primary-800), var(--primary-900));
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

.page-hero-sub {
  margin-top: 0.75rem;
  max-width: 55ch;
  color: rgba(242, 244, 248, 0.65);
}

/* ---------- 11. Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.bento-col-3 { grid-column: span 3; }
.bento-col-4 { grid-column: span 4; }
.bento-col-5 { grid-column: span 5; }
.bento-col-6 { grid-column: span 6; }
.bento-col-7 { grid-column: span 7; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

/* ---------- 12. Skip Link ---------- */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1200;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  color: var(--primary-900);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transform: translateY(-300%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ---------- 13. Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 0%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

/* ---------- 14. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 20, 38, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6) 30%, rgba(212, 175, 55, 0.25) 70%, transparent);
  opacity: 0.55;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-height);
}

.header-inner > * {
  min-width: 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 60%, #B8962E 100%);
  border-radius: 14px 14px 14px 5px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary-900);
  box-shadow: var(--shadow-gold);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--white), var(--neutral-100));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.brand-slash {
  margin-inline: 0.15em;
  -webkit-text-fill-color: var(--accent-gold);
  color: var(--accent-gold);
}

.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  margin-left: 0.25rem;
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(230, 57, 70, 0.14);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FF8A94;
  white-space: nowrap;
}

/* Navigation */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(242, 244, 248, 0.72);
  white-space: nowrap;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.nav-link:hover {
  color: var(--accent-gold-light);
  background: rgba(212, 175, 55, 0.1);
}

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

/* Login button */
.btn-login {
  padding: 0.5625rem 1.375rem;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--neutral-100);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s 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);
}

/* ---------- 15. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 4rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(27, 75, 140, 0.22), transparent),
    linear-gradient(180deg, var(--primary-900), #060D1A);
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 20%, var(--accent-gold-light) 50%, var(--accent-gold) 80%, transparent 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
}

.brand-mark-sm {
  width: 34px;
  height: 34px;
  border-radius: 12px 12px 12px 4px;
  font-size: 17px;
}

.footer-brand-text {
  letter-spacing: 0.02em;
}

.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-gold-light);
}

.footer-trust {
  margin-top: 0.75rem;
  max-width: 38ch;
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(242, 244, 248, 0.55);
}

.footer-heading {
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(242, 244, 248, 0.65);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  padding-left: 4px;
  color: var(--accent-gold-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(242, 244, 248, 0.65);
}

.footer-contact-label {
  flex-shrink: 0;
  color: rgba(242, 244, 248, 0.4);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-icp {
  font-size: 0.8125rem;
  color: rgba(242, 244, 248, 0.4);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(242, 244, 248, 0.5);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--accent-gold-light);
}

/* ---------- 16. Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(10, 31, 61, 0.92);
  box-shadow: var(--shadow-md);
  color: var(--accent-gold-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

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

.back-to-top:hover {
  border-color: var(--accent-gold);
  background: rgba(18, 48, 90, 0.95);
  transform: translateY(-3px);
}

.back-to-top-icon {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* ---------- 17. Reveal on Scroll ---------- */
[data-reveal] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}

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

/* ---------- 18. Focus & Reduced Motion ---------- */
:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

  .live-dot {
    animation: none;
  }

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

  .scroll-progress,
  .back-to-top {
    transition: none;
  }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 68px;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 99;
    max-height: calc(100vh - var(--header-height) - 1rem);
    overflow-y: auto;
    padding: 0.75rem;
    margin-left: 0;
    background: linear-gradient(170deg, rgba(10, 31, 61, 0.98), rgba(8, 20, 38, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
    pointer-events: none;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    display: flex;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .btn-login {
    margin-left: auto;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

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

  .bento-col-3,
  .bento-col-4,
  .bento-col-5,
  .bento-col-7 {
    grid-column: span 6;
  }

  .bento-col-6,
  .bento-col-8,
  .bento-col-12 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px 12px 12px 4px;
    font-size: 18px;
  }

  .brand-text {
    font-size: 1.125rem;
  }

  .brand-live {
    width: 26px;
    height: 26px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .brand-live-text {
    display: none;
  }

  .brand-live .live-dot {
    width: 5px;
    height: 5px;
  }

  .btn-login {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

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

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

  .section {
    padding-block: 2.25rem;
  }

  .btn {
    padding: 0.625rem 1.375rem;
  }

  .card {
    padding: 1.25rem;
  }

  .page-hero {
    padding-block: 2.5rem 2rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.75rem;
    padding-bottom: 2.25rem;
  }

  .footer-brand {
    grid-column: auto;
  }

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

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }

  .bento-col-3,
  .bento-col-4,
  .bento-col-5,
  .bento-col-6,
  .bento-col-7,
  .bento-col-8,
  .bento-col-12 {
    grid-column: span 12;
  }
}
