/* ==============================================
   基础重置与基准设置（大屏样式完全保留）
   ============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4d3018;
  padding-top: 0 !important;
  margin: 0 !important;
}

/* ==============================================
   通用样式（大屏样式完全保留）
   ============================================== */
.h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: "Source Han Serif SC", "Source_Han_Serif_SC", "Segoe UI", "Helvetica Neue", sans-serif;
}

.text-main {
  color: #8b572a;
}

.text-des-size {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.more-btn {
  display: inline-block;
  padding: 0.8rem 6rem;
  border: 1px solid #8b572a;
  color: #8b572a;
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.more-btn:hover {
  background-color: #8b572a;
  color: #fff;
}

.more-btn-white {
  border-color: #fff;
  color: #fff;
}

.more-btn-white:hover {
  background-color: #fff;
  color: #8b572a;
}

.rounded-product {
  border-radius: 12px;
}

/* ==============================================
   横幅轮播区域样式（大屏样式完全保留）
   ============================================== */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 1200px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
}

.banner-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-video,
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-video {
  pointer-events: none;
}

.video-controls {
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 0;
  padding: 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.play-pause-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.play-pause-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-nav {
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
}

.carousel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
  gap: 0.8rem;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background-color: white;
  width: 24px;
  border-radius: 6px;
}

/* ==============================================
   关于我们区域样式（大屏样式完全保留）
   ============================================== */
.about-section {
  display: flex;
  flex-direction: column-reverse;
  height: 1000px;
}

@media (min-width: 1024px) {
  .about-section {
    flex-direction: row;
    min-height: 600px;
  }
}

.about-image {
  width: 100%;
  height: 50vh;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .about-image {
    width: 50%;
    height: auto;
    min-height: 600px;
  }
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  flex: 1;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 1024px) {
  .about-content {
    padding: 0 5rem;
    text-align: right;
  }
}

.about-content>div {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: end;
  width: 60%;
  gap: 2rem;
}

.about-content p {
  width: 100%;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
}

.about-content .text-des-size p {
  font-size: 1.125rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #555;
}

.about-content .more-btn p {
  font-size: 1rem;
  margin: 0;
}

.about-content .more-btn {
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
}

/* ==============================================
   产品区域样式（仅修复按钮hover问题，其余保留）
   ============================================== */
.product-section {
  padding: 2rem 0;
  width: 100%;
  height: 800px;
  min-height: 800px;
}

.product-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
}

@media (min-width: 1024px) {
  .product-row {
    flex-direction: row;
    align-items: center;
  }
}

.product-left {
  padding: 0 1.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .product-left {
    width: 28%;
    padding: 0 5rem;
    padding-top: 0;
  }
}

.product-left>div {
  width: 100%;
  display: flex;
  align-items: center;
}

.product-left .flex-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-family: Source Han Sans SC, Source_Han_Sans_SC, Segoe UI, Helvetica Neue, sans-serif;
  width: 100%;
}

.product-left h2 {
  font-size: 2.8rem;
}

.product-left .text-des-size {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.product-left .more-btn {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border: 1px solid #8b572a;
  color: #8b572a;
  border-radius: 20px;
  width: 100px;
  /* 新增：过渡动画，保证hover效果平滑 */
  transition: all 0.3s ease;
}

/* 核心修复：产品区域按钮专属hover样式 */
.product-left .more-btn:hover {
  background-color: #8b572a;
  /* 悬停背景为棕色 */
  color: #ffffff;
  /* 文字为白色 */
  border-color: #8b572a;
  /* 边框同步棕色，避免白边 */
}

.product-right {
  width: 100%;
  padding: 0;
  height: auto;
  margin: 0 auto;
  max-width: none;
}

@media (min-width: 1024px) {
  .product-right {
    flex: 1;
    padding: 0 8rem 0 2rem;
  }
}

.product-right>div {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-cards {
  display: flex;
  gap: 1rem;
  padding-top: 2rem;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: flex-start;
}

.product-cards::-webkit-scrollbar {
  display: none;
}

.scrollbar-with-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  width: 100%;
  justify-content: center;
}

.scroll-btn {
  width: 34px;
  height: 34px;
  border-radius: 20px;
  background-color: #f5f5f5;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 1023px) {
  .scroll-btn {
    display: none;
  }
}

.scroll-btn:hover {
  background-color: #d9d9d9;
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.scroll-btn:disabled:hover {
  background-color: #f5f5f5;
}

.scroll-btn:disabled:hover svg {
  stroke: #8b572a;
}

.scrollbar-container {
  flex: 1;
  height: 4px;
  background-color: #f5f5f5;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.scrollbar-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 30%;
  background-color: #8b572a;
  border-radius: 3px;
  cursor: pointer;
}

.product-card {
  flex-shrink: 0;
  width: calc(95vw / 3 - 1.3rem);
  height: auto;
}

@media (min-width: 768px) {
  .product-card {
    width: calc(95vw / 3 - 1.3rem);
  }
}

@media (min-width: 1024px) {
  .product-card {
    width: calc((100% - 2rem) / 3);
    max-width: none;
  }
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 45px;
  display: block;
}

/* ==============================================
   全球布局区域样式（大屏样式完全保留）
   ============================================== */
.global-section {
  width: 100%;
  min-height: 500px;
  max-height: 1000px;
  height: 100vh;
  position: relative;
  background-color: #011e41;
}

.global-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

@media (min-width: 1024px) {
  .global-bg {
    opacity: 1;
  }
}

.global-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem 1.5rem;
}

.global-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.more-btn-global {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  z-index: 10;
  background: transparent;
}

.more-btn-global:hover {
  background-color: #fff;
  color: #8b572a;
}

/* ==============================================
   头部和页脚占位（大屏样式完全保留）
   ============================================== */
#footer-container {
  height: 350px;
  width: 100%;
  background-color: #f8f8f8;
  text-align: center;
}

