/* CSS Document */

.home-section,
.section {
  padding: 50px 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  color: var(--primary);
  font-size: 38px;
  line-height: 1.28;
}

.section-head p {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.9;
}

/* banner */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.banner .swiper-slide {
  height: 620px;
  position: relative;
  overflow: hidden;
}

.banner .swiper-slide a,
.banner .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

.banner .swiper-slide img {
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 4.5s ease;
}

/* 当前banner图轻微放大 */
.banner .swiper-slide.swiper-slide-active img {
  transform: scale(1.08);
}

/* 图片遮罩，让左侧文字更清晰 */
.banner .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.76) 0%,
    rgba(255,255,255,.56) 34%,
    rgba(255,255,255,.18) 62%,
    rgba(255,255,255,.04) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* 链接层 */
.banner .banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* 文字层 */
.banner .banner-text {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42%;
  min-width: 320px;
  max-width: 680px;
  pointer-events: none;
}

.banner .banner-text-inner {
  padding: 0;
}

/* 主标题 */
.banner .banner-title {
  margin: 0 0 22px;
  font-size: 64px;
  line-height: 1.12;
  font-weight: 700;
  color: #12463f;
  letter-spacing: 1px;
}

/* 副标题 */
.banner .banner-desc {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  color: #333;
  max-width: 620px;
}

/* 按钮 */
.banner .swiper-button-prev,
.banner .swiper-button-next {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.28);
  transition: .25s ease;
  z-index: 3;
}

.banner .swiper-button-prev:hover,
.banner .swiper-button-next:hover {
  background: rgba(0,0,0,.45);
}

.banner .swiper-button-prev::after,
.banner .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

/* 分页器 */
.banner .swiper-pagination {
  bottom: 18px !important;
  z-index: 3;
}

.banner .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.75);
  opacity: 1;
  transition: .25s ease;
}

.banner .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent);
}

/* ===== 纯CSS文字动效 ===== */
.banner .swiper-slide .banner-title,
.banner .swiper-slide .banner-desc {
  opacity: 0;
  transform: translateY(26px);
}

.banner .swiper-slide.swiper-slide-active .banner-title {
  animation: bannerFadeUp .8s ease forwards;
  animation-delay: .18s;
}

.banner .swiper-slide.swiper-slide-active .banner-desc {
  animation: bannerFadeUp .8s ease forwards;
  animation-delay: .38s;
}

@keyframes bannerFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 响应式 ===== */
@media (max-width: 1440px) {
  .banner .swiper-slide {
    height: 580px;
  }

  .banner .banner-title {
    font-size: 54px;
  }

  .banner .banner-desc {
    font-size: 17px;
    line-height: 1.9;
  }
}

@media (max-width: 1200px) {
  .banner .swiper-slide {
    height: 520px;
  }

  .banner .banner-text {
    left: 6%;
    width: 50%;
  }

  .banner .banner-title {
    font-size: 44px;
    margin-bottom: 16px;
  }

  .banner .banner-desc {
    font-size: 16px;
    line-height: 1.85;
  }
}

@media (max-width: 992px) {
  .banner .swiper-slide {
    height: 460px;
  }

  .banner .banner-text {
    left: 5%;
    width: 62%;
    min-width: 0;
  }

  .banner .banner-title {
    font-size: 34px;
    margin-bottom: 12px;
  }

  .banner .banner-desc {
    font-size: 15px;
    line-height: 1.75;
  }

  .banner .swiper-button-prev,
  .banner .swiper-button-next {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .banner .swiper-slide {
    height: 380px;
  }

  .banner .swiper-slide::after {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,.10) 0%,
      rgba(255,255,255,.32) 42%,
      rgba(255,255,255,.78) 100%
    );
  }

  .banner .banner-text {
    left: 4%;
    right: 4%;
    bottom: 34px;
    top: auto;
    width: auto;
    transform: none;
  }

  .banner .banner-title {
    font-size: 24px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .banner .banner-desc {
    font-size: 14px;
    line-height: 1.65;
  }

  .banner .swiper-button-prev,
  .banner .swiper-button-next {
    display: none;
  }

  .banner .swiper-pagination {
    bottom: 12px !important;
  }
}

@media (max-width: 480px) {
  .banner .swiper-slide {
    height: 320px;
  }

  .banner .banner-title {
    font-size: 20px;
  }

  .banner .banner-desc {
    font-size: 13px;
    line-height: 1.6;
  }
}
/* search */
.search-panel-wrap {
  position: relative;
  z-index: 10;
}

.search-panel {
  width: var(--container);
  max-width: calc(100% - 40px);
  margin: -36px auto 0;
  display: flex;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(40,54,49,.13);
}

.search-left {
  flex: 1;
  padding: 22px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: space-between;
}

.search-slogan {
  min-width: 300px;
}

.search-slogan h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.search-slogan p {
  margin: 0;
  opacity: .9;
}

.search-form {
  flex: 1;
}

.search-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.68);
}

.search-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.search-row input::placeholder {
  color: rgba(255,255,255,.8);
}

