/* Jack Hu · immersive landing */

body.lms-at {
  --at-bg: #0a0520;
  --at-fg: #ffffff;
  --at-dim: rgba(255, 255, 255, 0.62);
  --at-accent: #a855f7;
  --at-neon-cyan: #22d3ee;
  --at-neon-pink: #f472b6;
  --at-neon-lime: #a3e635;
  --at-mint: #2dd4bf;
  --at-mint-bright: #5eead4;
  --at-x-blue: #38bdf8;
  --at-tg-blue: #0ea5e9;
  --at-line: rgba(255, 255, 255, 0.14);
  --at-ease: cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0;
  background: var(--at-bg);
  color: var(--at-fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow: hidden;
  cursor: auto;
}

body.lms-at.at-custom-cursor {
  cursor: none;
}

body.lms-at:not(.at-ready),
body.lms-at:not(.at-ready) .at-loader-enter {
  cursor: pointer !important;
}

body.lms-at.at-ready {
  overflow: auto;
  overflow-x: hidden;
}

body.lms-at.at-ready.at-home-geo {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 100%;
  height: auto;
}

html.lenis {
  height: auto;
}

html.lenis body.lms-at.at-ready {
  overflow: visible;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body.lms-at a {
  color: inherit;
  text-decoration: none;
}

body.lms-at.at-ready .at-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loader */
.at-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--at-bg);
  transition: opacity 0.9s var(--at-ease), visibility 0.9s;
}

/* Mascot avatar */
.at-avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(110, 231, 183, 0.35), rgba(196, 181, 253, 0.25));
  box-shadow:
    0 0 0 3px rgba(110, 231, 183, 0.45),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.at-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* 原图底部带 baked-in 文案，开屏圆裁切只露猫脸 */
.at-loader .at-avatar img {
  object-position: center 14%;
  transform: scale(1.22);
}

.at-avatar-lg {
  width: clamp(100px, 22vw, 140px);
  height: clamp(100px, 22vw, 140px);
  animation: at-avatar-bob 3.5s ease-in-out infinite;
}

.at-avatar-md {
  width: clamp(88px, 18vw, 112px);
  height: clamp(88px, 18vw, 112px);
}

.at-avatar-xs {
  width: 32px;
  height: 32px;
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.5);
}

.at-avatar-float {
  animation: at-avatar-bob 4s ease-in-out infinite;
}

@keyframes at-avatar-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.at-panel-with-avatar {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}

.at-loader-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--at-dim);
  text-align: center;
  max-width: 20rem;
  line-height: 1.5;
}

.at-loader-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.5rem);
  letter-spacing: 0.04em;
  text-transform: none;
  line-height: 1;
  background: linear-gradient(100deg, #fff 0%, var(--at-neon-cyan) 45%, var(--at-neon-pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.at-loader-bar {
  width: min(200px, 40vw);
  height: 1px;
  background: var(--at-line);
  overflow: hidden;
}

.at-loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--at-neon-cyan), var(--at-neon-pink), var(--at-accent));
  transition: width 0.2s ease;
}

.at-loader-enter {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.55s, transform 0.55s var(--at-ease);
}

.at-loader-enter.at-visible {
  opacity: 1;
  transform: none;
  animation: at-enter-pulse 2.2s ease-in-out infinite;
}

@keyframes at-enter-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55), 0 10px 36px rgba(244, 114, 182, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(34, 211, 238, 0), 0 14px 48px rgba(168, 85, 247, 0.55);
  }
}

/* Buttons */
.at-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: none;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--at-ease), filter 0.2s, box-shadow 0.2s;
}

.at-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

.at-btn:active {
  transform: scale(0.98);
}

.at-btn-label {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  letter-spacing: 0.12em;
}

