/* ============================================================
   澳门电玩城牌局 · 共享站点样式 /assets/site.css
   霓虹赌场走廊 × 数字控制台
   ============================================================ */

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

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, p,
ul, ol, figure, blockquote {
  margin: 0;
}

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

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

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

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

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--lime); color: #050B14; }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: dark;

  --void: #050B14;
  --navy: #0B1B2B;
  --slate: #2B363B;
  --bone: #F5EBDD;
  --lime: #B9FF3D;
  --magenta: #FF3D8D;
  --amber: #FFB84D;
  --moss: #5E7A5E;
  --terracotta: #B76A52;
  --cyan: #6FE7FF;

  --bone-dim: rgba(245, 235, 221, 0.72);
  --bone-soft: rgba(245, 235, 221, 0.52);
  --bone-faint: rgba(245, 235, 221, 0.12);
  --line: rgba(245, 235, 221, 0.13);
  --line-lime: rgba(185, 255, 61, 0.36);

  --font-display: "Oswald", "Arial Narrow", "Haettenschweiler", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;

  --maxw: 1280px;
  --gutter: 24px;
  --cut: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --cut: 10px; }
}

/* ---------- 3. 基础排版与背景分区 ---------- */
body {
  position: relative;
  z-index: 0;
  background: transparent;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 46% at 82% -8%, rgba(255, 61, 141, 0.20), transparent 70%),
    radial-gradient(52% 42% at 8% 2%, rgba(111, 231, 255, 0.14), transparent 72%),
    radial-gradient(76% 58% at 50% 112%, rgba(185, 255, 61, 0.10), transparent 76%),
    linear-gradient(180deg, #071021 0%, #050B14 46%, #050B14 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    180deg,
    rgba(245, 235, 221, 0.035) 0 1px,
    transparent 1px 4px
  );
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.005em;
}

p { max-width: 52em; }

.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.6vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(185, 255, 61, 0.24);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  box-shadow: 0 0 10px rgba(185, 255, 61, 0.7);
}

/* ---------- 4. 布局容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(44px, 6.5vw, 96px);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

@media (max-width: 980px) {
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 5. 通用按钮 ---------- */
.btn {
  --btn-bg: var(--lime);
  --btn-fg: #06110A;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  clip-path: polygon(
    10px 0, 100% 0,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    0 100%, 0 10px
  );
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(185, 255, 61, 0.26);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    inset 0 0 0 2px var(--cyan),
    0 10px 30px rgba(111, 231, 255, 0.28);
}

.btn--primary {
  background: var(--lime);
  color: #06110A;
}

.btn--ghost {
  background: rgba(11, 27, 43, 0.55);
  color: var(--bone);
  border-color: rgba(245, 235, 221, 0.28);
}

.btn--ghost:hover {
  color: var(--lime);
  border-color: var(--line-lime);
  box-shadow: 0 12px 28px rgba(185, 255, 61, 0.16);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
}

/* ---------- 6. 面板 / 标签 / 媒体容器 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    linear-gradient(158deg, rgba(11, 27, 43, 0.96) 0%, rgba(5, 11, 20, 0.94) 100%);
  border: 1px solid var(--line);
}

.panel--cut {
  clip-path: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}

.tag--lime { color: var(--lime); }
.tag--magenta { color: var(--magenta); }
.tag--amber { color: var(--amber); }
.tag--moss { color: #A3BCA3; }

.media {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 20% 0%, rgba(111, 231, 255, 0.14), transparent 68%),
    linear-gradient(150deg, #0B1B2B 0%, #050B14 100%);
  border: 1px solid var(--line);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(245, 235, 221, 0.05) 0 1px,
    transparent 1px 5px
  );
}

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

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: linear-gradient(0deg, rgba(5, 11, 20, 0.94), transparent);
  z-index: 1;
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-soft);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item::after {
  content: "/";
  color: rgba(245, 235, 221, 0.28);
}

.breadcrumb__item:last-child::after { content: none; }

.breadcrumb__link { color: var(--bone-soft); transition: color 0.18s var(--ease); }
.breadcrumb__link:hover { color: var(--lime); }

.breadcrumb__current { color: var(--lime); }

/* ---------- 8. Skip link ---------- */
.skip-link {
  position: absolute;
  top: -72px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #06110A;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 9. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 11, 20, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

/* 9.1 版本号状态条 */
.status-bar {
  color: rgba(245, 235, 221, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:
    linear-gradient(90deg,
      rgba(11, 27, 43, 0.96) 0%,
      rgba(5, 11, 20, 0.96) 46%,
      rgba(255, 61, 141, 0.14) 100%);
  border-bottom: 1px solid rgba(185, 255, 61, 0.16);
}

.status-bar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--maxw);
  min-height: 30px;
  margin-inline: auto;
  padding: 6px var(--gutter);
}

.status-bar__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: statusPulse 2.6s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-bar__text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-bar__meta {
  flex: none;
  padding-left: 12px;
  color: var(--cyan);
  border-left: 1px solid rgba(111, 231, 255, 0.32);
}

