/* =========================================================
   安徽宇江智能科技有限公司 — 芜湖安防监控官网落地页
   ========================================================= */

:root {
  --blue-900: #0a2540;
  --blue-800: #103a66;
  --blue-700: #1657a0;
  --blue-600: #1e6fd0;
  --blue-500: #2b86f0;
  --accent:   #f5a623;
  --accent-d: #e0930f;
  --ink:      #15233a;
  --gray-700: #3c4a5e;
  --gray-500: #6b7a90;
  --gray-300: #cdd6e2;
  --gray-100: #eef2f7;
  --bg:       #ffffff;
  --bg-alt:   #f4f7fb;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(16, 58, 102, .10);
  --shadow-sm:0 4px 14px rgba(16, 58, 102, .08);
  --maxw:     1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 92%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-d));
  color: #fff; box-shadow: 0 8px 20px rgba(245, 166, 35, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 166, 35, .45); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 16px 38px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(16,58,102,.10); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: grid; grid-template-columns: auto auto; grid-template-areas: "logo mark" "logo sub"; column-gap: 10px; align-items: center; line-height: 1.15; }
.brand-logo { grid-area: logo; width: 42px; height: 42px; display: block; }
.brand-mark { grid-area: mark; font-size: 21px; font-weight: 800; color: var(--blue-800); letter-spacing: 1px; align-self: end; }
.brand-sub { grid-area: sub; font-size: 12px; color: var(--gray-500); align-self: start; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15.5px; color: var(--gray-700); font-weight: 500; position: relative; }
.nav a:hover { color: var(--blue-600); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue-600); transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.header-cta {
  background: var(--blue-700); color: #fff; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
}
.header-cta::before { content: "📞 "; }
.header-cta:hover { background: var(--blue-600); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--blue-800); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(43,134,240,.55), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(245,166,35,.20), transparent 40%),
    linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 70%);
}
.hero-inner {
  position: relative; padding: 76px 0 84px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px;
}
.hero-text { max-width: 640px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 16px 40px rgba(0,0,0,.25)); }
.hero-tag {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 16px; border-radius: 999px; font-size: 14px; margin-bottom: 22px;
}
.hero-title { font-size: 56px; font-weight: 900; letter-spacing: 4px; line-height: 1.15; margin-bottom: 16px; }
.hero-keywords { font-size: 19px; color: #cfe3ff; font-weight: 600; margin-bottom: 20px; }
.hero-desc { font-size: 16.5px; color: rgba(255,255,255,.9); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.hero-badges li { font-size: 15px; color: #d9e7ff; }

/* ---------- 当前导航高亮 ---------- */
.nav a.active { color: var(--blue-600); font-weight: 700; }
.nav a.active::after { width: 100%; }

/* ---------- 子页面顶部横幅 ---------- */
.subhero { position: relative; color: #fff; overflow: hidden; }
.subhero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--blue-700) 100%); }
.subhero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 82% 30%, #000 0%, transparent 70%);
}
.subhero-inner { position: relative; padding: 54px 0 48px; }
.subhero .eyebrow { color: #cfe3ff; }
.subhero .eyebrow::before, .subhero .eyebrow::after { color: rgba(255,255,255,.4); }
.subhero h1 { font-size: 36px; font-weight: 800; letter-spacing: 1px; }
.subhero .sub-lead { margin-top: 12px; color: rgba(255,255,255,.85); font-size: 16px; max-width: 760px; }
.breadcrumb { margin-top: 16px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* ---------- 数据业绩 ---------- */
.stats { background: var(--blue-900); padding: 4px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 30px 10px; color: #fff; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 44px; font-weight: 800; color: var(--accent); }
.stat-plus { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat p { font-size: 14.5px; color: rgba(255,255,255,.8); margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; color: var(--blue-600); font-weight: 700; font-size: 14px;
  letter-spacing: 2px; margin-bottom: 12px;
}
.eyebrow::before, .eyebrow::after { content: "—"; margin: 0 8px; color: var(--gray-300); }
.section-head h2 { font-size: 34px; font-weight: 800; color: var(--ink); }
.section-lead { margin-top: 14px; color: var(--gray-500); font-size: 16px; }

/* ---------- 企业简介 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: stretch; margin-bottom: 28px; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text p { margin-bottom: 18px; color: var(--gray-700); font-size: 16px; }
.about-text strong { color: var(--blue-700); }
.about-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-points li { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 18px 18px 44px; position: relative; color: var(--gray-700); box-shadow: var(--shadow-sm); font-size: 14.5px; }
.about-points li::before { content: "✔"; position: absolute; left: 18px; top: 18px; color: var(--blue-600); font-weight: 800; }
.about-points strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* 资质背书 */
.quals { margin-top: 44px; }
.quals-title { text-align: center; font-size: 19px; color: var(--ink); margin-bottom: 22px; }
.quals-title::before, .quals-title::after { content: "—"; color: var(--gray-300); margin: 0 10px; }
.quals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 24px; justify-content: center; }
.quals figure { background: var(--bg); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .2s ease; }
.quals figure:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quals figure img { width: 100%; border-radius: 8px; }
.quals figcaption { margin-top: 10px; font-size: 14.5px; color: var(--gray-700); font-weight: 600; }

/* ---------- 工程案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.case-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  color: #fff; font-size: 16px; font-weight: 700;
  background: linear-gradient(transparent, rgba(10, 37, 64, .82));
}

/* ---------- 卡片网格（优势） ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d6e4f7; }
.card-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(135deg, #e9f2ff, #d4e6ff); margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--gray-500); }
.card-accent { background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); color: #fff; border: none; }
.card-accent h3, .card-accent p { color: #fff; }
.card-accent .card-ico { background: rgba(255,255,255,.18); }

/* ---------- 主营业务 ---------- */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.service-item {
  display: flex; gap: 20px; background: var(--bg-alt); border-radius: var(--radius);
  padding: 26px 28px; border-left: 4px solid var(--blue-600); transition: transform .18s ease;
}
.service-item:hover { transform: translateX(4px); }
.service-no { font-size: 34px; font-weight: 900; color: var(--blue-500); opacity: .35; line-height: 1; }
.service-item h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.service-item p { font-size: 14.5px; color: var(--gray-700); }

/* ---------- 收费套餐 ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg {
  position: relative; background: var(--bg); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pkg h3 { font-size: 20px; color: var(--ink); }
.pkg-type { display: inline-block; margin: 8px 0 14px; font-size: 13px; font-weight: 700;
  color: var(--blue-700); background: #e9f2ff; padding: 3px 12px; border-radius: 999px; }
.pkg-scene { font-size: 14px; color: var(--gray-500); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--gray-300); }
.pkg-scene strong { color: var(--gray-700); }
.pkg ul { margin-bottom: 16px; }
.pkg ul li { font-size: 14.5px; color: var(--gray-700); padding: 6px 0 6px 24px; position: relative; }
.pkg ul li::before { content: "›"; position: absolute; left: 6px; color: var(--blue-600); font-weight: 800; }
.pkg-adv { font-size: 14.5px; font-weight: 600; color: var(--accent-d); background: #fff7ea; padding: 10px 14px; border-radius: 10px; }
.pkg-hot { border: 2px solid var(--accent); box-shadow: 0 12px 30px rgba(245,166,35,.18); }
.pkg-flag { position: absolute; top: -12px; right: 22px; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }

.single-svc { margin-top: 36px; background: var(--bg); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-sm); }
.single-svc h3 { font-size: 19px; margin-bottom: 18px; color: var(--ink); }
.single-svc ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; }
.single-svc li { font-size: 15px; color: var(--gray-700); padding-left: 26px; position: relative; }
.single-svc li::before { content: "✚"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- 服务流程 ---------- */
.process-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: none; }
.process-step {
  background: var(--bg); border-radius: var(--radius); padding: 26px 18px; text-align: center;
  box-shadow: var(--shadow-sm); position: relative; transition: transform .2s ease;
}
.process-step:hover { transform: translateY(-5px); }
.ps-no {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); color: #fff; font-weight: 800; font-size: 20px;
}
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--ink); }
.process-step p { font-size: 13.5px; color: var(--gray-500); }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: 27px; font-weight: 800; }
.cta-band p { margin-top: 8px; color: rgba(255,255,255,.85); font-size: 15.5px; }

