:root {
  --yellow: #ffd21f;
  --yellow-deep: #f5bd00;
  --yellow-soft: #ffe88e;
  --cream: #fff8e7;
  --paper: #fffdf6;
  --ink: #1d1a12;
  --ink-soft: #4b4228;
  --muted: #7d6d3d;
  --red: #d8432f;
  --red-deep: #b52f20;
  --green: #2f7d4f;
  --line: rgba(29, 26, 18, 0.22);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", "Courier New", monospace;
  --shadow: 12px 12px 0 var(--ink);
  --radius: 34px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(29, 26, 18, 0.17) 0.8px, transparent 0.8px);
  background-size: 19px 19px;
  opacity: 0.32;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 8% 5%, rgba(255, 255, 255, 0.35), transparent 65%),
    radial-gradient(ellipse 55% 55% at 100% 90%, rgba(222, 145, 0, 0.22), transparent 70%);
}

body.is-transferring {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

::selection {
  background: var(--ink);
  color: var(--yellow);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.page {
  position: relative;
  z-index: 1;
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 20px 30px 30px;
}

/* ── 顶栏 ─────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 2px 2px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-crest {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(3px 3px 0 rgba(29, 26, 18, 0.14));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-crest {
  transform: rotate(-8deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-cn {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-en {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  color: rgba(29, 26, 18, 0.62);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(29, 26, 18, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 231, 0.48);
  backdrop-filter: blur(6px);
}

.nav-link {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
}

.nav-link.is-active {
  background: var(--ink);
  color: var(--cream);
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(29, 26, 18, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 79, 0.14);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--green);
  border-radius: 50%;
  animation: live-ping 2.4s ease-out infinite;
}

.chip-year {
  padding-left: 8px;
  border-left: 1px solid rgba(29, 26, 18, 0.2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── 门户主卡 ─────────────────────────────────────────── */

.portal {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.portal-topline {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding: 0 26px;
  border-bottom: 1.5px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.portal-date {
  color: var(--ink-soft);
}

.topline-note {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(125, 109, 61, 0.78);
}

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  min-height: 548px;
}

.copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4.6vw, 68px);
  padding-right: clamp(26px, 3.4vw, 48px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.eyebrow-rule {
  width: 28px;
  height: 2px;
  background: var(--red);
}

.welcome {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 27px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(54px, 6.25vw, 92px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.title-line,
.title-mark {
  display: block;
}

.title-mark {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 0 0.07em 0.04em 0.04em;
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--ink);
  transform: rotate(-1.1deg);
  transform-origin: left bottom;
  white-space: nowrap;
}

.title-mark::after {
  content: "";
  position: absolute;
  right: -13px;
  bottom: -19px;
  width: 46px;
  height: 22px;
  background-image: radial-gradient(var(--red) 2px, transparent 2.5px);
  background-size: 9px 9px;
  opacity: 0.85;
}

.lede {
  margin: 0;
  max-width: 470px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.cta-block {
  margin-top: 28px;
}

.enter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  width: min(330px, 100%);
  height: 68px;
  padding: 0 13px 0 27px;
  overflow: visible;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 7px 0 rgba(29, 26, 18, 0.16);
  isolation: isolate;
  animation: cta-breathe 2.7s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enter-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border: 2px solid var(--ink);
  border-radius: inherit;
  opacity: 0;
  animation: cta-ping 2.7s cubic-bezier(0.15, 0.55, 0.3, 1) infinite;
}

.enter-btn:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 11px 0 rgba(29, 26, 18, 0.16);
}

.enter-btn:active {
  transform: translateY(2px) scale(0.995);
  box-shadow: 0 3px 0 rgba(29, 26, 18, 0.16);
}

.enter-btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}

.enter-label {
  position: relative;
  z-index: 1;
}

.enter-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.enter-btn:hover .enter-arrow {
  transform: translateX(3px) rotate(-7deg);
  background: var(--yellow-soft);
}

.cta-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.cta-note em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}

.nojs {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.nojs a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dashed rgba(29, 26, 18, 0.25);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 74px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-value em {
  margin-left: 2px;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.stat-label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* ── 右侧视觉 ─────────────────────────────────────────── */

.visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 548px;
  overflow: hidden;
  border-left: 1.5px solid var(--ink);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.72), transparent 46%),
    linear-gradient(145deg, var(--yellow-soft) 0%, var(--yellow) 62%, #ffc400 100%);
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 26, 18, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 26, 18, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  opacity: 0.7;
}

.visual-word {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  transform: translate(-50%, -51%) rotate(-8deg);
  color: transparent;
  font-family: var(--sans);
  font-size: clamp(280px, 37vw, 520px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1.5px rgba(29, 26, 18, 0.14);
  pointer-events: none;
  user-select: none;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(430px, 84%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  animation: orbit-spin 38s linear infinite;
  pointer-events: none;
}

.orbit text {
  fill: rgba(29, 26, 18, 0.52);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
}

.mascot-stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(372px, 67%);
  aspect-ratio: 1;
}

.mascot-halo {
  position: absolute;
  inset: 3%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #fffdf7 0%, var(--cream) 64%, #f5e9c8 100%);
  box-shadow: 8px 8px 0 rgba(29, 26, 18, 0.15);
}

.mascot-halo::after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px dashed rgba(29, 26, 18, 0.21);
  border-radius: 50%;
}

.hero-mascot {
  position: relative;
  z-index: 2;
  width: 94%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 18px 12px rgba(94, 65, 0, 0.18));
  animation: mascot-bob 4.6s ease-in-out infinite;
}

