/* ============================================================
   一帆远航 · 隐患排查/安全巡检 企业官网
   蓝色系 · 现代卡片式设计（参照李厂长 lizhenning.com 风格）
   ============================================================ */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --navy-800: #0f2b5b;
  --navy-900: #0b1f42;

  --ink-900: #0f172a;
  --ink-700: #1e293b;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;

  --bg: #f6f9ff;
  --bg-soft: #eef4ff;
  --card: #ffffff;
  --line: #e2e8f0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 91, .08);
  --shadow: 0 6px 24px rgba(15, 42, 91, .08);
  --shadow-lg: 0 18px 48px rgba(15, 42, 91, .14);

  --grad: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e3a8a 100%);
  --grad-soft: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 21px;
  color: var(--navy-900);
  letter-spacing: 1px;
}
.logo:hover { color: var(--blue-700); }
.logo-badge {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.logo .sub { font-size: 11px; font-weight: 500; color: var(--ink-400); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  border-radius: 9px;
  transition: .18s;
}
.main-nav > li > a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav > li.active > a { color: var(--blue-700); background: var(--blue-50); }
.main-nav > li > a .caret {
  display: inline-block; margin-left: 5px; font-size: 10px;
  transform: translateY(-2px); transition: .18s;
}
.main-nav > li:hover > a .caret { transform: translateY(-2px) rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
}
.main-nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.dropdown a {
  display: block;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: 8px;
  transition: .15s;
}
.dropdown a:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown .divider { height: 1px; background: var(--line); margin: 6px 4px; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  background: var(--grad);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .32);
  transition: .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 99, 235, .4); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink-700);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
  top: -220px; right: -120px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  bottom: -200px; left: -100px;
}
.hero-inner {
  position: relative;
  padding: 76px 0 92px;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
  display: flex;
  align-items: center;
  gap: 52px;
}
.hero-copy { flex: 1 1 56%; min-width: 0; }
.hero-art { flex: 1 1 44%; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 470px; height: auto; filter: drop-shadow(0 24px 44px rgba(0,0,0,.25)); }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.16;
  font-weight: 800;
  margin: 22px 0 18px;
  letter-spacing: 1px;
}
.hero h1 .hl { color: #bfdbfe; }
.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.88);
  max-width: 640px;
  line-height: 1.85;
}
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: .2s;
  cursor: pointer;
}
.btn-white { background: #fff; color: var(--blue-700); box-shadow: var(--shadow); }
.btn-white:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.hero-stats {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
}
.hero-stat { padding: 16px 20px; background: rgba(255,255,255,.1); border-radius: 14px; border: 1px solid rgba(255,255,255,.18); }
.hero-stat .num { font-size: 30px; font-weight: 800; line-height: 1.1; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,.82); margin-top: 3px; }

/* ---------- 板块通用 ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head .tag {
  display: inline-block;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 13px; font-weight: 700;
  padding: 5px 15px; border-radius: 999px; letter-spacing: .5px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--ink-900); margin: 14px 0 12px; }
.section-head p { color: var(--ink-400); font-size: 16px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: .24s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.card .icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  margin-bottom: 18px;
}
.card .kicker { font-size: 12px; font-weight: 700; color: var(--blue-600); letter-spacing: .8px; text-transform: uppercase; }
.card h3 { font-size: 20px; font-weight: 800; color: var(--ink-900); margin: 6px 0 10px; }
.card p { color: var(--ink-500); font-size: 15px; flex: 1; }
.card .link { margin-top: 18px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card .link .arr { transition: .2s; }
.card:hover .link .arr { transform: translateX(4px); }

/* ---------- 渐变主题（用于图标横幅） ---------- */
.grad-blue   { background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%); }
.grad-cyan   { background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%); }
.grad-indigo { background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%); }
.grad-sky    { background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%); }

/* 简洁图标徽标（白色圆底 + emoji） */
.icon-badge {
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
  box-shadow: 0 12px 26px rgba(15,42,91,.22);
  transition: transform .3s ease;
}
.icon-badge.lg { width: 128px; height: 128px; font-size: 64px; }
.card:hover .icon-badge, .solution-card:hover .icon-badge { transform: scale(1.08) rotate(-4deg); }

/* 产品卡片横幅图（图标） */
.prod-thumb {
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.prod-thumb::after {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255,255,255,.12); top: -40px; right: -30px;
}

/* 图文左右分栏（产品/解决方案详情页） */
.split { display: flex; align-items: center; gap: 36px; }
.split > .split-art {
  flex: 1 1 44%;
  min-height: 220px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.split > .split-art::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.12); bottom: -60px; left: -40px;
}
.split > .split-txt { flex: 1 1 56%; }
@media (max-width: 768px) { .split { flex-direction: column; } }

/* 解决方案卡片 */
.solution-card { overflow: hidden; padding: 0; }
.solution-card .thumb {
  height: 170px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.solution-card .thumb::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.12); top: -40px; right: -24px;
}
.solution-card .body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }

