body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.register-btn {
    padding: 8px 20px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.register-btn:hover {
    background: #b71c1c;
}

/* Hero Section */
.hero-content {
    flex: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-image {
        margin: 0;
        display: flex;
        justify-content: center;
    }
}

.hero-text h1 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.hero-circles {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.circle {
    border-radius: 50%;
    width: 70px;
    height: 70px;
    background: #d32f2f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle p {
    font-size: 25px;
    color: #fff;
    margin: 0;
    text-align: center;
}

@media (max-width: 992px) {
    .hero-circles {
        gap: 20px;
    }

    .circle {
        width: 60px;
        height: 60px;
    }

    .circle p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero-circles {
        justify-content: center;
        gap: 30px;
    }

    .circle {
        width: 50px;
        height: 50px;
    }

    .circle p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .hero-circles {
        gap: 10px;
    }

    .circle {
        width: 40px;
        height: 40px;
    }

    .circle p {
        font-size: 12px;
    }
}

.subtitle {
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.hero-description p {
    margin-bottom: 20px;
}

/* Mission Section */

.mission {
    background: #f8f9fa;

}

.mission-container {
    background: #f8f9fa;
    gap: 40px;
    display: flex;
    flex-direction: row;
    /* 添加换行属性，使元素在空间不足时自动换行 */
    flex-wrap: wrap;
    /* 确保子元素可以正常收缩 */
    align-items: stretch;
}

.mission-items {
    display: flex;
    flex-direction: column;
    background: white;
    /* 使用 flex-basis 而不是 flex 来更好地控制基础宽度 */
    flex: 2;
    padding: 20px;
    /* 添加以下属性确保子元素高度一致 */
    align-items: stretch;
}

.supporting-unit {
    flex: 1 1 0;
    min-width: 250px;
    /* 设置最小宽度以防止过度收缩 */
    flex-direction: column;
    display: flex;
    justify-content: center;
    gap: 10px;
    background: white;
    padding: 20px;
}

.unit-content {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 在中等屏幕上调整布局 */
@media (max-width: 992px) {

    .mission-items,
    .supporting-unit {
        min-width: 100%;
    }
}

/* 在小屏幕上调整布局 */
@media (max-width: 768px) {
    .mission-container {
        flex-direction: column;
        gap: 20px;
    }

    .mission-items {
        flex: 1;
        width: 100%;
        padding: 0;
    }

    .supporting-unit {
        flex: 1;
        width: 100%;
        padding: 0;
    }
    .heritage-glory{
        padding: 0;
    }
}

.mission-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 20px;
    border-bottom: #666 1px dashed;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 添加以下属性确保元素高度一致 */
    align-items: stretch;
    text-decoration: none;
}

.mission-item:last-child {
    border: none;
}

/* 
.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
} */

.mission-number {
    margin: auto 0;
    width: 40px;
    height: 40px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.mission-content {
    flex-direction: row;
    display: flex;
    gap: 20px;
    /* 允许子元素换行时能够正常显示 */
    min-width: 0;
    /* 添加以下属性确保高度一致 */
    align-items: center;
}

.mission-content h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    /* 允许文本换行，无视父元素限制 */
    white-space: nowrap;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    /* 添加最小宽度以确保文本有足够的空间 */
    min-width: 0;
}

.mission-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    /* 允许文本换行，无视父元素限制 */
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    /* 添加最小宽度以确保文本有足够的空间 */
    min-width: 0;
    font-size: 22px;
}

.red-title {
    height: 50px;
    font-size: 25px;
    color: #333;
    position: relative;
}

.red-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d32f2f;
}

.unit-logo {
    border: #aaa solid 2px;
    overflow: hidden;
    max-width: 400px;
}

.unit-logo img {
    width: 100%;
    object-fit: cover;
}


/* Experts Section */
.experts {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.experts h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 20px;
}

.section-subtitle {
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
    margin-bottom: 50px;
}

.experts-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
    /* 固定最小高度，防止内容变化时高度改变 */
}