.speech-bubble {
  position: absolute;
  top: 4%;
  right: -12%;
  z-index: 4;
  padding: 10px 16px 11px;
  border: 2px solid var(--ink);
  border-radius: 22px 22px 22px 5px;
  background: var(--ink);
  color: var(--cream);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transform: rotate(6deg);
  box-shadow: 4px 4px 0 rgba(29, 26, 18, 0.15);
  animation: bubble-pop 4.2s ease-in-out infinite;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -9px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  transform: rotate(45deg);
}

.admit-sticker {
  position: absolute;
  left: -11%;
  bottom: 17%;
  z-index: 4;
  padding: 10px 14px 11px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-align: center;
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.admit-sticker::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 42px;
  height: 13px;
  background: rgba(255, 232, 142, 0.82);
  transform: translateX(-50%) rotate(2deg);
}

.admit-sticker b {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.red-stamp {
  position: absolute;
  right: -1%;
  bottom: 2%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2.5px solid var(--red);
  border-radius: 50%;
  background: rgba(255, 248, 231, 0.78);
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-13deg);
  box-shadow: 3px 3px 0 rgba(29, 26, 18, 0.12);
}

.red-stamp::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.spark {
  position: absolute;
  z-index: 3;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  animation: sparkle 3.6s ease-in-out infinite;
}

.spark-a {
  top: 12%;
  left: 1%;
}

.spark-b {
  right: 3%;
  top: 31%;
  font-size: 17px;
  animation-delay: -1.4s;
}

.visual-caption {
  position: absolute;
  bottom: 19px;
  left: 50%;
  z-index: 4;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(29, 26, 18, 0.62);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ── 快讯滚动条 ───────────────────────────────────────── */

.news {
  display: flex;
  align-items: stretch;
  height: 56px;
  border-top: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.news-label {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 22px;
  background: var(--red);
  color: var(--cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.news-label::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 18px;
  height: 18px;
  background: var(--red);
  transform: translateY(-50%) rotate(45deg);
}

.news-viewport {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 3%, black 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 3%, black 97%, transparent);
}

.news-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  padding-left: 30px;
  animation: ticker 34s linear infinite;
}

.news:hover .news-track {
  animation-play-state: paused;
}

.news-item {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  color: rgba(255, 248, 231, 0.88);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.news-item::after {
  content: "✳";
  color: var(--yellow);
  font-size: 12px;
}

/* ── 快捷入口 ─────────────────────────────────────────── */

.shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.shortcut {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 14px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: rgba(255, 248, 231, 0.7);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(29, 26, 18, 0.9);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.shortcut:hover {
  transform: translate(-2px, -2px);
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
}

.shortcut:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.shortcut:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.shortcut-index {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.shortcut-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shortcut-main strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.shortcut-main small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(29, 26, 18, 0.3);
  border-radius: 50%;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.shortcut:hover .shortcut-arrow {
  background: var(--yellow);
  transform: rotate(8deg);
}

/* ── 页脚 ─────────────────────────────────────────────── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px 2px;
  color: rgba(29, 26, 18, 0.62);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.footer p {
  margin: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-btn {
  appearance: none;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.about-btn:hover,
.about-btn:focus-visible {
  color: var(--ink);
  border-bottom-color: currentColor;
}

/* ── 关于弹窗 ─────────────────────────────────────────── */

.about {
  width: min(430px, calc(100vw - 32px));
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

.about[open] {
  animation: dialog-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.about::backdrop {
  background: rgba(29, 26, 18, 0.42);
  backdrop-filter: blur(3px);
}

.about-body {
  padding: 28px 26px 22px;
}

.about-kicker {
  margin: 0 0 9px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.about h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.about .about-fine {
  color: var(--muted);
  font-size: 11px;
}

.about form {
  margin-top: 18px;
  text-align: right;
}

.dialog-close {
  appearance: none;
  padding: 11px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dialog-close:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.dialog-close:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* ── 转场 Loading ─────────────────────────────────────── */

.transfer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.5), transparent 44%),
    var(--yellow);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.transfer[hidden] {
  display: none;
}

.transfer.is-open {
  opacity: 1;
}

.transfer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(29, 26, 18, 0.18) 0.8px, transparent 0.8px);
  background-size: 19px 19px;
  opacity: 0.3;
  pointer-events: none;
}

.transfer::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(29, 26, 18, 0.08);
  pointer-events: none;
}

.transfer-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.float-ha {
  position: absolute;
  color: rgba(29, 26, 18, 0.09);
  font-size: clamp(42px, 8vw, 98px);
  font-weight: 900;
  line-height: 1;
  animation: float-ha 5s ease-in-out infinite;
}

.ha-1 { top: 8%; left: 7%; transform: rotate(-16deg); animation-delay: -0.7s; }
.ha-2 { top: 18%; right: 9%; transform: rotate(12deg); animation-delay: -2.3s; }
.ha-3 { bottom: 12%; left: 12%; transform: rotate(9deg); animation-delay: -1.4s; }
.ha-4 { bottom: 8%; right: 13%; transform: rotate(-12deg); animation-delay: -3.1s; }
.ha-5 { top: 48%; left: 3%; transform: rotate(21deg); font-size: clamp(26px, 4vw, 54px); animation-delay: -2.8s; }

.transfer-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  text-align: center;
}

.transfer-kicker {
  margin: 0 0 13px;
  color: rgba(29, 26, 18, 0.58);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.laugh-stage {
  position: relative;
  width: min(316px, 61vw, 40vh);
  aspect-ratio: 1;
  margin: 0 auto 16px;
}

.laugh-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fffdf7, var(--cream) 68%, #f6e9c6);
  box-shadow: 9px 9px 0 rgba(29, 26, 18, 0.16);
}

.laugh-ring::before {
  content: "";
  position: absolute;
  inset: -15px;
  border: 1.5px dashed rgba(29, 26, 18, 0.38);
  border-radius: 50%;
  animation: ring-spin 11s linear infinite;
}

.laugh-ring::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(29, 26, 18, 0.16);
  border-radius: 50%;
}

.laugh-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 12px rgba(94, 65, 0, 0.16));
}

