:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #152033;
  --muted: #66758c;
  --line: #dce4f0;
  --accent: #0f67ff;
  --accent-2: #11a3b8;
  --accent-3: #168a55;
  --shadow: 0 18px 50px rgba(20, 42, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(220, 228, 240, 0.86);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(128px, 15vw, 176px);
  height: 46px;
  border-radius: 8px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.brand-context {
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  border-radius: 8px;
  padding: 8px 10px;
}

.top-nav a:hover {
  background: rgba(21, 32, 51, 0.06);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 64px clamp(18px, 5vw, 72px) 48px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 103, 255, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.button.disabled {
  cursor: default;
  border-color: rgba(220, 228, 240, 0.88);
  background: #edf2f8;
  color: #7b837e;
  box-shadow: none;
}

.button.disabled:hover {
  transform: none;
}

.button.full {
  width: 100%;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.link-row a {
  border-bottom: 1px solid rgba(15, 103, 255, 0.35);
}

.button-icon,
.os-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.button-icon {
  width: 19px;
  height: 19px;
}

.server-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 600px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.server-box div {
  min-width: 0;
  padding: 16px;
}

.server-box div + div {
  border-left: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-photo {
  aspect-ratio: 1.26 / 1;
  object-fit: cover;
  object-position: center;
}

.section {
  padding: 44px clamp(18px, 5vw, 72px);
}

.intro-band {
  padding-top: 12px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.status-strip > div {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.status-strip strong {
  color: var(--text);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #28a66a;
  box-shadow: 0 0 0 4px rgba(40, 166, 106, 0.14);
}

.section-heading {
  margin-bottom: 22px;
}

.brand-showcase {
  padding-top: 18px;
}

.brand-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.8fr) 150px;
  gap: 22px;
  align-items: center;
  border-block: 1px solid var(--line);
  padding-block: 28px;
}

.brand-panel-logo,
.brand-panel-icon,
.brand-promo-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(20, 42, 77, 0.08);
}

.brand-panel-logo {
  aspect-ratio: 1.26 / 1;
  object-fit: cover;
}

.brand-panel-icon {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.brand-promo-stack {
  display: grid;
  gap: 14px;
}

.brand-promo-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.brand-panel-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.download-card {
  display: flex;
  min-height: 278px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(20, 42, 77, 0.06);
}

.download-card.recommended {
  border-color: rgba(15, 103, 255, 0.38);
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.card-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.os-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-3);
  padding: 10px;
}

.download-card.recommended .os-icon {
  color: var(--accent);
}

.download-card dl {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.download-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(220, 228, 240, 0.72);
  padding-bottom: 8px;
}

.download-card dd {
  text-align: right;
}

.card-note {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.iphone-guide {
  background: #fff;
  border-block: 1px solid var(--line);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 20px;
}

.guide-card span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.guide-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.guide-card strong {
  color: var(--text);
}

.setup {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 14px;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-2);
}

.steps span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  font-weight: 800;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps strong {
  color: var(--text);
}

.status-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-table > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.status-table > div + div {
  border-top: 1px solid var(--line);
}

.status-table span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    max-width: 620px;
  }

  .download-grid,
  .steps,
  .status-strip,
  .guide-grid,
  .brand-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-panel-copy {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 148px;
    height: 42px;
  }

  .top-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 8px;
  }

  .top-nav a {
    padding-inline: 6px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-text {
    font-size: 16px;
  }

  .server-box,
  .download-grid,
  .steps,
  .status-strip,
  .guide-grid,
  .brand-panel,
  .status-table > div {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-copy,
  .hero-media,
  .download-card,
  .guide-card,
  .steps li,
  .status-strip > div,
  .status-table,
  .brand-panel,
  .server-box {
    min-width: 0;
    max-width: 100%;
  }

  .brand-panel {
    gap: 16px;
    padding-block: 22px;
  }

  .brand-panel-copy {
    grid-column: auto;
  }

  .brand-panel-icon {
    max-width: 160px;
  }

  .brand-promo-stack {
    max-width: 160px;
  }

  .server-box div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-actions .button {
    width: 100%;
  }

  .download-card dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .download-card dd {
    text-align: left;
  }
}