/* ---------- 联系方式 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
.contact-info { background: var(--bg); border-radius: var(--radius); padding: 14px 30px; box-shadow: var(--shadow-sm); }
.contact-info li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--gray-100); align-items: baseline; }
.contact-info li:last-child { border-bottom: none; }
.ci-label { flex: 0 0 84px; color: var(--gray-500); font-size: 14px; }
.contact-info span:last-child { color: var(--ink); font-size: 15.5px; }
.contact-info a { color: var(--blue-600); font-weight: 600; }
.contact-card { background: linear-gradient(135deg, var(--blue-800), var(--blue-700)); color: #fff; border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 19px; margin-bottom: 18px; }
.free-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.free-list li { font-size: 14.5px; color: #dce9ff; padding-left: 22px; position: relative; }
.free-list li::before { content: "✔"; position: absolute; left: 0; color: var(--accent); }
.contact-note { text-align: center; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.8); padding-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 560px; }
.footer-brand .brand-mark { color: #fff; font-size: 20px; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 14.5px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding: 22px 0; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-bottom p { margin: 4px 0; }
.footer-beian a { color: rgba(255,255,255,.6); }
.footer-beian a:hover { color: #fff; }
.footer-beian { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-beian .gongan { display: inline-flex; align-items: center; }
.gongan-ico { display: inline-block; width: 18px; height: 18px; margin-right: 5px; }
.footer-seo { color: rgba(255,255,255,.4); }

/* ---------- 移动端底栏 / 返回顶部 ---------- */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; }
.mobile-bar a { flex: 1; text-align: center; padding: 15px 0; font-weight: 700; font-size: 16px; color: #fff; }
.mb-call { background: var(--accent); }
.mb-pkg { background: var(--blue-700); }

.to-top {
  position: fixed; right: 22px; bottom: 28px; z-index: 55; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: var(--blue-700); color: #fff; font-size: 22px;
  cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); background: var(--blue-600); }

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

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .single-svc ul { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-art { display: none; }
  .hero-text { max-width: 760px; }
  .hero-title { font-size: 44px; }
}

