/* ===================================================================
   广西智纽智能科技有限公司 · 官网样式
   主题：科技蓝 → 青色渐变 / 响应式 / 零依赖
   =================================================================== */

:root {
  --primary: #0B2A5B;        /* 深海军蓝 */
  --primary-2: #123A7A;      /* 中蓝 */
  --primary-3: #1E5BC6;      /* 亮蓝 */
  --accent: #00B8D9;         /* 青色 */
  --accent-2: #2DD4BF;       /* 蓝绿 */
  --bg: #ffffff;
  --bg-soft: #F4F7FB;
  --bg-deep: #0A1F3C;
  --text: #1A2B45;
  --text-soft: #5B6B82;
  --border: #E3E9F2;
  --shadow-sm: 0 2px 10px rgba(11, 42, 91, .06);
  --shadow-md: 0 12px 32px rgba(11, 42, 91, .10);
  --shadow-lg: 0 24px 60px rgba(11, 42, 91, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #fff; }

/* ---------- 通用标题 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 3px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800; line-height: 1.25; margin-bottom: 16px; letter-spacing: -.5px;
}
.section-sub {
  font-size: 17px; color: var(--text-soft); max-width: 720px; margin: 0 auto;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section--deep .section-sub { color: rgba(255,255,255,.72); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; border: 1.5px solid transparent; white-space: nowrap;
}
.btn--primary { background: linear-gradient(120deg, var(--primary-3), var(--accent)); color: #fff; box-shadow: 0 10px 24px rgba(0,184,217,.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,184,217,.40); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.10); transform: translateY(-2px); }
.btn--outline { border-color: var(--primary-3); color: var(--primary-3); }
.btn--outline:hover { background: var(--primary-3); color: #fff; transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease, background .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; color: var(--primary); }
.brand .logo { width: 38px; height: 38px; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; color: var(--text-soft); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--primary-3); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: .3s; }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0,184,217,.30), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(30,91,198,.35), transparent 55%),
              linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 55%, #0d3a7e 100%);
  color: #fff; padding: 168px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06'%3E%3Ccircle cx='120' cy='90' r='2'/%3E%3Ccircle cx='320' cy='200' r='2'/%3E%3Ccircle cx='540' cy='80' r='2'/%3E%3Ccircle cx='760' cy='260' r='2'/%3E%3Ccircle cx='980' cy='120' r='2'/%3E%3Ccircle cx='1100' cy='300' r='2'/%3E%3Ccircle cx='220' cy='420' r='2'/%3E%3Ccircle cx='640' cy='460' r='2'/%3E%3Ccircle cx='900' cy='520' r='2'/%3E%3Cpath d='M120 90 L320 200 L540 80 L760 260 L980 120 L1100 300'/%3E%3Cpath d='M220 420 L540 80 L640 460 L900 520 L1100 300'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; opacity: .9;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(90deg, #7fe9ff, #2DD4BF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .num { font-size: 30px; font-weight: 800; color: #7fe9ff; }
.hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.7); }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px; padding: 30px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 18px; margin-bottom: 18px; color: #cdeeff; }
.hero-card ul li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; color: rgba(255,255,255,.9); border-bottom: 1px dashed rgba(255,255,255,.12); }
.hero-card ul li:last-child { border-bottom: 0; }
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); flex: none; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(0,184,217,.4); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(30,91,198,.12), rgba(0,184,217,.16));
  color: var(--primary-3); margin-bottom: 20px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--primary-3); font-weight: 600; font-size: 14px; }

/* ---------- 流程/时间线 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--primary-3)); }
.tl-item { position: relative; padding: 0 0 38px 64px; }
.tl-item .year { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); color: var(--primary-3); display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: var(--shadow-sm); }
.tl-item h4 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { color: var(--text-soft); }

/* ---------- 数据条 ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.metric .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; background: linear-gradient(90deg,#7fe9ff,#2DD4BF); -webkit-background-clip:text; background-clip:text; color: transparent; }
.metric .lbl { color: rgba(255,255,255,.78); font-size: 14px; margin-top: 6px; }

/* ---------- 行业方案 ---------- */
.solution { display: flex; gap: 20px; align-items: flex-start; padding: 22px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); transition: .25s; }
.solution:hover { background: #fff; box-shadow: var(--shadow-sm); }
.solution .tag { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* ---------- 新闻 ---------- */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-thumb { height: 168px; background: linear-gradient(135deg, var(--primary-2), var(--accent)); position: relative; overflow: hidden; }
.news-thumb .cat { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.news-thumb svg { position: absolute; right: -20px; bottom: -20px; width: 160px; height: 160px; opacity: .25; }
.news-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.news-body .date { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.news-body h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.news-body p { color: var(--text-soft); font-size: 14px; flex: 1; }
.news-body .more { margin-top: 14px; color: var(--primary-3); font-weight: 600; font-size: 14px; }

/* ---------- 表单 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,184,217,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-list .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--bg-soft); color: var(--primary-3); display: grid; place-items: center; }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list .k { font-size: 13px; color: var(--text-soft); }
.info-list .v { font-size: 15px; font-weight: 600; }
.form-note { font-size: 13px; color: var(--text-soft); margin-top: 6px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer p.desc { font-size: 14px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-links a { display: block; padding: 7px 0; font-size: 14px; color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- 回到顶部 ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary-3); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; align-items: stretch;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta .btn--outline { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}
