:root {
  --bg: #050303;
  --bg-soft: #120907;
  --panel: rgba(15, 10, 8, 0.82);
  --panel-soft: rgba(8, 6, 5, 0.54);
  --line: rgba(255, 208, 134, 0.22);
  --gold: #f6cb79;
  --gold-bright: #ffe3a3;
  --orange: #ff6a1a;
  --orange-strong: #ff3c0d;
  --text: #f8efe1;
  --muted: rgba(248, 239, 225, 0.82);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 96, 25, 0.16), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(74, 176, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #040202 0%, #090505 32%, #0d0705 62%, #030202 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 86%);
}

body::after {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 229, 170, 0.12), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(255, 81, 24, 0.1), transparent 22%),
    radial-gradient(circle at 88% 80%, rgba(101, 191, 255, 0.08), transparent 18%);
}

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

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

.page-shell {
  position: relative;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 48px) 0;
  background:
    linear-gradient(90deg, rgba(4, 3, 3, 0.94) 8%, rgba(4, 3, 3, 0.68) 36%, rgba(6, 4, 4, 0.18) 64%, rgba(5, 4, 4, 0.64) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(3, 2, 2, 0.8)),
    url("./tup/log.png") center top / cover no-repeat;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  top: -12%;
  right: -12%;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(103, 196, 255, 0.24), transparent 62%);
  filter: blur(28px);
  animation: drift 10s ease-in-out infinite alternate;
}

.hero::after {
  left: -10%;
  bottom: -12%;
  width: 40rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(255, 102, 18, 0.24), transparent 68%);
  filter: blur(22px);
  animation: drift 11s ease-in-out infinite alternate-reverse;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 12px 28px;
  border: 1px solid rgba(255, 214, 146, 0.16);
  border-radius: 999px;
  background: rgba(9, 7, 6, 0.46);
  backdrop-filter: blur(10px);
}

