/* ========================================
   MG游界 Site Kit · 共享样式
   文件：/assets/site.css
   ======================================== */

:root {
  --bg-deep: #0a1727;
  --bg-panel: #122d47;
  --surface-glass: rgba(26, 42, 64, .72);
  --surface-glass-strong: rgba(26, 42, 64, .9);
  --line-soft: rgba(168, 188, 207, .16);
  --line-cyan: rgba(0, 225, 241, .4);
  --purple: #7a4dff;
  --cyan: #00e1f1;
  --orange: #ff6b3d;
  --text-light: #e8f4ff;
  --text-dim: #a5b8cf;
  --green: #2bd576;
  --gold: #ffc75f;
  --font-display: 'Rajdhani', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --content-max: 1200px;
  --header-top-h: 34px;
  --header-h: 78px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --shadow-card: 0 18px 40px rgba(3, 10, 20, .45);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-light);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 70% 46% at 86% -10%, rgba(122, 77, 255, .16), transparent 62%),
    radial-gradient(ellipse 46% 38% at -10% 24%, rgba(0, 225, 241, .09), transparent 58%),
    linear-gradient(180deg, #0a1727 0%, #081322 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 品牌轨道：贯穿全站的左侧垂直刻度线 */
body::after {
  content: "";
  position: fixed;
  left: clamp(14px, 2vw, 30px);
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 5;
  background: linear-gradient(to bottom, transparent, rgba(0, 225, 241, .38) 16%, rgba(122, 77, 255, .58) 50%, rgba(0, 225, 241, .28) 84%, transparent);
  pointer-events: none;
}

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

ul[class], ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--cyan);
  text-underline-offset: 4px;
}

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

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

::selection {
  background: rgba(0, 225, 241, .3);
  color: #eaffff;
}

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

#main-content {
  position: relative;
  z-index: 1;
}

#main-content:focus {
  outline: none;
}

/* ---------- 通用容器与节奏 ---------- */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}

.container-narrow {
  max-width: 860px;
}

.section {
  padding: clamp(36px, 7vw, 72px) 0;
}

.section-tight {
  padding: clamp(20px, 4vw, 36px) 0;
}

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

/* ---------- 网格 ---------- */

.grid {
  display: grid;
  gap: 24px;
}

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

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

/* ---------- 按钮体系 ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.55rem;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .28s var(--ease-out), box-shadow .28s, background-color .28s, border-color .28s, color .28s;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 38%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  transition: left .5s ease;
  pointer-events: none;
}

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

.btn:hover::before {
  left: 130%;
}

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

.btn-sm {
  padding: .55rem 1.05rem;
  font-size: .85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--orange);
  color: #15263c;
  border-color: rgba(255, 107, 61, .55);
  box-shadow: 0 8px 24px rgba(255, 107, 61, .32);
}

.btn-primary:hover {
  background: #ff7a52;
  box-shadow: 0 12px 30px rgba(255, 107, 61, .46);
}

.btn-outline {
  background: rgba(0, 225, 241, .08);
  color: var(--cyan);
  border-color: rgba(0, 225, 241, .42);
  box-shadow: inset 0 0 16px rgba(0, 225, 241, .06);
}

.btn-outline:hover {
  background: rgba(0, 225, 241, .16);
  box-shadow: 0 10px 26px rgba(0, 225, 241, .22);
}

.btn-ghost {
  background: rgba(232, 244, 255, .05);
  color: var(--text-light);
  border-color: rgba(232, 244, 255, .16);
}

.btn-ghost:hover {
  background: rgba(122, 77, 255, .15);
  border-color: rgba(122, 77, 255, .55);
  box-shadow: 0 12px 28px rgba(122, 77, 255, .28);
}

/* ---------- 玻璃卡与悬浮 ---------- */

.glass-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(145deg, rgba(26, 42, 64, .72), rgba(18, 45, 71, .6));
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.glass-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 225, 241, .55), transparent);
  opacity: .7;
}

.hover-lift {
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}

.hover-lift:hover {
  transform: translateY(-5px);
  border-color: var(--line-cyan);
  box-shadow: 0 22px 46px rgba(3, 10, 20, .5), 0 0 30px rgba(122, 77, 255, .16);
}

