:root {
  --green: #07c160;
  --green-deep: #059a4c;
  --green-ink: #05613a;
  --green-soft: #eaf9f1;
  --ink: #0d1512;
  --muted: #5c6b63;
  --line: #e3e9e5;
  --bg: #fbfdfb;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(13, 21, 18, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(251, 253, 251, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}

.topbar + main { margin-top: 8px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand img { border-radius: 7px; }

.brand b { font-weight: 600; color: var(--green-deep); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav a { transition: color 0.18s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.22);
}

.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(5, 154, 76, 0.26);
}

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

.btn-ghost:hover {
  border-color: #c9d6ce;
  background: #f4faf6;
}

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  background:
    radial-gradient(900px 420px at 50% -160px, #e4f8ed 0%, rgba(228, 248, 237, 0) 70%);
}

.hero-compact { padding-bottom: 16px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero .accent { color: var(--green-deep); }

.hero .sub {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.shots figure { margin: 0; }

.shots img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: #fff;
}

.shots figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- sections ---------- */

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

.section-tight { padding-top: 40px; }

.section-head { max-width: 640px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  letter-spacing: -0.015em;
}

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

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.feature {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: #cde7d9;
  box-shadow: var(--shadow);
}

.feature .index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green-deep);
}

.feature h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.feature ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f8f5;
  color: #42604f;
  font-size: 12.5px;
}

/* ---------- download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.download {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download.recommended {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dl-head h3 { margin: 0; font-size: 18px; }

.tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.dl-meta {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.dl-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dl-note a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Windows 智能应用控制说明（可折叠） */
.win-help {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-deep);
  border-radius: 10px;
}

.win-help summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-ink);
  list-style: none;
}

.win-help summary::-webkit-details-marker { display: none; }

.win-help summary::before {
  content: '＋';
  display: inline-block;
  width: 1.1em;
  color: var(--green-deep);
}

.win-help[open] summary::before { content: '－'; }

.win-help-body {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.win-help-body p { margin: 8px 0; }

.win-help-body ol {
  margin: 8px 0;
  padding-left: 20px;
}

.win-help-body li { margin: 4px 0; }

.win-help-body b { color: var(--green-ink); }

.win-help-warn {
  padding: 8px 12px;
  background: #fff7ed;
  border-left: 2px solid #f0a04b;
  border-radius: 6px;
}

/* ---------- pricing ---------- */

.tabs {
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 30px auto 0;
  padding: 4px;
  background: #edf6f1;
  border: 1px solid #dcebe2;
  border-radius: 999px;
}

.tabs[hidden] { display: none; }

.tab {
  min-height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4c6357;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tab:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.tab.is-active {
  background: var(--card);
  color: var(--green-ink);
  box-shadow: 0 2px 8px rgba(13, 21, 18, 0.08);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 34px;
  align-items: stretch;
}

.tabs + .price-grid { margin-top: 24px; }

/* 购买页：卡片定宽居中，会员 3 张 / 积分 2 张都不会被拉得过宽 */
body[data-page="buy"] .price-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 250px));
  justify-content: center;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: price-in 0.22s ease both;
}

@keyframes price-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-name { font-size: 16px; font-weight: 600; }

.price-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.price-desc {
  margin: 8px 0 14px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-original {
  color: #98a59d;
  font-size: 13px;
  text-decoration: line-through;
}

.price-card .btn { margin-top: 18px; }

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

/* ---------- support ---------- */

.support {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 44px;
  padding: 26px 28px;
  background: var(--green-soft);
  border: 1px solid #d4efe1;
  border-radius: var(--radius);
}

.support h3 { margin: 0 0 6px; font-size: 17px; }

.support p { margin: 0 0 14px; color: #345244; font-size: 14px; }

.support p:last-child { margin-bottom: 0; }

.support .muted { color: #5b7567; font-size: 13px; }

.qr {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #cfe9dc;
  background: #fff;
}

/* ---------- 法律文档页 (用户协议 / 隐私政策) ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.doc h1 {
  font-size: 30px;
  margin: 0 0 6px;
}

.doc-updated {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--muted);
}

.doc h2 {
  font-size: 18px;
  margin: 30px 0 10px;
}

.doc p, .doc li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft, #3d4a42);
  margin: 8px 0;
}

.doc ul {
  padding-left: 22px;
  margin: 8px 0;
}

.doc b {
  color: var(--ink);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1120px;
  margin: 88px auto 0;
  padding: 26px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer p { margin: 0; }

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

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .nav { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { padding-top: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .support { flex-direction: column; align-items: flex-start; }
  .footer { flex-direction: column; align-items: flex-start; }
}

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