/* ===== 响应式设计 ===== */

/* 当屏幕宽度小于1400px时应用以下样式 */
@media (max-width: 1400px) {
  .nav-item {
    margin: 0 10px;
  }

  .nav-link {
    padding: 6px 12px;
  }

  .platform-showcase {
    width: 100%;
  }
  html {
    /* font-size: 15px; */
  }
}
/* 当屏幕宽度小于1300px时应用以下样式 */
@media (max-width: 1300px) {
  .nav-item {
    margin: 0 0px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .container {
    max-width: 95%;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .platform-tabs {
    flex-wrap: wrap;
  }
  .center-dashboard {
    height: 650px;
  }
  .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    white-space: nowrap;
  }
  /* 数据安全防护 S */
  .security-modules {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 20px;
  }

  .module-header h3 {
    font-size: 1.1rem;
  }
  .feature-list li {
    font-size: 0.85rem;
  }
  /* 关于我们S */
  .about-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
  }
  /* 关于我们S */

  .section-title {
    font-size: 2rem;
  }
  .provide-section .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }

  html {
    /* font-size: 14px; */
  }
}
/* 当屏幕宽度小于1024px时应用以下样式 */
@media (max-width: 1024px) {
  
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .tech-text {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .provide-section {
    padding: 0px 0;
  }

  .service-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
  }
  .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    margin: 0 auto 20px;
  }
  .service-card h4 {
    font-size: 1.2rem;
  }
  .service-card p {
    font-size: 0.8rem;
  }

  /* 我们可以提供S */
  .wake-up-module {
    /* padding: 50px; */
  }
  .wake-up-title {
    font-size: 2.5rem;
  }
  .wake-up-desc {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .wake-up-link {
    font-size: 1rem;
  }
  .wake-up-phone {
    position: relative;
    padding-top: 40px;
  }
  .wake-up-phone {
    position: relative;
    padding-top: 30px;
    margin-bottom:50px;
  }
  .wake-up-phone .bg-img {
    width: 25rem;
  }
  .msg-box img {
    width: 15rem;
  }
  .msg-box .l-p:nth-child(3) {
    left: -5.2rem;
  }
  .msg-box .l-p:nth-child(4) {
    /* top:328px; */
  }
  .msg-box2 img {
    width: 13rem;
  }
  .msg-box2 .r-p:nth-child(3) {
    /* right: -30px; */
  }
  .msg-box2 .r-p:nth-child(4) {
    right: -5.8rem;
  }
  /* 我们可以提供E */
  .btn {
    padding: 13px 30px;
  }

  /* 关于我们S */
  .about-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-top: 60px;
  }
  .service-content h3 {
    font-size: 1rem;
  }
  .service-content p {
    font-size: 0.8rem;
  }
  /* 关于我们S */
  .nav-container {
    justify-content: space-between;
  }
}
/* 768px */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
  }
  .col-md-3,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .section-padding {
    padding: 20px 0;
  }
  .service-content h3 {
    font-size: 1.2rem;
  }
  .service-content p{
    font-size: 0.9rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 2rem;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .bio-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .final-title {
    font-size: 2rem;
  }

  .footer-bottom {
    text-align: center;
  }

  .text-right {
    text-align: center !important;
    margin-top: 20px;
  }

  .about-services {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .provide-section {
    padding: 10px 0;
  }

  .wake-up-module {
    padding: 2.85rem;
    margin:  2.85rem 0;
  }
  .section-header{
      padding:0 1rem;
  }
  .wake-up-title {
    font-size: 2rem;
  }

  .wake-up-desc {
    font-size: 1.1rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    padding: 30px 25px;
  }
  .wake-up-section {
    padding: 0px 0;
  }

  .bio-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .bio-item img {
    height: 200px;
  }
  /* 生命信息工程S */

  .bio-card img {
    height: 250px;
  }
  .bio-swiper {
    padding: 20px;
  }
  .bio-card {
    aspect-ratio: 2/3;
  }
  .center-dashboard {
    height: 400px;
    margin: 0 20px;
  }

  .center-dashboard::after {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .liufeng-center-section .section-title {
    font-size: 2rem;
  }
  .container {
    padding: 0 20px;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }

  .platform-tabs {
    padding: 0 15px;
  }

  .platform-showcase {
    padding: 0 10px;
  }

  .swiper-slide img {
    max-height: 400px;
  }

  .platform-pagination {
    bottom: 10px;
  }

  .feature-badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  /* 数据安全防护S*/

.nav-link.active::after {
  width: 60%;
}

.about-services {
  grid-template-columns: 1fr;
  gap: 30px;
}

.provide-section {
  padding: 10px 0;
}

.wake-up-module {
  padding: 40px;
  margin: 40px 0;
}

.wake-up-title {
  font-size: 1.88rem;
}

.wake-up-desc {
  font-size: 1rem;
  text-align: center;
}
.wake-up-link {
    font-size: 0.75rem;
    padding: 0.65rem 1.2rem;
    border-radius: 0.55rem;
}
.service-cards {
  grid-template-columns: 1fr;
  gap: 25px;
}

.service-card {
  padding: 30px 25px;
}
.wake-up-section {
  padding: 0px 0;
}

.bio-gallery {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.bio-item img {
  height: 200px;
}
/* 生命信息工程S */
.bio-card img {
  height: 250px;
}

.bio-swiper {
  padding: 20px;
}
.bio-card {
  min-height: auto;
  height: auto;
  aspect-ratio: auto;
}
/* 生命信息工程E */
/* 留凤智算中心s */
.center-tabs {
  /* flex-direction: column; */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
}

.tab-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

.center-dashboard {
  height: 25rem;
  margin: 0 20px;
}
.center-dashboard::after {
  font-size: 2rem;
  letter-spacing: 2px;
}

.liufeng-center-section .section-title {
  font-size: 2rem;
}
.container {
  padding: 0 20px;
}

.platform-tabs {
  padding: 0 15px;
}

.tab-nav {
  flex-wrap: wrap;
  gap: 10px;
}

.tab-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
  }
.platform-showcase {
  padding: 0 10px;
}

.swiper-slide img {
  max-height: 25rem;
}

.platform-pagination {
  bottom: 10px;
}

.feature-badge {
  font-size: 12px;
  padding: 6px 12px;
}
/* 数据安全防护S*/
.security-modules {
  gap:1.25rem ;
  padding: 0 15px;
}
.security-module{
  width: 45%;
}
.module-header h3 {
  font-size: 1.8rem;
}
.module-header {
  gap: 8px;
}
.feature-list li {
  font-size: 0.88rem;
}
.module-icon {
  width: 3rem;
  height:  3rem;
  font-size: 1rem;
}
  /* AI众包创业平台 E */
  .card-icon {
    width: 3.3rem;
    height: 3.3rem;
    margin: 0 auto 20px;
  }
}


/* 触摸设备优化 */
@media (hover: none) {
  .security-module:hover,
  .bio-item:hover,
  .service-item:hover {
    transform: none;
  }

  .bio-overlay {
    transform: translateY(0);
  }
}

/* ===== 新闻资讯响应式样式 ===== */
@media (max-width: 1400px) {
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
  }
  
  .news-title {
    font-size: 1.2rem;
  }
  
  .news-excerpt {
    font-size: 0.9rem;
  }
}

@media (max-width: 1300px) {
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .news-content {
    padding: 20px;
  }
  
  .news-title {
    font-size: 1.15rem;
  }
  
  .news-excerpt {
    font-size: 0.85rem;
  }
  
  .news-load-more .btn {
    padding: 10px 28px;
    font-size: 0.95rem;
  }
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  
  .news-image {
    height: 180px;
  }
  
  .news-content {
    padding: 18px;
  }
  
  .news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .news-excerpt {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }
  
  .news-meta {
    padding-top: 14px;
  }
  
  .news-date {
    font-size: 0.8rem;
  }
  
  .news-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .news-image {
    height: 200px;
  }
  
  .news-content {
    padding: 20px;
  }
  
  .news-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .news-excerpt {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  
  .news-meta {
    padding-top: 16px;
  }
  
  .news-date {
    font-size: 0.85rem;
  }
  
  .news-link {
    font-size: 0.85rem;
  }
  
  .news-load-more {
    margin-top: 30px;
  }
  
  .news-load-more .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size:1.62rem;
  }
  .section-subtitle {
    font-size:1rem;
  }
    /* 更换首页背景图 */
    .hero-section {
      min-height:calc(100vh - 70px);
    }
  .hero-bg-gradient{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 50%;
      background-size: cover;
      background-position: center;
      transform: rotate(0deg);
  }
  .hero-bg-image {
    top: 0;
    left: 0;
    height:50%;
    display:flex;
  }
  .hero-content {
    bottom:7.3rem
  }
  .imgbox {
    margin-bottom:0 !important
  }
  .container {
    padding: 0 15px;
  }
  .module-header {
    margin-bottom: 10px;
  }

.module-header h3 {
      font-size: 1.2rem;
    }
  /* 首页标题文字S */
  .hero-subtitle {
    font-size: 2rem;
    margin-bottom: 0px;
  }
  /* 首页标题文字E */
  .hero-title {
    font-size: 2.25rem;
  }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .platform-features {
    position: static;
    margin-top: 20px;
    align-items: center;
  }

  .bio-gallery {
    grid-template-columns: 1fr;
  }
  .about-services {
    gap: 20px;
  }

  .service-content {
    padding: 20px 15px;
  }
  
  .provide-section .section-title {
    font-size: 1.62rem;
  }

  .platform-showcase {
    padding: 0 5px;
  }

 
  .platform-features {
    position: static;
    margin-top: 15px;
    padding: 0 15px;
  }

  .feature-badge {
    justify-content: center;
  }
  .center-dashboard {
    height: 21rem;
    margin: 0 10px;
  }

  .center-dashboard::after {
    font-size: 1.8rem;
  }
  .section-padding {
    padding: 2.5rem 0;
  }

  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }
  .security-module {
    width: 100%;
    min-height: 9.75rem;
    padding: 1rem;
    flex: none;
    position:relative;
  }
 .module-icon-box {
  position:absolute;
  right:1rem;top:1rem;
 }
.module-icon {
  width: 2rem;
  height: 2rem;
}
.bio-swiper {
  padding:0;
}
  /* 我们可以提供S */
  .msg-box-style p {
    font-size: 0.75rem;
    padding: 0.4rem;
  }
  .msg-box img {
    width: 10rem;
  }
  .msg-box .l-p:nth-child(2) {
    left: -1.8rem;
    font-size: 0.9rem;
  }
  .msg-box .l-p:nth-child(3) {
    left: -1.8rem;
  }
  .msg-box .l-p:nth-child(4) {
    top: 20rem;
    left: 0.8rem;
  }
  .msg-box .r-p {
    white-space: pre-line;
    right: -1rem;
    max-width: 10rem;
  }
  .msg-box2 img {
    width: 9rem;
  }
  .msg-box2 .r-p:nth-child(3) {
    right: 0.9rem;
  }
  .msg-box2 .r-p:nth-child(4) {
    white-space: pre-line;
    right: -2rem;
    max-width: 12rem;
    top: 20rem;
  }
  .msg-box2 .r-p:nth-child(2) {
    white-space: pre-line;
    right: -2rem;
    max-width: 12rem;
  }
  .msg-box3 p {
    white-space: pre-line;
    /* max-width: 10rem; */
  }
  .msg-box3 .r-p {
    right: 1rem;
    max-width: 12rem;
    right: -1rem;
    max-width: 12rem;
  }
  .msg-box3 .r-p:nth-child(2) {
    top: 8.4rem;
    right: -1rem;
    max-width: 12rem;
  }
  .msg-box3 .l-p:nth-child(3) {
    left: -2rem;
    top: 15rem;
    max-width: 12rem;
  }
  .msg-box3 .r-p:nth-child(4) {
    right: -1rem;
    max-width: 12rem;
    top: 19rem;
  }
  /* 我们可以提供E */
  .service-cards {
    margin: 2rem 0;
  }
  .service-card {
    padding: 1rem 1.875rem;
  }
  .tab-nav a {
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 0.4rem;
  }
  .platform-tabs{
    padding:0
  }
  .tab-nav{
    gap:0.4rem;
  }
  .tab-item {
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 0.4rem;
  }
  
.section-header{
  text-align: left;
  padding:0 1.5rem;
}
/* 移动端卡片模式效果 */
@media (max-width: 768px) {
  .bio-swiper .swiper-wrapper .swiper-slide {
    transform: scale(0.85) !important;
    opacity: 0.7 !important;
  }
  
  .bio-swiper .swiper-wrapper .swiper-slide-active {
    transform: scale(1) !important;
    opacity: 1 !important;
    z-index: 2;
  }
  
  .bio-swiper .swiper-wrapper .swiper-slide:hover {
    transform: scale(0.9) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  }
  
  .bio-swiper .swiper-wrapper .swiper-slide-active:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  }
}
.bio-card {
  min-height: 17.4rem;
  height: auto;
}
.bio-card img {
  border-radius:8px;
  height:100%;
}
.news-card {
  display:flex;
}
 .news-grid {
    gap: 16px;
    margin-bottom: 30px;
  }
  
  .news-image {
    width:113px;
    height: 113px;
  }
  .news-box{
    flex:1;
    padding-left:12px;
  }
  .news-content {
    padding: 0;
  }
  
  .news-title {
    min-height:39px;
    height:auto;
    margin-top:0;
    font-size: 1rem;
    font-weight:500;
    margin-bottom: 8px;
  }
  
  .news-excerpt {
     height:auto;
    font-size: 0.88rem;
    -webkit-line-clamp:2;
    margin-bottom: 0px;
  }
  
  .news-meta {
    margin-top:0;
    padding-top:0;
    height:auto;
  }
  .news-meta a{
    color:#344054;
    font-weight:400
  }
  
  .news-date {
    font-size: 0.75rem;
  }
  
  .news-link {
    font-size: 0.8rem;
  }
  
  .news-load-more .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
  .final-section {
    width:100%;
  }
  .final-bg {
    display:none;
  }
  .final-bg-mobile {
    display:block;
  }
    .security-modules {
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 15px;
    padding: 0 20px;
  }
}
