/* Nova 前台品牌首页样式 —— 独立 .css 文件，不经过 PHP 模板编译器 */

:root {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e6eaf2;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-soft: #eef2ff;
  --ok: #16a34a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(15, 23, 42, .08);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --maxw: 1140px;
  --grad: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #2563eb 100%);
}

[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-soft: #121a2e;
  --bg-elev: #16203a;
  --text: #e7ecf6;
  --text-muted: #94a3b8;
  --border: #28324c;
  --primary: #818cf8;
  --primary-2: #a78bfa;
  --primary-soft: #1c2746;
  --shadow: 0 16px 40px rgba(0, 0, 0, .5);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .35);
  --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #3b82f6 100%);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(10px);
  background: color-mix(in srgb, var(--bg-soft) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .4);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-muted); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right .btn {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  gap: 4px;
}
.nav-right .btn-primary { box-shadow: 0 4px 12px rgba(79, 70, 229, .28); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  font-size: 16px; display: grid; place-items: center; transition: .2s;
}
.theme-toggle:hover { border-color: var(--primary); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .35); }
.btn-ghost { background: var(--bg-elev); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px; z-index: 0;
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.badge .v { background: var(--grad); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -1px; font-weight: 850;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-muted); max-width: 660px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .s { text-align: center; }
.hero-stats .num { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .lab { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .k { color: var(--primary); font-weight: 800; font-size: 13.5px; letter-spacing: 2px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 8px; letter-spacing: -.5px; }
.sec-head p { color: var(--text-muted); margin: 0 auto; max-width: 560px; }

/* ---------- 特性卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* ---------- 架构列表 ---------- */
.arch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.arch li { list-style: none; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.arch li b { color: var(--text); }
.arch .tag { color: var(--primary); font-weight: 800; min-width: 26px; }
ul.arch { padding: 0; margin: 0; }

/* ---------- 快速入口 ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qitem {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border); transition: .2s;
}
.qitem:hover { border-color: var(--primary); transform: translateY(-2px); }
.qitem .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 18px; }
.qitem .t { font-weight: 700; }
.qitem .d { font-size: 12.5px; color: var(--text-muted); }
.lock { font-size: 11px; color: var(--text-muted); border: 1px solid var(--border); padding: 1px 7px; border-radius: 999px; margin-left: auto; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; border-radius: 22px; padding: 56px 28px; color: #fff;
  background: var(--grad); box-shadow: 0 20px 50px rgba(79, 70, 229, .35);
}
.cta h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 12px; }
.cta p { margin: 0 0 26px; opacity: .92; }
.cta .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }

/* ---------- 页脚 ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13.5px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .quick { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .grid-3, .grid-2, .quick { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero-stats { gap: 26px; }
  .section { padding: 48px 0; }
}
