/* =====================================================
   凤凰竞技场 Phoenix Arena — 全站共享样式
   /assets/site.css
   ===================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --ph-red: #8B0000;
  --ph-red-dark: #5C0000;
  --ph-gold: #D4AF37;
  --ph-gold-light: #FFD700;
  --ph-bg: #121212;
  --ph-surface: #1E1E1E;
  --ph-surface-2: #252525;
  --ph-text: #FFFFFF;
  --ph-text-gray: #A0A0A0;
  --ph-border: #3A3A3A;
  --ph-font-heading: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ph-font-body: "Noto Serif SC", "Songti SC", serif;
  --ph-header-h: 76px;
  --ph-container: 1280px;
  --ph-radius: 2px;
  --ph-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--ph-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ph-text);
  background: var(--ph-bg);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ph-font-heading);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.6vw, 30px); }
h4 { font-size: clamp(16px, 1.6vw, 20px); }

::selection {
  background: var(--ph-red);
  color: #fff;
}

/* ---------- 焦点与无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--ph-gold);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 2000;
  padding: 12px 22px;
  background: var(--ph-gold);
  color: var(--ph-bg);
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--ph-radius);
  transition: top 0.3s var(--ph-ease);
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--ph-container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.container-fluid {
  width: 100%;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--ph-radius);
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

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

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

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

.btn-primary {
  background: var(--ph-red);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  background: var(--ph-red-dark);
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.45);
}

.btn-gold {
  background: transparent;
  border-color: var(--ph-gold);
  color: var(--ph-gold);
}

.btn-gold:hover {
  background: var(--ph-gold);
  color: var(--ph-bg);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

/* ---------- 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ph-red), var(--ph-gold));
  z-index: 2100;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.55);
}

/* ---------- 固定头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--ph-header-h);
  background-color: rgba(18, 18, 18, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.site-header.is-scrolled {
  background-color: rgba(18, 18, 18, 0.96);
  border-bottom-color: var(--ph-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  position: relative;
}

/* ---------- 品牌标志 ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1100;
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-emblem {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--ph-red) 0%, var(--ph-red-dark) 100%);
  color: var(--ph-gold);
  font-family: var(--ph-font-heading);
  font-weight: 900;
  font-size: 22px;
  clip-path: polygon(22% 0, 100% 0, 100% 78%, 78% 100%, 0 100%, 0 22%);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 2px rgba(212, 175, 55, 0.4));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-cn {
  font-family: var(--ph-font-heading);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ph-text);
}

.brand-en {
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ph-gold);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ---------- 主导航 ---------- */
.header-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--ph-gold), var(--ph-gold-light));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ph-ease);
}

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

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: none;
}

/* ---------- 头部工具区 ---------- */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1100;
}

.header-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(139, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 100px;
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.notice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ph-gold-light);
  animation: ph-pulse 2.2s ease-out infinite;
}

.header-cta {
  display: inline-flex;
}

@keyframes ph-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--ph-radius);
  background: rgba(18, 18, 18, 0.55);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--ph-gold);
  background: rgba(139, 0, 0, 0.35);
}

.toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ph-gold);
  border-radius: 1px;
  transition: transform 0.35s var(--ph-ease), opacity 0.25s ease;
}

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

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

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

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ph-bg);
  border-top: 2px solid rgba(139, 0, 0, 0.65);
  overflow: hidden;
}

.site-footer::after {
  content: 'ARENA';
  position: absolute;
  right: -12px;
  bottom: 16px;
  font-family: var(--ph-font-heading);
  font-weight: 900;
  font-size: clamp(90px, 16vw, 190px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(212, 175, 55, 0.045);
  pointer-events: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--ph-red) 0%, var(--ph-gold) 40%, rgba(212, 175, 55, 0.1) 100%);
}

.footer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.35fr;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
}

.site-footer .brand-emblem {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.site-footer .brand-cn {
  font-size: 18px;
}

.site-footer .brand-en {
  font-size: 9px;
  letter-spacing: 0.26em;
}

.footer-slogan {
  margin-top: 18px;
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--ph-gold);
  letter-spacing: 0.02em;
}

.footer-desc {
  margin-top: 10px;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ph-text-gray);
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ph-gold);
  border-bottom: 1px solid var(--ph-border);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--ph-red);
}

.heading-index {
  font-size: 12px;
  font-weight: 400;
  color: var(--ph-text-gray);
  letter-spacing: 0.06em;
}

.footer-nav-links li + li {
  margin-top: 10px;
}

.footer-nav-links a {
  display: inline-block;
  position: relative;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-nav-links a::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--ph-gold);
  transition: width 0.25s ease, left 0.25s ease;
}

.footer-nav-links a:hover,
.footer-nav-links a:focus-visible {
  color: var(--ph-gold);
  padding-left: 18px;
}

.footer-nav-links a:hover::before,
.footer-nav-links a:focus-visible::before {
  width: 12px;
  left: 0;
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 58, 58, 0.45);
}

