:root {
  --main: #65b32e;
  --main-dark: #4a9022;
  --main-light: #73b34e;
  --light: #f2f9f0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  --bs-list-group-active-bg: var(--main) !important;
  --bs-list-group-active-border-color: var(--main) !important;

  --bs-accordion-active-bg: var(--main-light) !important;
  --bs-accordion-btn-focus-border-color: var(--main-light) !important;
  --bs-accordion-border-color: var(--main-light) !important;
  --bs-accordion-btn-focus-box-shadow: var(--main-light) !important;
}
body {
  overflow-x: hidden;
  padding-top: 80px;
}

img,
video {
  width: 100%;
  display: block;
}

/* common */
.text-overflow-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 控制显示行数，2=两行 */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* 显示省略号 */
  word-break: break-all; /* 处理长单词/连续字符换行 */
}

.text-line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 控制显示行数，2=两行 */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; /* 显示省略号 */
  word-break: break-all; /* 处理长单词/连续字符换行 */
}

/* 轮播图 —— 官方标准写法，绝对正常 */
.carousel {
  position: relative;
}
.carousel-item {
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.carousel-control-prev {
  left: 20px;
}
.carousel-control-next {
  right: 20px;
}

/* 小轮播（场景）正常高度 */
#sceneCarousel .carousel-item {
  /* height: 500px !important; */
}

.banner {
  height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 2;
}

/* 导航 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 15px 0;
}
.logo {
  height: 45px;
}
.brand-name {
  color: var(--main);
  font-weight: bold;
  font-size: 22px;
}
.nav-link {
  font-weight: 500;
  color: #333;
  margin: 0 12px;
  position: relative;
}
.nav-link.active {
  color: var(--main) !important;
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--main);
}
.nav-link:hover {
  color: var(--main);
}

/* 语言下拉 */
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-btn {
  border: 1px solid var(--main);
  color: var(--main);
  padding: 6px 14px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn:hover {
  background: var(--main);
  color: #fff;
}
.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 140px;
  padding: 8px 0;
  z-index: 9999;
  display: none;
}
.lang-dropdown:hover .lang-menu {
  display: block;
}
.lang-item {
  padding: 8px 16px;
  cursor: pointer;
}

.section {
  padding: 70px 0;
}
.card-hover {
  transition: 0.3s;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.btn-main {
  background: var(--main);
  color: #fff;
  border-radius: 30px;
  padding: 10px 28px;
  border: none;
}
.modal {
  z-index: 10001 !important;
}
.modal-backdrop {
  z-index: 10000 !important;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

/* 图片区域 */
.about-img {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.about-img img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

/* 内容区域 */
.about-content {
  flex: 1.2;
  min-width: 320px;
}

.lang-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.about-title {
  font-size: 28px;
  color: #222;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 5px solid #0066aa;
}

/* 公司介绍 */
.about-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  text-align: justify;
  display: none;
}

.about-desc p {
  margin-bottom: 14px;
}

.text-content {
  display: none;
}

.text-content.active {
  display: block;
  animation: fade 0.4s;
}

.about-desc.active {
  display: block;
}

/* 工厂实力 */
.production-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Microsoft YaHei", sans-serif;
}
/* 视频区域 */
.pro-video-wrapper {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.pro-video {
  width: 100%;
  display: block;
}
/* 图片网格 */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pro-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s;
}
.pro-grid img:hover {
  transform: scale(1.02);
}
/* 移动端自适应 */
@media (max-width: 768px) {
  .pro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
