:root {
  --bg: #000;
  --gold: #ffdc53;
  --gold-soft: rgba(255, 220, 83, 0.55);
  --text: #f7f2e7;
  --muted: rgba(247, 242, 231, 0.78);
  --card: #10100e;
  --radius: 22px;
  /* 原站主视觉比例 */
  --hero-ratio: 26 / 35;
  /* 原站底栏轮播卡：宽 clamp(150px,43vw,184px)，高约 121px */
  --rail-card-w: clamp(150px, 43vw, 184px);
  --rail-card-h: 121px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 500 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.home {
  position: relative;
  min-height: 100svh;
  padding:
    max(12px, env(safe-area-inset-top))
    14px
    max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.home.is-leaving {
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}

.home-top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 10px;
}
.home-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home-locale,
.locale-switch.home-locale {
  appearance: none;
  border: 1px solid rgba(255, 220, 83, 0.35);
  border-radius: 999px;
  background: rgba(17, 15, 10, 0.72);
  color: #e8ddc5;
  padding: 8px 10px;
  font: 750 11px/1 system-ui, sans-serif;
  cursor: pointer;
  max-width: 7.5rem;
}
.home-pill {
  appearance: none;
  border: 1px solid rgba(255, 220, 83, 0.35);
  border-radius: 999px;
  background: rgba(17, 15, 10, 0.72);
  color: #ffdc53;
  padding: 8px 12px;
  font: 750 12px/1 system-ui, sans-serif;
  cursor: pointer;
}
.home-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--gold);
  font: 800 13px/1 "Arial Black", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
}

.home-hero {
  position: relative;
  z-index: 2;
}
.home-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0a0908;
  aspect-ratio: var(--hero-ratio);
  max-width: 430px;
  margin: 0 auto;
  max-height: 72svh;
}
.home-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #0a0908;
}
.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.08) 68%, transparent 100%),
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 28%, transparent 58%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.home-copy {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  top: 18px;
  max-width: 280px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold);
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
}
.home-kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}
.home-copy h1 {
  margin: 0;
  font: 800 clamp(34px, 9vw, 48px)/1.02 "PingFang SC", "Helvetica Neue", sans-serif;
  letter-spacing: -0.03em;
}
.home-copy h1 em {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-style: italic;
  font-weight: 700;
}
.home-lead {
  margin: 14px 0 0;
  max-width: 15em;
  color: var(--muted);
  font: 500 12px/1.55 system-ui, sans-serif;
}
.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.55);
  color: #fff;
  font: 700 12px/1 system-ui, sans-serif;
  backdrop-filter: blur(10px);
}
.home-cta::after {
  content: "↗";
  color: var(--gold);
  font-weight: 700;
}

/* 底栏轮播：尺寸对齐原站 sh-floor 移动端卡；用 transform 从右往左滚 */
.home-strip {
  position: relative;
  z-index: 3;
  width: calc(100% + 28px);
  margin-top: -28px;
  margin-left: -14px;
  margin-right: -14px;
  padding: 9px 0 8px;
  overflow: hidden;
}
.home-strip-track {
  display: flex;
  gap: 9px;
  width: max-content;
  padding: 0 12px 6px;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.home-card {
  position: relative;
  flex: 0 0 var(--rail-card-w);
  width: var(--rail-card-w);
  height: var(--rail-card-h);
  min-height: var(--rail-card-h);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(35, 31, 26, 0.84), rgba(9, 9, 8, 0.9));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}
.home-card-media,
.home-card-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0908;
}
.home-card video.home-card-media {
  opacity: 0.88;
  z-index: 0;
}
.home-card-fallback {
  z-index: 0;
}
.home-card-fallback[hidden] {
  display: none !important;
}
.home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.9));
  pointer-events: none;
}
.home-card-meta {
  position: absolute;
  z-index: 2;
  left: 11px;
  right: 11px;
  bottom: 10px;
  display: grid;
  gap: 3px;
}
.home-card-meta small {
  color: var(--gold);
  font: 850 8px/1.2 system-ui, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.home-card-meta strong {
  overflow: hidden;
  color: #fff;
  font: 850 11px/1.15 system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-card-meta span {
  color: #c9c1b3;
  font: 500 8px/1.3 system-ui, sans-serif;
}

.home-cue {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: rgba(232, 221, 197, 0.9);
  cursor: pointer;
  letter-spacing: 0.16em;
  font: 650 11px/1 system-ui, sans-serif;
}
.home-cue i {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.85;
  animation: home-cue 1.25s ease-in-out infinite;
}
@keyframes home-cue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.35; }
  50% { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

@media (min-width: 760px) {
  .home {
    max-width: 430px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cue i { animation: none; }
  .home.is-leaving { transition: none; }
}

.age-gate{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;padding:20px;background:#050505e6}
.age-gate[hidden]{display:none!important}
.age-card{width:min(420px,100%);border:1px solid rgba(255,220,83,.3);border-radius:16px;background:#14120e;padding:22px 18px;color:#f3eee2}
.age-card h2{margin:0 0 8px;color:#ffdc53;font:800 20px/1.3 Georgia,serif}
.age-card p{margin:0 0 16px;color:#b8b2a5;font:600 13px/1.5 system-ui}
.age-actions{display:flex;gap:8px}
.age-actions .ta-primary{flex:1;border:0;border-radius:999px;background:#ffdc53;color:#111;padding:12px;font:800 13px/1 system-ui}
.age-actions .ta-ghost{flex:1;border:1px solid #444;border-radius:999px;background:transparent;color:#ddd;padding:12px;font:700 13px/1 system-ui}
