/* CSS样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Gilroy", Arial, "Microsoft Yahei", "微软雅黑", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 响应式导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

/* 在大屏幕上限制最大宽度但保持左右间距 */
@media (min-width: 1200px) {
  .navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  text-decoration: none;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #526CAC;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #526CAC;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 20px 0;
  }
  
  .nav-link {
    font-size: 18px;
    padding: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    height: 60px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .logo img {
    height: 35px;
  }
  
  .nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
  }
}

/* Banner区域样式 */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-content {
  width: 100%;
  aspect-ratio: 192/107;
  background-image: url('../assets/banner_h.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner响应式设计 */
@media (max-width: 768px) {
  .banner-content {
    aspect-ratio: 12/15; /* 移动端使用垂直比例 */
    background-image: url('../assets/banner_v.jpg');
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 480px) {
  .banner-content {
    aspect-ratio: 12/15; /* 小屏幕保持垂直比例 */
    min-height: 300px; /* 确保最小高度 */
  }
}

/* Footer区域样式 */
.footer {
  background: rgb(40, 40, 40);
  color: #ecf0f1;
  padding: 40px 0 20px;
  text-align: center;
}

.footer .icons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 30px 0;
  padding: 0;
  gap: 20px;
}

.footer .icons li {
  margin: 0;
}

.footer .icons a {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: #34495e;
  color: #ecf0f1;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 18px;
  background-size: 24px 24px;
  background-position: center;
  background-repeat: no-repeat;
}

/* 社交媒体图标背景图 */
.footer .icons a.fa-twitter {
  background-image: url('../assets/foot_tw.svg');
}

.footer .icons a.fa-facebook {
  background-image: url('../assets/foot_face.svg');
}

.footer .icons a.fa-instagram {
  background-image: url('../assets/foot_ins.svg');
}

.footer .icons a .label {
  display: none;
}

.footer .copyright {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #bdc3c7;
  font-size: 14px;
}

.footer .copyright li {
  margin: 0;
}

/* Footer响应式设计 */
@media (max-width: 768px) {
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer .icons {
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .footer .icons a {
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 25px 0 15px;
  }
  
  .footer .icons {
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .footer .icons a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
  }
  
  .footer .copyright {
    font-size: 12px;
  }
}

/* 服务特色区域样式 */
.features {
  background: #f8f9fa;
  padding: 80px 0;
}

.features .container {
  margin: 0 auto;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #526CAC, #3f5889);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.feature-description {
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0;
  font-size: 14px;
  flex: 1;
}

/* 服务特色区域响应式设计 */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .features {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .features {
    padding: 50px 0;
  }
  
  .feature-item {
    padding: 25px 15px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .feature-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .feature-description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .features .container {
    padding: 0 15px;
  }
  
  .features {
    padding: 40px 0;
  }
  
  .feature-item {
    padding: 20px 15px;
  }
  
  .feature-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
  }
  
  .feature-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .feature-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .feature-description {
    font-size: 12px;
  }
}

/* Featured Products区域样式 */
.featured-products {
  padding: 80px 2em;
  background: #fff;
}

.featured-products .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 18px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.6;
}


.swiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  transform: scale(0.9);
  opacity: 0.7;
}

/* 居中放大的slide样式 */
.swiper-slide-active {
  transform: scale(1.15);
  opacity: 1;
  z-index: 2;
}

/* 相邻slide的样式 */
.swiper-slide-next,
.swiper-slide-prev {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Swiper 导航按钮样式 */
.swiper-button-next,
.swiper-button-prev {
  color: #2c3e50;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #2c3e50;
  color: white;
  transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

/* Swiper 分页器样式 */
.swiper-pagination {
  position: relative;
  margin-top: 30px;
}

.swiper-pagination-bullet {
  background: #bdc3c7;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #2c3e50;
  opacity: 1;
  transform: scale(1.2);
}

/* 响应式导航按钮 */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }
  
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 14px;
  }
}


