/* ===== 全站公共样式（所有页面共用，请勿在此添加单页样式）===== */

:root {
  --theme-color: #0089CF;
  --theme-color-dark: #006FA5;
  --theme-color-light: rgba(0,137,207,0.08);
  --text-primary: #222;
  --text-secondary: #555;
  --text-light: #999;
  --bg-white: #fff;
  --bg-light: #f5f7fa;
  --bg-dark: #1a2332;
  --border-color: #e8e8e8;
  --container-width: 1200px;
  --header-height: 80px;
  --section-padding: 80px 0;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Manrope', 'Microsoft YaHei', sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.top-bar {
  background: var(--bg-dark);
  color: #ccc;
  font-size: 12px;
  height: 36px;
  line-height: 36px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.top-bar-left .slogan {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right .hotline-label {
  color: rgba(255,255,255,0.6);
}

.top-bar-right .hotline-num {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.nav-wrapper {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-color);
  white-space: nowrap;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 0 20px;
  line-height: 70px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.nav-menu > li > a:hover, .nav-menu > li.active > a {
  color: var(--theme-color);
}

.nav-menu > li .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 180px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: all 0.25s ease;
}

.nav-menu > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 二级菜单展开/收起箭头（仅移动端显示） */
.submenu-toggle {
  display: none;
}

.submenu li a {
  display: block;
  padding: 8px 24px;
  font-size: 13px;
  color: #555;
  transition: var(--transition);
  white-space: nowrap;
}

.submenu li a:hover {
  color: var(--theme-color);
  background: var(--theme-color-light);
}

.nav-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 12px;
  gap: 6px;
}

.nav-search input {
  border: none;
  outline: none;
  font-size: 12px;
  width: 120px;
  font-family: inherit;
}

.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 14px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,35,50,0.85) 0%, rgba(0,137,207,0.65) 100%);
}

.inner-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.inner-banner-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.breadcrumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 14px 0;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--theme-color);
}

.breadcrumb .sep {
  font-size: 11px;
  opacity: 0.6;
}

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

.section-header h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.footer {
  background: var(--bg-dark);
  color: #ccc;
  padding: 50px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}

.footer-contact-item .label {
  color: rgba(255,255,255,0.4);
  min-width: 50px;
  flex-shrink: 0;
  white-space: nowrap;
}

.footer-contact-item .value {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.footer-contact-item .value a {
  color: rgba(255,255,255,0.8);
}

.footer-contact-item .value a:hover {
  color: #fff;
}

.footer-qr {
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 8px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #999;
}

.footer-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.6);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 100px;
  width: 42px;
  height: 42px;
  background: var(--theme-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 80;
  box-shadow: 0 4px 12px rgba(0,137,207,0.3);
  font-size: 16px;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--theme-color-dark);
  transform: translateY(-3px);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.pagination .active {
  background: var(--theme-color);
  color: #fff;
  border-color: var(--theme-color);
}

.pagination .prev, .pagination .next {
  font-size: 16px;
  padding: 0 14px;
}

.product-card:hover .product-card-img {
  transform: scale(1.08);
}

.message-section {
  padding: 70px 0;
  background: var(--bg-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--theme-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--theme-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,137,207,0.3);
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.page-banner-content .subtitle {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.inner-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,40,70,0.75) 0%, rgba(0,137,207,0.55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.inner-banner-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.inner-banner-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  letter-spacing: 2px;
}

/* ===== 内页头图（导航管理头图配置驱动） ===== */
.page-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 移动端头图默认隐藏，窄屏时切换显示 */
.page-hero-bg-mobile {
  display: none;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,60,100,0.6) 0%, rgba(0,137,207,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 遮罩风格（与首页轮播一致，对应后台 banner_mask_style） */
.page-hero-overlay.mask-blue {
  background: linear-gradient(135deg, rgba(0,80,120,0.55) 0%, rgba(0,100,160,0.35) 100%);
}

.page-hero-overlay.mask-teal {
  background: linear-gradient(135deg, rgba(0,110,120,0.6) 0%, rgba(0,150,140,0.3) 100%);
}

.page-hero-overlay.mask-dark {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 20px;
}

.page-hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-hero-content .subtitle {
  font-size: 15px;
  opacity: 0.85;
  letter-spacing: 2px;
  margin: 0;
}

.news-categories {
  padding: 30px 0 0;
  background: var(--bg-white);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  /* 分类单行横向滑动：不换行，超出时左右滑动 */
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* ===== 分类标签栏：左右箭头 ===== */
.tabs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tabs-bar .tabs-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.tabs-bar .tabs-arrow:hover:not([disabled]) {
  color: var(--theme-color);
  border-color: var(--theme-color);
}

.tabs-bar .tabs-arrow[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 12px 30px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  font-family: inherit;
  white-space: nowrap;
}

.category-tab:hover {
  color: var(--theme-color);
}

.category-tab.active {
  color: var(--theme-color);
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--theme-color);
  border-radius: 2px;
}

.news-list-section {
  padding: 40px 0 80px;
  background: var(--bg-white);
}

.news-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item:hover {
  padding-left: 10px;
}

.news-list-item:hover .news-item-title-text {
  color: var(--theme-color);
}

.news-list-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-thumb {
  flex-shrink: 0;
  width: 240px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}

.news-item-date {
  font-size: 13px;
  color: var(--theme-color);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-item-date i {
  font-size: 12px;
}

.news-item-title-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: var(--transition);
  line-height: 1.5;
}

.news-item-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-color);
  transition: var(--transition);
}