.experts-container {
    display: flex;
    gap: 30px;
    align-items: center;
    transition: transform 0.5s ease;
    /* 添加平滑过渡效果 */
    will-change: transform;
    /* 提示浏览器该属性将要改变，优化性能 */
    /* 增加容器的宽度和内边距，确保卡片不会被裁剪 */
    padding: 30px 0;
    width: 100%;
}

.expert-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    min-width: 250px;
    flex-shrink: 0;
    text-decoration: none;
    /* 防止卡片在容器中被压缩 */
    /* 确保卡片有足够的空间显示 */
    margin: 0 10px;
    color: #333;

}

@media (min-width: 769px) {
    .expert-card.featured {
        background: #d32f2f;
        color: white;
        transform: scale(1.1);
        border-radius: 15px;
        /* 调整缩放中心点，使放大效果更居中 */
        transform-origin: center;
        z-index: 2;
        /* 增加一些阴影，让红色卡片更加突出 */
        box-shadow: 0 8px 25px rgba(211, 47, 47, 0.3);
    }
}

.expert-card:hover {
    transform: translateY(-10px);
}

.expert-img {
    margin: auto;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.expert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.expert-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: auto;
    margin-bottom: 10px;
}

.expert-card p {
    font-size: 14px;
    line-height: 1.6;
    margin: auto;
    opacity: 0.8;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    /* 固定最小高度，防止内容变化时影响布局 */
}

.expert-btn {
    padding: 8px 20px;
    border: 2px solid #d32f2f;
    background: transparent;
    color: #d32f2f;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* 添加相对定位 */
    z-index: 5;
    /* 确保按钮在卡片上方 */
    text-decoration: none;
}

.expert-card.featured .expert-btn {
    border-color: white;
    color: white;
    background: transparent;
}

.expert-card.featured .expert-btn:hover {
    background: white;
    color: #d32f2f;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #999;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 40px;
    font-weight: 500px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    /* 添加以下属性确保按钮位置固定 */
    position: absolute !important;
    transform: translateY(-50%) !important;
}

.carousel-btn.prev {
    left: 25px;
}

.carousel-btn.next {
    right: 25px;
}

/* Heritage Glory Section */
.heritage-glory {
    background: #f8f9fa;
    text-align: center;
}

.heritage-glory h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.glory-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.glory-card {
    display: flex;
    flex-direction: column;
    height: 400px;
    /* 设置卡片固定高度 */
    padding: 20px;
    box-sizing: border-box;
    background: white;
    padding: 40px 30px;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.glory-card img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.glory-card h3 {
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 15px 0;
    height: 60px;
    /* 固定标题区域高度 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.glory-card p {
    flex: 1;
    /* 占据剩余空间 */
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 20px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* 限制5行文本 */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    word-break: break-word;
}

.glory-card .btn-primary {
    align-self: center;
    width: 120px;
    flex-shrink: 0;
}

.carousel-btn.next {
    right: 25px;
}

/* 添加圆圈悬停效果样式 */
.circle {
    position: relative;
    cursor: pointer;
}

.circle-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 270px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    text-align: center;
}

.circle-dropdown:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.circle:hover .circle-dropdown {
    opacity: 1;
    visibility: visible;
}

.circle-dropdown p {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mission-item {
        gap: 10px
    }

    .mission-content p {
        font-size: 18px;
    }

    .expert-card {
        width: 70%;
        min-width: unset;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .circle-dropdown {
        width: 240px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .circle-dropdown p {
        font-size: 12px;
    }

}

@media (max-width: 576px) {
    .hero-circles {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .circle {
        margin-bottom: 30px;
    }
    
    .circle-dropdown {
        width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .circle-dropdown p {
        font-size: 11px;
    }
}

@media (max-width: 400px) {
    .circle-dropdown {
        width: 180px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .circle-dropdown p {
        font-size: 10px;
    }
}