/* ============================================================
   广州市精技自动化有限公司 - 企业官网样式
   颜色：深海蓝 / 科技蓝 / 白色 / 浅灰
   ============================================================ */

/* ===== CSS 变量（修改颜色只需改这里） ===== */
:root {
  --blue-dark:    #0a2a6e;   /* 深海蓝，导航/Hero背景 */
  --blue-main:    #1a4db3;   /* 品牌主蓝，按钮/强调色 */
  --blue-light:   #2e6de0;   /* 亮蓝，hover/链接 */
  --blue-pale:    #e8f0fe;   /* 极浅蓝，卡片背景 */
  --accent:       #f59e0b;   /* 琥珀黄，强调/星号/标签 */
  --text-dark:    #1a1f36;   /* 深色文字 */
  --text-body:    #4a5568;   /* 正文颜色 */
  --text-light:   #718096;   /* 次要文字 */
  --bg-white:     #ffffff;
  --bg-light:     #f7f9fc;   /* 浅灰背景 */
  --bg-section:   #eef2f9;
  --border:       #e2e8f0;
  --shadow-sm:    0 2px 8px rgba(10,42,110,.08);
  --shadow-md:    0 6px 24px rgba(10,42,110,.12);
  --shadow-lg:    0 12px 40px rgba(10,42,110,.18);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --transition:   0.25s ease;
  --navbar-h:     280px;   /* 顶部图片导航高度：想矮一点可改 160px / 180px */
  --container:    1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ===== 容器 ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section 通用 ===== */
.section { padding: 88px 0; }
.bg-light { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 56px; }

.section-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-main);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: .8rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-main);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,77,179,.35);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }


/* ============================================================
   顶部导航栏
   ============================================================ */
.navbar {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: 1000;

  /* 上面只显示图片 */
  background: #0a2a6e url("./images/nav-bg.jpg") center top / 100% 200px no-repeat;

  border-bottom: none;
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.navbar-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;

  height: 80px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #051d31;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.12);

  transform: none;
}

/* ===== Logo（支持图片+文字或纯文字两种形式） ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

/* Logo 图片：有图片时显示，图片加载失败时通过 onerror 隐藏 */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Logo 文字：无论有无图片都显示（图片存在时作为辅助，无图时作为主体） */
.logo-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.3;
  white-space: nowrap;
}.navbar .logo-text {
  display: none;
}

/* 纯文字Logo方案（当不使用图片时，以下 .logo-icon 作为文字图标） */
.logo-icon {
  width: 36px; height: 36px;
  background: var(--blue-main);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

/* 页脚使用的文字Logo（区别于顶部导航） */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

/* 导航菜单容器 */
.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transform: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 28px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  font-size: 15px;
  font-weight: 600;

  padding: 8px 14px;
  border-radius: 6px;

  transition: all 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: #0b67b2;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(11, 103, 178, .35);
}

.nav-link.active {
  color: #ffffff;
  background: #c85252;
}

/* 汉堡菜单按钮（手机端） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 导航右侧咨询按钮 */
.navbar-cta {
  position: absolute;
  top: -120px;
  right: 500px;

  padding: 10px 24px;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;

  background: #c85252;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(200, 82, 82, .38);

  transition: all .25s ease;
}

.navbar-cta:hover {
  background: #0b67b2;
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(11, 103, 178, .45);
}

.navbar-cta:active {
  background: #084f8a;
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px rgba(11, 103, 178, .35);
}

/* ============================================================
   Hero 横幅区域
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(5,21,53,.65), rgba(5,21,53,.65)),
    url("./images/hero-bg.jpg") center/cover no-repeat;
  overflow: hidden;
  padding-top: 30px;
}

/* 背景网格装饰（科技线条效果） */
.hero-grid {
  display: none;
  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: 60px 60px;
  pointer-events: none;
}

