/* ============================================================
   财神棋牌3368 · Site Kit 共享样式
   深蓝档案 × 夜市霓虹
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  background-color: var(--color-navy);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  background-color: var(--color-navy);
  background-image:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(27, 59, 111, 0.7), transparent 55%),
    radial-gradient(ellipse 45% 32% at 85% 8%, rgba(255, 215, 0, 0.05), transparent 55%),
    linear-gradient(180deg, #07142C 0%, var(--color-navy) 42%);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 63px, rgba(160, 180, 208, 0.045) 63px 64px),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(160, 180, 208, 0.03) 63px 64px);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 25%, #000 10%, transparent 72%);
}
#main-content {
  position: relative;
  z-index: 1;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
}

/* ---------- Variables ---------- */
:root {
  --color-navy: #0A1B3D;
  --color-blue: #1B3B6F;
  --color-gold: #FFD700;
  --color-gold-dark: #FFB800;
  --color-red: #FF3B30;
  --color-light-bg: #F5F7FA;
  --color-text-light: #E8EFF9;
  --color-text-subtle: #A0B4D0;
  --color-border: #2A4A78;
  --shadow-card: rgba(0, 0, 0, 0.3);
  --font-headline: "Alibaba PuHuiTi", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", "PingFang SC", sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 760px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ---------- Focus & Selection ---------- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}
::selection {
  background: rgba(255, 215, 0, 0.85);
  color: var(--color-navy);
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 400;
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-navy);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus-visible {
  top: 0;
  outline: none;
}

/* ---------- Containers ---------- */
.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}
.container-wide {
  width: min(100% - 2.5rem, var(--container-wide));
  margin-inline: auto;
}
.container-narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
  margin-inline: auto;
}

/* ---------- Utility ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  --scroll-progress: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  pointer-events: none;
  background: rgba(160, 180, 208, 0.1);
}
.scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark));
  transform: scaleX(var(--scroll-progress));
  transform-origin: 0 50%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(8, 21, 50, 0.92), rgba(10, 27, 61, 0.84));
  border-bottom: 1px solid var(--color-border);
}
.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(520px, 48%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.9) 60%, var(--color-gold-dark));
  transform: skewX(-24deg);
  transform-origin: right bottom;
  pointer-events: none;
}
.header-inner {
  position: relative;
}

/* ---------- Masthead ---------- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding-block: 1.5rem 0.9rem;
}
.masthead-mark {
  display: flex;
  align-items: center;
  justify-self: start;
}
.mark-coin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #FFF6C0, transparent 48%),
    linear-gradient(140deg, #FFE45C, var(--color-gold-dark));
  box-shadow:
    0 0 0 6px rgba(255, 215, 0, 0.1),
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 0 0 3px rgba(10, 27, 61, 0.9),
    inset 0 0 0 6px rgba(255, 215, 0, 0.55);
  color: var(--color-navy);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.masthead-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.35rem 2rem;
}
.masthead-title::before,
.masthead-title::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 215, 0, 0.65);
  pointer-events: none;
}
.masthead-title::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}
.masthead-title::after {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}
.masthead-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.masthead-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  text-decoration: none;
  line-height: 1;
}
.masthead-brand:hover .brand-cn {
  color: var(--color-gold);
  transition: color 0.3s var(--ease);
}
.brand-cn {
  font-family: var(--font-headline);
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--color-text-light);
}
.brand-number {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-gold);
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.28);
}
.masthead-tagline {
  margin-top: 0.28rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--color-text-subtle);
}
.masthead-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  justify-self: end;
}
.cta-note {
  font-size: 0.72rem;
  color: var(--color-text-subtle);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s, background 0.25s, color 0.25s;
}
.btn-label {
  display: inline-flex;
  align-items: center;
}
.btn-primary {
  background: linear-gradient(135deg, #FFE45C, var(--color-gold) 45%, var(--color-gold-dark));
  color: var(--color-navy);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.22), inset 0 -2px 0 rgba(10, 27, 61, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.35), inset 0 -2px 0 rgba(10, 27, 61, 0.15);
}
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-light);
}
.btn-ghost:hover {
  border-color: rgba(255, 215, 0, 0.55);
  color: var(--color-gold);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.12);
}
.btn-arrow {
  font-family: var(--font-mono);
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Main Navigation ---------- */
.main-nav {
  margin-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(7, 20, 44, 0.38);
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
}
.nav-item {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
}
.nav-item::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-gold);
  opacity: 0.55;
  transform: translateY(-0.1em);
}
.nav-link {
  display: block;
  padding: 0.55rem 0.9rem;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-link:hover {
  color: var(--color-gold);
}
.nav-link[aria-current="page"] {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* ---------- Nav Toggle ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(27, 59, 111, 0.65);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-gold);
  font-family: var(--font-headline);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.25s;
}
.nav-toggle:hover {
  border-color: rgba(255, 215, 0, 0.6);
}
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(255, 215, 0, 0.6);
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle-text {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.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);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: var(--space-7);
  background: linear-gradient(180deg, rgba(10, 27, 61, 0.98), #050D20 60%);
  border-top: 1px solid var(--color-border);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 215, 0, 0.75) 25%, var(--color-gold) 40%, transparent 75%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.95fr 1.2fr;
  gap: var(--space-5);
  padding-top: var(--space-5);
  padding-bottom: var(--space-4);
}
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.footer-logo-cn {
  font-family: var(--font-headline);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}
