:root {
  --bg: #07080b;
  --surface: #0c0e13;
  --surface-2: #0a0c10;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f4f7;
  --text-2: #a3acbb;
  --text-3: #8d96a7;
  --text-4: #7c8496;
  --accent: #2f7bff;
  --sans: 'Segoe UI Variable Display', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --mono: 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: #c9d2e0;
  text-decoration: none;
}
a:hover {
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--mono);
}

/* ---------------------------------------------------------------- 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.btn-header {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
}
.btn-header:hover {
  color: var(--bg);
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 40px -10px var(--accent);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 44px -10px var(--accent);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 500;
  padding: 0 24px;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}
.btn svg {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- 首屏 */
.hero {
  position: relative;
  padding: 112px 0 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
}
.hero h1 .dim {
  color: #5c6577;
}
.lead {
  margin: 28px 0 0;
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  color: var(--text-2);
  text-wrap: pretty;
}
.cta-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.meta {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-4);
  font-family: var(--mono);
}
.hero-shot {
  position: relative;
  margin-top: 80px;
}
.hero-shot .glow {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 92%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(47, 123, 255, 0.42) 0%, rgba(34, 211, 255, 0.12) 38%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-frame {
  position: relative;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.02));
  box-shadow: 0 60px 140px -30px rgba(0, 0, 0, 0.9);
}
.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
}

/* ---------------------------------------------------------------- 对比条 */
.pillars {
  padding-top: 72px;
}
.pillars ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars li {
  padding: 36px 28px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillars strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pillars li:last-child strong {
  color: var(--accent);
}
.pillars span {
  font-size: 14px;
  color: var(--text-3);
}

/* ---------------------------------------------------------------- 通用分区 */
.section {
  padding-top: 160px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 560px;
}
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 64px;
  align-items: center;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.center {
  align-items: center;
  text-align: center;
}
.center .section-copy {
  max-width: 640px;
}
.shot {
  position: relative;
}
.shot::before {
  content: '';
  position: absolute;
  inset: 10% -6% -6% 10%;
  background: radial-gradient(ellipse at center, rgba(47, 123, 255, 0.2), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.shot.left::before {
  inset: 10% 10% -6% -6%;
}
.shot figure,
.frame {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.shot img,
.frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* 检查项列表 */
.checklist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checklist strong {
  font-size: 15px;
  font-weight: 600;
  min-width: 96px;
  flex-shrink: 0;
}
.checklist span {
  font-size: 14px;
  color: var(--text-3);
}

/* 分片示意 */
.chunks-panel {
  margin-top: 64px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0e1117, #0a0c10);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.chunks-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.chunks-file {
  font-size: 14px;
  color: var(--text-3);
}
.chunks-percent {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 4px;
}
.chunks-percent small {
  font-size: 0.5em;
  color: var(--text-3);
}
.chunks-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
}
.chunks-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chunks-stats dt {
  font-size: 12px;
  color: var(--text-4);
}
.chunks-stats dd {
  margin: 0;
  color: var(--text);
}
.chunks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
}
.chunks i {
  height: 36px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.chunks i.done {
  background: var(--accent);
}
.chunks i.active {
  background: #9cc3ff;
  box-shadow: 0 0 16px rgba(156, 195, 255, 0.55);
  animation: pulse 1.4s ease-in-out infinite;
}
.chunks i.retry {
  background: #f5a524;
  animation: pulse 1.4s ease-in-out infinite;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 13px;
  color: var(--text-3);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* 卡片 */
.cards {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.cards.small {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.card {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-3);
}
.card svg {
  color: var(--accent);
}
.cards.small .card svg {
  color: #c9d2e0;
}

/* TestFlight 流程 */
.pipeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.pipeline li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 15px;
}
.pipeline .dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(47, 194, 124, 0.14);
  color: #3dd68c;
}
.pipeline li:last-child .dot {
  background: var(--accent);
  color: #fff;
}
.pipeline li:last-child .label {
  font-weight: 600;
}
.pipeline .rule {
  flex-grow: 1;
  height: 1px;
  background: var(--line);
}
.pipeline .value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-4);
}

/* 日常功能：大卡片 */
.showcase {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: 20px;
}
.panel {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.panel:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.panel-copy {
  padding: 32px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-copy h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.panel-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-3);
}
.panel .frame {
  margin: 28px 32px 32px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* 浅色 / 深色 */
.themes {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: center;
}
.themes .panel-copy {
  padding: 40px;
}
.stacked-wrap {
  padding: 40px 40px 40px 0;
}
.stacked {
  position: relative;
  aspect-ratio: 1.55;
}
.stacked figure {
  position: absolute;
  width: 78%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.stacked figure:first-child {
  left: 0;
  top: 0;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.stacked figure:last-child {
  right: 0;
  bottom: 0;
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.9);
}
.stacked img {
  display: block;
  width: 100%;
  height: auto;
}

/* 安全 */
.security {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 70% at 85% 0%, rgba(47, 123, 255, 0.14), transparent 60%), var(--surface-2);
  padding: clamp(32px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.points li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.points li:last-child {
  border-bottom: 0;
}
.points svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}
.points h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.points p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-3);
}

/* 三步开始 */
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 36px 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps .num {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: #2a303c;
}
.steps li:last-child .num {
  color: var(--accent);
}
.steps h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-3);
}

/* 结尾下载 */
.download {
  position: relative;
  margin-top: 160px;
  padding: 140px 24px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.download .glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 900px;
  max-width: 140%;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(47, 123, 255, 0.3), rgba(34, 211, 255, 0.08) 40%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.download-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.download-inner img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 30px 80px -20px rgba(47, 123, 255, 0.6);
}
.download h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.download .meta {
  margin: 0;
}

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.site-footer .container {
  padding-top: 40px;
  padding-bottom: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--text-4);
}
.site-footer .brand {
  color: var(--text-4);
  gap: 10px;
}
.site-footer .brand img {
  width: 20px;
  height: 20px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.site-footer a {
  color: var(--text-4);
}
.site-footer a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- 协议页 */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 24px 120px;
}
.doc h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.doc .doc-meta {
  margin: 16px 0 48px;
  color: var(--text-4);
  font-size: 14px;
}
.doc h2 {
  margin: 48px 0 16px;
  font-size: 22px;
  font-weight: 700;
}
.doc p {
  margin: 0 0 14px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.9;
}

/* ---------------------------------------------------------------- 动效 */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.rise-late {
  animation: rise 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .hero {
    padding-top: 72px;
  }
  .hero-shot {
    margin-top: 56px;
  }
  .section {
    padding-top: 112px;
  }
  .split {
    gap: 40px;
  }
  .stacked-wrap {
    padding: 0 24px 32px;
  }
  .themes .panel-copy {
    padding: 32px 24px 24px;
  }
  .panel-copy {
    padding: 28px 24px 0;
  }
  .panel .frame {
    margin: 24px 24px 24px;
  }
  .download {
    margin-top: 112px;
    padding: 96px 24px;
  }
  .chunks i {
    height: 24px;
    border-radius: 4px;
  }
  .checklist strong {
    min-width: 72px;
  }
}