.at-btn-hint {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.at-btn-enter {
  min-width: min(320px, 88vw);
  padding: 1.15rem 2.5rem 1rem;
  color: #0a0520;
  background: linear-gradient(120deg, var(--at-neon-lime) 0%, var(--at-neon-cyan) 48%, var(--at-neon-pink) 100%);
  box-shadow: 0 10px 40px rgba(34, 211, 238, 0.45);
  cursor: pointer;
}

body.lms-at .at-loader .at-btn-enter {
  cursor: pointer;
}

.at-btn-sm {
  flex-direction: row;
  padding: 0.55rem 1.1rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.at-btn-sm:not(.at-btn-x):not(.at-btn-tg):hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(94, 234, 212, 0.45);
  color: #fff;
}

.at-btn-lg {
  flex-direction: row;
  gap: 0.65rem;
  padding: 1rem 1.65rem;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  letter-spacing: 0.04em;
  color: #fff;
}

.at-btn-x {
  background: var(--at-x-blue);
  box-shadow: 0 4px 20px rgba(29, 155, 240, 0.45);
}

.at-btn-tg {
  background: linear-gradient(135deg, var(--at-tg-blue), #2aabee);
  box-shadow: 0 4px 20px rgba(34, 158, 217, 0.4);
}

.at-hero-meta {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s 0.28s var(--at-ease), transform 0.85s 0.28s var(--at-ease);
}

.at-panel.at-inview .at-hero-meta {
  opacity: 1;
  transform: none;
}

.at-hero-team {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.at-brand-mark {
  background: linear-gradient(105deg, var(--at-neon-cyan), var(--at-neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35));
}

.at-hero-team-suffix {
  color: var(--at-fg);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.72em;
}

.at-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.at-hero-tags li {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0f2fe;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(10, 5, 32, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.06);
}

.at-hero-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--at-dim);
  letter-spacing: 0.04em;
}

.at-hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s 0.4s var(--at-ease), transform 0.85s 0.4s var(--at-ease);
}

.at-panel.at-inview .at-hero-social {
  opacity: 1;
  transform: none;
}

.at-hero-social-cards {
  gap: 0.75rem;
  max-width: 28rem;
}

.at-social-card {
  flex: 1 1 9.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s var(--at-ease), box-shadow 0.2s, border-color 0.2s;
}

.at-social-card:hover {
  transform: translateY(-3px);
}

.at-social-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

.at-social-handle {
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.at-social-x {
  background: linear-gradient(145deg, rgba(29, 155, 240, 0.95), rgba(14, 116, 214, 0.85));
  box-shadow: 0 8px 28px rgba(29, 155, 240, 0.35);
}

.at-social-x:hover {
  box-shadow: 0 12px 36px rgba(29, 155, 240, 0.5);
  border-color: rgba(255, 255, 255, 0.25);
}

.at-social-tg {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.95), rgba(34, 211, 238, 0.75));
  box-shadow: 0 8px 28px rgba(34, 158, 217, 0.35);
}

.at-social-tg:hover {
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.45);
  border-color: rgba(255, 255, 255, 0.25);
}

.at-hero-social-lg {
  margin-top: 2.5rem;
}

.at-hero-social .at-arrow {
  font-size: 1.1em;
}

/* Cursor · 不用 mix-blend，避免在深色背景上「消失」 */
.at-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--at-neon-cyan, #22d3ee);
  background: rgba(244, 114, 182, 0.45);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.75), 0 0 4px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 100002;
  opacity: 0;
  transition: width 0.2s var(--at-ease), height 0.2s var(--at-ease), opacity 0.25s;
}

body.lms-at.at-custom-cursor .at-cursor {
  opacity: 1;
}

