:root {
  --ink: #17181a;
  --paper: #ffffff;
  --soft: #f7f8f9;
  --line: #e8eaec;
  --muted: #6b7076;
  --brand: #fd5617;
  --brand-soft: #ffede3;
  --teal: #14b8a6;
  --purple: #8b5cf6;
  --radius-card: 16px;
  --shadow-card: 0 1px 2px rgb(15 17 20 / 0.04);
  --shadow-lift: 0 16px 40px rgb(15 17 20 / 0.08);
  --font-stack:
    -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC',
    'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-soft);
  color: var(--ink);
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

section {
  scroll-margin-top: 80px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  box-shadow: 0 14px 30px rgb(15 17 20 / 0.18);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  box-shadow: 0 12px 26px rgb(253 86 23 / 0.3);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.06rem;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.brand-logo {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 92px 0 96px;
  text-align: center;
  background-image:
    radial-gradient(ellipse 90% 72% at 50% 12%, rgb(255 255 255 / 0) 30%, #fff 86%),
    linear-gradient(#f0f1f3 1px, transparent 1px),
    linear-gradient(90deg, #f0f1f3 1px, transparent 1px);
  background-size:
    auto,
    32px 32px,
    32px 32px;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42em;
  margin: 20px auto 0;
}

.u {
  display: inline-block;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 0.2em;
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 0.4em;
}

.u-orange {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 Q 26 2 50 5 T 98 4' fill='none' stroke='%23fd5617' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.u-teal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 4 Q 26 6 50 4 T 98 5' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.u-purple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 Q 26 3 50 5 T 98 3' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-meta a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- 产品演示相框 + Tab ---------- */

.showcase {
  margin-top: 64px;
}

.showcase-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 10px 30px rgb(15 17 20 / 0.07);
  position: relative;
  z-index: 2;
}

.tab {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    color 0.16s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab.is-active {
  background: var(--ink);
  color: #fff;
}

.frame {
  max-width: 1060px;
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 30px 80px rgb(15 17 20 / 0.1),
    0 6px 20px rgb(15 17 20 / 0.05);
}

.showcase-caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------- 核心能力 ---------- */

.brand-bro {
  color: var(--brand);
}
.hero-kicker {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1060px;
  margin: 36px auto 0;
  list-style: none;
  text-align: left;
}
.feature-card {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
}
.feature-index {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}
.feature-card h2 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  line-height: 1.4;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}
.website-note {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.section-lead {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 44em;
  text-align: center;
}

/* ---------- 下载 ---------- */

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.version-chip {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 6px 16px;
  font-weight: 700;
  font-size: 0.92rem;
}

.release-notes {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 12px auto 0;
  max-width: 46em;
  text-align: center;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.dl-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.dl-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 6px 0 16px;
}

.dl-file {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-bottom: 16px;
  word-break: break-all;
}

.dl-btn {
  margin-top: auto;
  width: 100%;
}

.dl-reco {
  position: absolute;
  top: -12px;
  right: 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 13px;
  box-shadow: 0 6px 16px rgb(253 86 23 / 0.32);
}

.dl-card.is-recommended {
  border-color: var(--brand);
  box-shadow: 0 12px 34px rgb(253 86 23 / 0.14);
}

.dl-notes {
  margin: 34px auto 0;
  text-align: center;
}

.dl-notes p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 8px;
}

.dl-notes strong {
  color: var(--ink);
  font-weight: 700;
}

.dl-notes a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- mac 教程 ---------- */

.section-lead-center {
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.guide-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.guide-step {
  display: inline-block;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #d1470f;
  padding: 4px 14px;
  font-size: 0.84rem;
  font-weight: 800;
}

.guide-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 16px 0 8px;
}

.guide-card > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.dmg-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1.5px dashed #d8dadd;
  border-radius: 14px;
  background: var(--soft);
  padding: 26px;
  margin-top: 20px;
}

.dmg-tile {
  display: grid;
  justify-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 700;
}

.dmg-folder {
  width: 42px;
  height: 42px;
  color: var(--ink);
}

.dmg-arrow {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--brand);
}

.term {
  border-radius: 12px;
  overflow: hidden;
  background: #16171a;
  margin-top: 20px;
}

.term-bar {
  display: flex;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

.term-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fe5f57;
}

.term-bar span:nth-child(2) {
  background: #febb2e;
}

.term-bar span:nth-child(3) {
  background: #28c840;
}

.term code {
  display: block;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #f5f4f2;
  user-select: all;
  overflow-x: auto;
  white-space: pre;
}

.guide-card .btn {
  margin-top: 16px;
}

.guide-after {
  margin-top: 12px;
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.note-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 20px 22px;
}

.note-box h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.note-box p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Windows 提示 ---------- */

.win-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.win-step {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  padding: 11px 22px;
  font-weight: 700;
}

.win-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  margin-top: 14px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

#faq .section-title {
  margin-bottom: 18px;
}

/* ---------- 页脚 ---------- */

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: auto;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .showcase {
    margin-top: 44px;
  }

  .frame {
    margin-top: 14px;
  }
}

@media (max-width: 540px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }

  .dmg-demo {
    gap: 16px;
    padding: 20px 12px;
  }

  .dmg-tile {
    min-width: 0;
    text-align: center;
  }
}

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

  .btn,
  .dl-card,
  .tab {
    transition: none;
  }
}
