* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; color: #1a1a2e; background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* 主内容容器：80%宽度，最大1800px，水平居中 */
.main-container { width: 80%; max-width: 1800px; margin: 0 auto; padding: 0 15px; }
@media (max-width: 768px) { .main-container { width: 100%; padding: 0 8px; } }

/* 宽容器：用于品牌矩阵等需要更宽布局的区块 */
.wide-container { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .wide-container { width: 100%; padding: 0 8px; } }

/* Bootstrap fallback - 纯CSS实现导航基础 */
.container { width: 80%; max-width: 1800px; margin: 0 auto; padding: 0 15px; }
.navbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; position: relative; padding: 0; }
.navbar-expand-lg { flex-flow: row nowrap; justify-content: flex-start; }
.navbar-nav { display: flex; flex-direction: row; padding-left: 0; margin-bottom: 0; list-style: none; margin-top: 0; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 12px 16px; text-decoration: none; font-weight: 700; font-size: 18px; transition: background .3s; }
.collapse { display: none; }
.collapse.show { display: block; }
.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
}
.dropdown-menu { position: absolute; z-index: 1000; display: none; min-width: 180px; padding: 8px 0; margin: 0; background: #f8fafc; border: 1px solid #0056b3; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); list-style: none; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-item { display: block; padding: 8px 20px; color: #333; text-decoration: none; font-size: 14px; }
.dropdown-item:hover { background: #007BFF; color: #fff; }
.navbar-brand { padding: 12px 0; font-size: 16px; font-weight: 700; text-decoration: none; }
.text-white { color: #fff !important; }
.navbar-toggler { padding: 8px 12px; font-size: 20px; line-height: 1; background: transparent; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; cursor: pointer; display: none; }
.navbar-expand-lg .navbar-toggler { display: none; }
.navbar-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: center; background-size: 100%; }
@media (max-width: 991px) {
  .navbar-expand-lg .navbar-toggler { display: block; }
  .navbar-expand-lg .navbar-nav { flex-direction: column; }
  .navbar-expand-lg .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: #0056b3; padding: 10px 15px; z-index: 999; display: none !important; }
  .navbar-expand-lg .navbar-collapse.show { display: block !important; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.1); border: none; }
  .dropdown-item { color: #fff; }
  .dropdown-item:hover { background: rgba(255,255,255,0.2); color: #fff; }
}

/* 通用布局 */
.section_title { text-align: center; margin-bottom: 40px; }
.section_title h2 { font-size: 32px; color: #333; position: relative; padding-bottom: 15px; margin-bottom: 15px; }
.section_title h2::after { content: ''; width: 60px; height: 3px; background: #0056B3; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }
.section_title p { font-size: 14px; color: #666; max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* Top Bar - 全宽 */
.top-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.top-bar .logo img { height: 50px; width: auto; }
.top-bar h1 { font-size: clamp(12px, 2vw, 18px); color: #1a1a2e; font-weight: 500; margin: 0; text-align: center; flex: 1; }
  .top-bar .contact { text-align: right; font-size: 14px; }
.top-bar .contact .phone { font-size: clamp(14px, 2vw, 20px); color: #0056b3; font-weight: 700; }
/* Brand title & subtitle responsive sizing */
.top-bar .brand-title { font-size: 22px; }
.top-bar .brand-subtitle { font-size: 14px; }

/* PC版：隐藏汉堡菜单，标题居中 */
.mobile-hamburger { display: none; }
.title-wrap { text-align: center; }
.top-bar-inner { flex-wrap: nowrap; }

/* Navbar - 背景全宽，内容在80%容器 */
.navbar-main { background: #0056b3 !important; padding: 0; }
.navbar-main .nav-link { color: #fff !important; }
.navbar-main .nav-link:hover, .navbar-main .nav-link.active { background: rgba(255,255,255,0.1); }

/* Hero Carousel (Swiper) - 在80%容器内 */
.hero-section { padding: 0; background: #fff; }
.hero-swiper { width: 100%; height: 420px; overflow: hidden; position: relative; }
.hero-swiper .swiper-wrapper { display: flex; width: 100%; height: 100%; }
.hero-swiper .swiper-slide { position: relative; flex-shrink: 0; width: 100%; height: 100%; }
.hero-swiper .swiper-slide img { width: 100%; height: 420px; object-fit: cover; display: block; }
.hero-swiper .slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,86,179,0.85) 0%, rgba(0,86,179,0.4) 50%, transparent 100%); }
.hero-swiper .slide-caption { position: absolute; left: 10%; top: 50%; transform: translateY(-50%); max-width: 600px; z-index: 2; }
.hero-swiper .slide-caption .slide-title { font-size: clamp(22px, 3.5vw, 32px); font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); margin-bottom: 16px; }
.hero-swiper .slide-caption p { font-size: clamp(14px, 1.5vw, 20px); color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.hero-swiper .btn-cta { background: #FF6B00; color: #fff; padding: 12px 32px; border-radius: 4px; font-weight: 600; text-decoration: none; display: inline-block; }
@media (max-width: 768px) { .hero-swiper { height: 280px; } .hero-swiper .swiper-slide img { height: 280px; } .hero-swiper .slide-caption { left: 5%; right: 5%; } }

/* 纯CSS轮播后备动画 */
@keyframes slideAnimation {
  0%, 30% { transform: translateX(0); }
  33.33%, 63.33% { transform: translateX(-100%); }
  66.66%, 96.66% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}
.swiper-fallback .swiper-wrapper {
  animation: slideAnimation 12s infinite ease-in-out;
}

/* Why Choose Us */
.why-us { background: #F5F7FA; padding: 60px 0; }
.why-us-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.why-us-card { flex: 1; min-width: 160px; text-align: center; padding: 32px 24px; background: #fff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.why-us-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.why-us-card .icon { width: 140px; height: 140px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.why-us-card .icon img { width: 100%; height: 100%; object-fit: contain; }
.why-us-card .counter-val { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: #FF6B00; line-height: 1.2; }
.why-us-card .counter-suffix { font-size: clamp(13px, 1.35vw, 18px); color: #0056b3; font-weight: 500; }
.why-us-card h3 { font-size: 15px; color: #4a5568; margin-top: 8px; font-weight: 500; }
@media (max-width: 768px) { .why-us-card { flex-basis: calc(50% - 15px); min-width: 140px; } }
@media (max-width: 480px) { .why-us-card { flex-basis: 100%; } }

/* Brand Products - 3行2列，每栏内左40%图+链，右60%链接 */
.brand-products { background: #fff; padding: 60px 0; }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.brand-item { display: flex; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.3s; }
.brand-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.brand-left { width: 40%; min-height: 207px; background: #f0f2f5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; transition: background 0.3s; }
.brand-left .logo-wrap { position: relative; width: 100%; height: 70px; display: flex; align-items: center; justify-content: center; }
.brand-left .logo-wrap img { max-width: 80%; max-height: 160px; position: absolute; transition: opacity 0.3s; }
.brand-left .logo-wrap .logo-hover { opacity: 0; }
.brand-item:hover .brand-left { background: #0056b3; }
.brand-item:hover .brand-left .logo-wrap .logo-default { opacity: 0; }
.brand-item:hover .brand-left .logo-wrap .logo-hover { opacity: 1; }
.brand-left .brand-link { margin-top: 10px; font-size: 13px; color: #4a5568; text-decoration: none; transition: color 0.3s; }
.brand-item:hover .brand-left .brand-link { color: #fff; }
.brand-right { width: 60%; padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.brand-right a { color: #4a5568; text-decoration: none; font-size: 14px; line-height: 1.6; transition: color 0.2s; }
.brand-right a:hover { color: #0056b3; }
.brand-right a::before { content: '>'; color: #FF6B00; margin-right: 6px; font-weight: 700; }
.brand-item:hover .brand-right { background: #dbe8ff; border-left: 3px solid #0056b3; }
@media (max-width: 768px) { .brand-grid { grid-template-columns: 1fr; } .brand-left { min-height: 140px; } }

/* Application Scenarios - 3x3 */
.app-scenarios { background: #F5F7FA; padding: 60px 0; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scenario-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.scenario-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.scenario-card .pic { position: relative; width: 100%; padding-top: 62%; overflow: hidden; }
.scenario-card .pic a { position: absolute; inset: 0; display: block; }
.scenario-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.scenario-card:hover .pic img { transform: scale(1.05); }
.scenario-card .info { padding: 16px; }
.scenario-card .info h3 { font-size: 16px; color: #0056b3; font-weight: 700; margin-bottom: 6px; }
.scenario-card .info h3 a { color: inherit; text-decoration: none; }
.scenario-card .info p { font-size: 13px; color: #4a5568; line-height: 1.6; margin: 0; }
@media (max-width: 768px) { .scenario-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .scenario-grid { grid-template-columns: 1fr; } }

/* News & Cases */
.news-cases { background: #fff; padding: 60px 0; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.news-col h3 { font-size: 18px; color: #0056b3; font-weight: 700; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #F5F7FA; position: relative; }
.news-col h3::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #FF6B00; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 10px 0; border-bottom: 1px dashed #ddd; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.news-list li a { color: #1a1a2e; text-decoration: none; font-size: 14px; transition: color 0.2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.news-list li a:hover { color: #007BFF; }
.news-list li .date { font-size: 12px; color: #999; white-space: nowrap; flex-shrink: 0; }
.news-list li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #FF6B00; margin-right: 6px; flex-shrink: 0; }
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Footer - 全宽 */
.site-footer { background: #0056b3; color: #fff; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-top { padding: 40px 0 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; width: 80%; max-width: 1800px; margin: 0 auto; padding: 0 15px; }
.site-footer .footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.site-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-col li { margin-bottom: 6px; font-size: 13px; }
.site-footer .footer-col li a::before { content: '\B7'; margin-right: 4px; color: #FF6B00; }
.site-footer .footer-contact p { margin-bottom: 4px; font-size: 13px; line-height: 1.6; }
.site-footer .footer-qr { text-align: center; }
.site-footer .footer-qr img { width: 80px; height: 80px; border-radius: 4px; margin-bottom: 4px; display: inline-block; }
.site-footer .footer-qr p { font-size: 12px; color: rgba(255,255,255,0.7); }
.site-footer .footer-bottom { padding: 16px 0; background: rgba(0,0,0,0.15); }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 12px; margin-bottom: 10px; width: 80%; max-width: 1800px; margin: 0 auto 10px; padding: 0 15px; }
.site-footer .copyright { text-align: center; font-size: 12px; color: rgba(255,255,255,0.6); width: 80%; max-width: 1800px; margin: 0 auto; padding: 0 15px; }
@media (max-width: 768px) { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .site-footer .footer-contact { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* 粘性头部 */
.header-wrap { position: sticky; top: 0; z-index: 1000; }

/* PC版下滑锚点导航 */
.anchor-bar {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 10px 0;
  text-align: center;
  display: none;
  border-bottom: 1px solid rgba(0,86,179,0.1);
  width: 100%;
}
.anchor-bar.show { display: block; }
.anchor-bar a {
  display: inline-block;
  padding: 6px 18px;
  margin: 0 4px;
  color: #0056b3;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.28s;
  border: 1px solid transparent;
}
.anchor-bar a:hover {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
}
@media (max-width: 768px) { .anchor-bar { display: none !important; } }

/* 返回顶部按钮 */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: #0056b3;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
}
.back-top:hover {
  background: #FF6B00;
  transform: translateY(-3px);
}

/* 手机端汉堡菜单面板 */
.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 10000;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
  display: none;
}
.mobile-nav-panel.show { transform: translateX(0); display: block; }
.mobile-nav-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-nav-panel .panel-header .logo img { height: 32px; }
.mobile-nav-panel .panel-header .close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.mobile-nav-panel .panel-header .close-btn::before,
.mobile-nav-panel .panel-header .close-btn::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}
.mobile-nav-panel .panel-header .close-btn::before { transform: rotate(45deg); }
.mobile-nav-panel .panel-header .close-btn::after { transform: rotate(-45deg); }
.mobile-nav-panel .panel-list {
  padding: 16px;
}
.mobile-nav-panel .panel-list li {
  border-bottom: 1px solid #f0f0f0;
}
.mobile-nav-panel .panel-list li a {
  display: block;
  padding: 14px 4px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav-panel .panel-tel {
  padding: 16px;
  text-align: center;
  background: #f8f9fa;
  margin-top: 20px;
}
.mobile-nav-panel .panel-tel span { font-size: 13px; color: #666; }
.mobile-nav-panel .panel-tel strong { display: block; font-size: 20px; color: #0056b3; margin-top: 4px; }

/* 手机端汉堡菜单三条横杠 */
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  position: relative;
  transition: all 0.3s;
}
.hamburger-bar::before,
.hamburger-bar::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.hamburger-bar::before { top: -7px; }
.hamburger-bar::after { top: 7px; }

/* 手机端：页脚只保留联系方式和二维码 */
@media (max-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .site-footer .footer-col:not(.footer-contact):not(.footer-qr) {
    display: none;
  }
  .site-footer .footer-contact {
    grid-column: 1 / -1;
    text-align: center;
  }
  .site-footer .footer-qr {
    grid-column: 1 / -1;
    text-align: center;
  }
  .site-footer .footer-qr > div { display: inline-block; margin: 0 8px; }
}

/* 手机端：缩小页头高度，h1/logo自适应 */
@media (max-width: 768px) {
  .top-bar { padding: 6px 0; }
  .top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 2px 0;
  }
  .mobile-hamburger { flex-shrink: 0; display: flex; align-items: center; }
  .top-bar .logo { flex-shrink: 0; }
  .top-bar .logo img { height: 28px; }
  .title-wrap {
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .top-bar h1 {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    display: block !important;
    margin: 0;
    padding-right: 4px;
  }
  .top-bar .brand-title { font-size: 10px; }
  .top-bar .brand-subtitle { font-size: 7px; }
  .top-bar .contact div { font-size: 7px; }
  .top-bar .contact { display: flex; flex-direction: column; align-items: flex-end; font-size: 7px; }
  .top-bar .contact .phone { font-size: 7px; }
  .navbar-expand-lg .navbar-toggler { display: none !important; }
  /* 手机版头部也sticky */
  .header-wrap { position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid #0056b3; }
  /* 手机版返回顶部按钮 */
  .back-top { right: 12px; bottom: 12px; width: 40px; height: 40px; font-size: 18px; }
  
  /* 手机端轮播图显示完整 */
  .hero-swiper .swiper-slide img { object-fit: contain; background: #f0f2f5; }
  .hero-swiper { height: auto; min-height: 200px; }
  .slide-overlay { background: linear-gradient(180deg, rgba(0,86,179,0.6) 0%, transparent 60%) !important; }
  .slide-caption { top: 10%; left: 5%; right: 5%; transform: none; text-align: center; max-width: none; }
  .slide-caption .slide-title { font-size: 18px; }
  .slide-caption p { font-size: 13px; }
  .slide-caption .btn-cta { padding: 8px 20px; font-size: 13px; }
}


/* ===== Swiper 核心样式（CSP 替代 CDN） ===== */
.swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  list-style: none;
  padding: 0;
  z-index: 1;
  display: block;
}
.swiper-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  transition-property: transform;
  transition-timing-function: ease;
  box-sizing: content-box;
}
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  transition-property: transform;
  display: block;
}
.swiper-pagination {
  position: absolute;
  text-align: center;
  transition: opacity .3s;
  transform: translate3d(0,0,0);
  z-index: 10;
  bottom: 10px;
  left: 0;
  width: 100%;
}
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  margin: 0 4px;
  cursor: pointer;
  transition: background .3s;
}
.swiper-pagination-bullet-active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: 10px;
  left: 0;
  width: 100%;
}
/* Ultra-small screens (<700px) */
@media (max-width: 700px) {
  .top-bar .brand-title { font-size: 8px; }
  .top-bar .brand-subtitle { font-size: 6px; }
  .top-bar .contact div { font-size: 6px; }
  .top-bar .contact .phone { font-size: 6px; }
}