.at-cursor.at-hover {
  width: 36px;
  height: 36px;
  background: rgba(34, 211, 238, 0.2);
  border-color: var(--at-neon-pink, #f472b6);
}

@media (prefers-reduced-motion: reduce) {
  body.lms-at {
    cursor: auto;
  }
  .at-cursor {
    display: none;
  }
}

.at-bg-neon {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(160deg, #1e0a4a 0%, #0a0520 40%, #061528 100%);
}

.at-bg-neon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 120deg at 50% 50%, rgba(34, 211, 238, 0.12), rgba(244, 114, 182, 0.14), rgba(163, 230, 53, 0.08), rgba(34, 211, 238, 0.12));
  animation: at-neon-spin 24s linear infinite;
  opacity: 0.9;
}

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

body.lms-at.at-lite .at-bg-neon::after {
  animation-duration: 48s;
}

.at-aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 20% 28%, rgba(34, 211, 238, 0.35), transparent 58%),
    radial-gradient(ellipse 48% 40% at 78% 22%, rgba(244, 114, 182, 0.32), transparent 55%),
    radial-gradient(ellipse 65% 50% at 55% 85%, rgba(168, 85, 247, 0.28), transparent 58%),
    radial-gradient(ellipse 40% 35% at 90% 70%, rgba(163, 230, 53, 0.18), transparent 50%);
  filter: blur(42px);
  animation: at-aurora-drift 14s ease-in-out infinite alternate;
  will-change: transform;
  mix-blend-mode: screen;
}

@keyframes at-aurora-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-2%, 1.5%) scale(1.05);
  }
}

body.lms-at.at-lite .at-aurora {
  animation: none;
  filter: blur(56px);
}

body.lms-at.at-lite.at-home-geo .at-aurora {
  animation: at-aurora-drift 22s ease-in-out infinite alternate;
  filter: blur(52px);
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  body.lms-at.at-lite.at-home-geo .at-aurora,
  body.lms-at.at-lite .at-bg-neon::after {
    animation: none;
  }
}

#at-webgl {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  filter: saturate(1.45) brightness(1.12) contrast(1.06);
}

.at-scroll-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: 2px;
  background: var(--at-line);
  pointer-events: none;
}

.at-scroll-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--at-neon-cyan), var(--at-neon-pink));
  transform-origin: left center;
  transition: width 0.08s linear;
}

.at-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 42%, rgba(10, 5, 32, 0.55) 100%);
}

/* Main content must sit above fixed neon/aurora (otherwise pages look blank) */
body.lms-at > main,
body.lms-at > .at-help-shell {
  position: relative;
  z-index: 2;
}

/* Header */
.at-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.85rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 5, 32, 0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}

.at-header-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: none;
}

body.lms-at:not(.at-ready) .at-bg-neon::after,
body.lms-at:not(.at-ready) .at-aurora {
  animation: none !important;
}

body.lms-at:not(.at-ready) #at-webgl {
  visibility: hidden;
}

body.lms-at.at-booting #at-webgl {
  visibility: visible;
  opacity: 0;
}

body.lms-at.at-webgl-ready #at-webgl {
  opacity: 1;
  transition: opacity 0.5s ease;
}

#at-webgl {
  transition: opacity 0.5s ease;
}

.at-header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.65rem, 1.8vw, 1.35rem) clamp(0.85rem, 2.2vw, 1.75rem);
  font-size: clamp(10px, 0.35vw + 9px, 12px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (min-width: 960px) {
  .at-header-nav a.at-nav-facts {
    font-size: 12px;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.15rem;
    opacity: 0.88;
    transition: opacity 0.2s, color 0.2s;
  }

  .at-header-nav a.at-nav-facts:hover,
  .at-header-nav a.at-nav-active {
    opacity: 1;
  }
}

.at-header-nav {
  align-items: center;
}

.at-lang-wrap {
  display: flex;
  align-items: center;
}

.at-lang-select {
  appearance: none;
  padding: 0.45rem 1.6rem 0.45rem 0.65rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #e0f2fe;
  background: rgba(10, 5, 32, 0.85)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath stroke='%2322d3ee' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 0.45rem center;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  cursor: pointer;
}

html[dir='rtl'] .at-header-nav {
  flex-direction: row-reverse;
}

html[dir='rtl'] .at-panel-inner,
html[dir='rtl'] .at-hero-meta {
  text-align: right;
}

.at-audio-toggle {
  position: fixed;
  left: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 100003;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(10, 5, 32, 0.78);
  backdrop-filter: blur(10px);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.2);
  transition: transform 0.2s, border-color 0.2s, opacity 0.2s;
}

