/* Coding Plan Monitor 官网 — 对齐 Apple/iOS/Design/preview.html 设计 token */

:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --primary-gradient: linear-gradient(135deg, #6366F1, #4F46E5);
  --surface: #F5F6FA;
  --surface-card: #FFFFFF;
  --on-surface: #171A26;
  --on-surface-60: rgba(23, 26, 38, .6);
  --on-surface-40: rgba(23, 26, 38, .4);
  --radius-card: 20px;
  --shadow-card: 0 2px 16px rgba(23, 26, 38, .05);
  --shadow-glow: 0 8px 32px rgba(79, 70, 229, .22);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 250, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(23, 26, 38, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--on-surface); }
.brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--on-surface-60); }
.nav-links a:hover { color: var(--on-surface); }
.nav-links .btn { color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow-glow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(79, 70, 229, .3); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--primary);
  box-shadow: inset 0 0 0 1.5px rgba(79, 70, 229, .35);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(79, 70, 229, .10), transparent),
    var(--surface);
  padding: 88px 0 72px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: 46px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.lede { margin-top: 18px; font-size: 17px; color: var(--on-surface-60); max-width: 30em; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--on-surface-40); }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img {
  width: 320px; height: auto; border-radius: 24px;
  box-shadow: 0 24px 64px rgba(23, 26, 38, .22);
  transform: rotate(2deg);
}

/* ---------- 供应商 ---------- */
.providers { padding: 36px 0; border-bottom: 1px solid rgba(23, 26, 38, .06); }
.providers-title { text-align: center; font-size: 13px; color: var(--on-surface-40); margin-bottom: 16px; }
.provider-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none;
}
.provider-list li {
  font-size: 13px; font-weight: 600; color: var(--on-surface-60);
  background: var(--surface-card);
  border-radius: 999px; padding: 7px 16px;
  box-shadow: var(--shadow-card);
}

/* ---------- 区块通用 ---------- */
.section { padding: 84px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; text-align: center; }
.section-sub { text-align: center; color: var(--on-surface-60); margin: 12px auto 44px; max-width: 34em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.section-alt .card { background: var(--surface); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--on-surface-60); }
.card-icon { font-size: 26px; margin-bottom: 12px; }
.grid-3 .card h3 { font-size: 19px; }

/* ---------- 截图 ---------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.shots figure { text-align: center; }
.shots img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(23, 26, 38, .12);
}
.shots figcaption { margin-top: 12px; font-size: 13px; color: var(--on-surface-40); }

/* ---------- 隐私 ---------- */
.privacy-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.privacy-list h3 { font-size: 16px; margin-bottom: 6px; }
.privacy-list p { font-size: 14px; color: var(--on-surface-60); }

/* ---------- CTA ---------- */
.cta-section {
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(99, 102, 241, .35), transparent),
    linear-gradient(180deg, #1E1B4B, #171A26);
  color: #fff;
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 32px; font-weight: 700; }
.cta-inner p { color: rgba(255, 255, 255, .65); margin: 12px 0 28px; }
.cta-inner .hero-cta { justify-content: center; margin-top: 0; }
.cta-inner .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.cta-inner .hero-note { color: rgba(255, 255, 255, .4); }

/* ---------- 页脚 ---------- */
.footer { padding: 28px 0; font-size: 13px; color: var(--on-surface-40); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 260px; }
  .grid, .shots, .privacy-list { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 60px 0; }
  .section-title, .cta-inner h2 { font-size: 26px; }
}
