/* =========================================================
   青岛金瑞泰工程科技有限公司官网 — 设计还原样式
   严格还原 Ardot 设计稿：科技蓝 + 浅灰工业风
   1440 宽画布 / 64 两侧内边距 / 圆角 / 间距全部对齐设计稿
   ========================================================= */

:root {
  /* 主色板（来自设计系统） */
  --navy: #0B3D73;        /* 深海军蓝 */
  --blue: #1666C9;        /* 亮蓝 */
  --cyan: #1AB5C4;        /* 海洋青 */
  --ink: #16233A;         /* 墨字 */
  --bg-light: #F4F7FB;    /* 浅灰蓝 */
  --dark: #07203F;        /* 深色段 */
  --dark-card: #0B2A52;   /* 深色卡片 */
  --muted: #4A5A72;       /* 次要文字 */
  --sub: #5C6B82;         /* 副文字 */
  --light: #AEBFD6;       /* 浅色文字（深底） */
  --faint: #8FA3BE;       /* 更浅文字 */
  --dim: #6E83A3;         /* 弱化文字 */
  --border: #E3E8F2;      /* 描边 */
  --cyan-soft: rgba(26, 181, 196, 0.16);

  --container: 1440px;
  --pad-x: 64px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ===================== 顶部导航 ===================== */
.site-header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.main-nav a:hover { color: var(--navy); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s;
}
.header-cta:hover { background: #1257ad; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===================== 语言切换控件 ===================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.lang-switch button {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--navy); }
.lang-switch button.active {
  background: var(--navy);
  color: #fff;
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 页眉搜索入口 */
.header-search {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.header-search:hover { color: var(--navy); border-color: var(--navy); }

/* ===================== Hero ===================== */
.hero {
  background: var(--dark);
  min-height: 560px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  width: 100%;
}
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 96px 64px 96px 0;
  max-width: 840px;
}
.hero-visual {
  width: 600px;
  flex-shrink: 0;
  background: var(--navy);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--navy); }
.hero-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-carousel .car-prev,
.hero-carousel .car-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: none;
  background: rgba(7,32,63,.45); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.hero-carousel .car-prev { left: 16px; }
.hero-carousel .car-next { right: 16px; }
.hero-carousel .car-prev:hover,
.hero-carousel .car-next:hover { background: rgba(7,32,63,.75); }
.hero-carousel .car-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-carousel .car-dots .dot {
  width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.5);
  cursor: pointer; transition: background .2s, width .2s;
}
.hero-carousel .car-dots .dot.active { background: #fff; width: 26px; }
.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  font-size: 50px;
  font-weight: 800;
  line-height: 60px;
  color: #fff;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--light);
}
.hero-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--faint);
  max-width: 540px;
}
.hero-ctas { display: flex; gap: 16px; align-items: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--dark);
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,181,196,.3); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-trust {
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
}

/* ===================== 通用区块 ===================== */
.section { width: 100%; }
.section--light { background: #fff; }
.section--gray { background: var(--bg-light); }
.section--dark { background: var(--dark); }
.pad-lg { padding: 88px 0; }
.pad-md { padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .5px;
}
.section-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 44px;
  color: var(--ink);
}
.section--dark .section-title { color: #fff; }
.section-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--sub);
}
.section--dark .section-sub { color: var(--light); }

/* ===================== 业务概览 卡片网格 ===================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.solution-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,61,115,.1); }
.num-badge {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solution-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); }
.solution-card p { font-size: 14px; font-weight: 400; line-height: 22px; color: var(--muted); }

/* ===================== 企业优势 ===================== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.adv-item {
  background: var(--dark-card);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adv-item h3 { font-size: 19px; font-weight: 700; color: #fff; }
.adv-item p { font-size: 14px; font-weight: 400; line-height: 22px; color: var(--light); }

.stats-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--dark-card);
  border-bottom: 1px solid var(--dark-card);
  margin-top: 48px;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 16px;
}
.stat + .stat { border-left: 1px solid var(--dark-card); }
.stat-num { font-size: 40px; font-weight: 800; color: var(--cyan); line-height: 1; }
.stat-label { font-size: 14px; font-weight: 400; color: var(--light); }

/* ===================== 项目案例（首页 + 案例页） ===================== */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,61,115,.1); }
.case-card .case-img { height: 200px; background: var(--navy); }
.case-card .case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tag-badge {
  align-self: flex-start;
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
}
.case-body h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.case-body p { font-size: 14px; font-weight: 400; line-height: 22px; color: var(--muted); }

/* 重点案例（已签合同，突出展示） */
.case-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 36px; }
.case-feature { flex-direction: row; align-items: stretch; border-color: var(--cyan); box-shadow: 0 12px 32px rgba(26,181,196,.14); }
.case-feature:hover { box-shadow: 0 18px 42px rgba(26,181,196,.22); }
.case-feature .case-feature-img { width: 46%; min-height: 260px; background: var(--navy); }
.case-feature .case-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-feature .case-body { flex: 1; justify-content: center; padding: 30px 32px; gap: 12px; }
.case-feature .case-body h3 { font-size: 22px; line-height: 30px; }