.at-audio-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.55);
}

.at-audio-toggle.at-audio-off {
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.15);
}

.at-audio-icon {
  font-size: 14px;
  color: var(--at-neon-cyan, #22d3ee);
}

html[dir='rtl'] .at-audio-toggle {
  left: auto;
  right: clamp(1rem, 3vw, 1.5rem);
}

.at-header-nav a:not(.at-btn) {
  opacity: 0.75;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.25s, color 0.25s;
}

.at-header-nav a:not(.at-btn):hover {
  opacity: 1;
  color: var(--at-mint-bright);
}

/* Scroll progress */
.at-progress {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.at-progress-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.4s var(--at-ease), background 0.4s;
}

.at-progress-dot.at-active {
  transform: scale(1.8);
  background: var(--at-fg);
}

/* Sections */
.at-main {
  position: relative;
  z-index: 2;
}

.at-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.5rem, 6vw, 5rem);
  box-sizing: border-box;
}

.at-panel-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  will-change: transform;
}

.at-index {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--at-dim);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--at-ease), transform 1.2s var(--at-ease);
}

.at-panel.at-inview .at-index {
  opacity: 1;
  transform: none;
}

.at-headline {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
}

.at-headline .at-line {
  display: block;
  overflow: hidden;
}

.at-headline .at-line-inner {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 1.1s var(--at-ease), opacity 0.8s;
}

.at-panel.at-inview .at-line-inner {
  opacity: 1;
  transform: none;
}

.at-panel.at-inview .at-line:nth-child(1) .at-line-inner {
  transition-delay: 0.05s;
}
.at-panel.at-inview .at-line:nth-child(2) .at-line-inner {
  transition-delay: 0.12s;
}
.at-panel.at-inview .at-line:nth-child(3) .at-line-inner {
  transition-delay: 0.2s;
}

.at-headline em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--at-neon-cyan);
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.65));
}

.at-sub {
  margin-top: 2rem;
  max-width: 28rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  color: var(--at-dim);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s 0.25s var(--at-ease), transform 0.9s 0.25s var(--at-ease);
}

.at-panel.at-inview .at-sub {
  opacity: 1;
  transform: none;
}

.at-sub-tight {
  margin-top: 1rem;
  max-width: 32rem;
}

.at-sub strong {
  color: rgba(245, 245, 247, 0.88);
  font-weight: 600;
}

.at-pills-compliance .at-pill {
  border-color: rgba(29, 155, 240, 0.35);
  background: rgba(29, 155, 240, 0.1);
  color: #93c5fd;
}

/* Pill row */
.at-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s 0.35s, transform 0.8s 0.35s var(--at-ease);
}

.at-panel.at-inview .at-pills {
  opacity: 1;
  transform: none;
}

