:root {
  --ink: #0f1720;
  --muted: #6b7684;
  --soft: #96a0ab;
  --paper: #f4f7f8;
  --surface: #ffffff;
  --line: #dbe2e7;
  --deep: #172530;
  --deep-2: #223542;
  --green: #12a17f;
  --blue: #2f6feb;
  --amber: #d58a22;
  --violet: #7a5be8;
  --shadow: 0 18px 44px rgba(18, 32, 42, 0.1);
  --radius: 8px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 247, 248, 0.96) 42%),
    radial-gradient(circle at 12% 6%, rgba(18, 161, 127, 0.16), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(47, 111, 235, 0.14), transparent 30%),
    var(--paper);
}

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

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: end;
  padding: 58px min(6vw, 76px) 38px;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 18px min(3vw, 38px) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 32, 0.18), transparent);
}

.header-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-label,
.search-box span,
.family-label span,
.card-head p,
.download-button small,
.card-foot,
.site-footer {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 12px 0 16px;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 800;
  line-height: 0.98;
}

.lede {
  max-width: 730px;
  margin: 0;
  color: #41505e;
  font-size: 18px;
  line-height: 1.76;
}

.hero-device {
  position: absolute;
  right: min(6vw, 88px);
  top: 52px;
  width: 340px;
  height: 170px;
  opacity: 0.14;
  pointer-events: none;
}

.lens {
  position: absolute;
  top: 35px;
  width: 132px;
  height: 82px;
  border: 12px solid var(--deep);
  border-radius: 32px;
}

.lens.left {
  left: 0;
}

.lens.right {
  right: 0;
}

.bridge {
  position: absolute;
  left: 132px;
  top: 70px;
  width: 76px;
  height: 32px;
  border-top: 12px solid var(--deep);
  border-radius: 50%;
}

.status-panel {
  position: relative;
  z-index: 1;
  min-height: 174px;
  padding: 22px;
  border: 1px solid rgba(219, 226, 231, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.status-panel strong {
  display: block;
  margin: 17px 0 10px;
  font-size: 76px;
  line-height: 0.86;
}

.status-panel span:last-child {
  color: var(--green);
  font-weight: 900;
}

main {
  padding: 0 min(6vw, 76px) 54px;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(230px, 420px) auto;
  gap: 18px;
  align-items: end;
  padding: 16px 0 20px;
  background: linear-gradient(180deg, rgba(244, 247, 248, 0.96) 80%, rgba(244, 247, 248, 0));
  backdrop-filter: blur(10px);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  box-shadow: 0 12px 30px rgba(18, 32, 42, 0.05);
}

.search-box input:focus {
  border-color: rgba(18, 161, 127, 0.7);
  box-shadow: 0 0 0 4px rgba(18, 161, 127, 0.13);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  justify-self: end;
  min-width: 294px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(18, 32, 42, 0.05);
}

.segment {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.segment.active {
  background: var(--deep);
  color: #fff;
}

.product-grid {
  display: grid;
  gap: 22px;
}

.product-family {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.family-label {
  position: sticky;
  top: 96px;
  min-height: 214px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.family-label::before {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 74px;
  height: 74px;
  border: 14px solid currentColor;
  border-radius: 24px;
  opacity: 0.12;
  transform: rotate(10deg);
}

.family-label h2 {
  position: relative;
  margin: 28px 0 16px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.08;
}

.family-label small {
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: grid;
  gap: 18px;
  min-height: 318px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 38px rgba(18, 32, 42, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, currentColor 32%, var(--line));
  box-shadow: 0 22px 58px rgba(18, 32, 42, 0.13);
}

.card-head,
.card-foot {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.card-head h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 56px;
  font-weight: 900;
  line-height: 0.94;
}

.badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f6f8f9;
  font-size: 12px;
  font-weight: 900;
}

.badge.ready {
  border-color: rgba(18, 161, 127, 0.24);
  background: rgba(18, 161, 127, 0.1);
  color: #0c8065;
}

.download-layout {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.qr-box {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, currentColor 26%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 249, 0.92));
  color: currentColor;
  overflow: hidden;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.qr-box.empty {
  background:
    linear-gradient(90deg, rgba(15, 23, 32, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 32, 0.04) 1px, transparent 1px),
    #fbfcfd;
  background-size: 16px 16px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--soft);
}

.qr-placeholder span {
  width: 42px;
  height: 42px;
  border: 8px solid currentColor;
  border-radius: 10px;
  opacity: 0.52;
}

.qr-placeholder strong {
  font-size: 12px;
}

.actions {
  display: grid;
  gap: 10px;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 32, 0.12);
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
}

.download-button.ios {
  background: #fff;
  color: var(--ink);
}

.download-button.disabled {
  pointer-events: none;
  border-style: dashed;
  background: #f6f8f9;
  color: var(--soft);
}

.download-button strong,
.download-button small {
  display: block;
}

.download-button strong {
  margin-bottom: 2px;
  font-size: 17px;
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.ios .platform-icon,
.disabled .platform-icon {
  background: rgba(15, 23, 32, 0.07);
}

.platform-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.accent-teal {
  color: var(--green);
}

.accent-blue {
  color: var(--blue);
}

.accent-amber {
  color: var(--amber);
}

.accent-violet {
  color: var(--violet);
}

.card-foot {
  align-items: center;
  border-top: 1px solid rgba(15, 23, 32, 0.08);
  padding-top: 14px;
}

.empty-state {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

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

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 0 min(6vw, 76px) 38px;
}

@media (max-width: 980px) {
  .site-header,
  .product-family {
    grid-template-columns: 1fr;
  }

  .hero-device {
    right: 20px;
    top: 60px;
    width: 270px;
    transform: scale(0.78);
    transform-origin: top right;
  }

  .status-panel,
  .family-label {
    min-height: auto;
  }

  .family-label {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 38px;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .segmented {
    justify-self: stretch;
    min-width: 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .download-layout {
    grid-template-columns: 126px minmax(0, 1fr);
  }

}

@media (max-width: 460px) {
  h1 {
    font-size: 42px;
  }

  .hero-device {
    opacity: 0.08;
  }

  .download-layout {
    grid-template-columns: 1fr;
  }

  .qr-box {
    max-width: 178px;
  }

  .card-head {
    display: grid;
  }

  .segment {
    padding: 0 10px;
  }
}
