/* 字体引入 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
}

a {
  color: inherit;
}

body {
  margin: 0;
  font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  background: #fff;
}

:root {
  --blue: #70b0fb;
  --yellow: #ffdb4c;
  --black: #222;
}

/* 固定头部样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.header .logo {
  margin-top: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-nav-bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15px;
  background-color: var(--yellow);
}

.header nav {
  height: 50px;
  display: flex;
  gap: 32px;
  align-items: center;
}

#nav-login,
.header nav>a,
.header nav .dropdown-toggle {
  text-decoration: none;
  color: #222;
  font-size: 16px;
  padding: 12px;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 2;
}

#nav-login:hover,
.header nav a:hover,
.header nav a.active,
.header nav .dropdown-toggle.active {
  background: #ffe066;
  color: #222;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: #fff;
  box-shadow: 7px 3px 20px 20px #0001;
  border-radius: 10px;
  padding: 16px 12px 8px;
  z-index: 1;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 16px;
  text-align: center;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid #d4d4d4;
}

.dropdown-menu.lang a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
}

.dropdown-menu.lang a span {
  flex: 1;
}

.dropdown-menu a:hover {
  background: #f7f7f7;
}

.dropdown-menu img {
  display: block;
  margin: 0 auto;
}

/* 商城小程序码 */
.cozyworld-link-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.qr-popup {
  display: none;
  position: absolute;
  left: 180px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 12px 16px 8px 16px;
  z-index: 100;
  min-width: 120px;
  border: 1px solid #eee;
}

.qr-arrow {
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid #fff;
  filter: drop-shadow(-1px 0 0 #eee);
}

.qr-tip {
  font-size: 12px;
  text-align: center;
  margin-top: 4px;
  color: #666;
}

.cozyworld-link-wrapper:hover .qr-popup {
  display: block;
}


/* 内容 */
.banner {
  margin-top: 160px;
  width: 100%;
  height: 70vh;
  min-height: 300px;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.banner-title {
  text-align: center;
  font-size: 50px;
  font-weight: 900;
  color: var(--blue);
  position: relative;
}

.banner-title::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  font-weight: bold;
  -webkit-text-stroke: 10px #fff;
  z-index: -1;
}


.banner-sub {
  font-size: 30px;
  margin-top: 10px;
  margin-bottom: 40px;
  font-weight: 900;
  color: var(--blue);
  position: relative;
}
.banner-sub::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  font-weight: bold;
  -webkit-text-stroke: 6px #fff;
  z-index: -1;
}

.banner-title2 {
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 40px;
}

.banner-sub2 {
  text-align: center;
  font-size: 12px;
  margin: 15px auto 30px;
  font-weight: bold;
}

.banner-gap {
  background:
    linear-gradient(45deg,
      var(--yellow) 25%,
      transparent 25%,
      transparent 75%,
      var(--yellow) 75%),
    linear-gradient(45deg,
      var(--yellow)25%,
      #fff 25%,
      #fff 75%,
      var(--yellow) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  height: 30px;
}

.section {
  padding: 72px 0 32px 0;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
}

.section-subtitle {
  font-size: 30px;
  margin-bottom: 80px;
}

.section-more:hover {
  cursor: pointer;
  opacity: 0.6;
}

/* Swiper 样式定制 */
.swiper {
  width: 100%;
  max-width: 1100px;
  height: 420px;
  margin: 40px auto 0 auto;
  padding: 0 50px;
  position: relative;
  box-sizing: border-box;
  border-radius: 10px;
}

.swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.swiper-button-prev,
.swiper-button-next {
  color: #7ecbfa;
  width: 50px;
  height: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  margin-top: 0;
}

.swiper-button-prev {
  left: 0px;
  right: auto;
}

.swiper-button-next {
  right: 0px;
  left: auto;
}
.swiper-button-prev::after,.swiper-button-next::after{
  font-size: 28px;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .swiper {
    max-width: 100%;
    height: 320px;
  }
}

@media (max-width: 600px) {
  .swiper {
    height: 220px;
  }
}


/* 尾部 */
.footer {
  background: var(--blue);
  color: #fff;
  padding: 32px 0 16px 0;
  text-align: center;
  position: relative;
  margin-top: 48px;
}

.footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 40px auto;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 20px;
}

.footer .footer-links .sub {
  font-size: 10px;
}

.footer .footer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-bottom: 80px;
}

