:root {
  color-scheme: light;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: #edf3f0;
  --ink: #17231f;
  --muted: #68746f;
  --line: #dbe2de;
  --brand: #176b63;
  --brand-strong: #0f514b;
  --brand-soft: #d9ebe6;
  --warning: #a86624;
  --danger: #ad453e;
  --shadow: 0 18px 50px rgba(24, 50, 43, 0.08);
  --radius: 16px;
  --content: 1180px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(23, 107, 99, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(219, 226, 222, 0.85);
  background: rgba(244, 246, 243, 0.88);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.page-shell,
.site-footer__inner {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand__mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 107, 99, 0.24);
  border-radius: 9px;
  background: var(--brand-soft);
}

.brand__mark::before,
.brand__mark::after {
  position: absolute;
  left: 7px;
  content: "";
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
}

.brand__mark::before {
  top: 9px;
  box-shadow: 0 5px 0 var(--brand);
}

.brand__mark::after {
  top: 19px;
  width: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #43504b;
  font-size: 14px;
}

.site-nav a {
  padding-block: 9px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
}

.button,
.button-quiet {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 650;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 107, 99, 0.16);
}

.button:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.button-quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: #b7c7c1;
  background: #f9fbfa;
}

.is-disabled,
[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
  box-shadow: none;
}

.hero {
  position: relative;
  padding: 92px 0 76px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: max(-200px, calc((100vw - var(--content)) / 2 - 280px));
  top: -220px;
  content: "";
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 185, 173, 0.2), transparent 67%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 76px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1,
.page-intro h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  font-weight: 720;
}

.hero h1 span {
  color: var(--brand);
}

.hero__lead,
.page-intro__lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.version-state {
  min-height: 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.version-state::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
  background: #96a19d;
}

.version-state[data-state="ready"]::before {
  background: #4a9a8f;
}

.version-state[data-state="error"]::before {
  background: var(--danger);
}

.reply-console {
  position: relative;
  border: 1px solid rgba(193, 207, 201, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.reply-console__top {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.reply-console__status {
  color: var(--brand);
  font-weight: 650;
}

.reply-console__body {
  padding: 22px;
}

.message {
  width: fit-content;
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 5px 15px 15px 15px;
  background: #f0f2ef;
  color: #38443f;
  font-size: 14px;
}

.message--reply {
  margin: 18px 0 0 auto;
  border-radius: 15px 5px 15px 15px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.reply-pulse {
  position: relative;
  height: 44px;
  margin-top: 24px;
  display: flex;
  align-items: center;
}

.reply-pulse__line {
  width: 100%;
  height: 1px;
  background: #cbd8d3;
}

.reply-pulse__dot {
  position: absolute;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 7px rgba(23, 107, 99, 0.1);
  animation: reply-travel 4.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.reply-console__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.reply-console__meta div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.reply-console__meta small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.reply-console__meta strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

@keyframes reply-travel {
  0%, 10% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  78% { opacity: 1; }
  90%, 100% { transform: translateX(365px); opacity: 0; }
}

.section {
  padding: 78px 0;
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.section-head p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
}

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

.feature-card {
  min-height: 260px;
  padding: 30px;
  background: var(--surface);
}

.feature-card__index {
  color: var(--brand);
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 12px;
}

.feature-card h3 {
  margin: 52px 0 12px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  border-block: 1px solid var(--line);
}

.trust-strip > div {
  padding: 27px 30px;
  border-right: 1px solid var(--line);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip small {
  display: block;
  color: var(--muted);
}

.trust-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.page-intro {
  padding: 76px 0 52px;
}

.page-intro h1 {
  font-size: clamp(40px, 5vw, 62px);
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.download-panel > section {
  padding: clamp(28px, 5vw, 54px);
  background: var(--surface);
}

.download-panel h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.download-panel p {
  color: var(--muted);
}

.download-panel__facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.download-panel__facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

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

.download-panel__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 13px;
}

.download-error {
  margin-top: 16px;
  color: var(--danger) !important;
  font-size: 13px;
}

.release-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.release-row {
  display: grid;
  grid-template-columns: 130px 150px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.release-row time,
.release-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-note {
  padding: 24px 0;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  align-items: start;
  gap: 70px;
  padding-bottom: 90px;
}

.legal-index {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.legal-index a {
  color: var(--muted);
  padding: 5px 0;
}

.legal-index a:hover {
  color: var(--brand);
}

.legal-copy {
  padding: 38px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-copy section + section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-copy h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.legal-copy p,
.legal-copy li {
  color: #4d5a55;
  font-size: 15px;
}

.legal-copy ul {
  padding-left: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #eef1ee;
}

.site-footer__inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero__grid,
  .download-panel,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 44px;
  }

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

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

  .feature-card h3 {
    margin-top: 28px;
  }

  .legal-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }
}

@media (max-width: 680px) {
  .site-header__inner,
  .page-shell,
  .site-footer__inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header__inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset: 64px 14px auto;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .hero {
    padding: 60px 0 48px;
  }

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

  .hero h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero__actions .button,
  .hero__actions .button-quiet {
    width: 100%;
  }

  .reply-console__meta,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }

  .release-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legal-copy {
    padding: 26px 22px;
  }

  .site-footer__inner {
    min-height: 180px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
