@charset "UTF-8";

/* 合作伙伴/推广页面样式 */

/* 导航栏样式 - 和enquiry.html一样 */
.partner-page .wrap-head {
  background-color: rgba(0, 0, 0, 0.7);
}

/* 主体背景优化 */
.wrap-main-partner {
  padding-top: 75px;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 30%, #f8f9fa 100%);
  position: relative;
}

/* 添加装饰性背景图案 */
.wrap-main-partner::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* 内容区域 */
.partner-content {
  padding: 60px 0 80px;
  position: relative;
  z-index: 1;
}

/* 顶部标题区域 */
.partner-header {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0 60px;
  margin-bottom: 60px;
}

.partner-header .title-wrapper {
  text-align: center;
}

.partner-header .main-title {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: 'TencentSansw7', 'Microsoft YaHei', sans-serif;
}

.partner-header .sub-title {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.partner-section {
  margin-bottom: 80px;
}

.partner-section:last-child {
  margin-bottom: 0;
}

/* 模块标题 */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 15px;
  font-family: 'TencentSansw7', 'Microsoft YaHei', sans-serif;
}

.section-title .title-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto;
  border-radius: 2px;
}

/* 网格布局 */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

/* 单个商品/服务卡片 */
.partner-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.partner-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 图片区域 */
.item-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.item-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.partner-item:hover .item-image::before {
  opacity: 1;
}

.item-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.partner-item:hover .item-image img {
  transform: scale(1.1);
}

/* 文字内容区域 */
.item-content {
  padding: 30px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 22px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 15px;
  font-family: 'TencentSansw7', 'Microsoft YaHei', sans-serif;
  line-height: 1.4;
}

.item-desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  flex: 1;
  font-family: 'Microsoft YaHei', sans-serif;
}

/* 返回顶部按钮 */
#back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#back-to-top .pic {
  width: 100%;
  height: 100%;
  background: url(../images/back_top.png) center center no-repeat;
  background-size: 24px 24px;
}

#back-to-top:hover .pic {
  background-image: url(../images/back_top_hover.png);
}

/* 弹窗样式 */
#companyModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#companyModal .modal-header {
  border-bottom: 2px solid #f0f0f0;
  padding: 20px 30px;
}

#companyModal .modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  font-family: 'Microsoft YaHei', sans-serif;
}

#companyModal .modal-body {
  padding: 30px;
  max-height: 70vh;
  overflow-y: auto;
}

#companyModal .modal-body h4 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  font-family: 'Microsoft YaHei', sans-serif;
}

#companyModal .modal-body h5 {
  font-size: 18px;
  font-weight: bold;
  color: #555;
  margin-top: 20px;
  margin-bottom: 10px;
  font-family: 'Microsoft YaHei', sans-serif;
}

#companyModal .modal-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
  font-family: 'Microsoft YaHei', sans-serif;
}

#companyModal .modal-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

#companyModal .modal-body ul li {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 8px;
  font-family: 'Microsoft YaHei', sans-serif;
}

#companyModal .modal-body ul li strong {
  color: #333;
}

#companyModal .modal-body table {
  width: 100%;
  border-collapse: collapse;
}

#companyModal .modal-body table td {
  padding: 10px 15px;
  border: 1px solid #e0e0e0;
  vertical-align: top;
}

#companyModal .modal-body table tr:nth-child(even) {
  background-color: #f9f9f9;
}

#companyModal .modal-body h6 {
  font-size: 16px;
  font-weight: bold;
  color: #555;
  margin-top: 15px;
  margin-bottom: 10px;
  font-family: 'Microsoft YaHei', sans-serif;
}

/* 公司图片展示网格 */
.company-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* 茄果科技图片垂直排列 */
#companyModalBody .company-images-grid {
  grid-template-columns: 1fr !important;
  max-width: 100%;
}

#companyModalBody .company-images-grid .company-image-item {
  max-width: 100%;
  width: 100%;
}

#companyModalBody .company-images-grid .company-image-item img {
  width: 100%;
  max-height: none !important;
  min-height: auto !important;
  height: auto;
  object-fit: contain;
}

.company-image-item {
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.company-image-item img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 150px;
  max-height: 200px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.company-product-img {
  background-color: #f5f5f5;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                    linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

.company-image-item .image-caption {
  padding: 10px;
  font-size: 14px;
  color: #666;
  margin: 0;
  font-family: 'Microsoft YaHei', sans-serif;
  background: #fff;
}

@media (max-width: 768px) {
  .company-images-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .company-image-item img {
    max-height: 150px;
  }
  
  /* 移动端茄果科技图片也垂直排列 */
  #companyModalBody .company-images-grid {
    grid-template-columns: 1fr !important;
  }
  
  #companyModalBody .company-images-grid .company-image-item img {
    max-height: none !important;
  }
}

#companyModal .modal-footer {
  border-top: 2px solid #f0f0f0;
  padding: 15px 30px;
}

#companyModal .btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  padding: 8px 20px;
}

#companyModal .btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* 图片点击样式 */
.company-img {
  transition: transform 0.3s ease;
}

.company-img:hover {
  transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .partner-header {
    padding: 60px 0 40px;
  }

  .partner-header .main-title {
    font-size: 36px;
  }

  .partner-header .sub-title {
    font-size: 18px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }

  .item-image {
    height: 200px;
  }

  .item-content {
    padding: 25px 20px;
  }

  .item-title {
    font-size: 20px;
  }

  .item-desc {
    font-size: 14px;
  }

  .partner-section {
    margin-bottom: 60px;
  }
}

@media (max-width: 576px) {
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .partner-header .main-title {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 24px;
  }
}

