/* 腾讯云风格轮播图样式 */
.tencent-banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: visible; /* 改为 visible 让卡片能露出来 */
  background: #ffffff;
}

/* 视频背景 */
.banner-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.banner-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}

/* 轮播容器 */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* 轮播项 */
.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 2;
}

.carousel-item.active {
  opacity: 1;
  z-index: 3;
}

/* 左侧导航列表 */
.banner-nav {
  position: absolute;
  left: 300px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 12px;
  padding: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.4);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-item {
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  margin: 0 8px;
  border-radius: 8px;
}

.nav-item:hover {
  background: rgba(0, 82, 217, 0.08);
  border-left-color: transparent;
}

.nav-item.active {
  background: rgba(0, 82, 217, 0.12);
  border-left-color: transparent;
}

.nav-item-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  background: linear-gradient(135deg, #4f9dff, #4960ff);
  color: #ffffff;
  border-radius: 10px;
  margin-right: 6px;
  font-weight: 500;
  vertical-align: middle;
}

.nav-item-title {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}

.nav-item-desc {
  font-size: 12px;
  color: #999;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.nav-item:hover .nav-item-title {
  color: #0052d9;
}

.nav-item.active .nav-item-title {
  color: #0052d9;
  font-weight: 600;
}

.nav-item-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #0052d9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-item-link:hover {
  color: #266fe8;
}

/* 主内容区 */
.banner-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 600px;
  padding-right: 100px;
}

.banner-text {
  max-width: 600px;
  z-index: 2;
}

.banner-title {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.3;
  animation: slideInLeft 0.8s ease-out;
}

.banner-subtitle {
  font-size: 18px;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 32px;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.banner-actions {
  display: flex;
  gap: 16px;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.banner-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.banner-btn-primary {
  background: #0052d9;
  color: #ffffff;
  border: none;
}

.banner-btn-primary:hover {
  background: #266fe8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 82, 217, 0.3);
}

.banner-btn-secondary {
  background: #ffffff;
  color: #0052d9;
  border: 1px solid #e6e9ef;
}

.banner-btn-secondary:hover {
  border-color: #0052d9;
  background: rgba(0, 82, 217, 0.05);
}

/* 右侧背景图 */
.banner-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  z-index: 1;
  animation: floatImage 6s ease-in-out infinite;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* 图片加载失败时的占位样式 */
.banner-image img[src=""],
.banner-image img:not([src]),
.banner-image img[src*="placeholder"] {
  display: none;
}

.banner-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: transparent;
  border-radius: 50%;
  display: none;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* 装饰性背景元素 */
.banner-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  z-index: 0;
  display: none;
}

.decoration-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(79, 157, 255, 0.2), rgba(195, 214, 255, 0.2));
  top: -100px;
  right: 10%;
  animation: float 20s ease-in-out infinite;
}

.decoration-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(242, 121, 195, 0.15), rgba(224, 253, 243, 0.15));
  bottom: -50px;
  right: 30%;
  animation: float 15s ease-in-out infinite 5s;
}

/* 右下角指示器 */
.carousel-indicator {
  position: absolute;
  right: 40px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.indicator-current {
  font-size: 24px;
  font-weight: 700;
  color: #0052d9;
}

.indicator-separator {
  font-size: 18px;
  color: #ccc;
}

.indicator-total {
  font-size: 18px;
  color: #999;
}

.indicator-controls {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

.indicator-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #666;
}

.indicator-btn:hover {
  background: #0052d9;
  color: #ffffff;
}

.indicator-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ====================== */
/* 轮播底部4个产品卡片样式 */
/* ====================== */
.banner-cards {
  position: absolute;
  left: 50%;
  bottom: -70px;
  transform: translateX(-50%);
  width: 1200px;
  max-width: 92%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  z-index: 1;
}

.banner-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0052d9;
  font-size: 24px;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
}

/* 动画效果 */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(10px);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 20px) scale(1.02);
  }
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .banner-content {
    padding-left: 500px;
    padding-right: 60px;
  }
  
  .banner-title {
    font-size: 40px;
  }
  
  .banner-cards {
    width: 95%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    bottom: -60px;
  }
  
  .banner-nav {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .tencent-banner {
    height: auto;
    min-height: 500px;
    padding-bottom: 180px;
  }
  
  .banner-video-bg {
    height: 100%;
  }
  
  .banner-video {
    object-fit: cover;
  }
  
  .banner-video-overlay {
    background: transparent;
  }
  
  .banner-nav {
    display: none;
  }
  
  .banner-content {
    padding: 60px 20px 20px;
    text-align: center;
    flex-direction: column;
  }
  
  .banner-text {
    max-width: 100%;
  }
  
  .banner-title {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1a1a1a;
  }
  
  .banner-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    color: #333333;
  }
  
  .banner-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .banner-btn {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .banner-image {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 30px;
    transform: none;
  }
  
  .carousel-indicator {
    right: 20px;
    bottom: 200px;
    padding: 8px 16px;
  }
  
  .indicator-current {
    font-size: 20px;
  }
  
  .indicator-total,
  .indicator-separator {
    font-size: 16px;
  }
  
  .indicator-btn {
    width: 28px;
    height: 28px;
  }
  
  .banner-cards {
    position: absolute;
    bottom: -160px;
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .banner-card {
    padding: 16px 12px;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }
  
  .card-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .card-title {
    font-size: 15px;
    margin-bottom: 4px;
  }
  
  .card-desc {
    font-size: 12px;
    line-height: 1.4;
  }
  
  .decoration-1,
  .decoration-2 {
    display: none;
  }
}

@media (max-width: 480px) {
  .tencent-banner {
    min-height: 450px;
    padding-bottom: 170px;
  }
  
  .banner-title {
    font-size: 24px;
  }
  
  .banner-subtitle {
    font-size: 13px;
  }
  
  .banner-image {
    height: 200px;
  }
  
  .carousel-indicator {
    bottom: 190px;
  }
  
  .banner-cards {
    bottom: -150px;
    width: 92%;
    gap: 10px;
  }
  
  .banner-card {
    padding: 14px 10px;
  }
  
  .card-icon {
    width: 36px;
    height: 36px;
  }
  
  .card-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .card-desc {
    font-size: 11px;
  }
}

/* 自动播放进度条 */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 11;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f9dff, #4960ff);
  width: 0;
  transition: width 0.1s linear;
}

.progress-bar.active {
  animation: progressAnimation 5s linear;
}

@keyframes progressAnimation {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}