.footer-contact-list li:first-child {
  padding-top: 0;
}

.footer-contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  font-family: var(--ph-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ph-text-gray);
  text-transform: uppercase;
}

.contact-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.footer-support-note {
  margin-top: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--ph-red);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ph-text-gray);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ph-border);
  background: rgba(0, 0, 0, 0.35);
  padding-block: 20px;
}

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

.footer-trust {
  max-width: 640px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ph-text-gray);
}

.footer-legal {
  font-size: 13px;
  color: var(--ph-text-gray);
  white-space: nowrap;
}

/* ---------- 通用章节组件 ---------- */
.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.section-top-offset {
  padding-block-start: calc(var(--ph-header-h) + clamp(48px, 7vw, 96px));
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.section-head-main {
  flex: 1;
}

.section-note {
  writing-mode: vertical-rl;
  height: 88px;
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid var(--ph-gold);
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ph-text-gray);
  text-transform: uppercase;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ph-gold);
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--ph-red);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.section-desc {
  margin-top: 14px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ph-text-gray);
}

/* ---------- 栅格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

/* ---------- 卡片 ---------- */
.card {
  padding: 24px;
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  transition: border-color 0.3s ease, transform 0.3s var(--ph-ease), box-shadow 0.3s ease;
}

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

.card-title {
  font-family: var(--ph-font-heading);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--ph-text-gray);
  line-height: 1.65;
}

/* ---------- 图片容器 ---------- */
.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ph-ease);
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: var(--ph-radius);
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.img-frame:hover img {
  transform: scale(1.04);
}

.img-frame:hover::after {
  border-color: rgba(212, 175, 55, 0.5);
}

/* ---------- 页面横幅 ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66vh;
  padding: calc(var(--ph-header-h) + clamp(40px, 7vw, 80px)) 0 clamp(48px, 6vw, 80px);
  background:
    linear-gradient(118deg, rgba(92, 0, 0, 0.9) 0%, rgba(18, 18, 18, 0.95) 62%),
    repeating-linear-gradient(-55deg, transparent 0 18px, rgba(212, 175, 55, 0.045) 18px 19px);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  right: -3%;
  bottom: -22%;
  width: 320px;
  height: 320px;
  border: 3px solid rgba(212, 175, 55, 0.32);
  transform: rotate(38deg);
  border-radius: 4px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 7%;
  bottom: -34%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(139, 0, 0, 0.7);
  transform: rotate(38deg);
  border-radius: 4px;
  pointer-events: none;
}

.page-title {
  position: relative;
  z-index: 1;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.page-subtitle {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ph-text-gray);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: calc(var(--ph-header-h) + 18px) 16px;
  font-family: var(--ph-font-heading);
  font-size: 13px;
  font-weight: 700;
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--ph-text-gray);
  font-weight: 400;
}

.breadcrumb-item a {
  color: var(--ph-text-gray);
  transition: color 0.25s ease;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus-visible {
  color: var(--ph-gold);
}

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

/* ---------- 数据表格 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ph-font-heading);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ph-text-gray);
  border-bottom: 2px solid var(--ph-border);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 15px;
  border-bottom: 1px solid rgba(58, 58, 58, 0.55);
}

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

.data-table tbody tr:hover {
  background: rgba(139, 0, 0, 0.18);
}

.data-table .rank-highlight {
  color: var(--ph-gold);
  font-weight: 900;
}

/* ---------- 标签页 ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--ph-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  padding: 12px 20px;
  margin-bottom: -2px;
  font-family: var(--ph-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--ph-text-gray);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.tab:hover {
  color: var(--ph-text);
}

.tab[aria-selected="true"] {
  color: var(--ph-gold);
  border-bottom-color: var(--ph-gold);
  font-weight: 900;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
  .header-notice,
  .header-cta {
    display: none;
  }

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

  .header-tools {
    margin-left: auto;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 88vw);
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--ph-header-h) + 32px) 28px 48px;
    background: linear-gradient(155deg, var(--ph-surface) 0%, var(--ph-bg) 55%, var(--ph-red-dark) 140%);
    border-left: 2px solid var(--ph-red);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.42s var(--ph-ease);
    z-index: 1001;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
  }

  .nav-link {
    padding: 15px 10px;
    font-size: 17px;
    border-bottom: 1px solid rgba(58, 58, 58, 0.55);
  }

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

  .nav-link[aria-current="page"] {
    color: var(--ph-gold);
    padding-left: 16px;
    border-left: 3px solid var(--ph-gold);
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.35), transparent 80%);
  }

  .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 32px;
    justify-content: center;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

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

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

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

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

  .footer-legal {
    white-space: normal;
  }

  .brand-emblem {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

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

  .brand-en {
    font-size: 9px;
    letter-spacing: 0.22em;
  }

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

/* ---------- 减少动态偏好 ---------- */
@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;
    scroll-behavior: auto !important;
  }
}