/* ==============================================
   仅移动端适配规则（不修改任何大屏样式）
   ============================================== */

/* 1. 移动端根字体适配 */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

/* 2. 通用样式移动端适配 */
@media screen and (max-width: 768px) {
  .h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .text-des-size {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .more-btn {
    padding: 0.7rem 4rem;
  }
}

@media screen and (max-width: 480px) {
  .h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .text-des-size {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .more-btn {
    padding: 0.6rem 2.5rem;
    font-size: 0.9rem;
  }
}

/* 3. 横幅轮播移动端适配 */
@media screen and (max-width: 768px) {
  .banner {
    height: 70vh;
    max-height: 800px;
    min-height: 300px;
  }

  .play-pause-btn {
    width: 50px;
    height: 50px;
  }

  .carousel-nav-btn {
    width: 45px;
    height: 45px;
  }

  .carousel-nav {
    padding: 0 1rem;
  }

  /* 隐藏移动端轮播白点指示器 */
  .carousel-indicators {
    display: none !important;
  }

  .video-controls {
    padding: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .banner {
    height: 50vh;
    min-height: 250px;
  }

  /* 确保小屏也隐藏指示器 */
  .carousel-indicators {
    display: none !important;
  }
}

/* 4. 关于我们区域移动端适配 */
@media screen and (max-width: 1023px) {
  .about-section {
    height: auto;
    min-height: 400px;
  }

  .about-image {
    height: 40vh;
  }

  .about-content {
    padding: 1.5rem 1rem;
  }

  .about-content>div {
    width: 90%;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-content .text-des-size p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media screen and (max-width: 480px) {
  .about-image {
    height: 30vh;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }

  .about-content .text-des-size p {
    font-size: 0.95rem;
  }
}

/* 5. 产品区域移动端适配 */
@media screen and (max-width: 1023px) {
  .product-section {
    padding: 2rem 1rem;
    height: auto;
    min-height: 600px;
  }

  .product-left {
    width: 100%;
    height: auto;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .product-left h2 {
    font-size: 2rem;
  }

  .product-right {
    width: 100%;
    padding: 0 0.5rem;
  }

  .product-cards {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .product-card {
    width: calc(90vw / 2 - 1rem);
  }

  .product-card img {
    margin-bottom: 15px;
  }

  /* 产品区域标题/文字/按钮居中 */
  .product-left .flex-col {
    align-items: center !important;
    text-align: center !important;
  }

  .product-left h2,
  .product-left .text-des-size,
  .product-left .more-btn {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media screen and (max-width: 768px) {
  .product-card {
    width: calc(95vw / 3 - 1.3rem);
  }
}

@media screen and (max-width: 480px) {
  .product-section {
    padding: 1.5rem 0.5rem;
    min-height: 500px;
  }

  .product-left h2 {
    font-size: 1.8rem;
  }

  .product-card img {
    margin-bottom: 10px;
  }

  /* 小屏也保持居中 */
  .product-left .flex-col {
    align-items: center !important;
    text-align: center !important;
  }
}

/* 6. 全球布局区域移动端适配 */
@media screen and (max-width: 1023px) {
  .global-section {
    height: 60vh;
    min-height: 400px;
  }

  .global-content {
    padding: 1.5rem 1rem;
  }

  .global-text-wrapper {
    gap: 1.5rem;
  }

  .more-btn-global {
    padding: 0.75rem 2rem;
  }
}

@media screen and (max-width: 480px) {
  .global-section {
    height: 50vh;
    min-height: 300px;
  }

  .more-btn-global {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* 7. 页脚移动端适配 */
@media screen and (max-width: 1023px) {
  #footer-container {
    height: auto;
    min-height: 250px;
    padding: 2rem 1rem;
  }
}

/* 8. 移动端通用优化 */
@media screen and (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }
}