/* 重构数据中心区域 - 更现代和专业的布局 */

.datacenter {
  padding: 100px 0 80px;
  position: relative;
  background-color: var(--light-bg);
}

.datacenter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: white;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.section-title h2 span {
  color: var(--secondary-color);
  position: relative;
}

.section-title h2 span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-title p {
  max-width: 700px;
  margin: 0 auto;
  color: #5D6D7E;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 创建更现代的标签页 */
.datacenter-tabs-container {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.datacenter-tabs {
  display: inline-flex;
  background-color: white;
  border-radius: 60px;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 1;
}

.datacenter-tab {
  padding: 12px 25px;
  font-weight: 600;
  font-size: 1rem;
  color: #6B7C93;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  border: none;
  background: transparent;
}

.datacenter-tab.active {
  color: white;
  background-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(26, 140, 216, 0.3);
}

/* 更现代的卡片设计 */
.datacenter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.datacenter-card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

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

.datacenter-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.datacenter-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.datacenter-level {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 182, 122, 0.3);
}

.datacenter-content-inner {
  padding: 30px;
}

.datacenter-content-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 700;
}

.datacenter-content-inner h3 .flag {
  margin-right: 10px;
  font-size: 1.6rem;
}

.datacenter-content-inner p {
  color: #566573;
  line-height: 1.6;
  margin-bottom: 20px;
}

.datacenter-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.datacenter-feature {
  background-color: var(--light-bg);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}

.datacenter-feature::before {
  content: "•";
  margin-right: 6px;
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* 改进产品切换按钮 */
.product-toggle-container {
  margin-top: 25px;
}

.product-toggle-btn {
  width: 100%;
  padding: 16px;
  border: none;
  background-color: var(--light-bg);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-toggle-btn:hover {
  background-color: #E2E8F0;
}

.product-toggle-btn .toggle-icon {
  background-color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.product-toggle-btn[aria-expanded="true"] .toggle-icon {
  transform: rotate(45deg);
  background-color: var(--secondary-color);
  color: white;
}

/* 改进产品卡片 */
.datacenter-products {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.datacenter-products:not(.collapsed) {
  max-height: 1000px;
  transition: max-height 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background-color: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #E2E8F0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-card.popular {
  border: 2px solid var(--accent-color);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--warning-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(255, 154, 0, 0.3);
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product-specs {
  margin-bottom: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #566573;
}

.spec-icon {
  margin-right: 10px;
  font-size: 1.2rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  margin: 20px 0;
}

.price-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.price-unit {
  font-size: 0.9rem;
  color: #8395A7;
  margin-left: 5px;
}

.product-button {
  display: block;
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 15px;
  box-shadow: 0 5px 15px rgba(26, 140, 216, 0.2);
}

.product-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 140, 216, 0.3);
}

.view-more-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-more-link:hover {
  color: var(--primary-color);
}

.view-more-link span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.view-more-link:hover span {
  transform: translateX(5px);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .datacenter {
    padding: 80px 0 60px;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .datacenter-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .datacenter {
    padding: 60px 0 40px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  .datacenter-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 5px;
  }
  
  .datacenter-tab {
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .datacenter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .datacenter {
    padding: 50px 0 30px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .datacenter-content-inner {
    padding: 20px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
} 