/* 站点共用:顶部导航 + 页脚 + 响应式 */

/* 顶部导航 */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--blue-dark);
  box-shadow: 0 1px 4px rgba(8, 59, 119, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 80px;
  background: transparent;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 10px 18px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  position: relative;
}
.nav a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.nav a.active {
  color: var(--blue-dark);
  font-weight: 700;
}
.nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -2px;
  height: 3px;
  background: var(--blue-dark);
}

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  margin-left: auto;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--blue-dark);
  content: "";
  transition: all 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }

/* Footer */
.site-footer {
  background: #0a2544;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 32px 24px;
  border-top: 3px solid var(--blue-dark);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.footer-brand p,
.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s;
}
.footer-nav a:hover { color: #ffd24a; }
.footer-meta p {
  margin: 0 0 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

/* 响应式 */
@media (max-width: 960px) {
  .header-inner { gap: 24px; padding: 0 20px; }
  .nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 16px 20px; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; width: 100%; border-bottom: 1px solid var(--border); }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--blue-soft); }
  .nav-toggle { display: block; }
  .logo-text { letter-spacing: 1px; font-size: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta p { text-align: left; }
}
@media (max-width: 560px) {
  .header-inner { padding: 0 16px; gap: 12px; height: 64px; }
  .nav { top: 64px; }
  .logo-img { height: 36px; }
  .logo-text { font-size: 15px; letter-spacing: 0.5px; }
  .site-footer { padding: 28px 20px 20px; }
}
/* 统一所有页面导航栏布局，和首页完全一致 */
.header-inner {
  max-width: 1200px !important; /* 和首页的最大宽度保持一致 */
  margin: 0 auto !important; /* 水平居中 */
  padding: 0 20px !important; /* 左右留白，防止小屏幕贴边 */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}
/* 主导航栏整体居中 */
.header-inner {
  justify-content: center !important;
}
.logo {
  position: absolute !important;
  left: 90px !important;
}
.nav {
  margin: 0 !important;
}
/* 隐藏行业痛点模块后，让剩下的卡片自适应 */
.sec-v2--audience .sec-v2__inner .aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important; /* 改成3列布局 */
  gap: 20px;
}
.sec-v2--audience .aud-card {
  max-width: 100%;
}
/* 隐藏中介机构后，平台优势模块自动变成3列布局 */
.sec-v2--architecture .arch-flow {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
/* 增值服务模块：通长全屏+大字体优化 */
/* 1. 容器通长占满整个页面宽度 */
.sec-v2--features .feat-grid {
  display: grid !important;
  grid-template-columns: 1fr !important; /* 单列布局 */
  gap: 0 !important;
  width: 100% !important; /* 通长占满 */
  max-width: 100% !important; /* 取消最大宽度限制 */
  margin: 0 !important; /* 取消居中边距 */
  padding: 0 20px !important; /* 小屏幕左右留白20px，不会贴边 */
}

/* 2. 卡片通长占满容器 */
.sec-v2--features .feat-card {
  width: 100% !important;
  padding: 60px 80px !important; /* 上下60px，左右80px内边距，通长后更美观 */
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
}

/* 4. 卡片内文字变大 */
.sec-v2--features .feat-card__body p {
  font-size: 20px !important;
  line-height: 1.8 !important;
  color: #333 !important;
}

/* 5. 图标大小适配 */
.sec-v2--features .feat-card__icon {
  width: 80px !important;
  height: 80px !important;
  margin-right: 30px !important;
}

.sec-v2--features .feat-card__icon svg {
  width: 40px !important;
  height: 40px !important;
}
/* ======================================
   用户案例：仅卡片自适应，标题完全不变
   ====================================== */
/* 只选中「标题下面的卡片容器」，不碰标题 */
section[aria-label="用户案例"] .sec-v2__inner > div:last-child {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 30px !important;
  width: 100% !important; /* 通长铺满 */
  max-width: 1400px !important; /* 大屏不无限宽，可改 */
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* 卡片自适应宽高 */
section[aria-label="用户案例"] .case-card {
  width: 100% !important;
  height: auto !important;
}
/* ======================================
   增大左上角ZR图标和中瑞盛鸿文字
   ====================================== */
/* 1. 增大ZR图标（保持宽高比，不变形） */
.logo-img {
  height: 60px !important; /* 原来44px，增大18%，比例最协调 */
  width: auto !important; /* 自动计算宽度，不会拉伸变形 */
}

/* 2. 增大"中瑞盛鸿"文字 */
.logo-text {
  font-size: 26px !important; /* 原来18px，增大22%，和图标完美匹配 */
  font-weight: 700 !important; /* 保持原来的加粗效果 */
  letter-spacing: 2px !important; /* 保持原来的字间距 */
}

/* 3. 调整logo位置：变大后完美垂直居中+左边距 */
.logo {
  left: 80px !important; /* 原来90px，左移10px，和导航栏间距更协调 */
  top: 50% !important; /* 强制垂直居中 */
  transform: translateY(-50%) !important; /* 绝对定位下的完美垂直居中 */
}

/* ======================================
   响应式适配（平板/手机自动缩小）
   ====================================== */
/* 平板屏幕（≤960px） */
@media (max-width: 960px) {
  .logo-img {
    height: 44px !important; /* 恢复原来的大小 */
  }
  .logo-text {
    font-size: 18px !important;
  }
  .logo {
    left: 20px !important; /* 小屏幕左移更多，避免和汉堡菜单重叠 */
  }
}

/* 手机屏幕（≤560px） */
@media (max-width: 560px) {
  .logo-img {
    height: 38px !important; /* 稍微缩小，适配手机导航栏高度 */
  }
  .logo-text {
    font-size: 16px !important;
    letter-spacing: 1px !important; /* 小屏幕减少字间距，更紧凑 */
  }
}