/* --- FONT DEFINITIONS --- */
@font-face {
  font-family: "puhui-light";
  src: url("../fonts/Light.ttf");
  font-weight: 300;
}

@font-face {
  font-family: "puhui-regular";
  src: url("../fonts/Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: "puhui-medium";
  src: url("../fonts/Medium.ttf");
  font-weight: 500;
}

@font-face {
  font-family: "puhui-bold";
  src: url("../fonts/Bold.ttf");
  font-weight: 700;
}

@font-face {
  font-family: "frizon";
  src: url("../fonts/Frizon.ttf");
}

/* --- BASE STYLES --- */
:root {
  --brand-yellow: #f1ac00;
  --dark-gray: #333;
  --light-gray: #f7f7f7;
  --border-gray: #e0e0e0;
}

body {
  font-family: "puhui-regular", sans-serif;
  margin: 0;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* --- HEADER --- */
/* header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: white;
  border-bottom: 1px solid var(--border-gray);
  flex-wrap: wrap;
} */

  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
  }

.logo {
    margin-top: 4px;
    height: 40px;
    cursor: pointer;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 700;
  font-family: "puhui-bold";
  font-size: 1rem;
}

/* --- CAROUSEL SECTION --- */
.swiper {
  width: 100%;
  height: 500px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  width: 100%;
  height: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.slide-content {
  display: flex;
  justify-content: center; /* 改为 center */
  align-items: center;
  padding: 0; /* <<< 移除内边距 */
  box-sizing: border-box;
}

.slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 关键属性：让图片覆盖整个容器，不变形 */
  display: block;
}

.slide-content.placeholder {
  justify-content: center;
}

.slide-left,
.slide-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.jian-logo img {
  height: 80px;
}

.jian-factory img {
  height: 30px;
}

.slide-center h1 {
  font-family: "puhui-bold";
  font-size: 3.5rem;
  margin: 0;
}

.slide-center p {
  font-size: 1.2rem;
  margin: 0.5rem 0 2rem;
}

.slide-dots {
  border-top: 2px dashed var(--border-gray);
  margin: 0 auto;
  width: 250px;
}

.decorative-icons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.decorative-icons span {
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--dark-gray);
}

.decorative-icons .icon-square-outline {
  background: transparent;
}

.decorative-icons .icon-square {
  background: var(--dark-gray);
}

.decorative-icons .icon-circle {
  border-radius: 50%;
}

.btn-details {
  text-align: center;
  background-color: var(--dark-gray);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  flex: auto;
  position: absolute;
  right: 4rem;        /* 定位到右侧，2rem 的边距 */
  bottom: 2rem;       /* 定位到底部，2rem 的边距 */
  z-index: 10;        /* 确保按钮在图片上层 */
}

.image-wrapper {
  position: relative; /* 关键：设置为定位基准 */
  display: inline-block; /* 关键：让容器的尺寸收缩以紧紧包裹图片 */
  line-height: 0; /* 消除图片下方的微小间隙 */
}

.image-wrapper img {
  max-width: 100%; /* 确保图片不会超出 slide 的范围 */
  height: auto;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: rgba(224, 224, 224, 0.8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
  font-weight: bold;
  color: var(--dark-gray);
}

.swiper-pagination-bullet-active {
  background-color: var(--dark-gray);
}

/* --- TWO COLUMN SECTION --- */
.two-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.image-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  color: white;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-box .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2.3rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* <<< 修改后的值 */
  text-align: right;              /* Merged style */
  align-items: flex-end;          /* Merged style */
}

.overlay h2 {
  font-family: "puhui-bold";
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.overlay p {
  font-size: 1.2rem;
  margin-top: 0.2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.overlay .btn {
  background: white;
  color: var(--dark-gray);
  font-family: "puhui-bold";
  padding: 0.8rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  align-self: flex-end; /* Merged style */
}

/* --- HOVER --- */
nav a,
.btn-details,
.overlay .btn {
  transition: all 0.3s ease;
}

/* 2. 头部导航链接的悬停效果 */
nav a:hover {
  color: var(--brand-yellow);
}

/* 3. 轮播图中按钮的悬停效果 */
.btn-details:hover {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

/* 4. 图片区域中按钮的悬停效果 */
.overlay .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- INFO SECTION --- */
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: 16px;
}

.info-section h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #888;
}

.info-section h2 {
  font-family: "puhui-bold";
  font-size: 2rem;
  margin: 0.5rem 0 1rem;
}

.info-section p {
  line-height: 1.8;
  color: #555;
}

.qr-codes {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.qr-box {
  max-width: 240px;
  border: 4px solid var(--brand-yellow);
  padding: 25px;
  background: white;
  box-sizing: border-box;
}

.qr-box img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-box span {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .slide-content {
    padding: 1.5rem 2rem;
  }

  .slide-center h1 {
    font-size: 2.5rem;
  }

  .slide-center p {
    font-size: 1rem;
  }

  .jian-logo img {
    height: 60px;
  }

  .swiper {
    height: 380px;
  }

  .two-column-section,
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .container {
    padding: 1rem;
  }

  .swiper {
    height: auto;
  }

  .slide-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .slide-left,
  .slide-right {
    flex-direction: row;
    width: 100%;
    align-items: center;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .overlay h2 {
    font-size: 2rem;
  }

  .overlay p {
    font-size: 1.2rem;
  }

.qr-codes {
  flex-direction: column; /* 将排列方向从横向改为纵向 */
  align-items: center;   /* 将二维码卡片整体居中显示 */
  gap: 2.5rem;           /* 适当调整垂直间距 */
}

.info-follow .qr-codes {
  /* 确保二维码区域在其父容器内正确对齐 */
  margin-left: auto;
  margin-right: auto;
}

}

.about img{
  width: 30%;
  height: auto;
  margin-bottom: 20px;
}

.follow{
  width: 30%;
  height: auto;
  margin-bottom: 20px;
}

.follow img{
  width: 100%;
  height: auto;
  text-align:right;
  margin-bottom: 20px;
  transform: translateX(50px);
  transform: translateY(60px);
}

.small-text{
  font-size: 1.2rem;
}

.right-text{
  text-align: right;
}

.center {
  display: block;
  text-align: center;
}