/* 企业简介和优势区块样式 */
@media (max-width: 900px) {
  .advantage-row {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }
  .advantage-detail {
    padding: 24px 12px;
  }
}
@media (max-width: 600px) {
  .advantage-section {
    padding: 32px 0 20px 0;
  }
  .advantage-detail {
    padding: 16px 4px;
  }
  .news-section {
    margin: 16px 0 0 0;
  }
  .advantage-title {
    font-size: 1.25rem !important;
    margin-bottom: 8px !important;
  }
  .advantage-desc {
    font-size: 0.98rem !important;
    margin-bottom: 18px !important;
  }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* 全员参与，多角色协同区块样式 */
.role-section {
  background: #f5f8fc;
  padding: 56px 0 40px 0;
}
.role-title {
  text-align: center;
  font-size: 2.1rem;
  color: #222;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}
.role-desc {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 38px;
}
.role-cards-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.role-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.role-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24,144,255,0.10);
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 0;
  padding: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  border-top: 6px solid #1890ff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.role-card:hover {
  box-shadow: 0 8px 24px rgba(24,144,255,0.18);
  transform: translateY(-4px) scale(1.03);
}
.role-card-header {
  background: linear-gradient(90deg, #1890ff 60%, #40a9ff 100%);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
  border-radius: 12px 12px 0 0;
  padding: 18px 0;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 0;
}
.role-card ul {
  list-style: none;
  padding: 18px 24px 0 24px;
  margin: 0;
}
.role-card li {
  margin-bottom: 18px;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}
.role-card li strong {
  color: #1890ff;
  font-weight: 600;
  margin-bottom: 2px;
}
.role-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.role-page-btn {
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.role-page-btn:disabled {
  background: #e6e6e6;
  color: #aaa;
  cursor: not-allowed;
}
.role-page-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #e6e6e6;
  border-radius: 50%;
  margin: 0 2px;
  transition: background 0.2s;
}
.role-page-dot.active {
  background: #1890ff;
}
@media (max-width: 900px) {
  .role-cards {
    gap: 20px;
  }
  .role-card {
    min-width: 220px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    overflow: visible;
  }
  .role-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    padding: 0 0 16px 0;
    margin-bottom: 0;
  }
  .role-card-header {
    font-size: 1rem !important;
    padding: 10px 0 !important;
    font-weight: 600 !important;
  }
  .role-card ul {
    padding: 12px 16px 0 16px;
  }
  .role-card li {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }
}
@media (max-width: 480px) {
  .role-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .role-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    padding: 0 0 16px 0;
    margin-bottom: 0;
  }
  .role-card-header {
    font-size: 1.1rem !important;
    padding: 12px 0 !important;
    font-weight: 600 !important;
  }
  .role-card ul {
    padding: 16px 20px 0 20px;
  }
  .role-card li {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
  }
}

/* 通用服务卡样式 */
.services-section {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 items per row on desktop */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 每个服务项 */
.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto; /* Auto height for desktop */
    overflow: hidden; /* Ensures content doesn't overflow the card */
}

.service-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* 图标样式 */
.service-icon {
    font-size: 40px;
    color: #007BFF; /* Changed to blue */
    margin-bottom: 15px;
}

/* 标题样式 (恢复原样式) */
.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    white-space: normal; /* Allow wrapping */
}

/* 描述样式 (恢复原样式) */
.service-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    white-space: normal; /* Allow wrapping */
}

/* 特性列表 */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #007BFF; /* Changed to blue */
    display: flex; /* Horizontally display span elements */
    justify-content: center;
    flex-wrap: wrap; /* Allow wrap for smaller screens */
}

.service-features span {
    margin-right: 15px;
    white-space: nowrap; /* Prevent wrapping */
}

.service-features span:last-child {
    margin-right: 0;
}

/* 按钮样式 */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #007BFF; /* Changed to blue */
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.service-btn:hover {
    background-color: #0069d9; /* Darker blue on hover */
}

.service-btn i {
    margin-left: 5px;
}

/* 自适应样式 */
@media screen and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr); /* Ensure 4 items per row on medium screens */
    }
}

@media screen and (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 items per row on smaller screens */
    }
}