.footer .footer-social {
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.footer .footer-social>img {
  height: 28px;
}

.footer .copyright {
  text-align: left;
  font-size: 10px;
  margin-top: 8px;
}

/* 底部装饰 */
.footer-decoration {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 30px;
  background:
    linear-gradient(45deg,
      var(--yellow) 25%,
      transparent 25%,
      transparent 75%,
      var(--yellow) 75%),
    linear-gradient(45deg,
      var(--yellow)25%,
      var(--blue) 25%,
      var(--blue) 75%,
      var(--yellow) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}


/* index */
.about-desc {
  margin: 0 auto 24px auto;
  line-height: 1.8;
  padding: 0 20px;
}

.index-news-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 32px auto 16px;
  width: 800px;
}

.index-news-item {
  width: 250px;
  height: 150px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 18px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.index-news-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.index-news-item .text {
  display: none;
}

.index-news-item:hover .text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px;
}

/* about */
/* 品牌介绍 */
.brand-map {
  max-width: 1100px;
  margin: 0 auto 36px;
  border-radius: 16px;
  padding: 0 20px;
}

.brand-map img {
  width: 100%;
  max-width: 1100px;
  margin-bottom: 8px;
}

.brand-desc {
  max-width: 1000px;
  margin: 0 auto 24px;
  padding: 0 20px;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

/* 品牌LOGO和视频区 */
.logo-video-section {
  background: #eaeaea;
  padding: 48px 0;
  text-align: center;
}

.logo-video-section .logo {
  margin-bottom: 48px;
}

.logo-video-section .logo img {
  height: 80px;
  vertical-align: middle;
}

.video-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.video-item {
  width: 300px;
  height: 400px;
  overflow: hidden;
  background: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #7ecbfa;
  box-shadow: 0 2px 8px #e0e7ef;
  cursor: pointer;
  position: relative;
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.video-item video:hover {
  transform: scale(1.05);
}

.video-item .play {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.logo-video-section .more {
  margin-top: 8px;
  color: #7ecbfa;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
}

/* 团队介绍 */
.team-section {
  background: #fff;
  padding: 80px 0 48px;
  text-align: center;
}

.team-desc {
  max-width: 1000px;
  margin: 0 auto 48px;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
  padding: 0 20px;
}

.team-img {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-img img {
  width: 100%;
  border-radius: 16px;
}

/* 合作品牌 */
.co-brand-section {
  padding: 64px 0 32px 0;
  text-align: center;
}

.co-brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 32px auto 0 auto;
}

.co-brand-item {
  width: 160px;
  height: 100px;
  background: #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c9;
  font-size: 18px;
  overflow: hidden;
}

.co-brand-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* 新闻 */
/* 新闻列表 */
.news-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid #ccc;
  gap: 32px;
}

.news-img {
  width: 200px;
  height: 120px;
  background: #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c9;
  font-size: 32px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.news-title {
  font-size: 18px;
  color: #4D4D4D;
  margin-bottom: 4px;
  cursor: pointer;
}

.news-title:hover {
  color: var(--blue);
}

.news-summary {
  color: #808080;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.news-meta img:hover {
  opacity: 0.7;
}

.news-more {
  margin-left: auto;
  color: #7ecbfa;
  font-size: 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}


/* 合作 */
/* 合作内容 */
.cooperate-desc {
  color: #808080;
  font-size: 15px;
  text-align: left;
  font-weight: lighter;
  margin-bottom: 32px;
}

.cooperate-block {
  max-width: 900px;
  margin: 0 auto 48px auto;
  background: #fff;
  border-radius: 12px;
  padding: 0 0 24px 0;

}

.cooperate-gap {
  border-bottom: 1px solid #ccc;
}

.cooperate-block:last-child {
  margin-top: 80px;
  margin-bottom: 0;
}

.cooperate-label {
  font-size: 16px;
  font-weight: bold;
  margin: 36px 0 8px 0;
  text-align: left;
}

.cooperate-info {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: space-between;
  font-size: 15px;
  font-weight: lighter;
  text-align: left;
  margin-top: 36px;
  margin-bottom: 8px;
}




/* 移动端 */
@media (max-width: 600px) {
  .header {
    padding: 0 8px;
  }

  #nav-login,
  .header nav>a,
  .header nav .dropdown-toggle {
    padding: 0;
  }

  .banner {
    height: 100px;
  }

  .index-news-list {
    width: 100%;
  }

  .index-news-item {
    width: 200px;
    height: 120px;
  }

  .header nav {
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 10px;
    justify-content: space-evenly;
  }

  .banner {
    height: 100px;
  }

  .brand-map img {
    width: 100%;
  }

  .video-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .co-brand-list {
    gap: 10px;
  }

  .co-brand-item {
    width: 120px;
    height: 80px;
  }

  .cooperate-block {
    padding: 0 20px;
  }

  .cooperate-info {
    flex-direction: column;
    gap: 8px;
  }

  .footer .footer-links {
    flex-direction: column;
    gap: 10px;
    margin: 10px auto;
  }

  .footer .footer-links>div {
    display: flex;
    justify-content: center;
  }

  .footer .footer-info {
    flex-direction: column-reverse;
    gap: 10px;
  }
}
.footer-social .social-item {
  display:inline-block;
  position:relative;
}

.footer-social .social-item .social-img{
  height: 36px;
  width: 36px;
}

.footer-social .qr-img {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  background: #fff;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: 100px;
  height: 100px;
  z-index: 10;
}
