/* 小柠云静态官网 — shadcn 风格:中性色板 + CSS 变量 + 圆角细边框 + 克制阴影 */
:root {
  --background: #fafafa;
  --foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --card: #ffffff;
  --primary: #65a30d;        /* 柠檬绿 */
  --primary-strong: #4d7c0f;
  --primary-soft: #f7fee7;
  --ring: #d9f99d;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; }
.brand-mark {
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: var(--primary-soft); color: var(--primary-strong);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.brand-mark svg { width: 1.25rem; height: 1.25rem; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--muted-foreground); font-size: 0.9375rem; }
.nav a:not(.btn):hover { color: var(--foreground); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 1.125rem; height: 2px; background: var(--foreground); margin: 3px 0; border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.625rem; font-size: 0.9375rem; font-weight: 500;
  padding: 0.625rem 1.25rem; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.875rem; }

/* ---------- Hero ---------- */
.hero { padding: 6rem 0 5rem; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 0.875rem; color: var(--primary-strong);
  background: var(--primary-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.25rem 1rem; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.hero-accent { color: var(--primary); }
.hero-sub { margin: 1.25rem auto 0; max-width: 40rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2.25rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- 区块通用 ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-kicker { font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
.section-sub { margin-top: 0.75rem; color: var(--muted-foreground); max-width: 44rem; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.product-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product-card { padding: 2rem; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.625rem;
  background: var(--primary-soft); color: var(--primary-strong);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); margin-bottom: 1.25rem;
}
.card-icon svg { width: 1.375rem; height: 1.375rem; }
.product-card h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.card-tag {
  font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground);
  background: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.125rem 0.625rem;
}
.card-lead { margin-top: 0.75rem; color: var(--muted-foreground); }
.feature-list { margin: 1.25rem 0 1.75rem; list-style: none; display: grid; gap: 0.625rem; font-size: 0.9375rem; }
.feature-list li { padding-left: 1.25rem; position: relative; color: var(--muted-foreground); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--primary);
}
.feature-list strong { color: var(--foreground); font-weight: 600; }
.card-action { margin-top: auto; align-self: flex-start; }

/* ---------- 价格 ---------- */
.pricing-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.price-card { padding: 1.75rem 1.5rem; position: relative; }
.price-card h3 { font-size: 1rem; font-weight: 600; }
.price { margin-top: 0.875rem; }
.price em { font-style: normal; font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; }
.price small { color: var(--muted-foreground); font-size: 0.875rem; margin-left: 0.25rem; }
.price-note { margin-top: 0.5rem; font-size: 0.875rem; color: var(--foreground); }
.price-desc { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.price-hot { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }
.hot-badge {
  position: absolute; top: -0.75rem; right: 1.25rem;
  background: var(--primary); color: #fff; font-size: 0.75rem;
  border-radius: 999px; padding: 0.125rem 0.75rem;
}
.pricing-cta { margin-top: 2.25rem; text-align: center; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-text { margin-top: 1rem; color: var(--muted-foreground); }
.about-links { display: grid; gap: 1rem; }
.link-card { padding: 1.5rem; }
.link-card h3 { font-size: 1rem; }
.link-card p { margin-top: 0.375rem; font-size: 0.9375rem; color: var(--muted-foreground); }
.link-card a { display: inline-block; margin-top: 0.75rem; font-size: 0.9375rem; color: var(--primary-strong); font-weight: 500; }
.link-card a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer { background: #18181b; color: #d4d4d8; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-slogan { margin-top: 0.5rem; font-size: 0.9375rem; color: #a1a1aa; }
.site-footer h4 { color: #fff; font-size: 0.9375rem; margin-bottom: 0.75rem; }
.site-footer p { font-size: 0.9375rem; margin-top: 0.375rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #27272a; padding-top: 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
  font-size: 0.875rem; color: #71717a;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .product-grid, .about-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 4rem; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.5rem 1rem; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 0.875rem; }
  .nav-toggle { display: block; }
  .hero { padding: 4rem 0 3.5rem; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}