/* ---------- 浅色带背景板块 ---------- */
.section-alt { background: #fff; }
.section-muted { background: var(--bg-soft); }

/* ---------- 关于板块 ---------- */
.about-tiles { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.about-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  transition: .24s;
}
.about-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.about-tile .icon { font-size: 44px; margin-bottom: 14px; }
.about-tile h3 { font-size: 20px; font-weight: 800; color: var(--ink-900); margin-bottom: 10px; }
.about-tile p { color: var(--ink-500); font-size: 15px; }

/* ---------- 页头（子页面 banner） ---------- */
.page-hero {
  background: var(--grad);
  color: #fff;
  padding: 66px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
  top: -160px; right: -80px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: 1px; }
.page-hero .crumb { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 10px; }
.page-hero .crumb a { color: rgba(255,255,255,.85); }
.page-hero .crumb a:hover { color: #fff; }
.page-hero .crumb .sep { margin: 0 8px; opacity: .6; }

/* ---------- 文章正文 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 48px; box-shadow: var(--shadow-sm); }
.article-body h2 { font-size: 22px; color: var(--ink-900); margin: 28px 0 12px; font-weight: 800; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; color: var(--blue-800); margin: 22px 0 10px; font-weight: 700; }
.article-body p { color: var(--ink-500); margin-bottom: 16px; }
.article-body ul { margin: 8px 0 18px 4px; }
.article-body li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--ink-500);
}
.article-body li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-500);
}
.article-meta { color: var(--ink-300); font-size: 13px; margin-bottom: 22px; }

/* ---------- 列表页 ---------- */
.list-item {
  display: flex; gap: 24px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 20px; transition: .22s;
}
.list-item:hover { box-shadow: var(--shadow); border-color: var(--blue-200); transform: translateY(-3px); }
.list-item .num {
  flex: 0 0 48px; height: 48px; border-radius: 13px;
  background: var(--blue-50); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.list-item h3 { font-size: 19px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.list-item p { color: var(--ink-500); font-size: 15px; }

/* ---------- 联系 / 表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic {
  flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.contact-row .lbl { font-size: 13px; color: var(--ink-400); }
.contact-row .val { font-size: 16px; font-weight: 700; color: var(--ink-900); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 20px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.form-card .hint { font-size: 14px; color: var(--ink-400); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-700); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink-900);
  background: var(--bg); transition: .18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 4px var(--blue-100); }
.btn-primary {
  width: 100%; justify-content: center;
  background: var(--grad); color: #fff; border: none;
  font-weight: 700; font-size: 16px; padding: 14px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 99, 235, .4); }
.mail-tip { margin-top: 12px; font-size: 12.5px; color: var(--ink-300); line-height: 1.6; text-align: center; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy-900); color: #cbd5e1; }
.footer-main { padding: 66px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: #94a3b8; max-width: 260px; }
.footer-col h4 { font-size: 15px; color: #fff; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-contact .line { font-size: 14px; color: #94a3b8; margin-bottom: 9px; display: flex; gap: 8px; }
.footer-contact .phone { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  font-size: 13px;
  color: #7c8ba1;
  text-align: center;
  line-height: 2;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad); color: #fff; border: none;
  font-size: 20px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .35);
  opacity: 0; visibility: hidden; transition: .25s;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 70px 20px; color: var(--ink-400);
}
.empty .icon { font-size: 56px; margin-bottom: 16px; opacity: .6; }
.empty h3 { font-size: 20px; color: var(--ink-700); margin-bottom: 8px; }

/* ---------- 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(18px, -18px); }
}

.hero-copy .eyebrow       { animation: fadeUp .6s ease both; }
.hero-copy h1             { animation: fadeUp .7s .08s ease both; }
.hero-copy .lead          { animation: fadeUp .7s .16s ease both; }
.hero-copy .hero-actions  { animation: fadeUp .7s .24s ease both; }
.hero-copy .hero-stats    { animation: fadeUp .7s .32s ease both; }
.hero-art                 { animation: fadeUp .8s .2s ease both; }
.hero-art svg             { animation: floatY 6s ease-in-out infinite; }
.hero::before             { animation: drift 12s ease-in-out infinite; }
.hero::after              { animation: drift 16s ease-in-out infinite reverse; }
.page-hero::before        { animation: drift 14s ease-in-out infinite; }

/* 滚动入场 */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow, .hero-copy h1, .hero-copy .lead,
  .hero-copy .hero-actions, .hero-copy .hero-stats, .hero-art,
  .hero-art svg, .hero::before, .hero::after, .page-hero::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero-inner { flex-direction: column; gap: 40px; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 360px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .about-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > li > a { padding: 11px 12px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 2px 0 6px 14px; min-width: 0;
  }
  .main-nav > li > a .caret { display: none; }
  .nav-cta { margin-top: 10px; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .about-tiles, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 66px 0 74px; }
  .article-body { padding: 28px 22px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
