/* ============================================================
   天津立创智能科技 · 官网样式
   设计基准：1440 画布 / 内容宽 1200 / 品牌蓝 #0052D9
   响应式断点：1200（收边距）· 1024（主视觉纵向）· 900（导航折叠、栅格降列）· 640（单列）
   ============================================================ */

:root {
  --brand: #0052D9;
  --brand-hover: #0043B3;
  --brand-deep: #00247A;
  --ink: #1D2129;
  --ink-2: #4E5969;
  --ink-3: #86909C;
  --line: #E5E6EB;
  --bg-soft: #F5F7FA;
  --navy: #000B1F;
  --tag-bg: #F0F5FF;
  --hero-a: #000A24;
  --hero-b: #00266B;
  --footer-line: #1C2740;
  --footer-text: #8A93A6;
  --radius: 8px;
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--light { background: #fff; color: var(--brand); }
.btn--sm { height: 36px; padding: 0 20px; font-size: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
}
.text-link:hover { color: var(--brand-hover); }

/* ---------- 图片占位块（上线前替换为 <img>） ---------- */
.media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0F2A5C 0%, #1E5FC0 100%);
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  letter-spacing: .08em;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: .55;
}
.media > span { position: relative; z-index: 1; }
.media--hero { height: 340px; }
.media--card { height: 240px; }
.media > img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
/* 主视觉图偏左取景：保留大屏与功能按钮完整可见 */
.media--hero > img { object-position: left center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 12px rgba(0, 20, 60, .06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: inline-flex; width: 32px; height: 32px; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.logo-text--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 15px; color: var(--ink-2); transition: color .2s ease; }
.nav-link:hover { color: var(--brand); }
.nav-link.is-active { color: var(--ink); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  display: inline-flex; padding: 0; border: 0; background: none; cursor: pointer;
}
.lang { font-size: 14px; color: var(--ink-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px; height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(120% 120% at 80% 20%, rgba(23, 107, 230, .45) 0%, rgba(0, 10, 36, 0) 60%),
    linear-gradient(90deg, var(--hero-a) 0%, var(--hero-b) 100%);
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 26px; }

.hero-badge {
  align-self: flex-start;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .12);
  color: #8FB8FF;
  font-size: 13px;
  font-weight: 500;
}
.hero-title {
  font-size: 46px;
  line-height: 64px;
  font-weight: 700;
  color: #fff;
}
.hero-sub { font-size: 16px; line-height: 30px; color: #A6B4CC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-trust { font-size: 14px; color: #7C8CA8; }

.hero-visual {
  flex: 0 0 520px;
  width: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.hero-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Metrics ---------- */
.metrics { padding: 44px 0; background: #fff; }
.metrics-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric strong { font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.metric span { font-size: 14px; color: var(--ink-2); }
.metric-divider { width: 1px; height: 48px; background: var(--line); flex: 0 0 1px; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0 96px; background: #fff; }
.section--soft { background: var(--bg-soft); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.section-title { font-size: 34px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.section-title--sm { font-size: 28px; }
.section-desc { font-size: 16px; line-height: 30px; color: var(--ink-2); max-width: 780px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--brand); letter-spacing: .04em; }

/* ---------- 核心业务 Bento ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.biz-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.biz-card:hover {
  border-color: #C9D8F5;
  box-shadow: 0 10px 28px rgba(0, 40, 120, .07);
  transform: translateY(-2px);
}
.biz-card--feature { grid-column: span 2; padding: 0; gap: 0; overflow: hidden; }
.biz-card__body { display: flex; flex-direction: column; gap: 16px; padding: 28px; }

.biz-icon { display: inline-flex; width: 40px; height: 40px; }
.biz-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.biz-desc { font-size: 14px; line-height: 26px; color: var(--ink-2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  padding: 5px 12px;
  background: var(--tag-bg);
  border-radius: 4px;
  font-size: 12px;
  color: var(--brand);
}

/* ---------- 行业场景 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.chip {
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
}
.chip--active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }

.scene-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.scene-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.scene-card:hover { box-shadow: 0 10px 28px rgba(0, 40, 120, .08); transform: translateY(-2px); }
.scene-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.scene-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.scene-desc { font-size: 14px; line-height: 26px; color: var(--ink-2); }

/* ---------- 服务流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-bar { width: 32px; height: 3px; border-radius: 2px; background: var(--brand); }
.step-title { font-size: 16px; font-weight: 500; color: var(--ink); }
.step-desc { font-size: 13px; line-height: 24px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { padding: 56px 0; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-deep) 100%); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-title { font-size: 30px; font-weight: 700; color: #fff; }
.cta-desc { margin-top: 12px; font-size: 15px; color: #BFD8FF; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; background: var(--navy); }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-brand { flex: 0 1 320px; display: flex; flex-direction: column; gap: 16px; }
.footer-line { font-size: 13px; line-height: 24px; color: var(--footer-text); }

.footer-col { display: flex; flex-direction: column; gap: 16px; font-size: 14px; color: var(--footer-text); }
.footer-col a:hover { color: #fff; }
.footer-col-title { font-size: 15px; font-weight: 500; color: #fff; }

.footer-divider { height: 1px; margin: 44px 0 20px; background: var(--footer-line); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #6B7488;
}
.footer-bottom .beian {
  color: #6B7488;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-bottom .beian:hover { color: #A6B4CC; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
  .container { padding: 0 40px; }
  .hero-inner { gap: 40px; }
  .hero-visual { flex-basis: 440px; width: 440px; }
  .hero-title { font-size: 40px; line-height: 56px; }
}

@media (max-width: 1024px) {
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz-card--feature { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-top { gap: 40px; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 20, 60, .06);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-link { padding: 12px 0; border-bottom: 1px solid #F2F3F5; }
  .nav-toggle { display: inline-flex; }

  .hero { padding: 64px 0 56px; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-visual { flex: 1 1 auto; width: 100%; }
  .media--hero { height: 240px; }

  .metrics-inner { flex-wrap: wrap; gap: 28px 0; }
  .metric { flex: 0 0 50%; }
  .metric-divider { display: none; }
  .metric strong { font-size: 28px; }

  .section { padding: 64px 0 72px; }
  .section-title { font-size: 28px; }
  .section-desc { font-size: 15px; line-height: 28px; }

  .scene-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-brand { flex: 1 1 100%; }
  .footer-col { flex: 1 1 40%; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .header-actions { gap: 12px; }
  .lang, .icon-btn { display: none; }
  .hero-title { font-size: 30px; line-height: 44px; }
  .hero-sub { font-size: 15px; line-height: 28px; }
  .btn { height: 44px; padding: 0 22px; font-size: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .biz-grid { grid-template-columns: minmax(0, 1fr); }
  .biz-card--feature { grid-column: span 1; }
  .media--card { height: 180px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-col { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta-title { font-size: 24px; }
}
