/* =========================================================
   Nova 主题 — 智简魔方财务系统 Web 主题样式
   适用范围：/public/themes/web/nova/
   ========================================================= */

:root {
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --accent: #06b6d4;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(79, 70, 229, 0.08); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  transition: all .18s ease; text-align: center; white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, 0.36); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f1f5f9; color: var(--brand-2); }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav-wrap { display: flex; align-items: center; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand .brand-logo {
  width: 36px; height: 36px; border-radius: 9px; background: var(--brand-grad);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
}
.brand span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: 12px; flex: 1; }
.nav a.nav-link { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a.nav-link:hover { color: var(--brand); background: rgba(79, 70, 229, 0.06); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(800px 420px at 10% 10%, rgba(6, 182, 212, 0.14), transparent 55%),
    var(--bg-soft);
  padding: 88px 0 96px;
}
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero .meta b { display: block; font-size: 24px; color: var(--ink); }
.hero .meta span { color: var(--muted); font-size: 14px; }
.hero-visual {
  position: relative; background: var(--brand-grad); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow-lg); min-height: 340px; display: flex; flex-direction: column; color: #fff;
}
.hero-visual .term {
  background: rgba(15, 23, 42, 0.85); border-radius: 12px; padding: 18px; font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.8; flex: 1;
}
.hero-visual .term .prompt { color: #34d399; }
.hero-visual .term .ok { color: #22d3ee; }
.hero-visual .badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-visual .badges span { background: rgba(255,255,255,0.16); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }

/* ---------- 特性 ---------- */
.features { background: #fff; }
.features .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); transition: all .18s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature .ico {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(79, 70, 229, 0.1); color: var(--brand); margin-bottom: 16px; font-size: 22px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- 价格 / 产品卡片 ---------- */
.pricing { background: var(--bg-soft); }
.pricing .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; position: relative; transition: all .18s ease;
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.plan.hot { border-color: var(--brand); box-shadow: 0 10px 34px rgba(79, 70, 229, 0.14); }
.plan .hot-tag {
  position: absolute; top: -12px; right: 20px; background: var(--brand-grad); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.plan .plan-name { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.plan .plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan .plan-price b { font-size: 38px; letter-spacing: -0.02em; }
.plan .plan-price span { color: var(--muted); font-size: 14px; }
.plan .plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan ul li { padding: 8px 0; font-size: 14.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: center; border-bottom: 1px dashed var(--line); }
.plan ul li:last-child { border-bottom: 0; }
.plan ul li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-grad); flex-shrink: 0; }
.plan .btn { width: 100%; }

/* ---------- 区域 ---------- */
.regions { background: #fff; }
.regions .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.region { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.region .flag { font-size: 30px; }
.region h4 { margin: 10px 0 2px; font-size: 15px; }
.region p { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- 常见问题 ---------- */
.faq { background: var(--bg-soft); }
.faq .list { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { color: var(--muted); padding: 0 0 18px; font-size: 15px; }

/* ---------- CTA ---------- */
.cta { background: var(--brand-grad); color: #fff; text-align: center; border-radius: 24px; padding: 56px 32px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); }
.cta .btn-white { margin-top: 8px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 64px 0 0; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: #94a3b8; font-size: 14px; }
.site-footer ul a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer .foot-bottom { border-top: 1px solid rgba(148, 163, 184, 0.15); padding: 20px 0; font-size: 13.5px; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- 内页通用 ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 52px 0; text-align: center; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.list-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .title { font-weight: 600; color: var(--ink); }
.list-item .time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.tag { display: inline-block; background: rgba(79,70,229,0.08); color: var(--brand); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty .ico { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }

/* ---------- 联系页 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-card .ico { font-size: 26px; margin-bottom: 10px; }
.contact-card h4 { margin-bottom: 4px; }
.contact-card p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* ---------- 文章内容 ---------- */
.article { max-width: 780px; margin: 0 auto; font-size: 16px; }
.article h2 { margin-top: 32px; }
.article p { color: var(--ink-2); }
.article img { border-radius: 12px; margin: 16px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .features .grid { grid-template-columns: repeat(2, 1fr); }
  .pricing .grid { grid-template-columns: 1fr; }
  .regions .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-right .btn-ghost { display: none; }
  .features .grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .regions .grid { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
}
