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

:root {
  --bg-page: #f2f5f8;
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;
  --bg-trust: #eef5fc;
  --bg-guide: #fffbeb;
  --border-card: #dbe2ea;
  --border-trust: #bfdbfe;
  --border-guide: #fcd34d;
  --text-main: #111827;
  --text-body: #334155;
  --text-muted: #64748b;
  --green-main: #0b7a43;
  --green-dark: #075930;
  --green-light-bg: #ecfdf3;
  --green-border: #a7f3d0;
  --red-main: #b91c1c;
  --red-light-bg: #fef2f2;
  --red-border: #fecaca;
}

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

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 顶部主卡片 */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f6;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.app-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.app-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.verified-badge {
  background: var(--green-light-bg);
  color: var(--green-main);
  border: 1px solid var(--green-border);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.app-tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.lang-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-body);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--green-main);
}

.hero-headline {
  font-size: clamp(26px, 7.2vw, 32px);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.hero-headline span {
  color: var(--green-main);
}

.hero-subdesc {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.55;
}

/* 移动端优化版左右双栏对比：严格单行价格不折行，等高对齐 */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0;
}

.compare-tile {
  border-radius: 14px;
  padding: 13px 10px;
  border: 1.5px solid var(--red-border);
  background: var(--red-light-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.compare-tile.good {
  border-color: var(--green-border);
  background: var(--green-light-bg);
}

.compare-symbol {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--red-main);
  margin-bottom: 5px;
}

.compare-tile.good .compare-symbol {
  color: var(--green-main);
}

.compare-tile h3 {
  font-size: 14px;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.compare-price {
  font-size: clamp(20px, 5.6vw, 26px);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--red-main);
  margin-bottom: 6px;
  white-space: nowrap;
  line-height: 1.15;
}

.compare-tile.good .compare-price {
  color: var(--green-main);
}

.compare-tile p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.4;
  font-weight: 500;
}

/* 主下载按钮：移动端紧凑单行标题，不折行臃肿 */
.btn-download {
  width: 100%;
  border: none;
  border-radius: 13px;
  background: var(--green-main);
  color: #ffffff;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(11, 122, 67, 0.24);
  transition: transform 0.1s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-download:hover {
  background: #096839;
}

.btn-download.is-pressing,
.btn-download:active {
  transform: scale(0.97);
  background: var(--green-dark);
  box-shadow: 0 2px 8px rgba(11, 122, 67, 0.2);
}

.btn-download.is-started {
  background: var(--green-dark);
}

.btn-download .icon {
  font-size: 21px;
  flex-shrink: 0;
}

.btn-download .label-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
}

.btn-download strong {
  font-size: clamp(14.5px, 4.1vw, 16.5px);
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 1.25;
  white-space: nowrap;
}

.btn-download small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  line-height: 1.3;
}

/* 卡片 1：为什么 Xuper TV 完全免费 */
.card-free {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-title-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-box-green {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--green-light-bg);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.card-header-row h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.price-pill {
  background: var(--green-light-bg);
  color: var(--green-main);
  border: 1px solid var(--green-border);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.card-desc {
  font-size: 14.5px;
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.55;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.check-row {
  background: var(--bg-soft);
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.45;
}

.check-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--green-main);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 卡片 2：为什么直接下载 APK 文件 */
.card-why-apk {
  background: var(--bg-trust);
  border: 1.5px solid var(--border-trust);
  border-radius: 16px;
  padding: 16px 14px;
}

.why-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.icon-box-blue {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.why-header h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.3;
}

.why-text {
  font-size: 14.5px;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.55;
}

.why-text strong {
  color: #0f172a;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-pill {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 卡片 3：观看前 30 秒安装步骤 */
.card-steps {
  background: var(--bg-card);
  border: 1.5px solid var(--border-guide);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.steps-banner {
  background: var(--bg-guide);
  border: 1px solid #fde68a;
  border-radius: 11px;
  padding: 11px 12px;
  margin-bottom: 14px;
}

.steps-header {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 3px;
}

.steps-header .info-dot {
  color: #b45309;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.steps-header h2 {
  font-size: 15.5px;
  font-weight: 800;
  color: #92400e;
  line-height: 1.35;
}

.steps-sub {
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.45;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-box {
  background: var(--bg-soft);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-circle.red {
  background: var(--red-main);
}

.step-circle.green {
  background: var(--green-main);
}

.step-info {
  flex: 1;
}

.step-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.step-title-line strong {
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.3;
}

.step-title-line span {
  font-size: 16px;
}

.step-info p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

.step-info strong.hl {
  color: var(--text-main);
  font-weight: 700;
}

.status-msg {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-main);
  min-height: 20px;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 2px;
}

/* 底部悬浮下载条：首屏已有主按钮时不重复遮挡，往下滑动离开主按钮后再平滑滑出 */
.sticky-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-card);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  z-index: 50;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

.sticky-dock.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-dock-inner {
  max-width: 520px;
  margin: 0 auto;
}

.sticky-dock .btn-download {
  padding: 11px 14px;
}

/* 安装步骤关键操作词特殊颜色标注 */
.hl-action {
  color: #0b7a43;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.hl-warn {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
}

.hl-blue {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
