:root {
  --brand: #0f766e;
  --brand-ink: #0b5751;
  --brand-soft: #e6f4f1;
  --ink: #12191d;
  --muted: #5b6b72;
  --line: #e3e9ec;
  --bg: #ffffff;
  --bg-alt: #f6f9fa;
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.mark {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 15px;
  color: var(--muted);
}

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

.hero {
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -12%, var(--brand-soft), transparent 70%);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  background: none;
}

.btn:active { transform: translateY(1px); }

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

.btn.primary:hover { background: var(--brand-ink); }

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

.btn.ghost:hover { border-color: #c9d4d9; }

.btn.small { padding: 8px 16px; font-size: 14px; }

.btn.wide { width: 100%; }

.btn:disabled { opacity: 0.55; cursor: default; }

.hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: clamp(48px, 7vw, 96px) clamp(20px, 5vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
}

.section.alt {
  max-width: none;
  background: var(--bg-alt);
}

.section.alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

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

.card .icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 18px;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

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

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.plan {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.12);
}

.tag {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.plan h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}

.price {
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

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

.unit { color: var(--muted); font-size: 14px; }

.plan ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}

.plan li { padding: 5px 0; }

.plan li::before {
  content: "✓";
  color: var(--brand);
  margin-right: 8px;
  font-weight: 700;
}

/* 注册区居中，卡片内部保持左对齐 */
#signup { text-align: center; }

#signup .signup { text-align: left; }

.signup {
  max-width: 460px;
  margin: 28px auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.code-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.grow { flex: 1; }

.code-row .btn { margin-bottom: 16px; white-space: nowrap; }

.msg {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.msg.ok { background: var(--brand-soft); color: var(--brand-ink); }
.msg.bad { background: #fdecec; color: #a12626; }

.faq {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}

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

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.foot-links {
  display: flex;
  gap: 20px;
}

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

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .code-row { flex-wrap: wrap; }
  .code-row .btn { width: 100%; margin-bottom: 16px; }
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.download {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download .os {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

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

.download .btn {
  align-self: flex-start;
  margin-bottom: 12px;
}

.download .hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.download.disabled {
  background: var(--bg-alt);
}

.download.disabled .btn {
  opacity: 0.6;
  cursor: default;
}
