/* ==========================================================================
   九黎智能 (Jiuli Intelligence) 官网样式
   ========================================================================== */
:root {
  --primary: #0b1e3f;        /* 深海军蓝 */
  --primary-2: #123063;
  --accent: #3d8bff;         /* 科技蓝 */
  --accent-2: #22c8ff;       /* 亮青 */
  --ink: #1c2333;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --line: #e4eaf3;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(11, 30, 63, .10);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary-2); }
img { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 19px;
  box-shadow: 0 4px 12px rgba(61,139,255,.35);
}
.brand-name { font-size: 19px; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.brand-name small { display:block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 20px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-2); }

.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(61,139,255,.18), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(34,200,255,.14), transparent 60%),
    linear-gradient(160deg, #0b1e3f 0%, #102a58 55%, #14396e 100%);
  color: #fff;
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-block; font-size: 13px; letter-spacing: 3px;
  color: var(--accent-2); border: 1px solid rgba(34,200,255,.4);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-2), #7cc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: #cdd9ec; max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: 15px; transition: .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

.hero-panel {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-panel .term { display:flex; gap: 8px; margin-bottom: 18px; }
.hero-panel .dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-panel .dot:nth-child(1){ background:#ff5f57; }
.hero-panel .dot:nth-child(2){ background:#febc2e; }
.hero-panel .dot:nth-child(3){ background:#28c840; }
.code-line { font-family: var(--mono); font-size: 13px; color: #bfe3ff; padding: 3px 0; }
.code-line .c { color: #5f7ea6; }
.code-line .k { color: #ffd479; }
.code-line .s { color: #7ee787; }
.code-line .h { color: #22c8ff; }

/* ---------- 区块通用 ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .tag {
  display: inline-block; font-size: 12px; letter-spacing: 2px;
  color: var(--accent); background: rgba(61,139,255,.1);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; font-weight: 600;
}
.section-head h2 { font-size: 30px; color: var(--primary); margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* ---------- 卡片 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(61,139,255,.14), rgba(34,200,255,.14));
}
.card h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- 产品大卡 ---------- */
.product-banner {
  background: linear-gradient(135deg, #0d2447, #16406f);
  border-radius: 18px; color: #fff; padding: 44px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center;
}
.product-banner h3 { font-size: 26px; margin-bottom: 12px; }
.product-banner p { color: #c7d6ec; margin-bottom: 20px; }
.product-banner .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-banner .feats div { display: flex; gap: 8px; font-size: 14px; color: #dce8fb; }
.product-banner .feats div::before { content: "✓"; color: var(--accent-2); font-weight: 700; }

/* ---------- 数据/优势 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num { font-size: 34px; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-info .item .ic { font-size: 22px; color: var(--accent); }
.contact-info .item h4 { font-size: 15px; color: var(--primary); }
.contact-info .item p { font-size: 14px; color: var(--muted); word-break: break-all; }
.map-note {
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 20px; font-size: 13px; color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1830; color: #8fa3c4; padding: 48px 0 30px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #8fa3c4; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #6d82a6; margin-top: 10px; font-size: 12.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #6d82a6;
}
.footer-bottom a { color: #8fa3c4; display: inline; }

/* ---------- 内页 ---------- */
.page-hero {
  background: linear-gradient(160deg, #0b1e3f, #14396e); color: #fff;
  padding: 60px 0; margin-bottom: 8px;
}
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: #c7d6ec; }
.prose { max-width: 860px; }
.prose h2 { font-size: 22px; color: var(--primary); margin: 34px 0 12px; }
.prose h3 { font-size: 17px; color: var(--primary); margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; color: #333b4a; }
.prose ul { margin: 0 0 14px 22px; color: #333b4a; }
.prose li { margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: 14px; border-left: 3px solid var(--accent); padding-left: 12px; margin: 18px 0; }
.prose blockquote { border-left: 3px solid var(--accent); background: var(--bg-soft); padding: 14px 18px; border-radius: 0 8px 8px 0; color: var(--muted); margin: 16px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .product-banner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px;
    border-bottom: 1px solid var(--line); gap: 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0; }
}
