/* 国际合作页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    overflow-x: hidden;
}

:root {
    --module-card-width: 600px;
    --module-gap: 40px;
    --card-radius: 12px;
    --overseas-content-min-h: 260px;
    --univ-cols: 6;
}

/* 主容器 */
.cooperation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: 100vh;
}

/* 标题区域 */
.cooperation-header {
    text-align: center;
    margin-bottom: 80px;
}

.cooperation-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.cooperation-title a {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.15s ease, color 0.2s ease;
    cursor: pointer;
    font-size: 30px;
}

.cooperation-title a:hover {
    text-decoration: none;
    color: #3b82f6;
    transform: translateY(-1px);
}

.cooperation-title a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background: rgba(59, 130, 246, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.cooperation-title a:active {
    transform: scale(0.97);
}

.cooperation-title a:active::after {
    transform: translate(-50%, -50%) scale(25);
    opacity: 0;
}

.cooperation-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 400;
}

/* 卡片模块容器 */
.card-module {
    display: flex;
    gap: var(--module-gap);
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
    position: relative;
    isolation: isolate;
    z-index: 0;
}

/* 左侧卡片区域 */
.card-left {
    flex: 1;
    max-width: var(--module-card-width);
    position: relative;
    z-index: 1;
}

/* 右侧图片区域 */
.card-right {
    flex: 1;
    max-width: var(--module-card-width);
    position: relative;
    z-index: 1;
}

/* 卡片容器 */
.cards-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--card-radius);
    z-index: 1;
    will-change: transform;
}

/* 单个卡片 */
.cooperation-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: var(--card-radius);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease;
    cursor: grab;
    z-index: 1;
    will-change: transform, opacity;
    overflow: hidden;
}

.cooperation-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.cooperation-card.prev {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 0;
}

.cooperation-card:active {
    cursor: grabbing;
}

/* 卡片头部标签 */
.card-header-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.header-english {
    font-weight: 400;
}

.header-chinese {
    font-weight: 500;
}

/* 卡片标题 */
.card-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* 卡片描述 */
.card-description {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.9;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    max-height: calc(1.6em * 5);
}

/* 了解更多链接 */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.card-link:hover {
    gap: 12px;
    opacity: 0.8;
}

/* 日期信息 */
.card-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0;
}

.card-date::before {
    content: "📅";
    font-size: 1rem;
}

/* 卡片底部并排布局 */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

 

/* 查看更多按钮 */
.view-more-btn {
    position: absolute;
    top: -20px;
    right: 0;
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-more-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* 右侧图片卡片 */
.image-cards-wrapper {
    position: relative;
    height: 400px;
    border-radius: var(--card-radius);
    overflow: hidden;
    z-index: 1;
}

.image-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.4s ease;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.image-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
    pointer-events: auto;
}

.image-card.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
    z-index: 0;
}

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

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

