:root {
  --bg: #eef0f4;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --line: rgba(16, 17, 20, 0.09);
  --ink: #141519;
  --ink-2: #5d6370;
  --ink-3: #9aa0ac;
  --accent: #0a7dff;
  --hero: #101216;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-card: 0 1px 2px rgba(20, 21, 25, 0.04), 0 12px 32px rgba(20, 21, 25, 0.06);
  --shadow-btn: 0 10px 24px rgba(10, 125, 255, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

/* ===================== 英雄区 ===================== */
.hero {
  position: relative;
  background:
    radial-gradient(140% 90% at 50% -20%, #1d2230 0%, var(--hero) 58%);
  color: #fff;
  padding: calc(28px + env(safe-area-inset-top)) 24px 34px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-a {
  width: 260px;
  height: 260px;
  left: -70px;
  top: -90px;
  background: rgba(64, 118, 255, 0.4);
}

.hero-glow-b {
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  background: rgba(255, 140, 66, 0.18);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-app {
  width: 100%;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-app-icon-wrap {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.hero-app-icon {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.hero-app-name {
  margin-top: 18px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-app-sub {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
}

.hero-app-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn-wrap {
  width: 100%;
  margin-top: 26px;
}

.install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: #0d0e12;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.install-btn:active {
  transform: scale(0.97);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.install-btn .btn-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.55;
  display: block;
  line-height: 1.15;
}

.install-btn .btn-main {
  display: block;
  line-height: 1.15;
}

.install-btn-ipa {
  background: #fff;
  color: #0d0e12;
}

.install-btn-tipa {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.hero-points {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points .sep {
  opacity: 0.5;
}

/* ===================== 内容区 ===================== */
.content {
  padding: 22px 18px 0;
}

.section {
  margin-bottom: 26px;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- 应用列表 ---- */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 21, 25, 0.12);
}

.app-card-body {
  flex: 1;
  min-width: 0;
}

.app-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-card-sub {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-3);
}

.tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.tag-ipa {
  color: #0a6de0;
  background: rgba(10, 109, 224, 0.1);
}

.tag-tipa {
  color: #b25e00;
  background: rgba(224, 128, 10, 0.12);
}

.app-card .mini-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 11px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.app-card .mini-btn:active {
  transform: scale(0.94);
}

.mini-btn-ipa {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 125, 255, 0.26);
}

.mini-btn-tipa {
  background: rgba(10, 125, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(10, 125, 255, 0.2);
}

/* ---- 安装教程 ---- */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.steps li {
  display: flex;
  gap: 14px;
  padding: 15px 16px;
}

.steps li + li {
  border-top: 1px solid var(--line);
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
}

.step-body b {
  font-size: 15px;
  font-weight: 700;
}

.step-body p {
  margin-top: 3px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---- Telegram ---- */
.tg-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  border-radius: var(--radius-md);
  color: #fff;
  box-shadow: 0 12px 28px rgba(42, 171, 238, 0.24);
}

.tg-plane {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.tg-text {
  flex: 1;
  min-width: 0;
}

.tg-text b {
  display: block;
  font-size: 15px;
}

.tg-text span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.tg-join {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1d9bd8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.tg-join:active {
  transform: scale(0.94);
}

/* ---- 支持机型 ---- */
.compat-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.compat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.compat-chip b {
  font-size: 14.5px;
}

.compat-chip span {
  font-size: 12.5px;
  color: var(--ink-2);
}

/* ---- FAQ ---- */
.faq {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 16px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 19px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  padding: 0 16px 15px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---- 页脚 ---- */
.footer {
  padding: 8px 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.9;
}

.hidden-btn {
  display: block;
  margin: 18px auto 0;
  border: none;
  background: none;
  color: var(--ink-3);
  font-size: 11px;
  cursor: pointer;
  opacity: 0.4;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(36px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(14px);
  background: rgba(24, 26, 32, 0.94);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  max-width: 84vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- 骨架屏 ---- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(120, 128, 148, 0.16);
  border-radius: 10px;
  color: transparent !important;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-icon {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.skeleton-line {
  width: 60%;
  height: 14px;
  margin-top: 16px;
}

.skeleton-line-lg {
  width: 42%;
  height: 26px;
  margin-top: 18px;
}

.skeleton-line-sm {
  width: 34%;
  height: 20px;
  margin-top: 12px;
}

.skeleton-btn {
  height: 54px;
  border-radius: 16px;
  margin-top: 26px;
  display: block;
}

/* ---- 空状态 ---- */
.empty {
  padding: 34px 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

/* ---- 动画 ---- */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-app {
  animation: heroIn 0.6s ease both;
}

.section {
  animation: heroIn 0.5s ease both;
}

.section:nth-child(2) {
  animation-delay: 0.05s;
}

.section:nth-child(3) {
  animation-delay: 0.1s;
}

.section:nth-child(4) {
  animation-delay: 0.15s;
}

.section:nth-child(5) {
  animation-delay: 0.2s;
}
