/* 河南铁甲运输有限公司 - 自定义核心样式 */

@charset "UTF-8";

:root {
  --primary-blue: #16467f;
  --secondary-blue: #0f2c52;
  --accent-orange: #f26522;
  --accent-orange-hover: #dc5514;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
}

body {
  color: var(--text-dark);
  background-color: #fcfdfe;
  overflow-x: hidden;
}

.site-logo-img {
  width: 400px !important;
  height: auto !important;
  max-width: 400px !important;
  object-fit: contain;
  display: block;
}
.header-brand-row { min-height: 96px; justify-content: flex-start !important; }
.header-slogan { min-width: 280px; flex: 0 0 280px; margin-left: 7px; }
.header-slogan-img { display: block; width: 280px; height: auto; object-fit: contain; position: relative; left: -10px; }
.header-hotline { min-width: 270px; margin-left: auto; }
.header-nav-bar { border-top: 1px solid rgba(255,255,255,.12); }
.header-nav-links > a { position: relative; min-width: 82px; justify-content: center; }
.header-nav-links > a:first-child { min-width: 76px; }
.header-nav-links > a::after { display: none; }
.header-nav-bar form input { border: 1px solid rgba(2, 88, 179, .12); }
@media (max-width: 768px) {
  .site-logo-img {
    width: 285px !important;
    max-width: 285px !important;
  }
  .header-brand-row { min-height: 92px; }
  .header-slogan-img { width: 230px; }
}
@media (max-width: 480px) {
  .site-logo-img {
    width: 220px !important;
    max-width: 220px !important;
  }
  .header-brand-row { min-height: 68px; }
}

#home {
  min-height: 390px;
}

#home > div:first-child img {
  object-position: center center;
}

@media (min-width: 1024px) {
  #home { min-height: 430px; }
  #home > div:first-child img { object-position: 58% center; }
}


/* 按效果图收紧各内容模块之间的留白 */
#about { padding-top: 24px !important; padding-bottom: 24px !important; }
#business, #news, #safety { padding-top: 24px !important; padding-bottom: 24px !important; }
#business .mb-4, #news .mb-4, #safety .mb-4 { margin-bottom: 12px !important; }

/* 首页关于我们与运输网络合并为一个整体卡片 */
#about > .grid { gap: 0 !important; background: #fff; border: 1px solid #e5edf5; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(15, 42, 76, .04); }
#about > .grid > div { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
#about > .grid > div + div { border-left: 0 !important; }
@media (max-width: 1023px) { #about > .grid > div + div { border-left: 0 !important; border-top: 0 !important; } }

.channel-hero { background: #eaf4ff; border-bottom: 1px solid #dce8f4; }
.channel-hero-inner { width: 100%; max-width: 1216px !important; box-sizing: border-box; }
.channel-hero-inner { position: relative; min-height: 0; aspect-ratio: 3 / 1; overflow: hidden; }
.channel-hero-copy { position: relative; z-index: 2; width: 52%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 28px 0; }
.channel-kicker { color: #f26522; font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 8px; }
.channel-hero h1, .channel-hero .post-hero-heading { color: #102b50; font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.15; margin: 0; }
.channel-hero-copy > p:last-child { color: #526b87; font-size: 14px; margin-top: 12px; }
.channel-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.channel-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(234,244,255,.96) 0%, rgba(234,244,255,.78) 28%, rgba(234,244,255,.12) 58%, rgba(234,244,255,0) 100%); }
.channel-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.channel-content-card { min-height: 300px; }
.page-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.page-detail-grid section { padding: 20px 22px; border: 1px solid #e4edf6; border-radius: 10px; background: #f8fbff; }
.page-detail-grid h2 { color: #163e70; font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.page-detail-grid p, .page-detail-grid li { color: #52657b; font-size: 14px; line-height: 1.9; }
.page-detail-grid ul { list-style: disc; padding-left: 20px; margin: 0; }
@media (max-width: 640px) { .channel-hero-inner { aspect-ratio: auto; min-height: 330px; } .channel-hero-copy { width: 72%; padding: 26px 0 18px; } }
@media (max-width: 640px) { .page-detail-grid { grid-template-columns: 1fr; } }

/* 标题左侧垂直橙色指示条 */
.section-title-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #1e293b;
}

.section-title-bar::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--accent-orange);
  border-radius: 2px;
  margin-right: 8px;
}

/* 卡片阴影与悬停平滑过度 */
.hover-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  border: 1px solid #edf2f7;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  border-color: #cbd5e1;
}

/* 业务卡片与新闻卡片图片容器悬停微缩放 */
.card-img-zoom {
  overflow: hidden;
}

.card-img-zoom img {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-card:hover .card-img-zoom img {
  transform: scale(1.06);
}

/* 资质证书卡片悬浮遮罩与查看提示 */
.cert-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
}

.cert-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #60a5fa;
  transform: translateY(-2px);
}

.cert-card .cert-overlay {
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(15, 29, 53, 0.6);
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

/* 运输网络地图中心点雷达脉冲动效 */
@keyframes radar-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.radar-ping {
  animation: radar-pulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

/* 地图发光辐射虚线动效 */
@keyframes dash-flow {
  to {
    stroke-dashoffset: -40;
  }
}

.route-line {
  stroke-dasharray: 4, 4;
  animation: dash-flow 1.8s linear infinite;
}

/* 资质大图 Lightbox 模态框 */
.lightbox-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* 自定义优雅滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 导航项悬停底部光标 */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0%;
  height: 2px;
  background-color: var(--primary-blue);
  transition: all 0.25s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}
