/* 全局样式 - 企业级设计 */
:root {
    --primary-color: #0052cc;     /* 主色调：类似Atlassian蓝 */
    --secondary-color: #0065ff;   /* 次要色调 */
    --accent-color: #00a3bf;      /* 强调色 */
    --text-color: #172b4d;        /* 主文本色：深蓝灰 */
    --light-text: #5e6c84;        /* 次要文本色 */
    --lighter-text: #8993a4;      /* 更浅文本色 */
    --bg-color: #ffffff;          /* 背景色 */
    --light-bg: #f4f5f7;          /* 浅背景色 */
    --border-color: #dfe1e6;      /* 边框色 */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);  /* 微妙阴影 */
    --transition: all 0.2s ease;   /* 平滑过渡 */
    --section-padding: 60px 0;     /* 区块内边距 - 减小 */
    --container-width: 1140px;     /* 容器宽度 */
}

/* 防止水平滚动 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.5;  /* 减小行高 */
    font-size: 14px;   /* 设置基础字体大小 */
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.6rem;
    margin-top: 0;
    color: var(--text-color);
    position: relative;
    letter-spacing: -0.01em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 导航栏样式 - 企业风格 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 10px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    color: var(--text-color);
    font-size: 0.85rem;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.download-btn a {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 82, 204, 0.2);
    transition: all 0.2s;
}

.download-btn a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 82, 204, 0.25);
}

.download-btn i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* 首页样式 - 高级版优化 */
.hero {
    padding: 100px 0 40px;
    background-color: #f9fafc;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e9ecef 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.profile-image {
    flex: 0 0 220px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    position: relative;
    border: 3px solid #fff;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.profile-info h1 {
    font-size: 2.5rem; /* 原来是3rem，减小字号 */
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #162447 0%, #1f4068 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);
}

/* 为浏览器不支持渐变文字的情况提供后备方案 */
@supports not (background-clip: text) or 
          not (-webkit-background-clip: text) {
    .profile-info h1 {
        color: #1f4068;
        -webkit-text-fill-color: initial;
    }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, rgba(0, 82, 204, 0.5) 100%);
    border-radius: 3px;
}

/* 基本信息卡片 - 高级设计风格 */
.basic-info-card {
    background-color: rgba(246, 248, 250, 0.8);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.info-item {
    margin-bottom: 0;
    position: relative;
}

.info-label {
    font-size: 0.7rem;
    color: var(--light-text);
    margin-bottom: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.info-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.2px;
}

/* 个人简介文本 */
.bio {
    font-size: 0.92rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
    padding: 0 5px;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* 社交媒体链接 - 高级风格 */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 5px;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(240, 242, 245, 0.8);
    transition: all 0.25s;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 82, 204, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.social-icon:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-svg {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: all 0.25s;
    z-index: 1;
}

.social-icon .tooltip {
    visibility: hidden;
    opacity: 0;
    background: var(--text-color);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.25s;
}

.social-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* 视频部分 - 企业风格 */
.video-section {
    padding: 50px 0;
    background-color: var(--bg-color);
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.video-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
}

/* 导师推荐部分 - 企业风格 */
.recommendations {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.recommendations h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.recommendation-card {
    background-color: var(--bg-color);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    text-align: left;
    border: 1px solid var(--border-color);
}

.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recommender-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.recommender-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 2px solid var(--primary-color);
}

.recommender-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recommender-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recommender-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-right: 8px;
}

.recommender-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    background-color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 30px;
    display: inline-block;
    text-transform: uppercase;
}

.recommender-org {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 4px;
}

.recommendation-divider {
    height: 1px;
    background: #f0f2f5;
    margin: 12px 0 18px;
    width: 100%;
}

.recommendation-quote {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    position: relative;
    padding-left: 5px;
    font-style: italic;
}

.recommendation-quote::before {
    content: '"';
    position: absolute;
    top: 6px;
    left: 12px;
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.15;
}

.swiper-button-next, 
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 6px 16px rgba(0, 82, 204, 0.3);
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px;
}

/* 学术科研 - 企业风格 */
.research {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 30px;
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.research-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.research-cover {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.research-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-card:hover .research-cover img {
    transform: scale(1.05);
}

.research-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.research-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.3;
}

.research-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.research-meta span {
    display: flex;
    align-items: center;
}

.research-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.research-details {
    margin-bottom: 20px;
}

.research-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.research-details h4:first-child {
    margin-top: 0;
}

.research-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 15px;
}

.research-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.research-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.research-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.research-link i {
    margin-right: 8px;
}

@media (min-width: 992px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .research-card {
        flex-direction: row;
        align-items: stretch;
        max-height: 400px;
    }
    
    .research-cover {
        flex: 0 0 300px;
        height: auto;
    }
    
    .research-content {
        flex: 1;
        overflow-y: auto;
    }
}