.at-pill {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  background: rgba(244, 114, 182, 0.12);
  color: #e0f2fe;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

/* Marquee */
.at-marquee-wrap {
  position: relative;
  z-index: 2;
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--at-line);
  border-bottom: 1px solid var(--at-line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.at-marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: at-marquee 38s linear infinite;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.at-marquee span.at-hot {
  color: var(--at-neon-cyan);
  text-shadow: 0 0 24px rgba(34, 211, 238, 0.55);
}

@keyframes at-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.at-footer {
  position: relative;
  z-index: 2;
  padding: 2rem clamp(1.5rem, 6vw, 5rem) 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--at-dim);
  border-top: 1px solid var(--at-line);
}

.at-guide-index {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem 0;
  font-family: var(--at-font, system-ui, sans-serif);
  color: var(--at-dim, #94a3b8);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.at-guide-index-title {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--at-mint-bright, #5eead4);
}

.at-guide-index-lead {
  margin: 0 0 0.65rem;
}

.at-guide-index-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.at-guide-index-links a {
  color: var(--at-mint-bright, #5eead4);
  font-weight: 500;
  text-decoration: none;
}

.at-guide-index-links a:hover {
  text-decoration: underline;
}

.at-seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.at-footer a {
  color: var(--at-mint-bright);
  font-weight: 600;
}

.at-nav-toggle {
  display: none;
}

@media (max-width: 767px) {
  .at-progress {
    display: none;
  }

  body.lms-at.at-nav-open {
    overflow: hidden;
  }

  body.lms-at.at-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 48;
    background: rgba(2, 6, 23, 0.55);
  }

  .at-header {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .at-header-mark {
    min-width: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .at-header-mark .at-avatar-xs {
    width: 28px;
    height: 28px;
  }

  .at-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 12px;
    background: rgba(10, 5, 32, 0.85);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .at-nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: #e0f2fe;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  body.at-nav-open .at-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.at-nav-open .at-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.at-nav-open .at-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .at-header-nav {
    position: fixed;
    z-index: 49;
    top: calc(env(safe-area-inset-top, 0px) + 3.35rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 3.35rem - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding: 0.35rem max(1rem, env(safe-area-inset-right)) 1.25rem max(1rem, env(safe-area-inset-left));
    background: rgba(10, 5, 32, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(-108%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
      opacity 0.28s ease;
  }

  .at-header-nav.at-nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .at-header-nav .at-lang-wrap {
    width: 100%;
    padding: 0.65rem 0 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .at-header-nav .at-lang-select {
    width: 100%;
    max-width: none;
    min-height: 44px;
    font-size: 13px;
  }

  .at-header-nav a.at-nav-facts {
    display: block;
    width: 100%;
    padding: 0.85rem 0.35rem;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: none;
    opacity: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .at-header-nav .at-nav-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.25rem;
  }

  .at-header-nav .at-nav-social .at-btn-sm {
    flex: 1 1 0;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    font-size: 11px;
  }
}

@media (min-width: 768px) {
  .at-header-nav .at-nav-social {
    display: contents;
  }
}

/* 平板：顶栏链接横向滑动，避免 iPad 竖屏挤换行 */
@media (min-width: 768px) and (max-width: 1199px) {
  .at-header {
    gap: 0.65rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .at-header-mark {
    flex-shrink: 0;
  }

  .at-header-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-end;
    gap: 0.5rem 0.65rem;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  .at-header-nav::-webkit-scrollbar {
    display: none;
  }

  .at-header-nav a.at-nav-facts {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 10px;
    letter-spacing: 0.07em;
    padding: 0.35rem 0.25rem;
    text-transform: none;
  }

  .at-header-nav .at-lang-wrap {
    flex-shrink: 0;
  }

  .at-header-nav .at-lang-select {
    max-width: 6.5rem;
    font-size: 10px;
  }

  .at-header-nav .at-btn-sm {
    flex-shrink: 0;
    padding: 0.45rem 0.65rem;
    font-size: 10px;
  }
}

/* Pulse site: hide legacy neon/aurora on first paint (immersive /experience keeps #at-webgl) */
body.lms-at:not(.lms-vibe):not(.at-pulse-off):not(:has(#at-webgl)) {
  background: #030712;
  --at-bg: #030712;
}

body.lms-at:not(.lms-vibe):not(.at-pulse-off):not(:has(#at-webgl)) .at-bg-neon,
body.lms-at:not(.lms-vibe):not(.at-pulse-off):not(:has(#at-webgl)) .at-aurora {
  display: none !important;
  visibility: hidden !important;
  animation: none !important;
  opacity: 0 !important;
}
