/* 产业生态圈页面样式 */

/* 主容器 */

.ecosphere-container {
  box-sizing: border-box;
  padding: 40px 20px;
  height: 496px;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 60px;
}

.ecosphere-banner-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.ecosphere-banner-bg img {
  width: 100%;
  height: 100%;
}

/* 横幅区域 */
.ecosphere-banner {
  color: #333;
  width: 30%;
  border-radius: 15px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  position: absolute;
  left: 14.5%;
  top: 50%;
  transform: translateY(-50%);
}

.banner-subtitle {
  color: #000;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
}

.banner-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #cc0a28;
}

.banner-description {
  font-size: 13px;
  color: #7a7a7a;
  line-height: 2;
}

.banner-description p {
  margin-bottom: 20px;
  /* 超出2行 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.banner-description .line {
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #cc0a28, rgba(204, 10, 40, 0));
  margin-bottom: 20px;
}
.join-platform-btn {
  display: inline-block;
  color: #333;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border: 2px solid transparent;
}

.join-platform-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

.ecosphere-main {
  /* min-height: 100vh; */
  min-height: 900px;
  padding: 0;
  position: relative;
  width: 1360px;
  margin: 0 auto;
}
/* 合作伙伴区域 */
.partners-section {
  background: #333;
  border-radius: 15px;
  padding: 50px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-logo {
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 不同颜色的logo */
.logo-red {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.logo-blue {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.logo-green {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.logo-purple {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.logo-orange {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.logo-teal {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.logo-pink {
  background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.logo-indigo {
  background: linear-gradient(135deg, #6c5ce7 0%, #5b4cdb 100%);
}

.logo-dark {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ecosphere-banner {
  animation: fadeInUp 0.8s ease-out;
}

.partners-section {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.partner-item {
  animation: fadeInUp 0.6s ease-out calc(0.4s + var(--delay, 0) * 0.1s) both;
}

.partner-item:nth-child(1) {
  --delay: 1;
  transform: translateY(-20px);
}
.partner-item:nth-child(2) {
  --delay: 2;
}
.partner-item:nth-child(3) {
  --delay: 3;
}
.partner-item:nth-child(4) {
  --delay: 4;
}
.partner-item:nth-child(5) {
  --delay: 5;
}
.partner-item:nth-child(6) {
  --delay: 6;
}
.partner-item:nth-child(7) {
  --delay: 7;
}
.partner-item:nth-child(8) {
  --delay: 8;
}
.partner-item:nth-child(9) {
  --delay: 9;
}
.ecosphere-main {
  margin: 80px auto;
}
/* 服务选择区域样式 */
.ecosphere-main .main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosphere-main .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 900px;
  z-index: 1;
}

.ecosphere-main .bg img {
  width: 100%;
  height: 100%;
}

.service-col {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding-top: 23%;
  margin: 0 auto;
}

.service-title {
  font-size: 32px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 60px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.service-grid {
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(9, 120px);
  justify-content: center;
  gap: 90px 10px;
  margin-bottom: 80px;
  padding: 0 40px;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-10px) scale(1.05);
}

.service-item .service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
}

.service-item .service-icon img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.service-item:hover .service-icon {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.service-item span {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  text-align: center;
}

/* 补链强链区域 */
.supplement-chain {
  margin-top: 60px;
}

.chain-title {
  font-size: 28px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 40px;
}

/* 服务介绍和流程区域 */
.ecosphere-service {
  background: #fff;
  padding: 80px 0;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.tab-item.active .service-icon {
  background-color: rgba(255, 0, 0, 0.5);
}

/* 服务介绍区域 */
.service-intro {
  max-width: 1360px;
  margin: 0 auto;
}

.service-intro-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.service-intro-left {
  flex: 2;
}

.service-intro-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
  position: relative;
}

.service-intro-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #e74c3c;
}

.service-intro-text {
  line-height: 1.8;
  color: #666;
  font-size: 16px;
}

.service-intro-text p {
  margin-bottom: 20px;
}

.service-intro-right {
  flex: 1;
  text-align: center;
}

.service-apply-btn {
  position: relative;
  z-index: 1000;
  cursor: pointer;
  margin-bottom: 30px;
}

.apply-btn {
  display: inline-block;
  background: #cc0a28;
  color: #fff;
  padding: 10px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.apply-btn:hover {
  background: #cc0a28;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.service-intro-icon {
  margin-bottom: 20px;
}

.service-intro-icon img {
  height: 120px;
  object-fit: contain;
}

.service-intro-note {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* 服务流程区域 */
.service-process {
  max-width: 1360px;
  margin: 80px auto 0;
  padding: 0 20px;
}

.service-process-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  text-align: left;
  margin-bottom: 60px;
  position: relative;
}

.service-process-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0%;
  width: 60px;
  height: 4px;
  background: #e74c3c;
}
.service-intro-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-process-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-process-icon {
  width: 800px;
  height: 94px;
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}
.service-process-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-process-icon-wide {
  width: 1000px;
  height: 250px;
  overflow: hidden;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}
.service-process-icon-wide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 兼容原有样式 */
.portal-banner {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.service-item:nth-child(1),
.service-item:nth-child(10) {
  transform: translateY(-30px);
}
.service-item:nth-child(2),
.service-item:nth-child(11) {
  transform: translateY(-20px);
}
.service-item:nth-child(3),
.service-item:nth-child(12) {
  transform: translateY(-10px);
}
.service-item:nth-child(4),
.service-item:nth-child(13) {
  transform: translateY(0px);
}
.service-item:nth-child(5),
.service-item:nth-child(14) {
  transform: translateY(0px);
}
.service-item:nth-child(6),
.service-item:nth-child(15) {
  transform: translateY(0px);
}
.service-item:nth-child(7),
.service-item:nth-child(16) {
  transform: translateY(-10px);
}
.service-item:nth-child(8),
.service-item:nth-child(17) {
  transform: translateY(-20px);
}
.service-item:nth-child(9),
.service-item:nth-child(18) {
  transform: translateY(-30px);
}

/* 消息提示容器 */
.message-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
  max-width: 90%;
}

/* 消息提示框样式 */
.message-box {
  padding: 12px 20px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-10px);
  max-width: 500px;
}

/* 消息图标 */
.message-icon {
  margin-right: 10px;
  font-size: 18px;
}

/* 信息类型图标颜色 */
.message-info .message-icon {
  color: #409eff;
}

/* 消息文本 */
.message-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* 显示消息的动画 */
.message-box.show {
  opacity: 1;
  transform: translateY(0);
}
