/* ============================================================
   石家庄福莱纳商贸有限公司 · 数据中心BIM服务官网
   全局样式 - B2B 信任型科技企业风格
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-deep: #0b1f3a;
  --ink: #1a2433;
  --ink-2: #46536a;
  --ink-3: #7b8798;
  --line: #e6ebf2;
  --brand: #0a5cd8;
  --brand-deep: #0846a6;
  --accent: #14b8a6;
  --accent-deep: #0d9488;
  --gold: #f5a623;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(16, 40, 80, .06), 0 1px 2px rgba(16, 40, 80, .04);
  --shadow-md: 0 6px 24px rgba(16, 40, 80, .10);
  --shadow-lg: 0 18px 50px rgba(16, 40, 80, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.logo .mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(10, 92, 216, .30);
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .5px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink-2);
  font-weight: 500; transition: .18s;
}
.nav-links a:hover { color: var(--brand); background: rgba(10, 92, 216, .06); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-cta {
  background: var(--brand); color: #fff; padding: 9px 20px; border-radius: 9px;
  font-weight: 600; font-size: 15px; transition: .18s;
}
.nav-links a.nav-cta,
.nav-links a.nav-cta.active { color: #fff; }
.nav-links a.nav-cta:hover { background: var(--brand-deep); color: #fff; }
.nav-cta:hover { background: var(--brand-deep); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b1f3a 0%, #0a3a7a 55%, #0a5cd8 100%);
  color: #fff; padding: 96px 0 88px;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, .35), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 1px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.22; font-weight: 800; letter-spacing: .3px; max-width: 780px; }
.hero h1 em { font-style: normal; color: #5eead4; }
.hero .lead { margin-top: 22px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 680px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 16px; transition: .18s; cursor: pointer; }
.btn-primary { background: #fff; color: var(--brand-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.hero-stats { margin-top: 52px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hero-stat { border-left: 2px solid rgba(255, 255, 255, .25); padding-left: 18px; }
.hero-stat b { display: block; font-size: 30px; font-weight: 800; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ---------- 通用标题 ---------- */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.center { text-align: center; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: 34px; font-weight: 800; line-height: 1.3; letter-spacing: .2px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- 服务卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: .22s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d5e2f5; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(10, 92, 216, .10), rgba(20, 184, 166, .10));
  color: var(--brand);
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--brand); font-weight: 600; font-size: 14px; }
.card .more:hover { gap: 10px; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 40px; font-weight: 800; color: #dbe6f5; line-height: 1; display: block; margin-bottom: 12px;
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14px; }

/* ---------- 深色 CTA 带 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff; text-align: center; padding: 72px 0;
}
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .82); max-width: 560px; margin: 0 auto 28px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255, 255, 255, .7); padding: 56px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-grid a { display: block; padding: 4px 0; transition: .15s; }
.footer-grid a:hover { color: #5eead4; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .5); }
.footer-bottom a:hover { color: #5eead4; }

/* ---------- 内页 hero ---------- */
.page-hero {
  background: linear-gradient(135deg, #0b1f3a, #0a3a7a);
  color: #fff; padding: 68px 0 60px; position: relative; overflow: hidden;
}
.page-hero h1 { font-size: 38px; font-weight: 800; }
.page-hero p { margin-top: 14px; color: rgba(255, 255, 255, .8); max-width: 700px; }
.breadcrumb { margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.breadcrumb a { color: rgba(255, 255, 255, .7); }
.breadcrumb a:hover { color: #5eead4; }

/* ---------- 服务内页 ---------- */
.svc-list { display: grid; gap: 16px; }
.svc-item {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px;
}
.svc-item .ico { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: rgba(10, 92, 216, .08); color: var(--brand); display: grid; place-items: center; font-size: 20px; }
.svc-item h4 { font-size: 16px; margin-bottom: 4px; }
.svc-item p { font-size: 14px; color: var(--ink-2); }

/* ---------- 案例卡片 ---------- */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .22s; }
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-thumb { height: 200px; background: linear-gradient(135deg, #dbe6f5, #c7d8ee); display: grid; place-items: center; color: #9fb3cc; font-size: 15px; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.case-body { padding: 24px; }
.case-tag { display: inline-block; font-size: 12px; color: var(--brand); background: rgba(10, 92, 216, .08); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.case-card h3 { font-size: 18px; margin-bottom: 8px; }
.case-card p { font-size: 14px; color: var(--ink-2); }
.case-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; gap: 16px; }

/* ---------- 案例详情 ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 26px; font-weight: 800; margin: 40px 0 16px; }
.article h3 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; }
.article p { color: var(--ink-2); margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 20px; }
.article ul li { list-style: disc; margin: 6px 0; color: var(--ink-2); }
.article ol li { list-style: decimal; margin: 6px 0; color: var(--ink-2); }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article th, .article td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.article th { background: var(--bg-soft); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.kv-item { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.kv-item b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }
.kv-item span { font-weight: 700; font-size: 16px; }

/* ---------- 表单 ---------- */
.contact-form { display: grid; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff; transition: .18s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 92, 216, .12);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .btn { justify-content: center; border: none; background: var(--brand); color: #fff; }
.contact-form .btn:hover { background: var(--brand-deep); }

/* ---------- 标签 / 徽章 ---------- */
.chip { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); padding: 5px 13px; border-radius: 999px; font-size: 13px; margin: 3px 4px 3px 0; }

/* ---------- 在线模型展示 ---------- */
.model-block {
  margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft);
}
.model-block .model-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--line);
}
.model-block .model-head .t { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.model-block .model-head .t .ico { color: var(--brand); font-size: 20px; }
.model-block .model-head .hint { font-size: 12px; color: var(--ink-3); }
.model-body {
  padding: 22px; text-align: center;
}
.model-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: #fff; padding: 14px 30px; border-radius: 10px;
  font-weight: 600; font-size: 16px; transition: .18s;
}
.model-cta:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.model-cta .ic { font-size: 20px; }
.model-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* 图库（案例截图） */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.gallery figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 13px; color: var(--ink-2); }
.gallery .placeholder { height: 220px; display: grid; place-items: center; color: #9fb3cc; background: linear-gradient(135deg, #eef2f8, #dfe7f2); font-size: 14px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--brand); transition: .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--ink-2); font-size: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 29px; }
  .hero { padding: 64px 0 60px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; font-size: 26px; color: var(--ink); }
  .kv { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
