/* 中国联通网上营业厅 - 首页专属样式 */

/* 标题溢出省略 */
h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Banner轮播 */
.banner-section {
  margin-bottom: 24px;
}

.banner-slider {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
}

.banner-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  flex: 0 0 100%;
  height: 280px;
  display: flex;
  align-items: center;
  padding: 48px 40px;
  color: white;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-slide::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.banner-slide.bg-red {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=5G%20network%20technology%20abstract%20red%20background%20with%20speed%20lines&image_size=landscape_16_9');
}

.banner-slide.bg-orange {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=broadband%20internet%20connection%20orange%20abstract%20background&image_size=landscape_16_9');
}

.banner-slide.bg-purple {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=telecom%20service%20promotion%20purple%20abstract%20background&image_size=landscape_16_9');
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-content h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.banner-content p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #D50036;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.banner-prev,
.banner-next {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.banner-indicator.active {
  background: white;
  width: 24px;
  border-radius: 6px;
}

/* 快捷入口 */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.quick-item {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  height: 140px;
}

.quick-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.quick-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.quick-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
}

.quick-item h4 {
  font-size: 16px;
  font-weight: bold;
  color: white;
  position: relative;
  z-index: 1;
}

.quick-image.query {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=business%20query%20icon%20abstract%20blue%20purple%20gradient&image_size=square');
}

.quick-image.process {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=service%20processing%20icon%20abstract%20pink%20gradient&image_size=square');
}

.quick-image.payment {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=payment%20recharge%20icon%20abstract%20cyan%20blue%20gradient&image_size=square');
}

.quick-image.lifestyle {
  background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=lifestyle%20services%20icon%20abstract%20green%20gradient&image_size=square');
}

/* 套餐网格 */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: bold;
  color: var(--gray-dark);
}

.section-title a {
  color: var(--primary-red);
  font-size: 14px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.package-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.package-img {
  width: 100%;
  height: 180px;
  background: var(--gray-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.package-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-content {
  padding: 16px;
}

.package-content h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--gray-dark);
}

.package-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-red);
  margin-bottom: 12px;
}

.package-price span {
  font-size: 14px;
  color: var(--gray-light);
  font-weight: normal;
}

.package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.package-tag {
  padding: 4px 8px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: 4px;
  font-size: 12px;
}

/* 生活服务 */
.life-service {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.life-item {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.life-item:hover {
  background: var(--gray-lighter);
}

.life-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--primary-red);
  font-size: 24px;
}

.life-item h5 {
  font-size: 14px;
  color: var(--gray-dark);
}

/* 关于我们 */
.about-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.about-item {
  text-align: center;
}

.about-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 32px;
  font-weight: bold;
}

.about-item:nth-child(1) .about-icon {
  background: var(--primary-red);
}

.about-item:nth-child(2) .about-icon {
  background: var(--primary-blue);
}

.about-item:nth-child(3) .about-icon {
  background: #4CAF50;
}

.about-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--gray-dark);
}

.about-item p {
  color: var(--gray-medium);
  font-size: 14px;
  line-height: 1.6;
}

/* 办理流程 */
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.process-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}

.process-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  background: var(--primary-red);
}

.process-item:nth-child(1) .process-icon {
  background: var(--primary-red);
}

.process-item:nth-child(3) .process-icon {
  background: var(--primary-blue);
}

.process-item:nth-child(5) .process-icon {
  background: #4CAF50;
}

.process-item h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--gray-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-item p {
  color: var(--gray-medium);
  font-size: 12px;
  line-height: 1.4;
}

.process-arrow {
  font-size: 24px;
  color: var(--gray-light);
  font-weight: bold;
  flex-shrink: 0;
  position: relative;
  top: -16px;
}

/* 联系我们 */
.contact-section {
  background: white;
  border-radius: 12px;
  padding: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .quick-entry {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .life-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .banner-slider {
    height: 200px;
  }

  .banner-slide {
    height: 200px;
    padding: 24px;
  }

  .banner-content h2 {
    font-size: 24px;
  }

  .quick-entry {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .life-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-content h4 {
    font-size: 14px;
  }

  .process-steps {
    flex-direction: row;
    gap: 10px;
  }

  .process-item {
    flex: 1;
    min-width: auto;
    max-width: none;
  }

  .process-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .process-item h3 {
    font-size: 14px;
  }

  .process-item p {
    font-size: 10px;
  }

  .process-arrow {
    font-size: 16px;
    position: relative;
    top: -12px;
  }
}