/* 其余交付案例（2×2） */
.case-grid--rest { grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ===================== CTA 行动召唤 ===================== */
.cta-band {
  background: linear-gradient(90deg, #0A3D73, #1766C9);
  padding: 0 64px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta-inner h2 { font-size: 32px; font-weight: 800; color: #fff; }
.cta-inner p { font-size: 16px; font-weight: 400; color: #D6E2F2; }
.btn-cta-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 8px;
  background: var(--cyan);
  color: var(--dark);
  font-size: 17px;
  font-weight: 700;
  transition: transform .15s, box-shadow .2s;
}
.btn-cta-block:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(26,181,196,.35); }

/* ===================== 页脚 ===================== */
.site-footer { background: var(--dark); padding: 56px 0 32px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand { width: 360px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand .footer-logo {
  width: 34px; height: 34px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  background: #fff;
}
.footer-brand .footer-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand .brand-name { font-size: 20px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 13px; font-weight: 400; line-height: 20px; color: var(--faint); max-width: 340px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; }
.footer-col a, .footer-col span { font-size: 14px; font-weight: 400; color: var(--faint); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--dark-card);
}
.footer-bottom span { font-size: 13px; font-weight: 400; color: var(--dim); }

/* ===================== 子页 Banner ===================== */
.page-banner {
  background: var(--dark);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 64px;
}
.page-banner .banner-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.breadcrumb { font-size: 14px; font-weight: 400; color: var(--faint); }
.page-banner h1 { font-size: 40px; font-weight: 800; line-height: 50px; color: #fff; }
.page-banner p { font-size: 16px; font-weight: 400; color: var(--light); }

/* ===================== 关于我们 ===================== */
.intro-grid { display: flex; gap: 48px; align-items: flex-start; }
.intro-left { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.intro-left .intro-title { font-size: 30px; font-weight: 800; line-height: 40px; color: var(--ink); }
.intro-left p { font-size: 15px; font-weight: 400; line-height: 26px; color: var(--muted); max-width: 700px; }
.intro-right { width: 512px; height: 380px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: var(--navy); }
.intro-right img { width: 100%; height: 100%; object-fit: cover; }

.adv2-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.adv2-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adv2-card .num-badge { background: var(--cyan); }
.adv2-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.adv2-card p { font-size: 14px; font-weight: 400; line-height: 22px; color: var(--muted); }

/* ===================== 核心产品 ===================== */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prod-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,61,115,.1); }
.prod-card .prod-img { height: 220px; background: var(--navy); }
.prod-card .prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .prod-body { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.prod-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 24px; }
.prod-card p { font-size: 14px; font-weight: 400; line-height: 22px; color: var(--muted); }
.card-more { margin-top: 4px; color: var(--blue); font-size: 14px; font-weight: 600; transition: gap .2s; }
.prod-card:hover .card-more { color: var(--cyan); }

/* ===================== 资料下载 ===================== */
.download-row { display: flex; gap: 16px; flex-wrap: wrap; }
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.download-btn:hover { background: #1257ad; }

/* ===================== 联系我们 ===================== */
.contact-grid { display: flex; gap: 32px; align-items: flex-start; justify-content: center; }
.contact-left { width: 480px; flex-shrink: 0; background: var(--bg-light); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-card .info-label { font-size: 13px; font-weight: 600; color: var(--cyan); }
.info-card .info-value { font-size: 17px; font-weight: 700; color: var(--ink); }
.info-card .info-value.sm { font-size: 15px; }
/* 备案号跳转链接（工信部备案查询） */
.footer-bottom a, .simple-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover, .simple-footer a:hover { color: var(--cyan); }

.simple-footer {
  background: var(--dark);
  text-align: center;
  padding: 20px 64px;
}
.simple-footer span { font-size: 13px; font-weight: 400; color: var(--faint); }

/* ===================== 响应式 ===================== */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 42px; line-height: 52px; }
  .hero-visual { width: 480px; }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: 1fr; }
  .intro-grid { flex-direction: column; }
  .intro-right { width: 100%; }
  .contact-grid { flex-direction: column; }
  .contact-left { width: 100%; }
}
@media (max-width: 860px) {
  :root { --pad-x: 24px; }
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .site-header.open .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-header.open .header-cta { display: inline-flex; margin: 12px 24px 16px; }
  .hero { min-height: auto; }
  .hero .container { flex-direction: column; }
  .hero-content { padding: 56px 0 40px; max-width: 100%; }
  .hero-visual { width: 100%; height: 280px; }
  .hero h1 { font-size: 34px; line-height: 44px; }
  .page-banner h1 { font-size: 30px; line-height: 40px; }
  .section-title { font-size: 28px; line-height: 38px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .case-feature-grid { grid-template-columns: 1fr; }
  .case-feature { flex-direction: column; }
  .case-feature .case-feature-img { width: 100%; min-height: 200px; }
  .case-grid--rest { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .adv-grid, .case-grid, .case-grid--rest, .case-feature-grid, .adv2-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--dark-card); }
}

/* ===================== 站内搜索页 ===================== */
.search-box { max-width: 720px; margin: 0 auto 40px; }
.search-input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.search-input:focus { border-color: var(--cyan); }
.search-results { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.search-result {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.search-result:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,61,115,.1); }
.search-result h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.search-result p { font-size: 14px; color: var(--muted); line-height: 22px; }
.search-empty { text-align: center; color: var(--sub); font-size: 15px; margin-top: 24px; }

/* ===================== 悬浮联系按钮 ===================== */
.float-action {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.float-main {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--cyan);
  color: var(--dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26,181,196,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.float-main:hover { transform: scale(1.06); }
.float-menu { display: none; flex-direction: column; gap: 8px; }
.float-action.open .float-menu { display: flex; }
.float-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(11,61,115,.12);
}
.float-item:hover { background: var(--bg-light); }