.search-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.hot-keywords {
  margin-top: 10px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.hot-keywords a {
  margin-right: 10px;
  color: #fff;
}

.search-right {
  width: 340px;
  padding: 22px 28px;
  background: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-icon {
  width: 54px;
  height: 54px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.phone-info small {
  display: block;
  margin-bottom: 4px;
  color: var(--text-light);
  font-size: 14px;
}

.phone-info strong {
  color: var(--primary);
  font-size: 22px;
}

/* about */
.intro-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 40px;
  align-items: center;
}

.intro-card {
  padding: 36px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(30,76,68,.08);
  box-shadow: var(--shadow);
}

.intro-card h3 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 30px;
  line-height: 1.35;
}

.intro-card p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.9;
}

.intro-points {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.point {
  padding: 24px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f6f2ea);
  border: 1px solid rgba(30,76,68,.12);
  transition: .25s ease;
}

.point:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.point span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
}

.point h4 {
  margin: 10px 0 8px;
  color: var(--primary);
}

.point p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.intro-visual {
  min-height: 620px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(30,76,68,.16), rgba(30,76,68,.04)),
    url('/template/guben/images/about.png') center/cover no-repeat;
  box-shadow: var(--shadow);
}

/* products */
#products {
  background: linear-gradient(180deg, #fbf8f2, #f7f2e8);
}

.data-strip {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.data-item {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 14px;
}

.panel {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(228,221,210,.95);
  box-shadow: 0 16px 42px rgba(30,76,68,.07);
}

.tabs {
  padding: 24px 24px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s ease;
}

.tab-btn.active,
.tab-btn:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.tab-content {
  display: none;
  padding: 30px 24px 34px;
}

.tab-content.active {
  display: block;
}

.content-top {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}

.content-top h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 26px;
}

.content-top p {
  max-width: 740px;
  margin: 0;
  color: var(--text-light);
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.products {
  grid-template-columns: repeat(3, 1fr);
}

.grid.formats {
  grid-template-columns: repeat(4, 1fr);
}

.sol-card {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fcfaf5);
  border: 1px solid rgba(228,221,210,.95);
  transition: .28s ease;
}

.sol-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30,76,68,.22);
}

.card-media {
  height: 260px;
  background: linear-gradient(135deg, rgba(30,76,68,.07), rgba(166,123,82,.07));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-media img,
.product-pack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 
.product-pack {
 width: 70%;
  height: 80%;
}
*/
.card-body {
  padding: 22px 20px;
}

.card-title {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 20px;
}

.card-desc {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f6f1e8;
  border: 1px solid #ece3d5;
  color: var(--primary);
  font-size: 12px;
}

.card-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.footer-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.process-step {
  padding: 26px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.process-step .num {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.process-step h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 18px;
}

.process-step p {
  margin: 0;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}

/* news */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-cover {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.news-content {
  padding: 24px;
}

.news-meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
}

.news-card h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.5;
}

.news-card p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.8;
}

/* cta */
.cta-box {
  padding: 56px;
  border-radius: 30px;
  background:
    radial-gradient(circle at left top, rgba(166,123,82,.16), transparent 24%),
    linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: center;
  box-shadow: 0 24px 52px rgba(19,40,36,.2);
}

.cta-box h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.35;
}

.cta-box p {
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.9;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-box .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.06);
}

.cta-box .btn-secondary:hover {
  color: var(--primary);
  background: #fff;
}

@media (max-width: 1200px) {
  .grid.products,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.formats {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .section {
    padding: 58px 0;
  }

  .banner .swiper-slide {
    height: 460px;
  }

  .search-panel {
    flex-direction: column;
    margin-top: 0;
  }

  .search-left {
    flex-direction: column;
    align-items: stretch;
  }

  .search-slogan {
    min-width: 0;
  }

  .search-right {
    width: 100%;
  }

  .intro-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .intro-points {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 46px 0;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head h2 {
    font-size: 26px;
  }

  .section-head p {
    font-size: 14px;
  }

  .banner .swiper-slide {
    height: 260px;
  }

  .banner .swiper-button-prev,
  .banner .swiper-button-next {
    width: 34px;
    height: 34px;
  }

  .search-panel {
    max-width: calc(100% - 24px);
    border-radius: 18px;
  }

  .search-left,
  .search-right {
    padding: 16px 14px;
  }

  .search-slogan h3 {
    font-size: 19px;
  }

  .phone-info strong {
    font-size: 18px;
  }

  .intro-card {
    padding: 22px 18px;
  }

  .intro-card h3 {
    font-size: 22px;
  }

  .intro-points,
  .grid.products,
  .grid.formats,
  .process-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .intro-visual {
    min-height: 230px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr;
    padding: 16px 16px 0;
  }

  .tab-content {
    padding: 20px 16px;
  }

  .content-top {
    display: block;
  }

  .content-top .outline-btn {
    width: 100%;
    margin-top: 14px;
  }

  .card-media {
    height: 190px;
  }

  .cta-box {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .cta-box h2 {
    font-size: 24px;
  }

  .cta-actions,
  .footer-actions {
    flex-direction: column;
  }

  .cta-actions a,
  .footer-actions a {
    width: 100%;
  }
}