/* 主轮播图 */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel .carousel-inner {
  height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
}

.hero-carousel .item {
  height: calc(100vh - 80px);
  width: 100%;
  background-color: #000;
  /* 添加黑色背景防止空白 */
}

.carousel-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
  /* 确保背景色填充 */
}

.event-info {
  margin-bottom: 40px;
}

.event-info span {
  display: inline-block;
  margin: 0 20px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.action-buttons-container {
  background: rgb(51, 188, 55);
  display: flex;
  padding: 20px 80px 20px 0;
  flex-flow: row-reverse;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.action-buttons .btn {
  padding: 10px 50px;
  font-size: 16px;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-buttons .btn:first-child {
  background: rgb(248, 43, 43);
  color: #fff;
}

.action-buttons .btn:first-child:hover {
  background: #b91212;
  color: #fff;
}

.action-buttons .btn:last-child {
  background-color: #fff;
  color: rgb(30, 72, 170);
}

.action-buttons .btn:last-child:hover {
  background: #fff;
  color: #1e88e5;
}

/* 轮播控制按钮 */
.hero-carousel .carousel-control {
  background: none;
  border: none;
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel .carousel-control:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-carousel .carousel-control.left {
  left: 30px;
}

.hero-carousel .carousel-control.right {
  right: 30px;
}

.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right {
  position: relative;
  margin: auto !important;
  top: auto;
  left: auto;
  right: auto;
}

.hero-carousel .carousel-indicators {
  bottom: 30px;
}

.hero-carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid #fff;
}

.hero-carousel .carousel-indicators .active {
  background: #fff;
  margin: 1px;
}

/* 主要内容区域 */
.main-content {
  margin: 0 auto;
}

/* 新闻动态区域 */
.news-section {
  padding: 60px 0;
  display: flex;
  flex-grow: 1;
  flex: 1;
  width: 1200px;
  margin: 0 auto;
}

.news-section .news-container {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  width: 100%;
}

.news-list {
  flex: 1;
}

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.news-item:last-child {
  border-bottom: none;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  /* 单行省略号 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
}

.news-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  /* 两行省略号 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.news-date {
  color: #666;
  font-size: 14px;
}

.news-link {
  color: #1e88e5;
  text-decoration: none;
  font-size: 14px;
}

.news-link:hover {
  text-decoration: underline;
}

/* 右侧功能区域 */
.function-area {
  width: 400px;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  background-image: url(/public/home/img/index/048964bf17d4428fbeddb5e461fc2707.JPG);
  background-size: cover;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.function-item {
  background: #32b1c4;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.function-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  color: #fff;
  text-decoration: none;
}

.function-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.function-icon img {
  width: 40px;
  height: 40px;
}

.function-item span {
  font-size: 14px;
  font-weight: 500;
}

/* 展会介绍区域 */
.about-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.about-text h3 {
  font-size: 18px;
  color: #1e88e5;
  margin-bottom: 30px;
  font-weight: 400;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.about-image {
  width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 半导体显示简述区域 */
.semiconductor-section {
  padding: 60px 0;
}

.semiconductor-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.semiconductor-image {
  width: 450px;
}

.semiconductor-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.semiconductor-text {
  flex: 1;
}

.semiconductor-text h2 {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.semiconductor-text h3 {
  font-size: 18px;
  color: #1e88e5;
  margin-bottom: 30px;
  font-weight: 400;
}

.semiconductor-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

/* 往届参展商区域 */
.exhibitors-section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 50px;
}

.exhibitors-carousel {
  position: relative;
}

.exhibitors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  padding: 20px 0;
}

.exhibitor-logo {
  border-radius: 3px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exhibitor-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
}

/* 参展商占位符样式 */
.exhibitor-placeholder {
  background: transparent !important;
  border: 1px dashed #ddd !important;
  opacity: 0.3;
  cursor: default;
}

.exhibitor-placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* 参展商轮播控制按钮 */
.exhibitors-carousel .carousel-control {
  background: #1e88e5;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exhibitors-carousel .carousel-control:hover {
  background: #1565c0;
}

.exhibitors-carousel .carousel-control.left {
  left: -65px;
}

.exhibitors-carousel .carousel-control.right {
  right: -65px;
}

.exhibitors-carousel .carousel-control .glyphicon {
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 参展商轮播指示器 */
.exhibitors-carousel .carousel-indicators {
  position: relative;
  margin: 30px 0 0 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.exhibitors-carousel .carousel-indicators li {
  background-color: #ddd;
  border: 1px solid #ddd;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.exhibitors-carousel .carousel-indicators .active {
  background-color: #1e88e5;
  border-color: #1e88e5;
}

/* 响应式调整（保持1200px固定宽度，但在小屏幕上适当调整） */
@media (max-width: 1240px) {

  .container,
  .nav-container {
    width: 100%;
    max-width: 1200px;
  }
}

/* 轮播图过渡效果 - 恢复滑动动画 */
.carousel-inner>.item {
  position: relative;
  display: none;
  -webkit-transition: 0.6s ease-in-out left;
  -o-transition: 0.6s ease-in-out left;
  transition: 0.6s ease-in-out left;
}

.carousel-inner>.item>img,
.carousel-inner>.item>a>img {
  line-height: 1;
}

@media all and (transform-3d),
(-webkit-transform-3d) {
  .carousel-inner>.item {
    -webkit-transition: -webkit-transform 0.6s ease-in-out;
    -o-transition: -o-transform 0.6s ease-in-out;
    transition: transform 0.6s ease-in-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }

  .carousel-inner>.item.next,
  .carousel-inner>.item.active.right {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
    left: 0;
  }

  .carousel-inner>.item.prev,
  .carousel-inner>.item.active.left {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
    left: 0;
  }

  .carousel-inner>.item.next.left,
  .carousel-inner>.item.prev.right,
  .carousel-inner>.item.active {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    left: 0;
  }
}

.carousel-inner>.active,
.carousel-inner>.next,
.carousel-inner>.prev {
  display: block;
}

.carousel-inner>.active {
  left: 0;
}

.carousel-inner>.next,
.carousel-inner>.prev {
  position: absolute;
  top: 0;
  width: 100%;
}

.carousel-inner>.next {
  left: 100%;
}

.carousel-inner>.prev {
  left: -100%;
}

.carousel-inner>.next.left,
.carousel-inner>.prev.right {
  left: 0;
}

.carousel-inner>.active.left {
  left: -100%;
}

.carousel-inner>.active.right {
  left: 100%;
}