/* 9.2 居中刊头 */
.masthead {
  border-bottom: 1px solid rgba(245, 235, 221, 0.08);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.masthead__aside {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.masthead__tag {
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(111, 231, 255, 0.32);
  white-space: nowrap;
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}

.masthead__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  color: var(--void);
  background: var(--lime);
  box-shadow: 0 0 22px rgba(185, 255, 61, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}

.masthead__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.masthead__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.3vw, 23px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bone);
  text-shadow: 0 0 20px rgba(185, 255, 61, 0.26);
}

.masthead__sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 235, 221, 0.42);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* 9.3 栏目导航 */
.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.nav {
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav__item { display: block; }

.nav__item--mobile { display: none; }

.nav__link {
  position: relative;
  display: block;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(245, 235, 221, 0.74);
  transition: color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan));
  box-shadow: 0 0 12px rgba(185, 255, 61, 0.66);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover { color: var(--bone); }

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

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

.nav__cta {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
}

.nav__cta:hover { transform: translateY(calc(-50% - 2px)); }

/* 9.4 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 40px;
  background: rgba(11, 27, 43, 0.72);
  border: 1px solid rgba(245, 235, 221, 0.24);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-lime);
  box-shadow: 0 0 22px rgba(185, 255, 61, 0.22);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.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(2) {
  opacity: 0;
}

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

/* 9.5 移动断点 */
@media (max-width: 900px) {
  .masthead__inner {
    grid-template-columns: 1fr auto;
  }

  .masthead__aside { display: none; }

  .masthead__brand { justify-self: start; }

  .masthead__actions > .btn { display: none; }

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

  .navbar {
    position: static;
    min-height: 0;
    padding: 0;
    border: 0;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 6px 0 16px;
    background:
      radial-gradient(90% 120% at 100% 0%, rgba(255, 61, 141, 0.16), transparent 62%),
      #071120;
    border-bottom: 1px solid var(--line-lime);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.72);
  }

  .nav[data-open="true"] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: 14px var(--gutter);
    font-size: 15px;
    border-bottom: 1px solid rgba(245, 235, 221, 0.07);
  }

  .nav__link::after {
    left: 0;
    right: 0;
    height: 2px;
  }

  .nav__link[aria-current="page"] {
    background: rgba(185, 255, 61, 0.08);
  }

  .nav__item--mobile {
    display: block;
    padding: 16px var(--gutter) 4px;
  }

  .nav__cta { display: none; }

  .status-bar__text { font-size: 10px; letter-spacing: 0.06em; }
  .status-bar__meta { font-size: 10px; }
}

@media (max-width: 420px) {
  .status-bar__meta { display: none; }
  .masthead__sub { letter-spacing: 0.2em; }
}

/* ---------- 10. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 8vw, 110px);
  background:
    radial-gradient(88% 130% at 50% 0%, rgba(255, 61, 141, 0.11), transparent 62%),
    linear-gradient(180deg, rgba(11, 27, 43, 0.92) 0%, rgba(5, 11, 20, 1) 100%);
}

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  opacity: 0.78;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--lime) 26%,
    var(--cyan) 50%,
    var(--magenta) 74%,
    transparent 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1.4fr;
  gap: clamp(28px, 4vw, 52px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 46px);
}

.footer__brand { min-width: 0; }

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--void);
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.footer__text {
  display: flex;
  flex-direction: column;
}

.footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bone);
}

.footer__sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 235, 221, 0.4);
}

.footer__summary {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--bone-dim);
}

.footer__code {
  margin-top: 14px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  min-width: 0;
}

.footer__col { min-width: 0; }

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer__col-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 255, 61, 0.4), transparent);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list-item { display: block; }

.footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--bone-dim);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}

.footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--lime);
  transform: translateY(-50%);
  transition: width 0.18s var(--ease);
}

.footer__link:hover {
  color: var(--lime);
  padding-left: 12px;
}

.footer__link:hover::before { width: 7px; }

.footer__contact { min-width: 0; }

.footer__contact-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 235, 221, 0.4);
}

.footer__contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--bone);
  word-break: break-word;
}

.footer__contact-note {
  margin-top: 16px;
  max-width: 34ch;
  padding-left: 10px;
  font-size: 12.5px;
  line-height: 1.72;
  color: rgba(245, 235, 221, 0.5);
  border-left: 2px solid var(--terracotta);
}

.footer__legal {
  background: rgba(3, 7, 12, 0.62);
  border-top: 1px solid var(--line);
}

.footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 235, 221, 0.44);
}

.footer__copy { max-width: none; }

.footer__icp {
  max-width: none;
  color: rgba(245, 235, 221, 0.56);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.footer__legal-item { display: block; }

.footer__legal-link {
  color: rgba(245, 235, 221, 0.56);
  transition: color 0.18s var(--ease);
}

.footer__legal-link:hover { color: var(--lime); }

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }
}

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__contact { grid-column: auto; }
  .footer__contact-list { grid-template-columns: 1fr; }
  .footer__legal-links { margin-left: 0; }
  .footer__legal-inner { font-size: 10px; letter-spacing: 0.06em; }
}

/* ---------- 11. 滚动显现与进度条 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--lime), var(--cyan) 52%, var(--magenta));
  box-shadow: 0 0 12px rgba(111, 231, 255, 0.6);
}

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

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

  .reveal { opacity: 1; transform: none; }

  body::after { display: none; }

  .status-bar__dot { animation: none; }

  .btn:hover { transform: none; }
}