.news-item-more i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.news-list-item:hover .news-item-more i {
  transform: translateX(4px);
}

.news-list-item.no-thumb {
  gap: 0;
}

.news-list-item.no-thumb .news-item-content {
  width: 100%;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-white);
  transition: var(--transition);
  cursor: pointer;
}

.pagination a:hover, .pagination span.current {
  background: var(--theme-color);
  color: #fff;
  border-color: var(--theme-color);
}

.pagination .disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .news-thumb {
    width: 200px;
    height: 140px;
  }
  .news-section {
    padding: 50px 0;
  }
}

/* PC 端宽度不足以完整展示导航时（logo 171 + 菜单 644 + 搜索框 166 ≈ 981px，再加容器左右 40px 内边距），
   导航整体换行到第二行居中展示，避免菜单项被压缩后文字折行撑破导航栏高度 */
@media (max-width: 1040px) and (min-width: 769px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 70px;
  }
  .logo,
  .nav-search {
    min-height: 70px;
  }
  .nav-search {
    order: 2;
  }
  .nav-menu {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .nav-inner {
    height: 60px;
    padding: 0 16px;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 70px 0 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 100;
    overflow-y: auto;
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-menu > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-menu > li > a {
    flex: 1;
    padding: 12px 24px;
    line-height: normal;
    font-size: 15px;
  }
  /* 一级导航右侧的二级菜单展开/收起箭头 */
  .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 48px;
    min-height: 44px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.25s ease;
  }
  .nav-menu > li.expanded .submenu-toggle {
    transform: rotate(180deg);
  }
  /* 二级菜单默认收起，点击箭头展开；静态列表需覆盖桌面 hover 规则的 translateX(-50%)（其特异性更高），否则会整体左移 */
  .nav-menu > li .submenu {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0 20px;
  }
  .nav-menu > li.expanded .submenu {
    display: block;
  }
  .nav-menu > li:hover .submenu {
    transform: none;
  }
  .nav-search {
    margin: 12px 24px;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .mobile-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
  .inner-banner {
    height: 240px;
  }
  .inner-banner-title {
    font-size: 26px;
  }
  .inner-banner-subtitle {
    font-size: 13px;
  }
  /* 窄屏切换为移动端头图 */
  .page-hero {
    height: 240px;
  }
  .page-hero-bg-pc {
    display: none;
  }
  .page-hero-bg-mobile {
    display: block;
  }
  .page-hero-content h1 {
    font-size: 26px;
  }
  .page-hero-content .subtitle {
    font-size: 13px;
  }
  .category-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .category-tab {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
  }
  .news-list-item {
    flex-direction: column;
    gap: 16px;
  }
  .news-thumb {
    width: 100%;
    height: 200px;
  }
  .news-item-content {
    min-height: auto;
  }
  .news-item-title-text {
    font-size: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 16px;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .news-section {
    padding: 40px 0;
  }
  .category-tabs {
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar {
    display: none;
  }
  .back-to-top {
    bottom: 80px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .inner-banner {
    height: 200px;
  }
  .inner-banner-title {
    font-size: 22px;
  }
  .page-hero {
    height: 200px;
  }
  .page-hero-content h1 {
    font-size: 22px;
  }
  .breadcrumb {
    font-size: 12px;
    padding: 10px 0;
  }
  .news-list-item {
    padding: 20px 0;
  }
  .news-thumb {
    height: 180px;
  }
  .news-item-title-text {
    font-size: 15px;
  }
  .news-section {
    padding: 30px 0;
  }
}

/* ===== 在线留言表单：蜜罐字段与提交状态 ===== */
.message-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  color: #2e9e4f;
}

.form-status.is-error {
  color: #e74c3c;
}