@media screen and (max-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 items per row on small screens */
    }

    /* Adjust the size and height of elements on mobile */
    .service-card {
        padding: 15px;
        height: 200px; /* Adjust height for smaller screens */
    }

    .service-icon {
        font-size: 30px; /* Smaller icon size for mobile */
        margin-bottom: 10px;
    }

    .service-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .service-features {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .service-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media screen and (max-width: 400px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Ensure 2 items per row on very small screens */
    }
    
    /* Hide span on mobile */
    .service-features span {
        display: none;
    }

    /* Further reduce size for very small screens */
    .service-card {
        padding: 10px;
        height: 180px; /* Smaller height for very small screens */
    }

    .service-icon {
        font-size: 25px;
        margin-bottom: 8px;
    }

    .service-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .service-card p {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .service-features {
        font-size: 10px;
    }

    .service-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* 核心功能与服务区块样式 */
.core-feature-section {
  background: #f7f9fb;
  padding: 60px 0 40px 0;
}
.core-title {
  text-align: center;
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.core-feature-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(24,144,255,0.08);
  margin: 0 auto 32px auto;
  max-width: 1200px;
  overflow: hidden;
}
.core-feature-side {
  width: 240px;
  padding: 36px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.core-feature-side.blue {
  background: linear-gradient(135deg, #1890ff 80%, #43e97b 100%);
}
.core-feature-side.green {
  background: linear-gradient(135deg, #43e97b 80%, #1890ff 100%);
}
.core-feature-side h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.core-feature-side ul {
  padding-left: 18px;
  margin: 0;
}
.core-feature-side li {
  margin-bottom: 10px;
  font-size: 1rem;
  list-style: disc;
}
.core-feature-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  padding: 36px 32px;
  align-items: center;
  align-content: center;
}

/* 平板设备优化 */
@media (max-width: 900px) {
  .core-feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    padding: 24px 20px;
  }
}
.core-feature-card {
  background: #f7f9fb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(24,144,255,0.06);
  padding: 22px 16px 18px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  color: inherit;
  text-decoration: none;
  display: block;
}
.core-feature-card:hover {
  box-shadow: 0 8px 24px rgba(24,144,255,0.13);
  transform: translateY(-4px) scale(1.03);
}
.core-feature-card .icon {
  width: 44px;
  height: 44px;
  background: #e6f7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  font-size: 1.5rem;
  color: #1890ff;
}
.core-feature-card h4 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 8px;
  font-weight: 600;
}
.core-feature-card p {
  color: #666;
  font-size: 0.98rem;
  line-height: 1.5;
}
/* 小屏幕设备优化 */
@media (max-width: 600px) {
  .core-feature-section {
    padding: 20px 0 20px 0;
    background: #f7f9fb;
  }
  .core-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
  }
  .core-feature-row {
    flex-direction: column;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(24,144,255,0.08);
    background: #fff;
    overflow: hidden;
  }
  .core-feature-side {
    min-width: 0;
    width: 100%;
    border-radius: 0 !important;
    padding: 20px 16px 16px 16px !important;
    text-align: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
  }
  .core-feature-side h3 {
    font-size: 1.2rem !important;
    margin-bottom: 12px !important;
  }
  .core-feature-side ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding-left: 0 !important;
    margin: 0 auto !important;
    text-align: left !important;
    width: 100%;
    justify-items: center;
  }
  .core-feature-side li {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
    list-style: disc inside !important;
    text-align: left !important;
    width: 100%;
    padding-left: 0 !important;
  }
  .core-feature-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .core-feature-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(24,144,255,0.08);
    padding: 16px;
    margin-bottom: 0;
  }
  .core-feature-card .icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .core-feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  .core-feature-card p {
    font-size: 0.98rem;
    line-height: 1.5;
  }
}

/* 通用区块样式 */
.section {
  padding: 40px 0 30px 0;
  background: #fff;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  color: #222;
  margin-bottom: 32px;
  font-weight: 700;
  letter-spacing: 1px;
}
.business-list, .faculty-list, .testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
.business-item, .faculty-item, .testimonial-item {
  background: #f7f9fb;
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: 0 2px 8px rgba(24,144,255,0.06);
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.business-item:hover, .faculty-item:hover, .testimonial-item:hover {
  box-shadow: 0 8px 24px rgba(24,144,255,0.13);
  transform: translateY(-4px) scale(1.03);
}
.btn, .btn-primary {
  display: inline-block;
  padding: 10px 24px;
  background: #1890ff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
  margin: 8px 0;
}
.btn:hover, .btn-primary:hover {
  background: #007bff;
}
.community-actions, .enroll-actions {
  text-align: center;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .business-list, .faculty-list, .testimonials-list {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* 内容模块切换 */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.nav-button {
  background: #1890ff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.nav-button:hover, .nav-button.active {
  background: #007bff;
}
.content-module {
  display: none;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 20px;
  background: #fff;
}
.content-module.active {
  display: block;
}

/* 手机端瀑布流风格卡片区块 */
.mobile-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 900px;
}
.mobile-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(24,144,255,0.08);
  overflow: hidden;
  margin-bottom: 8px;
  width: 23%;
  min-width: 180px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (max-width: 600px) {
  .mobile-cards {
    gap: 8px;
    padding: 0 4px;
  }
  .mobile-card {
    width: 48%;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 8px;
  }
}