.ha-bubble {
  position: absolute;
  top: 12%;
  right: -18%;
  z-index: 4;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 18px 18px 18px 5px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 800;
  transform: rotate(8deg);
  animation: bubble-pop 1.15s ease-in-out infinite;
}

.ha-bubble::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -8px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  transform: rotate(45deg);
}

.transfer h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.transfer-status {
  min-height: 23px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(440px, 86vw);
  margin: 22px auto 0;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 15px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.62);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
  transition: width 0.05s linear;
}

.progress-track.is-stalled .progress-bar {
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0,
    var(--ink) 7px,
    var(--ink-soft) 7px,
    var(--ink-soft) 14px
  );
}

.progress-num {
  width: 49px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.transfer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(440px, 86vw);
  margin: 11px auto 0;
  color: rgba(29, 26, 18, 0.58);
  font-size: 10px;
  line-height: 1.4;
}

.sound-btn {
  appearance: none;
  flex: 0 0 auto;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 26, 18, 0.35);
  background: none;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
}

.sound-btn:hover,
.sound-btn:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 0;
  padding: 9px 14px;
  width: max-content;
  max-width: 100%;
  border: 1px dashed rgba(29, 26, 18, 0.43);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
}

.demo-bar[hidden] {
  display: none;
}

.demo-bar button {
  appearance: none;
  padding: 3px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.flash {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.11s ease;
}

.flash.is-on {
  opacity: 1;
}

/* ── Toast ────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 160;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── 动效 ─────────────────────────────────────────────── */

@keyframes cta-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.018; }
}

@keyframes cta-ping {
  0% { opacity: 0.38; transform: scale(1); }
  55%, 100% { opacity: 0; transform: scale(1.12, 1.38); }
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-8px) rotate(0.8deg); }
}

@keyframes bubble-pop {
  0%, 100% { transform: rotate(6deg) scale(1); }
  48% { transform: rotate(3deg) scale(1.05); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(24deg); }
}

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(1turn); }
}

