:root {
  --green: #2f9e44;
  --green-bright: #3dbf55;
  --green-deep: #1a6b2e;
  --ink: #0b1a12;
  --glass: rgba(8, 22, 16, 0.55);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.62);
  --ios-bg: #f5f7f6;
  --ios-text: #122018;
  --android-bg: linear-gradient(135deg, #2f9e44, #1f7a33);
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  --font-cn: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-en: "Outfit", "Noto Sans SC", sans-serif;
}

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

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

body {
  font-family: var(--font-cn);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* ===== Background ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg__image {
  position: absolute;
  inset: -4%;
  background:
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
  transform: scale(1.04);
  animation: bgDrift 22s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05);
}

.bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 28, 18, 0.55) 0%, rgba(6, 28, 18, 0.35) 28%, rgba(5, 20, 14, 0.72) 68%, rgba(3, 14, 10, 0.92) 100%),
    radial-gradient(120% 70% at 50% 0%, rgba(61, 191, 85, 0.18), transparent 55%);
}

.bg__glow {
  position: absolute;
  width: 60vw;
  height: 40vw;
  left: 20vw;
  top: -8vw;
  background: radial-gradient(circle, rgba(255, 196, 70, 0.28), transparent 70%);
  filter: blur(18px);
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bgDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ===== Page ===== */
.page {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
}

.hero {
  text-align: center;
  animation: riseIn 0.7s ease both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo-wrap {
  display: inline-flex;
  padding: 3px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
}

.logo {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  object-fit: cover;
  display: block;
  background: #fff;
}

.brand {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.brand__cn {
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.brand__en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.78);
  text-indent: 0.34em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.headline {
  font-size: clamp(26px, 7.5vw, 32px);
  font-weight: 700;
  color: #9ef0ad;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-shadow: 0 0 24px rgba(61, 191, 85, 0.25);
  animation: riseIn 0.8s ease 0.08s both;
}

.subhead {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 16px;
  animation: riseIn 0.8s ease 0.14s both;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  animation: riseIn 0.8s ease 0.2s both;
}

.tags li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: var(--text-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== Download ===== */
.download {
  animation: riseIn 0.85s ease 0.26s both;
}

.download-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.download-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.download-card__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-card__head h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 2px;
}

.download-card__head p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn__icon {
  width: 18px;
  height: 18px;
}

.btn--ios {
  background: var(--ios-bg);
  color: var(--ios-text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn--android {
  background: var(--android-bg);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 122, 51, 0.35);
}

.tip {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== News ===== */
.news {
  margin-top: 22px;
  background: rgba(8, 22, 16, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px 14px 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: riseIn 0.9s ease 0.34s both;
}

.news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.news__header h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.news__live {
  font-size: 11px;
  color: #9ef0ad;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(61, 191, 85, 0.16);
  border: 1px solid rgba(158, 240, 173, 0.22);
}

.news__list li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.news__list a {
  display: grid;
  gap: 6px;
  padding: 12px 4px;
  transition: background 0.2s ease;
}

.news__list a:active {
  background: rgba(255, 255, 255, 0.04);
}

.news__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.news__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px rgba(61, 191, 85, 0.7);
}

.news__title {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 500;
}

.news__list li:nth-child(1) a { animation: riseIn 0.55s ease 0.4s both; }
.news__list li:nth-child(2) a { animation: riseIn 0.55s ease 0.48s both; }
.news__list li:nth-child(3) a { animation: riseIn 0.55s ease 0.56s both; }
.news__list li:nth-child(4) a { animation: riseIn 0.55s ease 0.64s both; }
.news__list li:nth-child(5) a { animation: riseIn 0.55s ease 0.72s both; }

.footer {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.04em;
}

/* ===== WeChat mask ===== */
.wechat-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: start end;
  padding: 18px 18px 0 0;
}

.wechat-mask[hidden] {
  display: none;
}

.wechat-mask__panel {
  width: min(78vw, 260px);
  margin-top: 8px;
  margin-right: 4px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  color: #1a2a20;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.wechat-mask__panel::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  border: 8px solid transparent;
  border-bottom-color: #fff;
}

.wechat-mask__panel p {
  font-size: 13px;
  line-height: 1.6;
}

.wechat-mask__panel p + p {
  margin-top: 2px;
  margin-bottom: 12px;
}

.wechat-mask__close {
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  width: 100%;
  cursor: pointer;
}

@media (min-width: 768px) {
  .page {
    padding-top: 48px;
  }

  .btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