.brand {
  flex: 0 0 auto;
  width: clamp(150px, 18vw, 220px);
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  color: rgba(255, 240, 216, 0.92);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topbar-links a {
  position: relative;
  padding-bottom: 5px;
}

.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.topbar-links a:hover::after {
  transform: scaleX(1);
}

.topbar-cta,
.backtop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(255, 214, 146, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(135deg, #ff9738, #dc3208);
  color: #fff4df;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 34px rgba(216, 64, 14, 0.26);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.topbar-cta:hover,
.backtop:hover,
.hero-action:hover,
.floating-link:hover,
.download-link:hover,
.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  max-width: 1500px;
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: clamp(100px, 18vh, 180px) 0 90px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "STZhongsong", "SimHei", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(68px, 10vw, 132px);
  line-height: 0.92;
  color: #fff3dc;
  text-shadow:
    0 4px 0 rgba(78, 32, 0, 0.84),
    0 12px 30px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(255, 192, 113, 0.22);
  -webkit-text-stroke: 1px rgba(128, 52, 6, 0.88);
}

.hero-blast {
  margin: 18px 0 0;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: transparent;
  background: linear-gradient(180deg, #fff9da 0%, #ffd47e 34%, #ff7a24 100%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 28px rgba(255, 125, 34, 0.18);
}

.hero-slogans {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.hero-slogans span,
.download-notes span {
  padding: 12px 20px;
  border: 1px solid rgba(255, 214, 146, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 112, 34, 0.18), rgba(0, 0, 0, 0.46));
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-warcry,
.section-intro,
.feature-line span,
.media-card figcaption span,
.floating-link span,
.download-link span,
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-warcry {
  max-width: 32em;
  margin: 0;
  font-size: clamp(17px, 1.8vw, 22px);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-action,
.floating-link,
.download-link {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 146, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-action::before,
.floating-link::before,
.download-link::before {
  content: "";
  position: absolute;
  top: -40%;
  right: 12%;
  width: 120px;
  height: 220px;
  rotate: 18deg;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0.5;
}

.hero-action {
  min-width: 220px;
  padding: 18px 24px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(24, 16, 13, 0.92), rgba(90, 28, 16, 0.84));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.hero-action strong,
.floating-link strong,
.download-link strong,
.media-card figcaption strong,
.feature-line strong {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hero-action span,
.download-link span,
.floating-link span {
  position: relative;
  z-index: 1;
  font-size: 14px;
}

.hero-action-hot,
.download-link-hot {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(123, 25, 7, 0.98), rgba(255, 100, 25, 0.92));
}

.hero-action-charge,
.download-link-charge,
.floating-link-hot {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(138, 37, 8, 0.98), rgba(255, 150, 52, 0.92));
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.hero-bottom p {
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 215, 149, 0.18);
  color: #ffe9bf;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 900;
  line-height: 1.5;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.44);
}

.ticker {
  position: relative;
  margin-inline: calc(clamp(18px, 4vw, 48px) * -1);
  border-top: 1px solid rgba(255, 214, 146, 0.12);
  border-bottom: 1px solid rgba(255, 214, 146, 0.12);
  background: linear-gradient(180deg, rgba(255, 116, 42, 0.12), rgba(8, 6, 5, 0.88));
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 18px 0;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  color: #ffe7bc;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.floating-bar {
  position: fixed;
  top: 138px;
  right: clamp(12px, 2vw, 26px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(220px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(255, 214, 146, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    rgba(10, 7, 6, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

.floating-head {
  padding: 6px 8px 8px;
  border-bottom: 1px solid rgba(255, 214, 146, 0.12);
}

.floating-head img {
  width: 130px;
}

.floating-head p {
  margin: 8px 0 0;
  color: rgba(255, 240, 220, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.floating-link {
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(20, 13, 10, 0.98), rgba(86, 25, 15, 0.88));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.backtop {
  width: 100%;
  margin-top: 2px;
  cursor: pointer;
}

.section {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(76px, 10vw, 118px) clamp(18px, 4vw, 48px) 0;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(34px, 4.1vw, 60px);
  line-height: 1.14;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

.section-intro {
  max-width: 44em;
  margin: 18px 0 0;
  font-size: 18px;
}

.feature-lines {
  border-top: 1px solid rgba(255, 214, 146, 0.18);
  border-bottom: 1px solid rgba(255, 214, 146, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(180deg, rgba(255, 129, 49, 0.08), rgba(9, 6, 5, 0.64));
  box-shadow: var(--shadow);
}

.feature-line {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 214, 146, 0.12);
}

.feature-line:last-child {
  border-bottom: 0;
}

.feature-line strong {
  padding-left: 10px;
  color: var(--gold-bright);
  font-size: clamp(22px, 2.2vw, 30px);
}

.feature-line span {
  font-size: 18px;
}

.war-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 38px;
  margin-top: 30px;
}

.war-lines p {
  margin: 0;
  color: #ffe5b6;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.45;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.media-grid {
  display: grid;
  gap: 22px;
}

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

.media-grid-arsenal .media-card:nth-child(1),
.media-grid-arsenal .media-card:nth-child(2),
.media-grid-arsenal .media-card:nth-child(5),
.media-grid-arsenal .media-card:nth-child(6) {
  grid-column: span 6;
}

.media-grid-arsenal .media-card:nth-child(3) {
  grid-column: span 7;
}

.media-grid-arsenal .media-card:nth-child(4) {
  grid-column: span 5;
}

.media-grid-feedback {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
}

.media-grid-feedback .media-card-tall {
  grid-column: span 5;
  grid-row: span 2;
}

.media-grid-feedback .media-card:not(.media-card-tall) {
  grid-column: span 7;
}

.media-grid-feedback .media-card:nth-child(4),
.media-grid-feedback .media-card:nth-child(5) {
  grid-column: span 6;
}

.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 146, 0.16);
  border-radius: 28px;
  background: #090705;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.media-card > img:last-child,
.media-card > img:nth-last-child(2) {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.media-card-tall > img:last-child,
.media-card-tall > img:nth-last-child(2) {
  min-height: 100%;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.92));
}

.logo-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: clamp(120px, 12vw, 168px);
  pointer-events: none;
}

.logo-badge::before,
.logo-badge::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.logo-badge::before {
  top: -12px;
  left: -18px;
  width: 180px;
  height: 120px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 246, 194, 0.82), transparent 18%),
    radial-gradient(circle at 52% 38%, rgba(255, 210, 108, 0.62), transparent 26%),
    radial-gradient(circle at 60% 64%, rgba(255, 164, 55, 0.32), transparent 46%);
  filter: blur(8px);
  mix-blend-mode: screen;
}

.logo-badge::after {
  top: 12px;
  left: 24px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 214, 108, 0.6) 36%, transparent 70%);
  filter: blur(2px);
  opacity: 0.72;
  animation: sparkle 2.8s ease-in-out infinite alternate;
}

.logo-badge img {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 12px 20px rgba(0, 0, 0, 0.44))
    drop-shadow(0 0 22px rgba(255, 198, 97, 0.28));
}

.media-card figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 24px 26px 26px;
}

.media-card figcaption strong {
  margin-bottom: 10px;
  font-size: clamp(22px, 2.1vw, 30px);
}

.media-card figcaption span {
  font-size: 15px;
}

.download-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.download-link {
  min-height: 170px;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(19, 13, 10, 0.98), rgba(78, 22, 12, 0.9));
  box-shadow: var(--shadow);
}

.download-link strong {
  font-size: 28px;
  margin-bottom: 10px;
}

.download-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.download-notes span {
  font-size: 16px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 1440px;
  margin: 86px auto 44px;
  padding: 0 clamp(18px, 4vw, 48px);
}

.site-footer img {
  width: 172px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.44));
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(20px, -22px, 0) scale(1.08);
  }
}

@keyframes sparkle {
  from {
    transform: scale(0.9);
    opacity: 0.48;
  }
  to {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

@media (max-width: 1280px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .download-strip {
    grid-template-columns: 1fr 1fr;
  }

  .media-grid-arsenal .media-card,
  .media-grid-feedback .media-card,
  .media-grid-feedback .media-card-tall {
    grid-column: span 6;
    grid-row: span 1;
  }
}

@media (max-width: 1080px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .topbar-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-line {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .floating-bar {
    top: auto;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding-inline: 14px;
  }

  .hero-inner {
    align-items: center;
    min-height: calc(100vh - 120px);
    padding-top: 80px;
    padding-bottom: 70px;
  }

  .hero-actions,
  .download-strip,
  .media-grid-arsenal,
  .media-grid-feedback {
    grid-template-columns: 1fr;
  }

  .download-strip {
    display: grid;
  }

  .media-grid-arsenal .media-card,
  .media-grid-feedback .media-card,
  .media-grid-feedback .media-card-tall {
    grid-column: span 12;
  }

  .floating-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-height: min(46vh, 430px);
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 60px;
  }

  .hero-blast {
    font-size: 34px;
  }

  .hero-action {
    min-width: 100%;
  }

  .section {
    padding-inline: 14px;
  }

  .topbar {
    padding-inline: 16px;
  }

  .topbar-links {
    gap: 12px 18px;
    font-size: 13px;
  }

  .media-card > img:last-child,
  .media-card > img:nth-last-child(2) {
    min-height: 260px;
  }

  .logo-badge {
    width: 110px;
  }
}
