/* 天津迈冲企业官网样式 */

:root {
  /* 品牌色彩 */
  --primary-blue: #0056b3;
  --primary-red: #e50012;
  --gray-dark: #333f48;
  --gray-medium: #666666;
  --gray-light: #999999;
  --bg-light: #f5f5f5;
  --white: #ffffff;
}

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin-bottom: 20px;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

/* 段落样式 */
p {
  margin-bottom: 15px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #004694;
}

.btn-secondary {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #c4000f;
}

/* 多行省略 */
.line-3 {
	display: -webkit-box !important;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-all;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical !important;
	white-space: pre-line;
	overflow-wrap: normal;
}

/* 导航栏 */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  height: 50px;
  width: 50px;
  background: url('../images/logo/logo.png') no-repeat center center;
  background-size: contain;
  margin-right: 10px;
}

.logo-text {
  font-size: 26px;
  font-weight: bold;
  color: var(--white);
  transition: color 0.3s ease;
}

.header.scrolled .logo-text {
  color: var(--gray-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  transition: color 0.3s ease;
}

.header.scrolled .nav-menu a {
  color: var(--gray-dark);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-red) !important;
}

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: var(--gray-dark) !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* 横幅区域 */
.banner {
  height: 100vh;
  background: url('../images/banner/banner.png') no-repeat center center;
  background-size: cover;
  background-color: #335570; /* 图片加载前的底色 */
  position: relative;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.banner-content {
  z-index: 10;
  position: relative;
}

.company-name {
  font-size: 60px;
  margin-bottom: 30px;
}

.banner-tagline {
  font-size: 24px;
  max-width: 800px;
  margin: 0 auto;
}

/* 核心理念区块 */
.core-values {
  padding: 20px 0;
  background-color: var(--gray-dark);
  color: var(--white);
}

.core-values-container {
  display: flex;
  justify-content: space-between;
}

.value-item {
  width: 23%;
  text-align: center;
  padding: 20px;
}

.value-item h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

/* 公司介绍区块 */
.about-section {
  padding: 80px 0;
  background-color: var(--white);
}

.about-wrapper {
  display: flex;
  align-items: center;
}

.about-content {
  flex: 1;
  padding-right: 40px;
}

.about-image {
  flex: 1;
  height: 400px;
  /* background: url('../images/about/about.jpg') no-repeat center center;
  background-size: cover; */
}

.section-title {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title h2 {
  margin-bottom: 10px;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-blue);
  margin-top: 5px;
}

.section-title .en-title {
  color: var(--gray-light);
  font-size: 16px;
  font-weight: normal;
}

/* 发展历程区块 */
.history-section {
  padding: 80px 0;
  background-color: #e6e9ef; /* 预留背景图片位置的底色 */
  color: var(--white);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  top: 19%;
  left: 0;
  transform: translateY(-50%);
}

.timeline-container {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-item {
  position: relative;
  width: 9%;
  text-align: center;
  z-index: 1;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--white);
  border-radius: 50%;
  margin: 0 auto 15px;
}

.timeline-year {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.timeline-content {
  font-size: 14px;
}

/* 业务板块区域 */
.business-section {
  padding: 80px 0;
  background-color: var(--white);
}

.business-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.business-item {
  width: 32%;
  margin-bottom: 40px;
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.business-image {
  height: 200px;
  background-color: #e6e9ef; /* 图片加载前的底色 */
}

/* 个别业务板块图片 */
.business-item:nth-child(1) .business-image {
  background: url('../images/business/business-1.jpg') no-repeat center center;
  background-size: cover;
}

.business-item:nth-child(2) .business-image {
  background: url('../images/business/business-2.jpg') no-repeat center center;
  background-size: cover;
}

.business-item:nth-child(3) .business-image {
  background: url('../images/business/business-3.jpg') no-repeat center center;
  background-size: cover;
}

.business-item:nth-child(4) .business-image {
  background: url('../images/business/business-4.jpg') no-repeat center center;
  background-size: cover;
}

.business-item:nth-child(5) .business-image {
  background: url('../images/business/business-5.jpg') no-repeat center center;
  background-size: cover;
}

.business-item:nth-child(6) .business-image {
  background: url('../images/business/business-6.jpg') no-repeat center center;
  background-size: cover;
}

.business-content {
  padding: 20px;
}

.business-content h3 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

/* 企业愿景区块 */
.vision-section {
  padding: 80px 0;
  background: url('../images/vision/vision-bg.jpg') no-repeat center center;
  background-size: cover;
  background-color: #333; /* 图片加载前的底色 */
  color: var(--white);
  display: flex;
  position: relative;
}

.vision-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* 半透明黑色遮罩，确保文字可读 */
}

.vision-quote, .vision-content {
  position: relative;
  z-index: 1;
}

.vision-quote {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.vision-quote blockquote {
  font-size: 40px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.vision-quote cite {
  font-style: normal;
  font-size: 18px;
}

.vision-content {
  flex: 1;
  padding: 0 40px;
}

/* 核心价值观区块 */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.value-grid-item {
  padding: 40px;
  color: var(--white);
}

.value-grid-item:nth-child(1) {
  background-color: var(--gray-dark);
}

.value-grid-item:nth-child(2) {
  background-color: #e6e9ef;
  color: var(--gray-dark);
}

.value-grid-item:nth-child(3) {
  background-color: #e6e9ef;
  color: var(--gray-dark);
}

.value-grid-item:nth-child(4) {
  background-color: var(--gray-dark);
}

/* 团队精神区块 */
.team-spirit {
  background-color: #333; /* 预留背景图片位置的底色 */
  color: var(--white);
  padding: 80px 0;
  display: flex;
}

.team-content {
  flex: 1;
  padding: 40px;
}

.team-image {
  flex: 1.5;
  /* 预留图片位置 */
}

/* 页脚 */
.footer {
  background-color: var(--gray-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  margin-right: 30px;
}

.footer-column:last-child {
  margin-right: 0;
}

.footer-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
}

.footer-title:after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--primary-red);
  margin-top: 10px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 40px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-light);
  font-size: 14px;
}

.qrcode-container {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.qrcode-image {
  width: 120px;
  height: 120px;
  background: url('../images/qrcode/wechat-qr.png') no-repeat center center;
  background-size: contain;
  margin-bottom: 10px;
  border: 4px solid var(--white);
}

.qrcode-text {
  font-size: 14px;
  color: var(--white);
}

/* 响应式设计 */
@media (max-width: 992px) {
  .core-values-container {
    flex-wrap: wrap;
  }
  
  .value-item {
    width: 48%;
    margin-bottom: 20px;
  }
  
  .about-wrapper {
    flex-direction: column;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .business-item {
    width: 48%;
  }
  
  .vision-section {
    flex-direction: column;
  }
  
  .vision-quote, .vision-content {
    padding: 40px;
  }
  
  .team-spirit {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    flex-direction: row;
    margin-left: auto;
  }
  
  .nav-menu li {
    margin-left: 15px;
    margin-bottom: 0;
    text-align: right;
  }
  
  .nav-menu a {
    color: var(--white) !important;
    font-size: 14px;
  }
  
  .header.scrolled .nav-menu a {
    color: var(--gray-dark) !important;
  }
  
  .dropdown-content {
    position: absolute;
    background-color: var(--white);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    margin-top: 0;
    width: auto;
    min-width: 200px;
  }
  
  .business-item {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-column {
    margin-right: 0;
    margin-bottom: 30px;
  }
  
  .timeline-container {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline-item {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .timeline::after {
    height: 100%;
    width: 2px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
  
  .core-values-grid {
    grid-template-columns: 1fr;
  }
} 