/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #2880e4;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d7268;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

p {
    text-indent: 2em;
    line-height: 1.8;
}


/* 头部样式 */
header {
    background-color: #1c68b9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff; /* 设置为白色 */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

.main-nav {
    display: flex;
    list-style: none;
}

.main-nav li {
    position: relative;
    margin-left: 30px;
}

.main-nav a {
    color: #333333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav li.active a {
    color: #ffffff;
}


/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #4390d9, #0a3d74);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-form form {
    display: flex;
    background-color: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-form button {
    background-color: #2a9d8f;
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #1d7268;
}
.content {
    padding: 80px 0;
    background-color: #fff;
}

.content h2 {
    color: #2a9d8f;
    margin-bottom: 20px;
    font-size: 28px;
    border-bottom: 2px solid #2a9d8f;
    padding-bottom: 10px;
}

.content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
}
/* 特性区域 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #2a9d8f;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-card p {
    color: #666;
}

/* 团队成员区域 */
.team-column.teachers {
    background-color: #003366; /* 深蓝 */
    color: #ffffff; /* 白字以增强对比 */
  }
  
  .team-column.students {
    background-color: #e6f2ff; /* 浅蓝 */
  }
  
  .team-column h3 {
    color: #2a9d8f;
    font-size: 1.75rem; /* 比原来的1.5rem稍大一号 */
    margin-bottom: 20px;
  }
  
  .team-member {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  .team-member img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .team-member h4 {
    font-size: 16px;
    color: #007bff;
    margin: 5px 0;
  }
  
  .team-member p {
    font-size: 14px;
    color: #333;
    margin: 2px 0;
  }
  
  .team-member a {
    color: #007bff;
    text-decoration: none;
  }
  
  .team-member a:hover {
    text-decoration: underline;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
  
  
/* 项目创新区域 */
.innovation {
    padding: 80px 0;
    background-color: #fff;
}

.innovation h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2a9d8f;
    font-size: 36px;
}

.innovation-grid {
    display: flex;
    flex-direction: column;
    gap: 40px; /* 控制上下间距 */
}

.innovation-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.innovation-card h3 {
    padding: 20px 20px 10px;
    color: #2a9d8f;
}

.innovation-card p {
    padding: 0 20px 20px;
    color: #666;
}

.innovation-card img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 50%;
    height: auto;
    object-fit: contain;
}


.image-caption {
    text-align: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
}

/* 项目成果区域 */
.achievements {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.achievements h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2a9d8f;
    font-size: 36px;
}

.achievement-item {
    margin-bottom: 60px;
}

.achievement-item h3 {
    color: #2a9d8f;
    margin-bottom: 20px;
    font-size: 28px;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.achievement-image {
    flex: 1;
}

.achievement-image img {
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.achievement-text {
    flex: 1;
}

.achievement-text p {
    margin-bottom: 15px;
    color: #555;
}
.card-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-container img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 16px auto;  /* 上 0，左右 auto，下 16px */
    object-fit: contain;
    display: block;
}


.card-container p {
    line-height: 1.8; /* 段落间距约为 1.5 倍 */
    font-size: 16px;
    color: #333;
}

.ai-flow {
    
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    background: #f5f8ff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 16px;
}
.ai-section {
    margin-top: 40px;
}


.step {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    flex: 1 1 200px;
    min-width: 180px;
}

.arrow {
    font-size: 24px;
    color: #1e90ff;
}
.highlight {
    color: #d60000;
}

.info-paragraph {
    margin-bottom: 16px; /* 可以根据需要改成12px、20px等 */
  }
  
/* 联系我们区域 */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2a9d8f;
    font-size: 36px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info, .contact-form {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3, .contact-form h3 {
    color: #2a9d8f;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 15px;
    color: #555;
}

.map {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}


.submit-btn:hover {
    background-color: #1d7268;
}

/* 页脚样式 */
footer {
    background-color: #0a3d74;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    header .container {
        flex-direction: row !important; /* 使用!important 确保样式应用 */
        justify-content: space-between !important; 
    }

    .logo img {
        height: 40px;
    }

    .main-nav {
        display: flex !important;
        flex-direction: row !important;
    }

    .main-nav li {
        margin-left: 20px;
    }
}


.video-section {
    background: linear-gradient(to bottom right, #e6f7ff, #ccf2ff);
    padding: 60px 20px;
    text-align: center;
}

.video-section h2 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 20px;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

.video-wrapper video {
    width: 100%;
    border-radius: 12px;
    outline: none;
    margin-bottom: 15px;
}

.video-description {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
  }
  
  .image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .image-gallery img {
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  .image-gallery img:hover {
    transform: scale(1.02);
  }
  
  #image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
  }
  
  #image-modal img {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid white;
    border-radius: 10px;
  }
    





 