.product-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.product-info {
  padding: 20px;
  text-align: center;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-desc {
  font-size: 14px;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 992px) {
  .featured-products {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .product-name {
    font-size: 15px;
    font-weight: 600;
  }
  
  .product-desc {
    font-size: 13px;
  }
  
  .product-info {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .featured-products {
    padding: 50px 0;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .product-name {
    font-size: 14px;
    font-weight: 600;
  }
  
  .product-desc {
    font-size: 12px;
  }
  
  .product-info {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .featured-products {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
  
  .product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  
  .product-desc {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .product-info {
    padding: 12px;
  }
}

/* Home page layout */
.home-page .hero {
  position: relative;
}

.home-page .hero-image {
  width: 100%;
  aspect-ratio: 2560 / 1085;
  background: url("../assets/banner_zutu.png") center center / cover no-repeat;
}

.home-page .top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 80px 16px;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.28s ease, box-shadow 0.28s ease, padding 0.28s ease;
}

.home-page .top-nav .logo img {
  width: 80px;
  height: auto;
  margin-right: 0;
  transition: filter 0.28s ease;
}

.home-page .nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 75px;
}

.home-page .nav-links a {
  opacity: 0.95;
  transition: color 0.28s ease, opacity 0.28s ease;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
}

.home-page .nav-links a:hover {
  opacity: 1;
}

.home-page .top-nav.is-scrolled {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.home-page .top-nav.is-scrolled .logo img {
  filter: brightness(0);
}

.home-page .top-nav.is-scrolled .nav-links a {
  color: #111111;
}

.home-page .mobile-menu-btn {
  color: #ffffff;
}

.home-page .top-nav.is-scrolled .mobile-menu-btn {
  color: #111111;
}

.home-page .highlight {
  position: relative;
}

.home-page .highlight-image {
  width: 100%;
  aspect-ratio: 2560 / 1172;
  background: url("../assets/banner_2.png") center center / cover no-repeat;
}

.home-page .highlight-copy {
  position: absolute;
  left: 13%;
  top: 44%;
  transform: translateY(-50%);
}

.home-page .highlight-copy h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 22px;
}

.home-page .highlight-copy p {
  font-size: 20px;
  color: #4a4f5d;
}

.home-page .life-banner {
  width: 100%;
  aspect-ratio: 2560 / 1000;
  background: url("../assets/dibub.png") center center / cover no-repeat;
  position: relative;
}

.home-page .life-copy {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
}

.home-page .life-copy h2 {
  font-size: 58px;
  font-weight: 600;
  margin-bottom: 22px;
  line-height: 1.1;
}

.home-page .life-copy p {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
}

.home-page .footer {
  background: #000000;
  color: #ffffff;
  padding: 58px 70px;
  text-align: left;
}

.home-page .footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 1.5fr;
  align-items: stretch;
}

.home-page .footer-col {
  min-height: 132px;
  padding: 0 34px;
}

.home-page .footer-col + .footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.home-page .brand-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.home-page .brand-col img {
  width: 100px;
  height: auto;
}

.home-page .brand-col p {
  max-width: 220px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.06em;
}

.home-page .links-col,
.home-page .small-links-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .links-col {
  gap: 14px;
}

.home-page .links-col a {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.home-page .small-links-col {
  gap: 8px;
}

.home-page .small-links-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.home-page .newsletter-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .newsletter-col > p {
  font-size: 11px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.home-page .subscribe {
  width: 100%;
  max-width: 420px;
  height: 34px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
}

.home-page .subscribe input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 10px;
  font-size: 12px;
  color: #1f1f1f;
}

.home-page .subscribe button {
  width: 36px;
  height: 100%;
  border: 0;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-page .subscribe button img {
  width: 18px;
  height: 18px;
}

.home-page .socials {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
}

.home-page .socials img {
  width: 23px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .home-page .top-nav {
    padding: 20px 26px 12px;
  }

  .home-page .top-nav.is-scrolled {
    padding: 14px 26px;
  }

  .home-page .nav-links {
    gap: 24px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .home-page .highlight-copy h2 {
    font-size: 28px;
  }

  .home-page .highlight-copy p {
    font-size: 14px;
  }

  .home-page .life-copy h2 {
    font-size: 34px;
    margin-bottom: 8px;
  }

  .home-page .life-copy p {
    font-size: 10px;
    letter-spacing: 0.02em;
    max-width: 88vw;
  }

  .home-page .footer {
    padding: 30px 20px;
  }

  .home-page .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-page .footer-col {
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0 0;
    min-height: auto;
  }

  .home-page .footer-col:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .home-page .links-col a {
    font-size: 16px;
  }

  .home-page .small-links-col a {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .home-page #nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 50px;
    gap: 0;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .home-page #nav-menu.active {
    left: 0;
  }

  .home-page #nav-menu li {
    margin: 20px 0;
  }

  .home-page #nav-menu a {
    display: block;
    font-size: 18px;
    padding: 15px 0;
    color: #111111;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .home-page .top-nav {
    padding: 14px 14px 10px;
  }

  .home-page .top-nav.is-scrolled {
    padding: 10px 14px;
  }

  .home-page .top-nav .logo img {
    width: 58px;
  }

  .home-page .nav-links {
    gap: 10px;
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  .home-page .highlight-copy {
    left: 8%;
    top: 50%;
  }

  .home-page .highlight-copy h2 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .home-page .highlight-copy p {
    font-size: 9px;
  }

  .home-page .life-copy h2 {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .home-page .life-copy p {
    font-size: 4.5px;
  }

  .home-page .footer {
    padding: 22px 16px;
  }

  .home-page .brand-col img {
    width: 64px;
  }

  .home-page .brand-col p {
    font-size: 6px;
  }

  .home-page .links-col {
    gap: 8px;
  }

  .home-page .links-col a {
    font-size: 10px;
  }

  .home-page .small-links-col {
    gap: 4px;
  }

  .home-page .subscribe {
    height: 20px;
    max-width: 220px;
  }

  .home-page .subscribe input {
    padding: 0 6px;
  }

  .home-page .subscribe button {
    width: 22px;
  }

  .home-page .subscribe button img {
    width: 12px;
    height: 12px;
  }

  .home-page .socials {
    gap: 10px;
    margin-top: 8px;
  }

  .home-page .socials img {
    width: 9px;
    height: 7px;
  }
}

@media (max-width: 480px) {
  .home-page #nav-menu {
    top: 60px;
    height: calc(100vh - 60px);
  }
}