/* ---------- 标签与徽章 ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .72rem;
  border-radius: 999px;
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--cyan);
  background: rgba(0, 225, 241, .09);
  border: 1px solid rgba(0, 225, 241, .34);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  border-radius: 8px;
  font-size: .72rem;
  letter-spacing: .06em;
  font-weight: 600;
}

.badge-hot {
  color: var(--gold);
  background: rgba(255, 199, 95, .1);
  border: 1px solid rgba(255, 199, 95, .32);
}

.badge-new {
  color: var(--green);
  background: rgba(43, 213, 118, .1);
  border: 1px solid rgba(43, 213, 118, .3);
}

/* ---------- 元信息与分割线 ---------- */

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--text-dim);
  font-size: .82rem;
  letter-spacing: .06em;
}

.meta-line .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

.arc-line {
  height: 1px;
  border: 0;
  margin: clamp(28px, 6vw, 64px) 0;
  background: linear-gradient(90deg, transparent, rgba(0, 225, 241, .45) 32%, rgba(122, 77, 255, .55) 68%, transparent);
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  padding: 18px 0 0;
  font-size: .84rem;
  color: var(--text-dim);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: .45;
}

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

/* ---------- 页面头图区 ---------- */

.page-head {
  padding: clamp(40px, 7vw, 84px) 0 20px;
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

.page-title {
  margin: 12px 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-light);
}

.page-subline {
  max-width: 680px;
  color: var(--text-dim);
  font-size: 1.03rem;
  line-height: 1.9;
}

/* ---------- 小节标题 ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-kicker {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--purple);
}

.section-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--text-light);
}

.section-sub {
  max-width: 640px;
  margin-top: 8px;
  color: var(--text-dim);
  line-height: 1.8;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .08em;
  transition: gap .2s;
}

.link-more:hover {
  gap: 12px;
}

/* ---------- 图片容器基础 ---------- */

.image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, var(--bg-panel), var(--bg-deep));
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  border: 1px solid rgba(0, 225, 241, .18);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(122, 77, 255, .12), transparent 42%), linear-gradient(to top, rgba(10, 23, 39, .58), transparent 46%);
}

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

.image-frame.character {
  aspect-ratio: 3 / 4;
}

.image-frame.poster {
  aspect-ratio: 4 / 5;
}

/* ---------- 滚动显现 ---------- */

.reveal {
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal[data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition-delay: var(--reveal-delay, 0ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 阅读进度条 ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1400;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--orange));
  box-shadow: 0 0 14px rgba(0, 225, 241, .7);
}

/* ---------- 无障碍跳转 ---------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: .6rem 1.2rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #0a1727;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform .2s ease;
}

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

/* ========================================
   头部
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 19, 33, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 3%, rgba(0, 225, 241, .6) 40%, rgba(122, 77, 255, .6) 62%, transparent 97%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 2;
  background: rgba(168, 188, 207, .14);
}

.header-top {
  position: relative;
  z-index: 1;
  background: rgba(7, 18, 30, .66);
  border-bottom: 1px solid rgba(168, 188, 207, .09);
  font-size: .76rem;
  color: var(--text-dim);
}

.header-top-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: .5rem clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--cyan);
  letter-spacing: .14em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(43, 213, 118, .18);
}

.header-slogan {
  letter-spacing: .28em;
  opacity: .85;
}

.header-inner {
  position: relative;
  z-index: 3;
  max-width: var(--content-max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* 品牌传送门标识 */

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

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 225, 241, .5);
  background: radial-gradient(circle at 35% 30%, rgba(0, 225, 241, .14), rgba(10, 23, 39, .4) 70%);
  box-shadow: 0 0 18px rgba(0, 225, 241, .2), inset 0 0 12px rgba(0, 225, 241, .12);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(122, 77, 255, .55);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 77, 255, .22), transparent 68%);
  z-index: -1;
}

.brand-core {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px var(--purple), 0 0 4px var(--cyan);
}

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

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: .14em;
  color: var(--text-light);
}

.brand-slogan {
  margin-top: 3px;
  font-size: .66rem;
  letter-spacing: .34em;
  color: var(--text-dim);
}

/* 移动端菜单按钮 */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0, 225, 241, .3);
  background: rgba(10, 23, 39, .6);
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.nav-toggle:hover {
  border-color: rgba(0, 225, 241, .7);
  box-shadow: 0 0 18px rgba(0, 225, 241, .18);
}

.nav-toggle-bars {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: background .2s;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform .3s var(--ease-out), top .3s;
}

