:root {
  color-scheme: light;
  --ink: #14231e;
  --muted: #68756f;
  --line: #dce3df;
  --paper: #ffffff;
  --canvas: #f5f7f6;
  --green: #0d7668;
  --green-dark: #075b50;
  --green-soft: #dceee9;
  --coral: #e56d4f;
  --yellow: #e5b742;
  --shadow: 0 22px 60px rgba(28, 53, 44, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 223, 0.9);
  background: rgba(245, 247, 246, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: white;
}

.brand-mark span {
  transform: translateY(-1px);
  font-size: 18px;
}

.brand-name {
  font-size: 18px;
}

.release-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #32a679;
  box-shadow: 0 0 0 4px rgba(50, 166, 121, 0.12);
}

.status-separator {
  width: 1px;
  height: 13px;
  background: var(--line);
}

.download-hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
  padding: 78px 0;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.app-icon {
  position: relative;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--green);
  box-shadow: 0 15px 32px rgba(13, 118, 104, 0.24);
}

.app-icon::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
}

.app-icon-line {
  position: absolute;
  left: 28px;
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: white;
}

.app-icon-line-a {
  top: 34px;
  transform: rotate(34deg);
}

.app-icon-line-b {
  top: 50px;
  transform: rotate(-34deg);
}

.app-icon-dot {
  position: absolute;
  top: 38px;
  left: 39px;
  width: 10px;
  height: 10px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--green);
}

.category,
.section-kicker,
.panel-label {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 66px;
  line-height: 1;
  letter-spacing: 0;
}

.summary {
  max-width: 560px;
  margin: 30px 0 28px;
  color: #53615b;
  font-size: 18px;
  line-height: 1.85;
}

.primary-download {
  min-height: 56px;
}

.primary-button {
  min-width: 260px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 720;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.primary-button:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.platform-action:focus-visible {
  outline: 3px solid rgba(229, 183, 66, 0.55);
  outline-offset: 3px;
}

.primary-button.is-unavailable {
  background: #7b8882;
}

.download-symbol {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.release-meta span {
  display: inline-flex;
  gap: 7px;
}

.release-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.release-panel {
  padding: 30px;
  border: 1px solid #d6dfda;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: 21px;
}

.version-badge {
  padding: 6px 9px;
  border: 1px solid #c8dbd4;
  border-radius: 5px;
  color: var(--green);
  background: #f3faf7;
  font-size: 12px;
  font-weight: 750;
}

.device-preview {
  position: relative;
  height: 220px;
  margin: 28px 0 22px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8efec;
}

.device-preview::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -52px;
  width: 160px;
  height: 160px;
  border: 26px solid rgba(229, 109, 79, 0.35);
  border-radius: 50%;
}

.preview-window {
  position: absolute;
  top: 37px;
  left: 28px;
  width: 260px;
  height: 150px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 6px;
  background: white;
  box-shadow: 0 16px 28px rgba(34, 60, 51, 0.17);
}

.preview-topbar {
  height: 23px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  background: var(--ink);
}

.preview-topbar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7d8f87;
}

.preview-topbar span:first-child {
  background: var(--coral);
}

.preview-content {
  height: calc(100% - 23px);
  display: grid;
  grid-template-columns: 58px 1fr;
}

.preview-sidebar {
  background: var(--green);
}

.preview-main {
  padding: 21px 20px;
}

.preview-title,
.preview-line,
.preview-action {
  display: block;
  border-radius: 3px;
}

.preview-title {
  width: 72px;
  height: 10px;
  margin-bottom: 17px;
  background: var(--ink);
}

.preview-line {
  width: 82px;
  height: 6px;
  margin-bottom: 8px;
  background: #cbd6d1;
}

.preview-line-long {
  width: 126px;
}

.preview-action {
  width: 68px;
  height: 18px;
  margin-top: 19px;
  background: var(--yellow);
}

.preview-phone {
  position: absolute;
  right: 31px;
  bottom: -10px;
  z-index: 2;
  width: 91px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 5px solid var(--ink);
  border-radius: 17px;
  background: white;
  box-shadow: 0 14px 28px rgba(34, 60, 51, 0.2);
}

.phone-speaker {
  width: 25px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: #b9c6c0;
}

.phone-logo {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  margin-top: 29px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-weight: 780;
}

.phone-line {
  width: 45px;
  height: 5px;
  margin-top: 15px;
  border-radius: 3px;
  background: #cad5d0;
}

.phone-button {
  width: 49px;
  height: 14px;
  margin-top: 11px;
  border-radius: 3px;
  background: var(--coral);
}

.panel-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.platform-section {
  padding: 86px 0 96px;
  background: var(--paper);
}

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

.section-heading h2,
.notes-inner h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.section-heading > p {
  max-width: 420px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

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

.platform-item {
  min-height: 126px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.platform-item:hover {
  transform: translateY(-2px);
  border-color: #bacbc4;
  box-shadow: 0 12px 28px rgba(34, 60, 51, 0.08);
}

.platform-item.is-recommended {
  border-color: #8bbcaf;
  background: #f5fbf8;
}

.platform-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #d4dfda;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.platform-info {
  min-width: 0;
}

.platform-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}

.platform-title {
  margin: 0;
  font-size: 17px;
}

.recommended-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.platform-detail {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.platform-action {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #cad6d1;
  border-radius: 6px;
  background: white;
  color: var(--green);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.platform-tutorial-action {
  width: auto;
  padding: 0 13px;
  border-color: var(--ink);
  color: var(--ink);
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  justify-content: flex-start;
  gap: 7px;
  margin-top: -3px;
}

.platform-action:hover {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.platform-tutorial-action:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.platform-action[disabled] {
  cursor: not-allowed;
  border-color: #e0e5e2;
  background: #f1f3f2;
  color: #a3ada8;
}

.release-notes {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.notes-inner {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 54px;
}

.notes-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-inner li {
  position: relative;
  padding: 15px 0 15px 24px;
  border-bottom: 1px solid var(--line);
  color: #4f5d57;
  line-height: 1.7;
}

.notes-inner li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

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

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid #cad6d1;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 16px 36px rgba(20, 35, 30, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 62px 0 72px;
  }

  .release-panel {
    max-width: 620px;
  }

  .download-hero {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 62px;
  }

  .release-status .status-separator,
  .release-status [data-version] {
    display: none;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .app-identity {
    align-items: flex-start;
    gap: 16px;
  }

  .app-icon {
    flex-basis: 70px;
    width: 70px;
    height: 70px;
    border-radius: 14px;
  }

  .app-icon::before {
    inset: 10px;
  }

  .app-icon-line {
    left: 22px;
    width: 27px;
  }

  .app-icon-line-a {
    top: 27px;
  }

  .app-icon-line-b {
    top: 40px;
  }

  .app-icon-dot {
    top: 30px;
    left: 30px;
  }

  h1 {
    font-size: 42px;
  }

  .summary {
    margin-top: 24px;
    font-size: 16px;
  }

  .primary-button {
    width: 100%;
  }

  .release-panel {
    padding: 22px;
  }

  .device-preview {
    height: 205px;
  }

  .preview-window {
    left: 16px;
    width: 230px;
  }

  .preview-phone {
    right: 16px;
  }

  .platform-section {
    padding: 66px 0 72px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 12px;
    text-align: left;
  }

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

  .platform-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .platform-mark {
    width: 48px;
    height: 48px;
  }

  .notes-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-inner {
    min-height: 86px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