/* 背景渐变光晕 */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(46,109,224,.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(245,158,11,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  letter-spacing: .12em;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.78);
  max-width: 660px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-actions .btn-primary {
  background: #c85252;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(200, 82, 82, .38);
}

.hero-actions .btn-primary:hover {
  background: #0b67b2;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(11, 103, 178, .45);
}

.hero-actions .btn-primary:active {
  background: #084f8a;
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px rgba(11, 103, 178, .35);
}

/* Hero 底部统计数据卡片 */
.hero-stats {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 20px 40px;
}

.stat-item { text-align: center; padding: 0 32px; }
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.stat-plus { font-size: 1.2rem; }
.stat-label {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  letter-spacing: .06em;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* 向下滚动提示动画 */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .1em;
  animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(255,255,255,.4);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   公司优势卡片
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.advantage-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition);
}
.advantage-card:hover {
  border-color: var(--blue-main);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.adv-icon { width: 64px; height: 64px; margin: 0 auto 20px; }
.adv-icon svg { width: 100%; height: 100%; }

.adv-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.adv-desc {
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.7;
}


/* ============================================================
   服务项目卡片
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
/* 顶部彩色细线（hover时显示） */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card:hover::before { background: var(--blue-main); }

/* 服务图标颜色，6种颜色区分6个服务 */
.service-icon { width: 48px; height: 48px; margin-bottom: 18px; }
.service-icon svg { width: 100%; height: 100%; }
.service-icon--1 { color: #1a4db3; }
.service-icon--2 { color: #0891b2; }
.service-icon--3 { color: #059669; }
.service-icon--4 { color: #7c3aed; }
.service-icon--5 { color: #db2777; }
.service-icon--6 { color: #d97706; }

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.service-desc {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}
.service-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-main);
  transition: color var(--transition);
}
.service-link:hover { color: var(--blue-light); }


/* ============================================================
   解决方案 - 适用行业
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.solution-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all var(--transition);
}
.solution-card:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.solution-card:hover .solution-num,
.solution-card:hover .solution-title,
.solution-card:hover .solution-desc { color: #fff; }
.solution-card:hover .solution-num { opacity: .5; }

.solution-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: 12px;
  transition: all var(--transition);
}
.solution-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.solution-desc {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.6;
  transition: color var(--transition);
}

.solutions-cta {
  text-align: center;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  padding: 32px;
}
.solutions-cta p { color: var(--text-body); margin-bottom: 16px; }


/* ============================================================
   项目案例
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.case-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

/* 案例图片占位（后续替换为真实图片） */
.case-img {
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.case-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.case-img--1 { background: linear-gradient(135deg, #0f3a8a 0%, #1e5fc7 50%, #2e7de0 100%); }
.case-img--2 { background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #0d9488 100%); }
.case-img--3 { background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%); }
.case-img--4 { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 50%, #f97316 100%); }

/* 图片背景装饰网格 */
.case-img::before {
  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: 30px 30px;
}

.case-img-label {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
}

.case-body { padding: 24px; }

.case-tag {
  font-size: .75rem;
  color: var(--blue-main);
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.case-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}
.case-desc {
  font-size: .85rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}
.case-value {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .82rem;
  color: var(--text-light);
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.case-value svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }


/* ============================================================
   技术能力（深蓝背景区域）
   ============================================================ */
.tech {
  background:
    linear-gradient(rgba(5, 29, 49, .75), rgba(5, 29, 49, .75)),
    url("../images/tech-bg.jpg") center/cover no-repeat;
}
.tech .section-tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.tech .section-title { color: #fff; }
.tech .section-desc { color: rgba(255,255,255,.6); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all var(--transition);
}
.tech-item:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}

.tech-check {
  width: 28px; height: 28px;
  background: var(--blue-main);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.tech-item strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  margin-bottom: 3px;
}
.tech-item span {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* PLC/品牌标签行 */
.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.brand-tag {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  padding: 6px 16px;
  border-radius: 20px;
}


/* ============================================================
   合作流程
   ============================================================ */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* 步骤间连接横线 */
.process-track::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-main), var(--blue-light));
  z-index: 0;
}

.process-step {
  position: relative;
  padding: 0 16px;
  text-align: center;
  z-index: 1;
}

.process-dot {
  width: 64px; height: 64px;
  background: var(--blue-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border: 4px solid var(--bg-light);
  box-shadow: 0 0 0 2px var(--blue-main);
  position: relative;
  z-index: 1;
}
/* 最后一步用橙黄色强调 */
.process-dot--last {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.process-num {
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.process-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.process-content p {
  font-size: .85rem;
  color: var(--text-body);
  line-height: 1.7;
}


/* ============================================================
   关于我们
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--text-body);
  line-height: 1.8;
  font-size: .95rem;
}
.about-text strong { color: var(--text-dark); }

.about-highlights {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-body);
}
.about-hl-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* 关于我们图片占位区域 */
.about-img-placeholder {
  background: linear-gradient(135deg, var(--bg-light), var(--bg-section));
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.about-img-inner { text-align: center; }
.about-img-icon { width: 80px; height: 80px; margin: 0 auto 20px; }
.about-img-icon svg { width: 100%; height: 100%; }
.about-img-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 8px;
}
.about-img-hint {
  font-size: .78rem;
  color: var(--text-light);
  margin-top: 12px;
}


/* ============================================================
   行业知识文章卡片
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-img {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-img--1 { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
.blog-img--2 { background: linear-gradient(135deg, #134e4a, #0f766e); }
.blog-img--3 { background: linear-gradient(135deg, #422006, #92400e); }

.blog-body { padding: 24px; }

.blog-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-main);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.blog-title {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 10px;
}
.blog-excerpt {
  font-size: .84rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}
.blog-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-main);
}
.blog-link:hover { color: var(--blue-light); }


/* ============================================================
   联系我们（深蓝渐变背景）
   ============================================================ */
.contact {
  background: #051d31;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* 联系信息左侧 */
.contact-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.contact-label {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 2px;
}
.contact-val {
  display: block;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
}

.contact-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-top: 28px;
}
.contact-tip svg { width: 18px; height: 18px; flex-shrink: 0; }

/* 联系表单右侧 */
.contact-form-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* 联系表单提交按钮 */
.contact-form .btn-primary.btn-block {
  background: #c85252;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(200, 82, 82, .38);
  transition: all .25s ease;
}

.contact-form .btn-primary.btn-block:hover {
  background: #0b67b2;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(11, 103, 178, .45);
}

.contact-form .btn-primary.btn-block:active {
  background: #084f8a;
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px rgba(11, 103, 178, .35);
}

.form-intro {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.required { color: #ef4444; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(26,77,179,.1);
}
.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }

.field-error {
  display: block;
  font-size: .78rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 16px;
}

/* 表单提交成功提示 */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.success-icon {
  width: 56px; height: 56px;
  background: #10b981;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-success h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-success p {
  font-size: .88rem;
  color: var(--text-body);
}


/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: #0a2d49;
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-region {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}

.footer-nav h5,
.footer-contact h5 {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav ul li a {
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-nav ul li a:hover { color: #fff; }

.footer-contact p {
  font-size: .84rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}


/* ============================================================
   返回顶部按钮
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 44px; height: 44px;
  background: var(--blue-main);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,77,179,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s;
  z-index: 900;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(26,77,179,.5);
}
.back-to-top svg { width: 20px; height: 20px; }


/* ============================================================
   滚动动画（自实现，零依赖）
   ============================================================ */
[data-aos] {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
[data-aos="fade-up"]    { transform: translateY(30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="zoom-in"]    { transform: scale(0.9); }

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}


/* ============================================================
   响应式布局
   ============================================================ */

/* 平板（≤1024px） */
@media (max-width: 1024px) {
  .footer-layout { grid-template-columns: 1fr 1fr; }
  .about-layout { gap: 40px; }
  .process-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .process-track::before { display: none; }

  /* 公司名称较长，中等屏幕缩小字号 */
  .logo-text { font-size: .9rem; }
}

/* 手机横屏（≤768px） */
@media (max-width: 768px) {
  :root { --navbar-h: 64px; }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  /* 导航手机端折叠 */
  .hamburger { display: flex; }

  .navbar-menu {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    background: rgba(10,42,110,.98);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height .35s ease, padding .35s ease;
  }
  .navbar-menu.open {
    max-height: 500px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    margin-right: 0;
    gap: 0;
  }
  .nav-link { padding: 12px 16px; font-size: .95rem; }
  .navbar-cta { margin-top: 8px; justify-content: center; }

  /* 手机端 Logo 文字适当缩小 */
  .logo-text { font-size: .82rem; }
  .logo-img { height: 32px; }

  /* Hero 统计数据竖排 */
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .stat-divider { width: 40px; height: 1px; }
  .stat-item { padding: 0; }

  /* 布局转单列 */
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }

  /* 表单姓名+电话各占一行 */
  .form-row { grid-template-columns: 1fr; }

  /* 技术能力单列 */
  .tech-grid { grid-template-columns: 1fr; }

  /* 合作流程单列 */
  .process-track { grid-template-columns: 1fr; }

  /* 页脚单列 */
  .footer-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .back-to-top { right: 16px; bottom: 20px; }
}

/* 手机竖屏（≤480px） */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: 28px 20px; }

  .advantages-grid,
  .services-grid,
  .solutions-grid,
  .cases-grid,
  .blog-grid { grid-template-columns: 1fr; }

  /* 极小屏幕隐藏logo图片，只显示文字 */
  .logo-img { display: none; }
  .logo-text { font-size: .88rem; }
}


/* ============================================================
   手机端导航修复补丁
   作用：恢复原来的页面结构，只修复三条杠菜单点击问题
   ============================================================ */

/* 隐藏控制菜单的复选框 */
.mobile-menu-checkbox {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --navbar-h: 64px;
  }

  /* 手机端顶部只保留一条正常导航栏 */
  .navbar {
    height: var(--navbar-h);
    min-height: var(--navbar-h);
    background: #051d31;
    position: relative;
    z-index: 1000;
  }

  .navbar-inner {
    position: relative;
    height: var(--navbar-h);
    min-height: var(--navbar-h);
    padding: 0 16px;
    background: #051d31;
    border-top: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* 手机端显示公司名称，左边显示，避免三条杠居中 */
  .navbar .logo {
    max-width: calc(100% - 58px);
    overflow: hidden;
  }

  .navbar .logo-text {
    display: block;
    color: #ffffff;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-img {
    height: 32px;
  }

  /* 三条杠放到右边 */
  .hamburger {
    display: flex;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }

  .hamburger span {
    width: 26px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
  }

  /* 菜单默认收起 */
  .navbar-menu {
    position: absolute;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 29, 49, .98);
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
  }

  /* 点击三条杠后展开菜单：不用 JS 也能生效 */
  #mobile-menu-toggle:checked ~ .navbar-menu {
    max-height: 520px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  /* 如果 main.js 使用 open 类，也兼容 */
  .navbar-menu.open {
    max-height: 520px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  /* 点击后，三条杠变成 X */
  #mobile-menu-toggle:checked + .hamburger span:nth-child(1),
  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(2),
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(3),
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-right: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 14px;
    color: #ffffff;
    font-size: .95rem;
    border-radius: 6px;
  }

  .nav-link.active,
  .nav-link:hover {
    background: rgba(255,255,255,.1);
    transform: none;
    box-shadow: none;
  }

  .navbar-cta {
    position: static;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 18px;
  }

  /* 首屏恢复正常距离，不被顶部导航挤坏 */
  .hero {
    min-height: calc(100vh - var(--navbar-h));
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .logo-img {
    display: none;
  }

  .navbar .logo-text {
    font-size: .88rem;
  }
}

/* 手机端卡片点击反馈，不跳转 */
@media (max-width: 768px) {
  .service-card.touch-active,
  .solution-card.touch-active,
  .case-card.touch-active,
  .advantage-card.touch-active,
  .blog-card.touch-active,
  .tech-item.touch-active {
    background: #e8f0fe !important;
    transform: scale(0.98) !important;
    box-shadow: 0 6px 18px rgba(10, 42, 110, 0.18) !important;
  }
}