@keyframes ring-spin {
  to { transform: rotate(1turn); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes live-ping {
  0% { opacity: 0.7; transform: scale(0.8); }
  75%, 100% { opacity: 0; transform: scale(2.2); }
}

@keyframes dialog-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes float-ha {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

/* ── 响应式 ───────────────────────────────────────────── */

@media (max-width: 1080px) {
  .page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .copy {
    order: 1;
    padding: 38px clamp(24px, 6vw, 54px) 34px;
  }

  .visual {
    order: 2;
    min-height: 410px;
    border-top: 1.5px solid var(--ink);
    border-left: 0;
  }

  .mascot-stage {
    width: min(330px, 48%);
  }

  .orbit {
    width: min(420px, 72%);
  }

  .visual-word {
    font-size: min(390px, 48vw);
  }

  .title-mark {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .shortcuts {
    gap: 11px;
  }

  .shortcut {
    padding: 13px 14px;
    gap: 10px;
  }

  .shortcut-main small {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 12px 14px 24px;
  }

  .topbar {
    gap: 12px;
    padding-bottom: 15px;
  }

  .brand-crest {
    width: 46px;
    height: 46px;
  }

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

  .brand-en {
    font-size: 7px;
    letter-spacing: 0.11em;
  }

  .portal-chip {
    padding: 8px 10px;
    font-size: 9px;
  }

  .chip-year {
    display: none;
  }

  .portal {
    border-radius: 25px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .portal-topline {
    min-height: 37px;
    gap: 10px;
    padding: 0 16px;
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  .topline-note {
    display: none;
  }

  .copy {
    padding: 28px 20px 26px;
  }

  .eyebrow {
    margin-bottom: 16px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .welcome {
    font-size: 18px;
  }

  h1 {
    margin-bottom: 19px;
    font-size: clamp(46px, 13.2vw, 68px);
    letter-spacing: -0.065em;
  }

  .title-mark {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .lede {
    max-width: 440px;
    font-size: 13px;
    line-height: 1.72;
  }

  .desktop-break {
    display: none;
  }

  .cta-block {
    margin-top: 23px;
  }

  .enter-btn {
    width: 100%;
    height: 63px;
    padding-left: 22px;
    font-size: 15px;
  }

  .enter-arrow {
    width: 39px;
    height: 39px;
  }

  .cta-note {
    margin-top: 13px;
    text-align: center;
    font-size: 11px;
  }

  .meta-row {
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 15px;
  }

  .stat {
    min-width: 0;
  }

  .stat-value {
    font-size: 19px;
  }

  .stat-label {
    font-size: 9px;
  }

  .visual {
    min-height: 355px;
  }

  .mascot-stage {
    width: min(280px, 70vw);
  }

  .orbit {
    display: none;
  }

  .visual-word {
    font-size: min(320px, 83vw);
  }

  .speech-bubble {
    right: -2%;
    top: 3%;
    padding: 8px 13px;
    font-size: 13px;
  }

  .admit-sticker {
    left: -3%;
    bottom: 15%;
    font-size: 9px;
  }

  .red-stamp {
    right: -1%;
    bottom: 4%;
    width: 69px;
    height: 69px;
    font-size: 10px;
  }

  .spark-a {
    left: 3%;
  }

  .visual-caption {
    bottom: 12px;
    font-size: 9px;
  }

  .news {
    height: 48px;
  }

  .news-label {
    padding: 0 14px;
    font-size: 9px;
  }

  .news-item {
    gap: 24px;
    font-size: 10px;
  }

  .news-track {
    gap: 24px;
    padding-left: 24px;
    animation-duration: 27s;
  }

  .shortcuts {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  .shortcut {
    min-height: 64px;
    border-radius: 16px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .shortcut-main small {
    white-space: nowrap;
  }

  .footer {
    display: block;
    padding-top: 18px;
    font-size: 9px;
  }

  .footer-right {
    justify-content: space-between;
    margin-top: 6px;
  }

  .about {
    border-radius: 20px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .about-body {
    padding: 23px 20px 19px;
  }

  .transfer {
    padding: 14px;
  }

  .laugh-stage {
    width: min(278px, 68vw, 40vh);
    margin-bottom: 13px;
  }

  .ha-bubble {
    right: -8%;
    font-size: 12px;
  }

  .transfer h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .transfer-status {
    font-size: 12px;
  }

  .progress-wrap {
    width: min(400px, 88vw);
    margin-top: 18px;
  }

  .transfer-foot {
    width: min(400px, 88vw);
  }

  .transfer-foot > span {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand-crest {
    width: 41px;
    height: 41px;
  }

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

  .brand-en {
    display: none;
  }

  .portal-chip {
    padding: 7px 9px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .copy {
    padding: 24px 17px 22px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .welcome {
    font-size: 16px;
  }

  .visual {
    min-height: 320px;
  }

  .mascot-stage {
    width: min(258px, 74vw);
  }

  .admit-sticker {
    left: 0;
    bottom: 12%;
  }

  .speech-bubble {
    right: 0;
  }

  .transfer-kicker {
    font-size: 8px;
    letter-spacing: 0.13em;
  }

  .laugh-stage {
    width: min(248px, 66vw, 40vh);
  }

  .transfer-foot > span {
    display: none;
  }

  .transfer-foot {
    justify-content: center;
  }

  .demo-bar {
    font-size: 9px;
    gap: 7px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .enter-btn {
    animation: none;
  }

  .news-track {
    animation: none;
    overflow-x: auto;
  }
}