@media (max-width: 991px) {
    .research-card {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .research-cover {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .research-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .research-cover {
        height: 200px;
    }
    
    .research-content {
        padding: 20px;
    }
    
    .research-title {
        font-size: 1.3rem;
    }
}

/* 定义竞赛卡片使用的动画效果 */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 学科竞赛 - 企业风格 */
.competition {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
}

.tab-buttons::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 1px;
    background-color: #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 8px;
    font-size: 1.05rem;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: all 0.25s;
    z-index: 1;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
    z-index: 2;
}

.tab-btn.active, .tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active::after, .tab-btn:hover::after {
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.competition-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.competition-card {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.competition-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.competition-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f4f5f7;
    transition: transform 0.5s;
}

.competition-card:hover .competition-cover img {
    transform: scale(1.05);
}

.competition-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.competition-date {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.competition-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.competition-card:hover .competition-title {
    color: var(--primary-color);
}

.competition-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.competition-level, 
.competition-award {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.competition-level {
    background-color: rgba(0, 82, 204, 0.08);
    color: var(--primary-color);
}

.competition-award {
    background-color: rgba(0, 135, 90, 0.08);
    color: #00875a;
}

/* 简化标签项的动画效果 */
.competition-info > span {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.competition-card:hover .competition-info > span {
    transform: translateX(2px);
}

/* 简化响应式设计 */
@media (max-width: 992px) {
    .competition-content {
        padding: 14px;
    }
    
    .competition-title {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .competition-content {
        padding: 12px;
    }
    
    .competition-title {
        margin-bottom: 10px;
    }
}

/* 社会实践 - 企业风格 */
.practice {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

.practice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.practice-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.practice-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.practice-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    position: relative;
    overflow: hidden;
    background-color: #f4f5f7;
}

.practice-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.practice-card:hover .practice-image img {
    transform: scale(1.05);
}

.practice-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.practice-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.practice-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.practice-position, .practice-date {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 8px;
}

.practice-position {
    color: var(--primary-color);
    background-color: rgba(0, 82, 204, 0.08);
}

.practice-date {
    color: #00875a;
    background-color: rgba(0, 135, 90, 0.08);
}

.practice-position:before {
    content: '\f007';
    font-family: 'Font Awesome 5 Free';
    margin-right: 6px;
    opacity: 0.8;
}

.practice-date:before {
    content: '\f133';
    font-family: 'Font Awesome 5 Free';
    margin-right: 6px;
    opacity: 0.8;
}

.practice-description, .practice-skills {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--light-text);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e9ecef;
}

.practice-skills {
    margin-top: 10px;
    font-weight: 500;
}

.practice-skills:before {
    content: '\f19d';
    font-family: 'Font Awesome 5 Free';
    margin-right: 6px;
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .practice-cards-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .practice-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .practice-content {
        padding: 12px;
    }
}

/* 学业帮扶 - 企业风格 */
.help {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.help-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 个人能力 - 企业风格 */
.skills {
    padding: var(--section-padding);
    background-color: var(--bg-color);
    padding-top: 60px;
    padding-bottom: 60px;
}

.skill-chart {
    background-color: white;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
}

.skill-chart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* 联系方式与页脚部分 */
.contact {
    padding: 60px 0 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#e9ecef 1px, transparent 1px),
        radial-gradient(#e9ecef 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.2;
    z-index: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

/* 联系信息卡片样式 */
.contact-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 82, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), rgba(0, 82, 204, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-item i {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.contact-text {
    flex: 1;
}

.contact-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 204, 0.1);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), rgba(0, 82, 204, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-icon:hover .social-svg {
    filter: brightness(0) invert(1);
}

/* 页脚部分 */
.footer {
    background-color: #f8f9fa;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #333;
}

.footer-contact-item i {
    font-size: 1.4rem;
    color: #0052cc;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link img {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    color: #0052cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* 微信二维码样式 */
.wechat-qr {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.wechat-qr img {
    width: 150px;
    height: 150px;
    display: block;
}

.footer-contact-item:hover .wechat-qr {
    display: block;
}

/* 微信二维码模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

.close-modal,
.news-modal-close,
.research-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-modal:hover,
.news-modal-close:hover,
.research-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

/* 模态框动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模态框内容样式 */
.modal-body,
.news-modal-body,
.research-modal-body {
    margin-top: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content,
    .news-modal-content,
    .research-modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
}

/* 社交卡片中的微信样式 */
.social-card.wechat {
    position: relative;
    cursor: pointer;
}

.social-card.wechat .wechat-qr {
    display: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links, .download-btn {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .help-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .social-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .profile-info h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        margin: 0;
    }
    
    .competition-cards, .practice-cards, .help-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加内容区域的上边距样式 */
.news-swiper,
.research-swiper,
.competition-tabs,
.practice-tabs,
.help-stats,
.skills-tabs,
.contact-content {
    margin-top: 15px;
}

/* 近期动态轮播 - 企业风格 */
.news-carousel {
    padding: 15px 0 40px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.news-swiper {
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

.news-slide {
    padding: 0;
    height: auto;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 350px;
    margin: 0; /* 移除 margin: 0 auto */
}

.news-image {
    position: relative;
    width: 100%;
    height: 180px; /* 减小图片高度 */
    overflow: hidden;
}


.news-content {
    padding: 15px; /* 减小内边距 */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.1rem; /* 减小标题字体大小 */
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 0.9rem; /* 减小摘要字体大小 */
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 调整轮播图容器样式 */
.news-swiper {
    padding: 20px 0;
    margin: 0 -10px; /* 添加负边距以抵消卡片间距 */
}

.news-slide {
    padding: 10px; /* 减小内边距 */
    height: auto;
}

/* 调整响应式布局 */
@media (max-width: 992px) {
    .news-card {
        max-width: 300px;
    }
    
    .news-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .news-card {
        max-width: 280px;
    }
    
    .news-image {
        height: 150px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .news-card {
        max-width: 100%;
    }
    
    .news-image {
        height: 180px;
    }
}

.news-pagination {
    position: relative;
    bottom: -20px;
    margin-top: 20px;
}

.news-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--border-color);
    opacity: 1;
}

.news-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* 轮播控制按钮样式 */
.news-button-next, 
.news-button-prev {
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 100 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.news-button-next:after, 
.news-button-prev:after {
    font-size: 20px !important;
    color: var(--primary-color) !important;
}

/* 动态详情模态框 */
.news-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.news-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.news-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.news-modal-body {
    padding: 40px;
}

.news-modal-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9比例 */
    position: relative;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.news-modal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 25px 0 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.news-modal-meta {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.news-modal-meta span {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.news-modal-meta i {
    margin-right: 6px;
    color: var(--primary-color);
}

.news-modal-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .news-modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .news-carousel {
        padding: 100px 0 60px;
    }
    
    .news-modal-body {
        padding: 30px;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
        margin: 20px 0 15px;
    }
}

@media (max-width: 576px) {
    .news-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .news-modal-body {
        padding: 20px;
    }
}

/* 新闻详情模态框多图切换样式 */
.news-thumbnails {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 18px 0 10px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
}
.news-thumb-wrapper {
    width: 84px;
    height: 47px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 4px;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: box-shadow 0.2s, border-color 0.2s;
    display: block;
}
.news-thumb:hover, .news-thumb.active {
    box-shadow: 0 4px 12px rgba(0,82,204,0.18);
    border-color: var(--primary-color);
}
#news-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    background: #f4f5f7;
    transition: opacity 0.3s;
}
@media (max-width: 576px) {
    .news-thumbnails {
        gap: 4px;
    }
    .news-thumb-wrapper {
        width: 56px;
        height: 32px;
    }
}

/* 研究项目部分样式 - 卡片并排展示 */
.research-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.research-card-preview {
    background-color: var(--bg-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 260px !important; /* Maintained fixed height */
    width: 100%; /* Card fills the slide */
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    margin: 0; 
}

.research-preview-cover {
    width: 100%;
    height: 200px; /* 修改: 图片容器高度，实现150px宽度下的3:4比例 */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f5f7;
    padding: 0;
    margin: 0;
}

.research-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保图片完全显示并保持其纵横比 */
    padding: 0;
    margin: 0;
    transition: transform 0.5s;
}

.research-preview-content {
    padding: 8px; /* 修改: 减小内边距 */
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-color);
    min-height: 100px; /* 修改: 减小最小高度 */
}

.research-preview-title {
    font-size: 0.8rem; /* 修改: 减小字体大小 */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px; /* 修改: 减小间距 */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 修改: 允许更多行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: auto;
}

.research-preview-meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; /* 修改: 减小间距 */
    font-size: 0.65rem; /* 修改: 减小元数据字体大小 */
    color: var(--light-text);
}

.research-preview-meta span {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.research-preview-meta i {
    margin-right: 4px;
    color: var(--primary-color);
    width: 12px;
    text-align: center;
}

.research-details-btn {
    font-size: 0.75rem; /* 减小按钮文字大小 */
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto;
    padding-top: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.research-details-btn.compact-research-button {
    display: inline-block !important;
    background-color: #0052cc !important;
    color: #ffffff !important;
    padding: 3px 6px !important; /* 修改: 减小内边距 */
    border-radius: 4px !important;
    margin-top: auto !important; /* 修改: 确保按钮在底部 */
    cursor: pointer !important;
    z-index: 9999 !important;
    font-size: 0.7rem !important; /* 修改: 减小字体大小 */
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0, 82, 204, 0.2) !important;
}

.research-details-btn.compact-research-button i {
    font-size: 0.65rem !important; /* 修改: 减小图标大小 */
    margin-left: 3px !important;
}

/* 研究详情模态框 */
.research-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.research-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

.research-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.research-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.research-modal-body {
    padding: 40px;
}

.research-modal-image {
    width: 100%;
    height: 400px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
}

.research-modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.research-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--light-text);
}

.research-modal-meta span {
    display: flex;
    align-items: center;
}

.research-modal-meta i {
    margin-right: 8px;
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.research-modal-section {
    margin-bottom: 25px;
}

.research-modal-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.research-modal-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 15px;
}

.research-modal-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.research-modal-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.research-modal-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.research-modal-link i {
    margin-right: 8px;
}

@media (max-width: 992px) {
    .research-modal-content {
        width: 90%;
    }
    
    .research-modal-meta {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .research-cards {
        grid-template-columns: repeat(auto-fill, 280px);
    }
    
    .research-modal-body {
        padding: 30px;
    }
    
    .research-modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .research-cards {
        grid-template-columns: 280px;
    }
    
    .research-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .research-preview-title {
        font-size: 1rem;
    }
}

/* 调整section之间的间距 */
section {
    scroll-margin-top: 70px; 
    padding: 20px 0 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

section:last-of-type {
    border-bottom: none;
}

/* 为每个section添加上下内边距 */
.news-carousel,
.video-section,
.recommendations,
.research,
.competition,
.practice,
.help,
.skills,
.contact {
    padding-top: 15px;
    padding-bottom: 40px;
}

/* 首页部分单独调整，避免双重内边距 */
.hero {
    padding-top: 120px;
    scroll-margin-top: 0;
}

/* 研究项目轮播样式 */
.research-swiper {
    margin-top: 15px;
    overflow: visible;
    padding: 0 10px;
}

.research-slide {
    /* transition: transform 0.4s; // This definition is simpler, keep this one active if possible */
    height: auto !important; /* Ensure Swiper controls height based on content or fixed card height */
    display: flex;
    justify-content: center; /* Center card if card is narrower than slide */
    align-items: stretch; /* Make card take full slide auto height if card height is auto */
    padding: 0; /* Remove slide padding, rely on spaceBetween */
}

/* 轮播控制样式 */
.research-pagination {
    position: relative;
    bottom: -20px;
    margin-top: 20px;
}

.research-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--border-color);
    opacity: 1;
}

.research-pagination .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

/* 轮播控制按钮样式 */
.research-button-next, 
.research-button-prev {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    opacity: 1;
    transition: all 0.3s;
    margin-top: -40px;
}

.research-button-next:hover, 
.research-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.research-button-next:after, 
.research-button-prev:after {
    font-size: 16px;
}

/* 研究类型标识 */
.research-type {
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    padding: 6px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.25);
    display: inline-block;
    line-height: 1;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.research-type.journal {
    background: #0052cc; /* 期刊论文 - 蓝色 */
}

.research-type.conference {
    background: #00875a; /* 会议论文 - 绿色 */
}

.research-type.project {
    background: #ff5630; /* 科研课题 - 红色 */
}

.research-card-preview:hover .research-type {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* 确保轮播容器不产生水平滚动 */
.swiper-container {
    width: 100%;
    overflow: hidden;
}

/* 增强轮播导航按钮的可点击区域 */
.swiper-button-next, 
.swiper-button-prev,
.news-button-next,
.news-button-prev,
.research-button-next, 
.research-button-prev {
    z-index: 9999 !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 50% !important;
    margin-top: -24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

.news-button-next, .research-button-next {
    right: 10px !important;
}

.news-button-prev, .research-button-prev {
    left: 10px !important;
}

/* 按钮图标样式 */
.swiper-button-next:after,
.swiper-button-prev:after,
.news-button-next:after,
.news-button-prev:after,
.research-button-next:after,
.research-button-prev:after {
    font-size: 22px !important;
    font-weight: bold !important;
    color: #0052cc !important;
}

/* 按钮悬停效果 */
.swiper-button-next:hover, 
.swiper-button-prev:hover,
.news-button-next:hover, 
.news-button-prev:hover,
.research-button-next:hover, 
.research-button-prev:hover {
    background: #0052cc !important;
    transform: scale(1.1) !important;
}

.swiper-button-next:hover:after, 
.swiper-button-prev:hover:after,
.news-button-next:hover:after, 
.news-button-prev:hover:after,
.research-button-next:hover:after, 
.research-button-prev:hover:after {
    color: #ffffff !important;
}

/* 轮播卡片中的详情按钮样式增强 */
.news-read-more,
.research-details-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0052cc;
    color: #ffffff !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 82, 204, 0.3);
}

.news-read-more:hover,
.research-details-btn:hover {
    background-color: #0065ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 82, 204, 0.4);
}

/* 修复轮播按钮图标 */
.swiper-button-next:after,
.swiper-button-prev:after,
.news-button-next:after,
.news-button-prev:after,
.research-button-next:after,
.research-button-prev:after {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
}

/* 修复卡片和图片显示 */
.news-card, .swiper-slide.news-slide {
    height: 450px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-image {
    height: 220px !important;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.research-slide {
    /* This is another definition, ensure it matches or is benign */
    transition: transform 0.4s;
    height: auto !important; /* Ensure Swiper controls height */
    display: flex;
    /* flex-direction: column; // Removed to match the one above if it's for centering */
    /* overflow: hidden; // Overflow on card itself is usually enough */
    justify-content: center; 
    align-items: stretch;
    padding: 0;
}
    
    .research-preview-cover {
    height: 200px !important;
    overflow: hidden;
}

.research-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 修复模态框中的图片显示 */
.news-modal-image img,
.research-modal-image img {
    width: 100%;
        height: auto;
    object-fit: contain;
    max-height: 400px;
}

/* 添加滚动条美化样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #bbbbbb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* 为卡片增加更明显的阴影和边框 */
.research-card-preview, 
.news-card, 
.competition-card, 
.practice-card, 
.help-card, 
.skill-chart,
.social-card,
.recommendation-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.research-card-preview:hover, 
.news-card:hover, 
.competition-card:hover, 
.practice-card:hover, 
.help-card:hover, 
.skill-chart:hover,
.social-card:hover,
.recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 恢复必要的样式定义 */
/* 移除旧样式 */

/* 更简洁高级的悬停效果 */
.competition-card:hover .competition-title {
    color: var(--primary-color);
}

/* 更新的响应式布局 */
@media (max-width: 1280px) {
    .competition-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .competition-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .competition-cover {
        height: 160px;
    }
    
    .competition-content {
        padding: 12px;
    }
    
    .competition-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .competition-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .competition-cover {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .competition-cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .competition-card {
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .competition-cover {
        height: 180px;
    }
    
    .competition-content {
        padding: 12px;
    }
    
    .competition-title {
        font-size: 1rem;
    }
    
    .competition-info {
        margin-top: 6px;
    }
    
    .competition-level, 
    .competition-award {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* 竞赛模态框样式 */
.competition-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
        overflow-y: auto;
    }

.competition-modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s;
}

.competition-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.competition-modal-close:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.competition-modal-body {
    padding: 15px 0;
}

.competition-modal-image {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.competition-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.competition-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.competition-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.competition-modal-meta span {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--light-text);
}

.competition-modal-meta .competition-level,
.competition-modal-meta .competition-award {
    font-size: 0.8rem;
    padding: 4px 12px;
}

.competition-modal-description {
    line-height: 1.6;
}

.competition-modal-description p {
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .competition-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .competition-modal-image {
        height: 200px;
    }
    
    .competition-modal-title {
        font-size: 1.3rem;
    }
    
    .competition-modal-body {
        padding: 10px 0;
    }
}

/* 社会调研部分 - 内容丰富的布局 */
.research-section {
    margin-bottom: 20px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.research-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 12px 15px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    background-color: #fafbfc;
}

.research-content-wrapper {
    display: flex;
    flex-direction: row;
}

.research-details {
    flex: 1.2;
    padding: 18px;
    border-right: 1px solid var(--border-color);
}

.research-time {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--light-text);
}

.research-time i {
    margin-right: 6px;
    color: var(--primary-color);
}

.research-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-text);
    margin-bottom: 15px;
}

.research-highlights {
    margin-top: 18px;
}

.research-highlights h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-color);
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.highlight-item i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* 图片部分 - 2x2网格 */
.research-gallery {
    flex: 0.8;
    padding: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, auto);
    gap: 4px;
    align-content: start;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    aspect-ratio: 4/3;
    height: auto;
    background-color: var(--light-bg);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-more {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 3;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .research-details {
        padding: 15px;
    }
    
    .research-description {
        font-size: 0.95rem;
    }
    
    .gallery-item {
        height: 85px;
    }
}

@media (max-width: 768px) {
    .research-content-wrapper {
        flex-direction: column;
    }
    
    .research-details {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .gallery-item {
        height: 90px;
    }
    
    .research-gallery {
        padding: 6px;
    }
}

@media (max-width: 576px) {
    .research-section-title {
        font-size: 1rem;
        padding: 10px 12px;
    }
    
    .research-details {
        padding: 12px;
    }
    
    .research-gallery {
        padding: 5px;
        grid-template-columns: 1fr 1fr;
        gap: 3px;
    }
    
    .gallery-item {
        height: 70px;
    }
    
    .research-description {
        font-size: 0.9rem;
    }
    
    .highlight-item {
        font-size: 0.85rem;
    }
}

/* 单行学生工作卡片布局 */
.practice-cards-grid.single-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 15px;
}

.practice-cards-grid.single-row .practice-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
    margin-bottom: 0;
}

.practice-cards-grid.single-row .practice-card .practice-content h4 {
    font-size: 0.9em;
    margin-bottom: 8px;
}

.practice-cards-grid.single-row .practice-card .practice-meta {
    display: flex;
        flex-direction: column;
    font-size: 0.85em;
}

.practice-cards-grid.single-row .practice-card .practice-position,
.practice-cards-grid.single-row .practice-card .practice-date {
    display: inline-block;
    width: auto;
    max-width: fit-content;
    box-sizing: content-box;
    white-space: nowrap;
    padding-left: 6px;
    padding-right: 6px;
}

.practice-cards-grid.single-row .practice-card .practice-position:before,
.practice-cards-grid.single-row .practice-card .practice-date:before {
    margin-right: 4px;
}

.practice-cards-grid.single-row .practice-card .practice-description {
    font-size: 0.85em;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .practice-cards-grid.single-row {
        flex-wrap: wrap;
    }
    
    .practice-cards-grid.single-row .practice-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* 志愿服务时间线样式 */
.volunteer-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
    overflow-x: auto;
    max-width: 100%;
}

.volunteer-timeline::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.volunteer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    margin: 0 10px;
    z-index: 2;
    min-width: 100px;
}

.volunteer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    position: relative;
    background-color: #f4f5f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.volunteer-image::after {
    content: '';
    position: absolute;
    bottom: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.volunteer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 5px;
    text-align: center;
}

.volunteer-hours {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(0, 82, 204, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .volunteer-timeline {
        justify-content: flex-start;
        padding-bottom: 20px;
    }
    
    .volunteer-image {
        width: 70px;
        height: 70px;
    }
    
    .volunteer-name {
        font-size: 0.8rem;
    }
    
    .volunteer-hours {
        font-size: 0.75rem;
    }
}

/* 志愿者证书样式 */
.volunteer-certificate {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    position: relative;
}

.volunteer-certificate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #f5a623; /* 金色边框，与证书边框颜色匹配 */
}

.certificate-image {
    flex: 0 0 180px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
}

.certificate-image img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certificate-image:hover img {
    transform: scale(1.05);
}

.certificate-info {
    flex: 1;
        padding: 20px;
    display: flex;
    flex-direction: column;
}

.certificate-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.certificate-star {
    color: #f5a623; /* 金色星星 */
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.certificate-meta-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    align-items: center;
}

.certificate-badge {
    display: flex;
    align-items: center;
    padding: 7px 18px 7px 14px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,82,204,0.08);
    background: #eaf2ff;
    color: #174ea6;
    border: none;
    transition: box-shadow 0.2s;
    min-width: 160px;
}

.certificate-badge:last-child {
    background: #fff7e6;
    color: #b26a00;
}

.certificate-badge i {
    margin-right: 9px;
    font-size: 1.15em;
    color: #0052cc;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    margin-left: -4px;
    margin-right: 10px;
    box-shadow: 0 1px 4px rgba(0,82,204,0.10);
}

.certificate-badge:last-child i {
    color: #f5a623;
    background: #fff;
}

.certificate-badge strong {
    font-weight: 700;
    margin: 0 2px;
}

.certificate-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 15px;
    flex: 1;
}

.certificate-verify {
    margin-top: auto;
}

.certificate-qr {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: rgba(245, 166, 35, 0.1);
    color: #f5a623;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.certificate-qr:hover {
    background-color: rgba(245, 166, 35, 0.2);
}

.certificate-qr i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .volunteer-certificate {
        flex-direction: column;
    }
    
    .certificate-image {
        flex: 0 0 auto;
        width: 100%;
        max-height: 200px;
    }
    
    .certificate-image img {
        max-height: 170px;
    }
    
    .certificate-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* 志愿服务时间线样式 */
.volunteer-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
    overflow-x: auto;
    max-width: 100%;
}

.volunteer-timeline::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.volunteer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    position: relative;
    margin: 0 10px;
    z-index: 2;
    min-width: 100px;
}

.volunteer-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
    position: relative;
    background-color: #f4f5f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.volunteer-image::after {
    content: '';
    position: absolute;
    bottom: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.volunteer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 5px;
    text-align: center;
}

.volunteer-hours {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(0, 82, 204, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .volunteer-timeline {
        justify-content: flex-start;
        padding-bottom: 20px;
    }
    
    .volunteer-image {
        width: 70px;
        height: 70px;
    }
    
    .volunteer-name {
        font-size: 0.8rem;
    }
    
    .volunteer-hours {
        font-size: 0.75rem;
    }
}

/* 证书模态框样式 */
.certificate-modal-content {
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.certificate-modal-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.certificate-img-preview {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-img-preview:hover {
    transform: scale(1.03);
}

#certificateModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    justify-content: center;
    align-items: center;
}

.help-data-bar {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 48px;
    margin: 12px auto 10px auto;
    padding: 10px 0 4px 0;
    background: none;
}

.help-data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.help-data-num {
    font-size: 2.1rem;
    font-weight: 700;
    color: #c62828;
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-family: 'Noto Sans SC', 'Segoe UI', Arial, sans-serif;
}

.help-data-label {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .help-data-bar {
        gap: 18px;
        padding: 10px 0 4px 0;
    }
    .help-data-num {
        font-size: 1.2rem;
    }
    .help-data-label {
        font-size: 0.85rem;
    }
}

/* 简化后的合作院校展示条 */
.school-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 18px auto 24px auto;
    padding: 10px 0;
}

.school-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.school-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 6px;
}

.school-item span {
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 82, 204, 0.15);
    padding: 3px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 3px;
    backdrop-filter: blur(1px);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 82, 204, 0.08);
    border: 1px solid rgba(0, 82, 204, 0.1);
    color: var(--primary-color);
}

/* 为哈工大图标添加特殊样式 */
.school-item img[alt="哈工大"] {
    width: 60px;
    height: 60px;
    margin-bottom: 0; /* 移除底部间距，保持名称对齐 */
}

@media (max-width: 768px) {
    .school-bar {
        gap: 15px;
    }
    .school-item {
        width: 70px;
    }
    .school-item img {
        width: 40px;
        height: 40px;
    }
    /* 移动端下哈工大图标尺寸 */
    .school-item img[alt="哈工大"] {
        width: 48px;
        height: 48px;
        margin-bottom: 0; /* 移除底部间距，保持名称对齐 */
    }
    .school-item span {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
}

/* 帮扶案例卡片样式 */
.help-cases {
    margin-top: 30px;
}

.help-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.help-case-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.help-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.help-case-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    position: relative;
    overflow: hidden;
    background-color: #f4f5f7;
}

.help-case-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.help-case-card:hover .help-case-image img {
    transform: scale(1.05);
}

.help-case-content {
    padding: 18px 18px 14px 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
}

.help-case-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.help-case-school {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    letter-spacing: 0.2px;
}

.help-case-school i {
    margin-right: 6px;
    font-size: 1em;
}

.help-case-award {
    font-size: 0.97rem;
    color: var(--light-text);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    font-weight: 400;
}

.help-case-award i {
    margin-right: 7px;
    color: #f5a623;
    font-size: 1em;
    margin-top: 2px;
}

.help-case-date {
    font-size: 0.92rem;
    color: var(--primary-color);
    background: rgba(0,82,204,0.10);
    display: inline-flex;
    align-items: center;
    padding: 3px 14px 3px 10px;
    border-radius: 14px;
    font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0,82,204,0.06);
    border: 1px solid rgba(0,82,204,0.13);
}

.help-case-date i {
    margin-right: 7px;
    color: var(--primary-color);
    font-size: 1em;
}

@media (max-width: 992px) {
    .help-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .help-cases-grid {
        grid-template-columns: 1fr;
    }
}

.help-case-level {
    display: inline-block !important;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 2px 14px 3px 14px;
    margin-bottom: 8px;
    margin-left: 0;
    letter-spacing: 1px;
    box-shadow: 0 1px 3px rgba(0,82,204,0.08);
    border: 1px solid rgba(0,82,204,0.13);
    width: auto !important;
    min-width: unset !important;
    max-width: 100% !important;
    text-align: center;
}

.help-case-meta-row {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    align-items: center !important;
}

.help-case-level,
.help-case-date {
    display: inline-block !important;
    height: 30px !important;
    line-height: 30px !important;
    border-radius: 15px !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    border: none !important;
    margin: 0 !important;
    vertical-align: middle !important;
    box-shadow: none !important;
}

.help-case-level {
    background: #0052cc !important;
    color: white !important;
}

.help-case-date {
    background: #f0f5ff !important;
    color: #0052cc !important;
}

/* 个人能力 - 圆圈布局 */
.skills-circles {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.skill-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    text-align: center;
}

.skill-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 6px 16px rgba(0, 82, 204, 0.1);
    border: 1px solid rgba(0, 82, 204, 0.1);
}