.footer-logo-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-gold);
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.28);
}
.footer-statement {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--color-text-subtle);
  margin-bottom: 1rem;
}
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(27, 59, 111, 0.35);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-text-subtle);
  white-space: nowrap;
}
.tag--gold {
  border-color: rgba(255, 215, 0, 0.5);
  color: var(--color-gold);
}
.footer-heading {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--color-gold);
}
.footer-heading-sub {
  margin-top: 1.5rem;
  border-bottom: 0;
  padding-bottom: 0;
}
.footer-heading-sub::after {
  display: none;
}
.footer-link-list {
  display: grid;
  gap: 0.45rem;
}
.footer-link {
  color: var(--color-text-subtle);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-link:hover {
  color: var(--color-gold);
  padding-left: 4px;
}
.footer-note {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
}
.footer-contact-list {
  display: grid;
  gap: 0.6rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(42, 74, 120, 0.65);
}
.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--color-text-subtle);
}
.contact-text {
  font-size: 0.92rem;
  color: var(--color-text-light);
  word-break: break-all;
}
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 1.1rem;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text-subtle);
}
.footer-copyright {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
}
.footer-icp {
  font-size: 0.82rem;
  color: var(--color-text-subtle);
}

/* ---------- Shared Page Components ---------- */
.section {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
}
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--color-text-light);
}

/* Light Section */
.section-light {
  --color-text-subtle: #5B6B85;
  --color-border: #D8E1EC;
  background: var(--color-light-bg);
  color: #1A2B4C;
}
.section-light .section-title {
  color: var(--color-navy);
}
.section-light .section-kicker {
  color: #C88719;
}
.section-light .prose {
  color: #2A3B57;
}
.section-light .card {
  background: #FFFFFF;
  border-color: #E1E8F0;
  box-shadow: 0 6px 18px rgba(10, 27, 61, 0.07);
}
.section-light .card:hover {
  border-color: #C88719;
  box-shadow: 0 12px 30px rgba(10, 27, 61, 0.12);
}
.section-light .tag {
  background: transparent;
  border-color: #DCE5EF;
  color: #5B6B85;
}
.section-light .relation-list a {
  background: #FFFFFF;
  border-color: #E1E8F0;
  color: #1A2B4C;
}
.section-light .relation-list a:hover {
  border-color: #C88719;
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-4);
  background: linear-gradient(160deg, rgba(27, 59, 111, 0.5), rgba(10, 27, 61, 0.72));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 46px;
  background: linear-gradient(180deg, var(--color-gold), rgba(255, 215, 0, 0));
  border-radius: 0 3px 3px 0;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 14px 34px var(--shadow-card);
}
.card-title {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-light);
  margin: 0;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-subtle);
}
.card-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-subtle);
}
.card-offset {
  margin-top: -2.2rem;
  margin-left: auto;
  max-width: calc(100% - 1.4rem);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Prose */
.prose {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--color-text-light);
}
.prose p {
  margin-bottom: 1.15em;
}
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-headline);
  font-weight: 800;
  color: var(--color-text-light);
  margin: 1.8em 0 0.6em;
  line-height: 1.3;
}
.prose h2 {
  font-size: 1.75rem;
  border-left: 4px solid var(--color-gold);
  padding-left: 0.75rem;
}
.prose h3 {
  font-size: 1.3rem;
}
.prose ul,
.prose ol {
  margin-bottom: 1.15em;
  padding-left: 1.4em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin-bottom: 0.35em;
}
.prose a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose blockquote {
  border-left: 3px solid var(--color-gold-dark);
  background: rgba(27, 59, 111, 0.35);
  margin: 1.5em 0;
  padding: 0.9rem 1.2rem;
  color: var(--color-text-subtle);
}