@media (max-width: 680px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; box-shadow: var(--shadow); padding: 8px 0; margin: 0;
  }
  .nav.open a { padding: 14px 24px; border-bottom: 1px solid var(--gray-100); }
  .nav.open a::after { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat-num { font-size: 36px; }

  .cards-grid, .pkg-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .quals-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .single-svc ul { grid-template-columns: 1fr; }
  .free-list { grid-template-columns: 1fr; }

  .section { padding: 54px 0; }
  .section-head h2 { font-size: 26px; }
  .subhero-inner { padding: 38px 0 34px; }
  .subhero h1 { font-size: 27px; }
  .hero-inner { padding: 60px 0 70px; }
  .hero-title { font-size: 36px; letter-spacing: 2px; }
  .hero-keywords { font-size: 16px; }
  .hero-actions .btn { flex: 1; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-band h2 { font-size: 22px; }

  .mobile-bar { display: flex; }
  .mobile-bar a { padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(70px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
}

/* ---------- 触摸反馈（手机/平板） ---------- */
* { -webkit-tap-highlight-color: rgba(30, 111, 208, .15); }
@media (hover: none) {
  .btn:active { transform: scale(.97); }
  .card:active, .pkg:active, .case-card:active, .service-item:active,
  .process-step:active, .quals figure:active { transform: translateY(-2px); }
  .nav.open a:active { background: var(--gray-100); }
}

/* ---------- 超小屏微调（≤380px，如 iPhone SE / 小屏安卓） ---------- */
@media (max-width: 380px) {
  .container { width: 90%; }
  .brand-mark { font-size: 19px; }
  .brand-sub { font-size: 11px; }
  .hero-inner { padding: 50px 0 60px; }
  .hero-title { font-size: 31px; letter-spacing: 1px; }
  .hero-keywords { font-size: 14.5px; }
  .hero-desc { font-size: 15px; }
  .hero-tag { font-size: 13px; }
  .stat-num { font-size: 31px; }
  .stat-plus { font-size: 19px; }
  .subhero h1 { font-size: 23px; }
  .section-head h2 { font-size: 23px; }
  .cta-band h2 { font-size: 20px; }
  .pkg, .card, .single-svc, .contact-info { padding-left: 20px; padding-right: 20px; }
}