.skill-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.skill-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.skill-desc {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.5;
}

.skill-circle-item:hover .skill-circle {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 82, 204, 0.15);
    background: #e6f0ff;
}

@media (max-width: 992px) {
    .skills-circles {
        gap: 30px;
    }
    
    .skill-circle-item {
        width: 190px;
    }
    
    .skill-circle {
        width: 120px;
        height: 120px;
    }
    
    .skill-circle img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .skills-circles {
        gap: 20px;
    }
    
    .skill-circle-item {
        width: 160px;
    }
    
    .skill-circle {
        width: 100px;
        height: 100px;
    }
    
    .skill-circle img {
        width: 50px;
        height: 50px;
    }
    
    .skill-title {
        font-size: 1rem;
    }
    
    .skill-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .skills-circles {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .skill-circle-item {
        width: 100%;
        max-width: 280px;
    }
}

/* 统一新闻轮播卡片和图片尺寸，保证图片完整显示且卡片高度一致 */
.news-card, .swiper-slide.news-slide {
    height: 350px !important;
    min-width: 0 !important;
    box-sizing: border-box;
}
.news-image {
    height: 200px !important;
    width: 100% !important;
    overflow: hidden;
    background: #f4f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.swiper-container,
.swiper-wrapper {
    width: 100%;
    overflow: visible !important;
}

/* 轮播卡片样式 - 关键修复 */
.news-card {
    max-width: 100%; /* 移除固定宽度限制 */
    margin: 0 !important; /* 清除自动居中 */
    height: 350px !important;
    box-sizing: border-box;
}

/* 研究项目卡片样式 */
.research-card-preview {
    max-width: 100%; /* 移除固定宽度限制 */
    margin: 0 !important; /* 清除自动居中 */
    width: 100%; /* 占满整个slide容器 */
    height: auto !important; /* Forcing auto height for this instance */
    box-sizing: border-box;
}

/* 轮播容器修复 */
.news-swiper, 
.research-swiper {
    width: 100%;
    overflow: hidden !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}

.news-slide, 
.research-slide {
    height: auto;
    width: auto !important; /* 让宽度自动计算 */
}

/* 强制设置近期动态卡片宽度 */
@media (min-width: 1200px) {
    .news-slide {
        width: 33.333% !important;
        padding: 0 10px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .news-slide {
        width: 50% !important;
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .news-slide {
        width: 100% !important;
        padding: 0 10px;
    }
}

/* 强制设置研究卡片宽度 */
@media (min-width: 1200px) {
    .research-slide {
        width: 25% !important;
        padding: 0 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .research-slide {
        width: 33.333% !important;
        padding: 0 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .research-slide {
        width: 50% !important;
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .research-slide {
        width: 100% !important;
        padding: 0 10px;
    }
}

/* 研究项目轮播样式 */
.research-swiper {
    margin-top: 15px;
    overflow: visible;
    padding: 0 10px;
}

.research-slide {
    transition: transform 0.4s;
    height: auto !important; /* Forcing auto height */
    display: flex;
    justify-content: center;
}

/* 强制设置研究卡片宽度 */
@media (min-width: 1200px) {
    .research-slide {
        width: calc(100% / 6 - 10px) !important; /* 6个卡片，减去间距 */
        padding: 0 5px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .research-slide {
        width: calc(100% / 5 - 10px) !important; /* 5个卡片 */
        padding: 0 5px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .research-slide {
        width: calc(100% / 4 - 8px) !important; /* 4个卡片 */
        padding: 0 4px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .research-slide {
        width: calc(100% / 3 - 6px) !important; /* 3个卡片 */
        padding: 0 3px;
    }
}

@media (max-width: 479px) {
    .research-slide {
        width: 100% !important; /* 移动端仍然是1个卡片 */
        padding: 0 5px;
    }
    
    .research-card-preview {
        width: 150px; /* 在最小屏幕上保持细长卡片宽度 */
        height: 320px; /* 保持卡片高度 */
    }
}

/* 研究项目网格布局样式 */
.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.research-card-preview {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 430px;
}

.research-card-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.research-preview-cover {
    height: 200px;
    overflow: hidden;
}

.research-preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.research-card-preview:hover .research-preview-cover img {
    transform: scale(1.05);
}

.research-preview-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.research-preview-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 10px 0;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.research-card-preview:hover .research-preview-title {
    color: var(--primary-color);
}

.research-preview-meta {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.research-preview-meta span {
    font-size: 14px;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.research-preview-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.research-details-btn.compact-research-button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.research-details-btn.compact-research-button:hover {
    background: var(--primary-color);
    color: #fff;
}

.research-details-btn.compact-research-button i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.research-details-btn.compact-research-button:hover i {
    transform: translateX(3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .research-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .research-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .research-card-preview {
        min-height: 400px;
    }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-image:hover img {
    transform: scale(1.03);
}

.profile-info {
    flex: 1;
}
 