/* 图片遮罩层 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-card:hover .image-overlay {
    opacity: 1;
}


/* 触摸滑动支持 */
.touch-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.card-left:hover .touch-indicator {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .card-module {
        flex-direction: column;
        gap: 30px;
    }
    
    .card-left,
    .card-right {
        max-width: 100%;
    }
    
    .cooperation-title {
        font-size: 2rem;
    }
    
    .cards-wrapper {
        height: 350px;
    }
    .image-cards-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .cooperation-container {
        padding: 40px 16px;
    }
    
    .cooperation-title {
        font-size: 1.8rem;
    }
    
    .cooperation-subtitle {
        font-size: 1rem;
    }
    
    .cards-wrapper {
        height: 300px;
    }
    
    .cooperation-card {
        padding: 24px;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .image-cards-wrapper {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .cards-wrapper {
        height: 320px;
    }
    .cooperation-card {
        padding: 20px;
    }
    /* 移动端强制可见的静态布局，防止动画导致内容不可见 */
    .cooperation-card.active {
        position: relative;
        opacity: 1 !important;
        transform: none !important;
    }
    .cooperation-card:not(.active) {
        display: none;
    }
    .card-header-tag {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .header-english {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    .header-chinese {
        font-size: 1rem;
        position: relative;
    }
    .header-chinese::after {
        content: "";
        display: block;
        width: 64px;
        height: 2px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 2px;
        margin-top: 4px;
    }
    .card-title {
        font-size: 1.2rem;
        line-height: 1.5;
    }
    .card-description {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
 
    .image-cards-wrapper {
        height: 220px;
        margin-top: 8px;
    }
    .image-card.active {
        position: relative;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* 院校库模块样式 */
.university-database {
    margin-top: 80px;
    padding: 60px 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.database-header {
    text-align: center;
    margin-bottom: 50px;
}

.database-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
}

.title-english {
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 2px;
}

.title-english-bold {
    color: #374151;
    font-weight: 700;
    letter-spacing: 2px;
}

.title-chinese {
    color: #3b82f6;
    font-weight: 700;
    font-size: 3rem;
    margin-left: 8px;
}

.university-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.university-carousel {
    overflow: hidden;
    border-radius: 12px;
}
.university-list {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
.university-item {
flex: 0 0 calc((100% - (var(--univ-cols) - 1) * 30px)/var(--univ-cols));
}



.university-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.university-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.university-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.university-name {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.4;
    max-width: 120px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.carousel-btn:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .university-carousel-container {
        padding: 0 60px;
    }
    
    :root { 
        --univ-cols: 4; 
        
    }
}

@media (max-width: 768px) {
    .university-database {
        margin-top: 60px;
        padding: 40px 0;
    }
    
    .database-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .title-chinese {
        font-size: 1.8rem;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .university-carousel-container {
        padding: 0 50px;
    }
    
    :root { 
        --univ-cols: 3; 
        
    }
    
    .university-item {
        padding: 15px 10px;
    }
    
    .university-logo {
        width: 60px;
        height: 60px;
    }
    
    .university-name {
        font-size: 0.85rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .university-carousel-container {
        padding: 0 40px;
    }
    
    :root { 
        --univ-cols: 2; 
        
    }
    
    .university-item {
        padding: 12px 8px;
    }
    
    .university-logo {
        width: 50px;
        height: 50px;
    }
    
    .university-name {
        font-size: 0.8rem;
    }

    .image-card:not(.active) {
        display: none;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-module {
    animation: fadeInUp 0.8s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.overseas-section {
    margin-top: 80px;
}

.overseas-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.overseas-en {
    color: #64748b;
    font-weight: 600;
    letter-spacing: 2px;
}

.overseas-divider {
    color: #cbd5e1;
}

.overseas-title {
    font-size: 3rem;
    color: #1e293b;
    font-weight: 700;
}

.overseas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: calc(var(--module-card-width) * 2 + var(--module-gap));
    margin: 0 auto;
}

.overseas-card {
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, box-shadow;
}

.overseas-image {
    width: 100%;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

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

.overseas-content {
    width: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: var(--overseas-content-min-h);
}

.overseas-card-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.overseas-card-desc {
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.overseas-link {
    align-self: flex-start;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
        font-size: 16px;
}

.overseas-link:hover {
    gap: 10px;
}

.overseas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

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

.overseas-card:hover .overseas-link {
    color: #2563eb;
}

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

@media (max-width: 768px) {
    .overseas-grid {
        grid-template-columns: 1fr;
    }
    .overseas-card {
        flex-direction: column;
    }
    .overseas-image, .overseas-content {
        width: 100%;
    }
    .overseas-image {
        min-height: 180px;
    }
    .overseas-content {
        min-height: 220px;
        padding: 26px;
    }
}
.cooperation-title a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.cooperation-title a:hover::before {
    width: 40%;
}

.student-section {
    margin-top: 80px;
}

.student-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    max-width: calc(var(--module-card-width) * 2 + var(--module-gap));
    margin-left: auto;
    margin-right: auto;
}

.student-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.student-en {
    color: #64748b;
    font-weight: 600;
    letter-spacing: 2px;
}

.student-title {
    font-size: 3rem;
    color: #1e293b;
    font-weight: 700;
}

.student-feature-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 9999px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: absolute;
    right: 0;
}

.student-feature-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: calc(var(--module-card-width) * 2 + var(--module-gap));
    margin: 0 auto;
}

.student-card {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.student-content {
    padding: 20px 24px 12px;
}

.student-card-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    
}

.student-card-desc {
    color: #64748b;
    font-size: 1.6rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.student-image {
    width: 100%;
    height: 180px;
    margin: 8px 0 16px;
    padding: 0 16px;
}

.student-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--card-radius) - 4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.student-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.student-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 9999px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.student-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

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

@media (max-width: 768px) {
    .student-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        position: static;
    }
    .student-grid {
        grid-template-columns: 1fr;
    }
    .student-image {
        height: 170px;
        padding: 0 12px;
    }
    .student-feature-btn {
        position: static;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .student-title {
        font-size: 1.6rem;
    }
    .student-card-title {
        font-size: 1rem;
    }
    .student-image {
        height: 160px;
    }
}