.nav-toggle-bars::before {
  top: -7px;
}

.nav-toggle-bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-label {
  font-size: .6rem;
  line-height: 1;
  color: var(--text-dim);
  letter-spacing: .22em;
}

/* 导航面板：移动端为下拉玻璃面板 */

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px clamp(20px, 4vw, 40px) 22px;
  background: rgba(7, 19, 32, .96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 225, 241, .16);
  box-shadow: 0 26px 50px rgba(2, 8, 16, .55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .28s ease, transform .28s var(--ease-out), visibility .28s;
}

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

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-list a {
  display: block;
  padding: .72rem .95rem;
  border-radius: 14px;
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .22s, background .22s, border-color .22s;
}

.nav-list a:hover {
  color: var(--text-light);
  background: rgba(0, 225, 241, .08);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(0, 225, 241, .1);
  border-color: rgba(0, 225, 241, .25);
  box-shadow: 0 0 16px rgba(0, 225, 241, .15);
}

.head-cta {
  justify-content: center;
  margin-top: 4px;
}

/* 桌面端导航 */

@media (min-width: 961px) {
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 4px;
  }

  .nav-list a {
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .92rem;
  }

  .head-cta {
    margin-top: 0;
  }

  .nav-toggle {
    display: none;
  }
}

/* ========================================
   页脚
   ======================================== */

.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #0b1830 0%, #071322 100%);
  border-top: 1px solid rgba(0, 225, 241, .2);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  top: -300px;
  right: -140px;
  background: radial-gradient(circle, rgba(122, 77, 255, .22), transparent 62%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  bottom: -240px;
  left: -120px;
  background: radial-gradient(circle, rgba(0, 225, 241, .11), transparent 64%);
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px) 32px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: .16em;
  background: linear-gradient(120deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.footer-slogan {
  margin-top: 8px;
  font-size: .85rem;
  letter-spacing: .18em;
  color: var(--text-dim);
}

.footer-trust {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: .8rem;
  line-height: 1.8;
  color: var(--text-dim);
  background: rgba(10, 23, 39, .5);
  border: 1px solid rgba(0, 225, 241, .16);
}

.trust-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 8px;
  padding: .14rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  color: var(--gold);
  background: rgba(255, 199, 95, .1);
  border: 1px solid rgba(255, 199, 95, .3);
}

.footer-title {
  margin: 6px 0 16px;
  padding-bottom: 10px;
  position: relative;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--text-light);
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.footer-nav ul {
  display: grid;
  gap: 10px;
}

.footer-nav a {
  position: relative;
  display: inline-block;
  color: var(--text-dim);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}

.footer-nav a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: var(--cyan);
  transition: opacity .2s;
}

.footer-nav a:hover {
  color: var(--cyan);
  padding-left: 16px;
}

.footer-nav a:hover::before {
  opacity: 1;
}

.footer-address {
  font-style: normal;
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.85;
}

.footer-mail,
.footer-phone {
  margin-top: 8px;
  font-size: .92rem;
  color: var(--text-dim);
}

.footer-response-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .76rem;
  line-height: 1.7;
  color: var(--text-dim);
  background: rgba(0, 225, 241, .05);
  border-left: 2px solid var(--cyan);
}

.footer-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 40px) 22px;
  border-top: 1px solid rgba(168, 188, 207, .12);
  font-size: .8rem;
  color: var(--text-dim);
}

.footer-copy {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s;
}

.footer-legal a:hover {
  color: var(--cyan);
}

/* ========================================
   响应式
   ======================================== */

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  body {
    background-attachment: scroll;
  }

  body::after {
    display: none;
  }

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

  .header-slogan {
    display: none;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-slogan {
    letter-spacing: .22em;
  }

  .head-cta {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .brand {
    gap: 10px;
  }

  .header-top-inner {
    justify-content: center;
    padding-top: .4rem;
    padding-bottom: .4rem;
  }
}

/* ---------- 动画与缓动偏好 ---------- */

@media (prefers-reduced-motion: no-preference) {
  .brand-mark::before {
    animation: orbit-spin 16s linear infinite;
  }

  .status-dot {
    animation: status-pulse 2.6s ease-out infinite;
  }
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 213, 118, .5);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(43, 213, 118, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(43, 213, 118, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .site-nav {
    transition: none;
  }
}