/* Breadcrumb */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  font-size: 0.88rem;
  color: var(--color-text-subtle);
}
.breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 0.6rem;
  color: var(--color-border);
  font-family: var(--font-mono);
}
.breadcrumb-link {
  color: var(--color-text-subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-link:hover {
  color: var(--color-gold);
}
.breadcrumb-item[aria-current="page"] {
  color: var(--color-gold);
}

/* Relation List */
.relation-list {
  display: grid;
  gap: var(--space-2);
}
.relation-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: rgba(27, 59, 111, 0.35);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-light);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.relation-list a::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--color-gold);
  flex-shrink: 0;
}
.relation-list a:hover {
  transform: translateX(4px);
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(27, 59, 111, 0.6);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border) 18%, var(--color-border) 82%, transparent);
  margin-block: var(--space-5);
}

/* Media Frame */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-blue), #08182F);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.media-frame::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 3;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0 1px, transparent 1px 14px),
    linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0 30%, transparent 50%);
  pointer-events: none;
}
.media-frame--wide::before {
  aspect-ratio: 16 / 9;
}
.media-frame--square::before {
  aspect-ratio: 1 / 1;
}
.media-frame--slant {
  border-radius: 0;
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

/* ---------- Reveal Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal="fade"] {
  transform: none;
}
[data-reveal="left"] {
  transform: translateX(-30px);
}
[data-reveal="right"] {
  transform: translateX(30px);
}
[data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- Scrollbars ---------- */
@media (min-width: 901px) {
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--color-navy);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-blue);
    border-radius: 5px;
  }
}

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

/* Tablet / Small Desktop */
@media (max-width: 1020px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile Header & Nav */
@media (max-width: 900px) {
  .masthead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 3.2rem 0.5rem 0.8rem;
  }
  .masthead-mark {
    display: none;
  }
  .masthead-title {
    padding: 0.25rem 1.25rem;
  }
  .masthead-cta {
    position: absolute;
    top: 0.9rem;
    right: 0.85rem;
    flex-direction: row;
    align-items: center;
  }
  .cta-note {
    display: none;
  }
  .btn-primary {
    padding: 0.52rem 0.9rem;
    font-size: 0.85rem;
  }
  .brand-cn {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .brand-number {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }
  .masthead-tagline {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
  .nav-toggle {
    position: absolute;
    top: 0.9rem;
    left: 0.85rem;
    display: inline-flex;
  }
  .main-nav {
    display: none;
    margin-top: 0;
    border-top: 0;
    background: linear-gradient(180deg, rgba(10, 27, 61, 0.98), rgba(8, 21, 50, 0.98));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }
  .main-nav[data-open] {
    display: block;
    border-bottom: 2px solid rgba(255, 215, 0, 0.6);
    animation: navDrop 0.3s var(--ease);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
  }
  .nav-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item::before {
    display: none;
  }
  .nav-link {
    width: 100%;
    padding: 0.8rem 0.35rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(42, 74, 120, 0.6);
  }
}

/* Grid collapse */
@media (max-width: 940px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile */
@media (max-width: 640px) {
  .container,
  .container-wide,
  .container-narrow {
    width: min(100% - 2rem, 100%);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}
@media (max-width: 620px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .masthead-title {
    padding-inline: 0.3rem;
  }
  .brand-cn {
    font-size: 1.45rem;
  }
  .brand-number {
    font-size: 1.7rem;
  }
  .masthead-tagline {
    letter-spacing: 0.06em;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Reduced Motion ---------- */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
