/* =====================================================================
 * 一二三生活科技（北京）有限公司 · 企业官网模板
 * 适用：index / products / downloads / about
 * 配图位于 assets/img/，由 AI 生成，可替换为自有素材。
 * 所有颜色、文案均可通过 :root 变量与 data/*.js 调整，便于二次开发。
 * ===================================================================== */
:root {
  --brand: #2f5bea;          /* 主品牌色（智蓝） */
  --brand-dark: #1e40af;
  --brand-light: #eef3ff;
  --accent: #06b6d4;         /* 融合青 */
  --ink: #0f172a;            /* 主文字 */
  --ink-2: #475569;          /* 次要文字 */
  --ink-3: #94a3b8;          /* 辅助文字 */
  --line: #e5e9f2;           /* 分隔线 */
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(15, 23, 42, .28);
  --shadow-sm: 0 6px 18px -10px rgba(15, 23, 42, .3);
  --maxw: 1180px;
  --header-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 8px; object-fit: contain; display: block;
}
.brand small { display:block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 1px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-2);
  font-size: 15px; font-weight: 500; transition: .2s;
}
.nav a:hover { color: var(--brand); background: var(--brand-light); }
.nav a.active { color: #fff; background: var(--brand); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 24px; cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand-light); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-light:hover { background: rgba(255,255,255,.3); }

/* ---------- Hero（带背景图） ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 84px;
  background: url("../img/hero-ai-security.png") center/cover no-repeat,
              linear-gradient(135deg, #0b1f4d, #0e2a6b);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(8,18,45,.9) 0%, rgba(8,18,45,.62) 42%, rgba(8,18,45,.28) 100%);
}
.hero .container { position: relative; z-index: 1; color: #fff; }
.hero .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.18; margin: 12px 0 18px; letter-spacing: -.5px; color:#fff; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.86); max-width: 660px; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.hero .stats .num { font-size: 30px; font-weight: 800; color: #fff; }
.hero .stats .label { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 10px 0 12px; }
.section-head p { color: var(--ink-2); margin: 0; }

/* ---------- 三大业务领域（图文） ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pillar img { width: 100%; height: 190px; object-fit: cover; }
.pillar .p-body { padding: 22px; }
.pillar .p-body h3 { margin: 0 0 8px; font-size: 20px; }
.pillar .p-body .tag { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.pillar .p-body p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 特性 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: .2s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-light);
  color: var(--brand); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 产品卡片（支持封面图） ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .cover {
  height: 172px; display: grid; place-items: center; color: #fff; position: relative;
  background-size: cover; background-position: center;
}
.product-card .cover::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0) 38%, rgba(15,23,42,.5) 100%);
}
.product-card .cover .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,.32); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.product-card .cover .ico-lg { position: relative; z-index: 1; font-size: 42px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.product-card .cover .ptitle {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2;
  font-size: 19px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; font-size: 18px; }
.product-card p { margin: 0; color: var(--ink-2); font-size: 14px; flex: 1; }
.product-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* ---------- 下载卡片 ---------- */
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.download-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 18px; align-items: flex-start; transition: .2s;
}
.download-card:hover { box-shadow: var(--shadow); }
.download-card .app-ico {
  width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center;
  color: #fff; font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.download-card .info { flex: 1; min-width: 0; }
.download-card h3 { margin: 0 0 4px; font-size: 18px; }
.download-card .desc { color: var(--ink-2); font-size: 14px; margin: 0 0 10px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.platform {
  font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  color: var(--ink-2); background: var(--bg-soft);
}
.platform b { color: var(--ink); font-weight: 600; }
.platform .sz { color: var(--ink-3); margin-left: 6px; }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dl-row .ver { font-size: 13px; color: var(--ink-3); }

/* ---------- 关于 / 联系 ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.about-grid h2 { margin-top: 0; }
.about-figure { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.about-figure img { width: 100%; height: 320px; object-fit: cover; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.contact-card .row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row .k { color: var(--ink-3); width: 78px; flex: none; }
.contact-card .row .v { color: var(--ink); font-weight: 500; }

/* ---------- 文化横幅（图文） ---------- */
.culture {
  position: relative; overflow: hidden; color: #fff;
  background: url("../img/culture.png") center/cover no-repeat, linear-gradient(135deg, #0b1f4d, #123a8a);
}
.culture::before { content: ""; position: absolute; inset: 0; background: rgba(8,18,45,.72); }
.culture .container { position: relative; z-index: 1; }
.culture .section-head h2, .culture .section-head .eyebrow { color: #fff; }
.culture .section-head p { color: rgba(255,255,255,.82); }
.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.culture-item {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 28px 24px; text-align: center; backdrop-filter: blur(4px);
}
.culture-item .c-ico { font-size: 34px; margin-bottom: 12px; }
.culture-item h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: 4px; }
.culture-item p { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 54px 0 28px; margin-top: 40px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-bar { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; font-size: 13px; color: #64748b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.footer-brand .logo { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; display: block; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .pillars, .feature-grid, .product-grid, .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 24px; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 10px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .pillars, .feature-grid, .product-grid, .culture-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero .stats { gap: 24px; }
}
