:root {
  --bg: #06070c;
  --ink: #f4f2fb;
  --ink-dim: rgba(244, 242, 251, .64);
  --ink-faint: rgba(244, 242, 251, .38);
  --brand: #9959f4;
  --brand-soft: #b98cff;
  --line: rgba(255, 255, 255, .08);
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

html, body { min-height: 100%; }

body {
  max-width: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* 背景光晕与网格 */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(58vmax 42vmax at 22% 6%, rgba(153, 89, 244, .26), transparent 62%),
    radial-gradient(46vmax 34vmax at 90% 96%, rgba(125, 89, 206, .2), transparent 66%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 8%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 40%, #000 8%, transparent 70%);
  opacity: .3;
}

/* 顶栏 */
header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 34px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 22px rgba(153, 89, 244, .3);
  flex: 0 0 auto;
}

.brand-name {
  min-width: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-name small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--ink-faint);
}

/* 语言切换（指向 /en/ 与 /zh/ 真实地址） */
.lang {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}

.lang a {
  display: block;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 6px 13px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}

.lang a:hover { color: var(--ink); }

.lang a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 3px 12px rgba(153, 89, 244, .4);
}

/* 主体：左右两栏 */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vh, 32px) clamp(20px, 5vw, 34px) clamp(32px, 6vh, 64px);
}

.inner {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5.5vw, 84px);
}

/* 左栏 */
.col-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--brand-soft);
  border: 1px solid rgba(153, 89, 244, .3);
  background: rgba(153, 89, 244, .1);
  padding: 7px 14px;
  border-radius: 999px;
  margin: 0 0 clamp(20px, 3vh, 28px);
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: 0 0 8px var(--brand);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 32%, #c9b7ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: clamp(16px, 2.4vh, 22px) auto 0;
  max-width: 27em;
  font-size: clamp(14.5px, 1.35vw, 17px);
  line-height: 1.72;
  color: var(--ink-dim);
}

/* 下载区：二维码在上，说明与按钮在下 */
.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.8vh, 18px);
  margin-top: clamp(28px, 4.6vh, 44px);
}

.qr-card {
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .35),
    0 16px 44px rgba(0, 0, 0, .5),
    0 0 64px rgba(153, 89, 244, .2);
  transition: transform .25s ease, box-shadow .25s ease;
}

.qr-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .45),
    0 22px 54px rgba(0, 0, 0, .58),
    0 0 84px rgba(153, 89, 244, .3);
}

.qr-card img {
  display: block;
  width: 122px;
  height: 122px;
  border-radius: 8px;
}

.download-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.qr-note {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #a56cf8, #7d59ce);
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(125, 89, 206, .38);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.play-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(125, 89, 206, .5);
}

.play-btn svg { width: 14px; height: 14px; flex: 0 0 auto; }

.play-hint {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* 右栏：宣传图 */
.shot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .09),
    0 30px 70px rgba(0, 0, 0, .58),
    0 0 100px rgba(153, 89, 244, .16);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* 页脚 */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  padding: 0 clamp(20px, 5vw, 34px) 24px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}

footer a {
  color: var(--ink-dim);
  text-decoration: none;
}

footer a:hover { color: var(--ink); text-decoration: underline; }

/* 入场动画 */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .8s cubic-bezier(.2, .7, .25, 1) forwards;
}
.rise:nth-child(2) { animation-delay: .08s; }
.rise:nth-child(3) { animation-delay: .16s; }
.rise:nth-child(4) { animation-delay: .28s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; animation: none; }
  .qr-card, .play-btn { transition: none; }
}

/* 窄屏：左右改为上下 */
@media (max-width: 940px) {
  main { padding-top: 8px; }

  .inner {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(30px, 5vh, 44px);
    justify-items: center;
    text-align: center;
  }

  .col-text { display: flex; flex-direction: column; align-items: center; }
  .sub { margin-inline: auto; }
  .download { align-items: center; }
  .download-text { align-items: center; text-align: center; }

  .shot { width: 100%; max-width: 560px; }

  header { padding-top: 20px; }
}

@media (max-width: 480px) {
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 12px; letter-spacing: .1em; }
  .lang a { padding: 6px 10px; }
  .qr-card { padding: 8px; border-radius: 15px; }
  .qr-card img { width: 96px; height: 96px; }
  .download { gap: 12px; }
  .play-btn { padding: 11px 13px; font-size: 12.5px; gap: 7px; }
  .play-btn svg { width: 12px; height: 12px; }
  footer { font-size: 10.5px; }
}

@media (max-height: 640px) and (min-width: 941px) {
  .eyebrow { display: none; }
  header { padding-top: 18px; }
}
