:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --ink: #10201c;
  --soft-ink: #33443f;
  --muted: #6b7b76;
  --line: #dbe4df;
  --accent: #0f765c;
  --accent-dark: #074737;
  --blue: #265f8f;
  --warning: #8a5a12;
  --tech: #1f7aff;
  --violet: #5c5bd6;
  --shadow: 0 20px 70px rgba(16, 32, 28, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(31, 122, 255, 0.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(92, 91, 214, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f9fb 0%, var(--bg) 45%);
  color: var(--ink);
  line-height: 1.72;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 223, 0.36);
  background: rgba(247, 249, 251, 0.54);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--soft-ink);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.article-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 56px;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--tech);
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 680px;
  color: var(--soft-ink);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--tech);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tech), var(--violet));
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0a63d8, #4d4bc2);
}

.button.secondary {
  background: transparent;
  color: var(--tech);
}

.button.secondary:hover {
  background: rgba(15, 118, 92, 0.08);
}

.phone-visual {
  position: relative;
  max-width: 390px;
  margin-left: auto;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 46px;
  background:
    linear-gradient(145deg, #f7f9fb 0%, #6f7a85 18%, #0d1218 46%, #2b343e 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18),
    inset 0 0 0 6px rgba(0, 0, 0, 0.34),
    0 32px 90px rgba(11, 28, 44, 0.26);
  animation: rise 520ms ease both;
}

.phone-visual::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 41px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.phone-button {
  position: absolute;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #aeb7c0, #2a333b);
}

.phone-button-left {
  left: -4px;
  top: 124px;
  height: 78px;
}

.phone-button-right {
  right: -4px;
  top: 172px;
  height: 104px;
}

.phone-screen {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 7px solid #05070a;
  border-radius: 35px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef5f7 48%, #e8f0f4 100%);
}

.dynamic-island {
  position: absolute;
  top: 13px;
  left: 50%;
  z-index: 5;
  width: 108px;
  height: 31px;
  border-radius: 999px;
  background: #05070a;
  transform: translateX(-50%);
  box-shadow: inset 12px 0 22px rgba(255, 255, 255, 0.08);
}

.screen-top {
  padding: 68px 22px 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(31, 122, 255, 0.34), transparent 30%),
    linear-gradient(140deg, #10201c, #122c45 54%, #17183d);
  color: #ffffff;
}

.screen-top span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.screen-top strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.1;
}

.screen-list {
  padding: 18px;
}

.screen-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(16, 32, 28, 0.09);
}

.screen-row b {
  display: block;
  font-size: 15px;
}

.screen-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.gain {
  color: #b42318;
  font-weight: 800;
}

.loss {
  color: var(--accent);
  font-weight: 800;
}

.screen-chart {
  height: 120px;
  margin: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(38, 95, 143, 0.16), rgba(38, 95, 143, 0)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(16, 32, 28, 0.06) 39px 40px);
  position: relative;
}

.screen-chart::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 34px;
  height: 46px;
  border-bottom: 4px solid var(--blue);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.screen-insight {
  margin: 18px;
  padding: 15px;
  border: 1px solid rgba(31, 122, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.screen-insight span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.screen-insight strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
  color: var(--soft-ink);
  font-size: 18px;
}

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

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

.feature {
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.feature strong,
.legal-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.feature p,
.legal-list p {
  color: var(--soft-ink);
}

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

.channel-card,
.info-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.channel-card {
  min-height: 250px;
}

.channel-card:hover,
.channel-card:focus-within,
.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 255, 0.42);
  background: #ffffff;
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-weight: 900;
  line-height: 1;
}

.app-store-icon {
  background: linear-gradient(145deg, #1b8cff, #0b4fd8);
  color: #ffffff;
  font-size: 30px;
}

.xhs-icon {
  background: #ff2442;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
}

.mail-icon {
  background: #10201c;
  color: #ffffff;
  font-size: 25px;
}

.channel-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.channel-card p,
.info-card p {
  color: var(--soft-ink);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.feature-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  min-height: 210px;
}

.info-card strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--ink);
  font-size: 19px;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(31, 122, 255, 0.1);
  color: var(--tech);
  font-weight: 900;
  font-size: 13px;
}

.qr-popover {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: grid-template-rows 180ms ease, opacity 180ms ease, margin-top 180ms ease;
}

.qr-popover-inner {
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-channel:hover .qr-popover,
.qr-channel:focus-within .qr-popover {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

.qr-popover img {
  display: block;
  width: min(100%, 230px);
  height: auto;
  border-radius: 6px;
  margin: 0 auto;
}

.legal-list {
  display: grid;
  gap: 20px;
}

.highlight-section {
  background: linear-gradient(120deg, #0c171d 0%, #112841 56%, #1f213f 100%);
  color: #ffffff;
  margin-inline: calc((100vw - min(1120px, calc(100vw - 40px))) / -2);
  padding-inline: calc((100vw - min(1120px, calc(100vw - 40px))) / 2);
}

.highlight-section .eyebrow {
  color: #78b8ff;
}

.highlight-section h2 {
  max-width: 780px;
  margin-bottom: 42px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.highlight-item {
  min-height: 250px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.highlight-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(120, 184, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.highlight-item strong {
  display: block;
  margin: 34px 0 10px;
  font-size: 18px;
}

.highlight-item p {
  color: rgba(255, 255, 255, 0.76);
}

.split-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

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

.status-item {
  padding: 22px;
  background: var(--surface);
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.status-item strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 18px;
}

.placeholder-list {
  margin-top: 18px;
  color: var(--soft-ink);
}

.article-page h1 {
  font-size: clamp(38px, 6vw, 58px);
}

.article-page h2 {
  margin-top: 42px;
  font-size: 28px;
}

.article-page h3 {
  margin-top: 28px;
}

.article-page p,
.article-page li {
  color: var(--soft-ink);
}

.article-page ul,
.article-page ol {
  padding-left: 22px;
}

.changelog-entry {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.changelog-entry h2 {
  margin-top: 0;
}

.back {
  display: inline-block;
  margin-bottom: 26px;
}

.muted {
  color: var(--muted);
}

.callout {
  margin: 30px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(15, 118, 92, 0.08);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav {
    width: min(100% - 28px, 1120px);
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    gap: 12px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 2px;
  }

  .page,
  .article-page,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero,
  .two-column,
  .three-column,
  .channel-grid,
  .feature-card-grid,
  .scenario-grid,
  .highlight-grid,
  .split-band,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 48px 0 56px;
  }

  .phone-visual {
    margin: 0;
  }

  .phone-screen {
    min-height: 520px;
  }

  .section {
    padding: 56px 0;
  }

  .channel-card {
    min-height: auto;
  }

  .info-card {
    min-height: auto;
  }

  .qr-popover {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 18px;
  }

  .highlight-section {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .highlight-item {
    min-height: auto;
  }
}
