:root {
  --ink: #16181d;
  --muted: #6a707c;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --line: #e4e6eb;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --hero-wash: #e8eef5;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* —— 导航 —— */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6vw;
  background: rgba(245, 246, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.home-nav.is-scrolled { border-bottom-color: var(--line); }
.home-brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.home-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.home-nav-links a:hover { color: var(--ink); }
.home-nav-login {
  color: var(--ink) !important;
  margin-left: 6px;
}
.home-nav-cta {
  margin-left: 2px;
  padding: 7px 14px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  border-radius: 4px;
}
.home-nav-cta:hover { background: #2a2e38; }

/* —— Hero：一屏一构图 —— */
.home-hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 6vw 64px;
}
.home-hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, var(--paper) 0%, var(--paper) 42%, var(--hero-wash) 42%, #dce6f0 100%);
}
.home-hero-plane::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 10%;
  width: 55%;
  height: 80%;
  background:
    radial-gradient(ellipse at 40% 40%, rgba(15, 118, 110, 0.12), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(30, 64, 120, 0.08), transparent 55%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 48px;
  align-items: center;
}
.home-brand-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.home-brand-mark {
  margin: 0 0 12px;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.home-headline {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 14em;
}
.home-lead {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--muted);
  max-width: 28em;
  line-height: 1.65;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.home-btn-primary {
  background: var(--accent);
  color: #fff;
}
.home-btn-primary:hover { background: #0d9488; }
.home-btn-ghost {
  border-color: rgba(22, 24, 29, 0.2);
  color: var(--ink);
  background: transparent;
}
.home-btn-ghost:hover { border-color: var(--ink); }
.home-btn-ghost-dark {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.home-btn-ghost-dark:hover { border-color: var(--muted); }

/* 产品示意：安装窗轮廓，作主视觉锚点 */
.home-hero-visual {
  display: flex;
  justify-content: center;
  animation: home-in 0.7s ease both 0.12s;
}
.home-hero-copy { animation: home-in 0.65s ease both; }
@keyframes home-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.home-mock {
  width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid #cfd6e0;
  box-shadow: 0 24px 48px rgba(22, 30, 45, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.home-mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #eef1f5;
  border-bottom: 1px solid var(--line);
}
.home-mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5ccd6;
}
.home-mock-body { padding: 28px 24px 32px; }
.home-mock-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.home-mock-path {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fafbfc;
  margin-bottom: 16px;
}
.home-mock-barline {
  height: 8px;
  border-radius: 4px;
  background: #e8ebf0;
  margin-bottom: 22px;
  overflow: hidden;
}
.home-mock-barline i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--accent);
  animation: home-bar 2.8s ease-in-out infinite;
}
@keyframes home-bar {
  0%, 100% { width: 28%; }
  50% { width: 68%; }
}
.home-mock-actions {
  display: flex;
  gap: 10px;
}
.home-mock-actions b {
  display: block;
  width: 72px;
  height: 30px;
  border-radius: 4px;
  background: var(--accent-soft);
}
.home-mock-actions b:last-child { background: #e8ebf0; }

/* —— 通用区块 —— */
.home-section {
  padding: 72px 6vw;
  max-width: 960px;
  margin: 0 auto;
}
.home-band {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-band > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.home-section h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.home-section h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
}
.home-section-lead {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 15px;
  max-width: 36em;
}
.home-muted {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* 下载 */
.home-downloads { display: grid; gap: 0; }
.home-dl-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 4px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.home-dl-card:first-child { border-top: none; padding-top: 0; }
.home-dl-card strong {
  grid-column: 1;
  font-size: 16px;
  font-weight: 700;
}
.home-dl-card p {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.home-dl-card a.home-dl-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.home-dl-card a.home-dl-link:hover { border-bottom-color: var(--accent); }
.home-dl-empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* 产品要点 */
.home-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.home-facts > div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.home-facts dt {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.home-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* 怎么用 */
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}
.home-steps {
  margin: 0 0 16px;
  padding-left: 1.15em;
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
}
.home-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.home-note a {
  color: var(--accent);
  font-weight: 600;
}
.home-note a:hover { text-decoration: underline; }

/* 折叠教程 */
.home-fold {
  border-top: 1px solid var(--line);
  padding: 0;
}
.home-fold:last-of-type { border-bottom: 1px solid var(--line); }
.home-fold summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.home-fold summary::-webkit-details-marker { display: none; }
.home-fold summary::after {
  content: "+";
  font-weight: 500;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.home-fold[open] summary::after { content: "−"; }
.home-fold-body {
  padding: 0 0 22px;
  max-width: 42em;
}
.home-fold-body h4 {
  margin: 16px 0 6px;
  font-size: 14px;
  font-weight: 700;
}
.home-fold-body h4:first-child { margin-top: 0; }
.home-fold-body p,
.home-fold-body li {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.home-fold-body ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
}

/* FAQ */
.home-faq {
  margin: 0;
  display: grid;
  gap: 0;
}
.home-faq > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.home-faq > div:last-child { border-bottom: 1px solid var(--line); }
.home-faq dt {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}
.home-faq dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 44em;
}

/* 套餐 */
.home-pricing { display: grid; gap: 28px; margin-bottom: 28px; }
.home-pricing-empty { margin: 0; color: var(--muted); font-size: 15px; }
.home-plan-group { display: grid; gap: 12px; }
.home-plan-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.home-plan-group-head strong { font-size: 16px; font-weight: 700; }
.home-plan-group-head span { color: var(--muted); font-size: 13px; }
.home-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.home-plan-card {
  display: grid;
  gap: 6px;
  padding: 16px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.home-plan-card.is-trial {
  background: var(--accent-soft);
  border-color: #99f6e4;
}
.home-plan-card .period {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.home-plan-card .price {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.home-plan-card .meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.home-plan-card .buy {
  margin-top: 6px;
  justify-self: start;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.home-plan-card .buy:hover { text-decoration: underline; }

/* 页脚 */
.home-foot {
  padding: 28px 6vw 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  max-width: 1120px;
  margin: 0 auto;
}
.home-foot strong {
  color: var(--ink);
  font-size: 15px;
}
.home-foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-visual { order: -1; }
  .home-mock { width: min(100%, 300px); }
  .home-hero {
    min-height: auto;
    padding-top: 28px;
  }
  .home-hero-plane {
    background: linear-gradient(180deg, var(--hero-wash), var(--paper) 70%);
  }
  .home-facts { grid-template-columns: 1fr; }
  .home-split { grid-template-columns: 1fr; }
  .home-dl-card {
    grid-template-columns: 1fr;
  }
  .home-dl-card a.home-dl-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 6px;
  }
}

@media (max-width: 640px) {
  .home-nav { padding: 12px 5vw; }
  .home-nav-links a:not(.home-nav-login):not(.home-nav-cta) { display: none; }
  .home-section { padding: 56px 5vw; }
}
