:root {
  --bg: #fff7f1;
  --bg-strong: #ffefe7;
  --surface: #ffffff;
  --surface-soft: #fffaf7;
  --ink: #1d1a24;
  --muted: #6d6471;
  --line: #eadbd4;
  --brand: #ff7f63;
  --brand-strong: #ef5f7d;
  --aqua: #35d6d2;
  --blue: #39a9f6;
  --green: #4ac27a;
  --shadow: 0 24px 70px rgba(111, 72, 55, 0.13);
  --radius: 8px;
  --radius-lg: 24px;
  --max: 1160px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(234, 219, 212, 0.82);
  background: rgba(255, 247, 241, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(239, 95, 125, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #514852;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 18px 38px rgba(239, 95, 125, 0.26);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(111, 72, 55, 0.08);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  align-items: center;
  gap: 54px;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: #5c525e;
  font-size: 14px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--aqua);
  content: "";
}

.maccy-window {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(234, 219, 212, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.maccy-panel {
  overflow: hidden;
  border: 1px solid #e7dedb;
  border-radius: 20px;
  background: #fbfbfb;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #ece2df;
  background: #fff;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic i {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff6259;
}

.traffic i:nth-child(2) {
  background: #ffbd2e;
}

.traffic i:nth-child(3) {
  background: #28c840;
}

.panel-title {
  color: #5a505d;
  font-size: 13px;
  font-weight: 800;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px;
  padding: 12px 14px;
  border: 1px solid #e6deda;
  border-radius: 12px;
  background: #fff;
  color: #7b737c;
  font-size: 14px;
}

.history-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.history-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ece2df;
  border-radius: 14px;
  background: #fff;
}

.history-item.active {
  color: #fff;
  background: linear-gradient(135deg, #27c9ce, #399cf4);
  border-color: transparent;
}

.app-dot {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #f5ede9;
  font-weight: 900;
}

.history-item.active .app-dot {
  color: #148089;
  background: rgba(255, 255, 255, 0.88);
}

.item-title {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-desc {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  opacity: 0.72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.7;
}

.section {
  padding: 76px 24px;
}

.section.alt {
  background: var(--surface);
}

.section.deep {
  color: #fff;
  background: #221d25;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.deep .section-head p,
.deep .muted {
  color: rgba(255, 255, 255, 0.72);
}

.grid-3,
.grid-4,
.two-col {
  display: grid;
  gap: 18px;
}

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

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

.two-col {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.card,
.feature-card,
.quote-card,
.download-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(111, 72, 55, 0.06);
}

.card,
.feature-card,
.quote-card,
.download-card {
  padding: 24px;
}

.feature-card h3,
.card h3,
.download-card h3,
.quote-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.24;
}

.feature-card p,
.card p,
.download-card p,
.quote-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--aqua));
  font-size: 22px;
  font-weight: 900;
}

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

.scenario + .scenario {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.scenario-num {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #221d25;
  font-weight: 900;
}

.quote-card {
  min-height: 100%;
}

.quote-card blockquote {
  margin: 0;
  color: #332b34;
  font-size: 16px;
}

.quote-card cite {
  display: block;
  margin-top: 18px;
  color: #7a6e78;
  font-style: normal;
  font-weight: 800;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #232027, #42313b 55%, #ef6f72);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.cta-band p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 52px;
}

.page-hero.compact {
  padding-bottom: 30px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--brand-strong);
  content: counter(step);
  font-weight: 900;
}

.step h3 {
  margin: 0 0 8px;
}

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

.kbd {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #d8cbc5;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: #332d35;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.download-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.download-meta span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.release-list {
  display: grid;
  gap: 14px;
}

.release-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(111, 72, 55, 0.06);
}

.release-version {
  display: grid;
  gap: 6px;
}

.release-version strong {
  font-size: 24px;
  line-height: 1;
}

.release-version span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #8b4052;
  background: #ffe7e6;
  font-size: 12px;
  font-weight: 900;
}

.release-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

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

.release-item a {
  color: var(--brand-strong);
  font-weight: 900;
  white-space: nowrap;
}

.code {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #211e24;
  color: #f9f4f1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 22px;
}

.faq-item h2,
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.site-footer {
  padding: 44px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  gap: 60px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
	width: 40%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(27, 22, 29, 0.58);
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(760px, 100%);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(24, 19, 28, 0.28);
}

.modal-head {
  padding: 26px 28px 10px;
}

.modal-head h2 {
  margin: 0;
  font-size: 30px;
}

.modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 28px 28px;
}

.qr-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: center;
}

.qr-card img {
  width: 180px;
  height: 180px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: #fff;
}

.qr-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

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

.qr-card a {
  color: var(--brand-strong);
  font-weight: 900;
}

:focus-visible {
  outline: 3px solid rgba(53, 214, 210, 0.7);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

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

  .hero-grid,
  .two-col,
  .cta-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .hero,
  .page-hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .grid-3,
  .grid-4,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .maccy-window {
    padding: 12px;
    border-radius: 20px;
  }

  .history-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .shortcut {
    display: none;
  }

  .cta-band {
    padding: 24px;
  }

  .release-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-inner {
    flex-direction: column;
  }
}
