/* 通用页面样式 - 按照原始设计要求 */

/* 全局基础样式 */
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* body1-content-wrapper: Type1页面容器（9个三化页面+首页） */
.body1-content-wrapper {
  padding-top: 181px; /* 与二级导航高度一致，只处理与导航的布局关系 */
  min-height: 100vh;
}

/* body2-content-wrapper: Type2页面容器（关于我们+联系我们） */
.body2-content-wrapper {
  padding-top: 0; /* Type2页面有自己的banner，不需要额外的顶部间距 */
  min-height: 100vh;
}

/* 二级导航强制固定定位 */
.secondary-nav-header {
  position: fixed !important;
  top: 70px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: #0066cc !important;
  width: 100% !important;
  padding: 15px 0 !important;
}

/* Type2页面的banner样式 */
.page-banner {
  margin-top: 0; /* Type2页面使用header2，不需要额外间距 */
}

/* 专题页面基础样式 */
.topic-page {
  min-height: 100vh;
  background: #f8f9fa;
}

/* 页面头部样式 */
.page-hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-content .description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 内容区域 */
.content-section {
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Type2页面样式 */
.page-banner {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  margin-top: 0;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

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

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
  background: #f8f9fa;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-link:hover {
  color: #007bff;
}

.breadcrumb-separator {
  color: #6c757d;
  margin: 0 0.5rem;
}

.breadcrumb-current {
  color: #495057;
  font-weight: 500;
}

.section-padding {
  padding: 80px 0;
}

/* 移动端wrapper和容器样式 */
@media (max-width: 768px) {
  /* 移动端body1-content-wrapper的padding-top为0 */
  .body1-content-wrapper {
    padding-top: 0; /* 移动端二级导航隐藏，不需要顶部间距 */
  }
  
  /* 移动端隐藏二级导航 */
  .secondary-nav-header {
    display: none !important;
  }
  
  /* 内部容器确保左右边距一致 */
  .container {
    width: calc(100% - 20px);
    max-width: none;
    padding: 0; 
    margin: 0 10px; /* 左右各10px边距 */
    box-sizing: border-box;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.2rem;
  }
  
  .banner-title {
    font-size: 2.5rem;
  }
  
  .banner-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* 小屏幕设备保持相同设置 */
  .body1-content-wrapper {
    padding-top: 0; /* 小屏幕也为0 */
  }
  
  .secondary-nav-header {
    display: none !important;
  }
  
  /* 小屏幕容器样式 */
  .container {
    width: calc(100% - 20px);
    max-width: none;
    padding: 0; 
    margin: 0 10px;
    box-sizing: border-box;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .banner-title {
    font-size: 2rem;
  }
}
