:root {
    --primary-color: #e53935;     /* 清新绿色作为主题色 */
    --secondary-color: #e53935;   /* 蓝色作为副主题色 */
    --accent-color: #e53935;      /* 红色强调色 */
    --light-color: #f8f9fa;
    --dark-color: #333;
    --text-color: #444;
    --max-width: 1200px;
    --transition: all 0.3s ease;
    --student-color: #e53935;     /* 学生专属价格颜色 */
}

/* 小屏幕提示框样式 - 新粗野风格 */
.mobile-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.mobile-notice-content {
    background: #000;
    border: 4px solid #fff;
    padding: 30px;
    margin: 20px;
    max-width: 350px;
    text-align: center;
    position: relative;
    box-shadow: 8px 8px 0px #fff, 16px 16px 0px rgba(255, 255, 255, 0.3);
    animation: brutalistSlide 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: rotate(-1deg);
}

.mobile-notice-icon {
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    justify-content: center;
}

.mobile-notice-icon svg {
    width: 48px;
    height: 48px;
    stroke: #fff;
    stroke-width: 3;
}

.mobile-notice-text h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 15px 0;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.mobile-notice-text p {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

.mobile-notice-close {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #fff;
    border: 3px solid #000;
    color: #000;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 3px 3px 0px #000;
}

.mobile-notice-close:hover {
    background: #000;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #fff;
}

.mobile-notice-close:active {
    transform: translate(0px, 0px);
    box-shadow: 2px 2px 0px #fff;
}

@keyframes brutalistSlide {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotate(-5deg) scale(0.8);
    }
    50% {
        transform: translateY(10px) rotate(1deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-1deg) scale(1);
    }
}

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

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}


.container {
    max-width: var(--max-width);
    margin: 0 auto;
    list-style: none;
}

.school-card,
.team-value-item,
.project-detail-item {
    /* 使内部卡片更透明以便背景透出 */
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 300px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
    will-change: transform;
}

img {
    max-width: 280px;
    height: auto;
}

.section-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px; /* 标题下间距收紧 */
    flex-wrap: wrap;
    position: relative; /* 让右上角按钮组可绝对定位 */
}

.section-title-wrapper .section-title {
    width: auto;
    margin-bottom: 0;
}

/* 右上角：生成分享卡 / 生成二维码 */
.section-title-wrapper .btn-group {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.section-title-wrapper .btn-group .btn.btn-icon {
    background: var(--accent-color, #e53935);
    box-shadow: none;
}

.btn.btn-icon {
    padding: 8px 18px;
    font-size: 0.9rem;
    background: var(--accent-color, #e53935);
    border: none;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1; /* 避免不同浏览器垂直不对齐 */
}

.btn.btn-icon:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn.btn-icon .fa {
    margin-right: 8px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 25px;  /* 更圆润的按钮 */
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #4a5fd7;  /* 深一点的蓝色 */
}

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);  /* 半透明背景 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    backdrop-filter: blur(5px);  /* 背景模糊效果 */
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
}

/* Logo: remove underline on the right half and set right color to black */
.logo a,
.logo a:link,
.logo a:visited,
.logo a:hover,
.logo a:focus {
    text-decoration: none !important; /* 强制移除链接下划线 */
    color: inherit; /* 保持子项颜色由子选择器控制 */
}
.logo a, .logo a * {
    text-decoration: none !important; /* 额外防护，去除伪元素/子元素的下划线 */
}
.logo .logo-text {
    color: #000 !important; /* 右侧变黑 */
}
.logo .highlight {
    color: var(--primary-color) !important; /* 左侧保持主题色 */
}

/* Navigation list: remove default list markers and normalize spacing */
nav ul {
    display: flex;
    list-style: none; /* 移除默认圆点 */
    padding: 0;
    margin: 0;
}

/* 兼容各浏览器的 marker 清除 */
nav ul li {
    margin-left: 25px;
    list-style: none;
}

/* 某些浏览器会渲染 ::marker，强制隐藏 */
nav ul li::marker {
    display: none;
}

/* 也防护性地移除可能的伪元素 */
nav ul li::before {
    content: none !important;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
}
    /* Ensure nav links never show underlines (desktop and responsive) */
    #header nav a,
    #header nav a:link,
    #header nav a:visited,
    #header nav a:hover,
    #header nav a:active {
        text-decoration: none !important;
        color: inherit; /* keep color controlled by li.current or hover rules */
    }

    /* Mobile responsive menu links */
    nav.responsive ul li a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none !important;
        color: inherit;
    }

    /* Defensive: remove underline from any span within nav links */
    #header nav a span, #header nav a i { text-decoration: none !important; }

nav ul li a:hover, 
nav ul li.current a {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 展示区样式 */
#showcase {
    background: 
        linear-gradient(135deg, 
            rgba(229, 57, 53, 0.7) 0%, 
            rgba(229, 57, 53, 0.4) 25%, 
            rgba(0, 0, 0, 0.5) 50%, 
            rgba(229, 57, 53, 0.4) 75%, 
            rgba(229, 57, 53, 0.7) 100%),
        linear-gradient(45deg, 
            rgba(0, 0, 0, 0.2) 0%, 
            transparent 40%, 
            transparent 60%, 
            rgba(0, 0, 0, 0.2) 100%);
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 0; /* 移除顶部空白 */
    position: relative;
    overflow: hidden;
    background-image: url('./images/showcase.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(229, 57, 53, 0.15) 60%,
        rgba(229, 57, 53, 0.3) 90%
    );
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

#showcase::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(229, 57, 53, 0.1) 0%,
        transparent 25%,
        transparent 75%,
        rgba(229, 57, 53, 0.15) 100%
    );
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(to right bottom, rgba(45, 55, 72, 0.8), rgba(0, 0, 0, 0.7));
}

#showcase .container {
    position: relative;
    z-index: 3;
    animation: fadeIn 1.5s ease;
}

#showcase .showcase-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

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

#showcase h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

#showcase p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#showcase .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#showcase .btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#showcase .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

#showcase .btn-primary:hover::before {
    left: 100%;
}

/* 特点区样式 */
#features {
    padding: 80px 0;
    background-color: var(--light-color);
}

#features .container {
    max-width: 900px;
    margin: 0 auto;
}

.features-intro {
    text-align: center;
    margin-bottom: 60px;
}

.features-intro .section-title {
    margin-bottom: 30px;
}

.features-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-highlight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.highlight-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #f85c59);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.highlight-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-color);
    font-weight: 600;
}

.highlight-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .features-highlights {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-highlight {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .highlight-icon {
        margin: 0 auto;
    }
}

/* 旋转卡片项目展示样式 */
.gallery-container {
    position: relative;
    height: 550px;
    width: 100%;
    overflow: hidden;
    margin: 50px 0;
    perspective: 2000px;
    perspective-origin: center center;
}



.gallery-content {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.gallery-track {
    display: flex;
    height: auto;
    min-height: 420px;
    justify-content: center;
    align-items: center;
    cursor: grab;
    transform-style: preserve-3d;
    width: 100%;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.gallery-track.grabbing {
    cursor: grabbing;
    transition: none;
}

.gallery-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    height: 400px;
    width: 300px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease, 
                opacity 0.4s ease,
                filter 0.4s ease;
    transform-origin: center center;
    opacity: 0.7;
    filter: blur(0px) brightness(1);
    will-change: transform, opacity, filter;
}

.gallery-item.active {
    opacity: 1;
    box-shadow: 0 20px 40px rgba(229, 57, 53, 0.25);
    z-index: 10;
    filter: blur(0px) brightness(1.05);
    transform: translateZ(50px) scale(1.05);
}

.gallery-item:hover {
    opacity: 1;
    box-shadow: 0 25px 50px rgba(229, 57, 53, 0.3);
    transform: translateY(-15px) translateZ(80px) scale(1.08) !important;
    filter: blur(0px) brightness(1.1);
}

.gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item-content {
    padding: 20px;
    text-align: center;
    width: 100%;
}

.gallery-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.gallery-item p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
}

.gallery-tag {
    background: rgba(229, 57, 53, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-tag {
    background: rgba(229, 57, 53, 0.2);
    transform: scale(1.05);
}

/* 控制按钮样式 */
.gallery-controls {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.gallery-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.25);
    transition: all 0.3s ease;
    z-index: 20;
}

.gallery-btn:hover {
    background: #c62828;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.25);
}

.gallery-btn:active {
    transform: translateY(0);
}

/* 分页指示器 */
.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 滑块拖拽条样式 */
.gallery-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto 5px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 50;
    border: 1px solid rgba(229, 57, 53, 0.15);
}

.gallery-slider-label {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 500;
    text-align: center;
}

.gallery-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.gallery-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
    transition: all 0.2s ease;
}

.gallery-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.25);
    transition: all 0.2s ease;
}

.gallery-slider::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.gallery-slider::-moz-range-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.gallery-slider::-webkit-slider-runnable-track {
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
}

.gallery-slider::-moz-range-track {
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
}

.gallery-slider:focus::-webkit-slider-runnable-track {
    background: #d0d0d0;
}

.gallery-slider:active::-webkit-slider-thumb {
    transform: scale(1.3);
}

.gallery-slider:active::-moz-range-thumb {
    transform: scale(1.3);
}

/* 添加滑块内容标记 */
.gallery-slider-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 12px;
    margin-top: 8px;
}

.gallery-slider-tick {
    position: relative;
    width: 2px;
    height: 8px;
    background: var(--primary-color);
    opacity: 0.6;
}

.gallery-slider-tick.active {
    height: 12px;
    opacity: 1;
}

/* 旋转提示 */
.rotation-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 30;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.rotation-hint:hover {
    opacity: 1;
}

.rotation-hint i {
    color: var(--primary-color);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .gallery-container {
        height: 450px;
        perspective: 1500px;
    }
    
    .gallery-item {
        height: 380px;
        width: 270px;
    }
    
    .gallery-img {
        height: 140px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-container {
        height: 400px;
    }
    
    .gallery-item {
        height: 340px;
        width: 240px;
    }
    
    .gallery-img {
        height: 120px;
    }
    
    .rotation-hint {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* 隐藏旧的项目展示 */
.services-container {
    display: none;
}

/* 轮播容器前景显示样式 */
.carousel-container {
    display: block;
    margin: 40px 0;
    padding: 0;
    position: relative;
    z-index: 2;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* 项目区样式 */
#projects {
    padding: 80px 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    perspective: 1000px; /* 添加3D视角 */
}

.service-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-item:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 
                0 5px 10px rgba(94, 114, 228, 0.2);
    z-index: 5;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: 10px;
}

.service-item:hover::after {
    opacity: 1;
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.5rem;
    color: var(--secondary-color);
    position: relative;
    transition: transform 0.3s ease;
}

.service-item:hover h3 {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.service-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.service-item:hover h3::after {
    width: 50px;
}

.service-item p {
    padding: 0 20px 20px;
    transition: transform 0.3s ease;
}

.service-item:hover p {
    transform: translateY(-3px);
}

/* 项目标签样式 */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px 20px;
    gap: 8px;
    transition: transform 0.3s ease;
}

.service-item:hover .project-tags {
    transform: translateY(-3px);
}

.tag {
    background: rgba(229, 57, 53, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-item:hover .tag {
    background: rgba(229, 57, 53, 0.2);
    transform: scale(1.05);
}

/* 项目详情样式 */
.project-details {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
    place-items: center;
}

.project-detail-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: translateZ(0);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-detail-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 
                0 5px 15px rgba(94, 114, 228, 0.15);
}

.project-detail-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.project-detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.project-detail-item:hover .project-detail-header::before {
    opacity: 1;
    transform: rotate(45deg) translate(10%, 10%);
}

.project-detail-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.project-detail-item:hover .project-detail-header h3 {
    transform: translateY(-3px);
}

.project-slogan {
    font-style: italic;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.project-detail-item:hover .project-slogan {
    transform: translateY(-3px);
}

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

.project-detail-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-detail-info p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-detail-info h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 15px;
}

.project-detail-info h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.project-detail-info ul {
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-detail-info ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.project-detail-item:hover .project-detail-info ul li {
    transform: translateX(5px);
}

.project-detail-info ul li i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 18px;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-detail-item:hover .project-detail-info ul li i {
    transform: scale(1.2);
}

.project-tech {
    margin-top: auto;
    background: var(--light-color);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tech-tag {
    background: white;
    color: var(--secondary-color);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-detail-item:hover .tech-tag {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

/* 团队区样式 */
#team {
    padding: 80px 0;
    background: linear-gradient(135deg, #e53935, #c62828);
    position: relative;
    overflow: hidden;
}

#team::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 40%;
    padding-top: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

#team::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 40%;
    padding-top: 40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

#team .container {
    position: relative;
    z-index: 1;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.team-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.team-content-wrapper {
    /* 使卡片半透明，允许背景图片透出，同时保持可读性 */
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.72));
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    padding: 40px 40px 35px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    --mouse-x: 50%;
    --mouse-y: 50%;
    transition: all 0.3s ease;
    will-change: transform;
}





@keyframes particleMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-100px) translateY(-50px);
    }
}

/* Team background horizontal carousel (uses images/live in cmu/*.webp) */
.team-bg-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    pointer-events: auto;
    z-index: 2;
    height: 280px;
    width: 100%;
    margin: 20px 0;
}

.team-bg-track {
    display: flex;
    gap: 28px;
    align-items: center;
    padding-left: 6%;
    padding-right: 6%;
    will-change: transform;
    animation: seamlessCarousel 30s linear infinite;
}

.team-bg-carousel.paused .team-bg-track { animation-play-state: paused; }

.team-bg-slide {
    width: auto;
    height: 250px;
    max-height: 250px;
    min-height: 200px;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 8px;
    filter: none;
    transform: scale(1);
    opacity: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    flex-shrink: 0;
}

.team-bg-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* 响应式调整 */
@media screen and (max-width: 992px) {
    .team-bg-slide { height: 200px; max-height: 200px; filter: none; }
    .team-bg-track { gap: 16px; }
    .team-bg-carousel { padding-left: 0; padding-right: 0; }
    .team-bg-slide { border-radius: 12px; }
    .team-bg-track { animation-duration: 25s; }
}

@media screen and (max-width: 480px) {
    .team-bg-slide { height: 180px; max-height: 180px; filter: none; margin: 0 4px; }
    .team-bg-track { gap: 12px; animation-duration: 20s; }
}

@media (prefers-reduced-motion: reduce) {
    .team-bg-track { animation: none !important; }
}

/* marquee animation: translate by half the width of duplicated content for seamless loop */
@keyframes seamlessCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 证书轮播动画 */
@keyframes certsCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ensure team content sits above background */
.team-content-wrapper { z-index: 3; position: relative; }


/* 学校标识样式 */
.school-logos {
    position: relative;
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(238, 238, 238, 0.5);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    z-index: 2;
}

@keyframes pulse-glow {
    0% {
        box-shadow: none; /* 移除阴影 */
    }
    50% {
        box-shadow: none; /* 移除阴影 */
    }
    100% {
        box-shadow: none; /* 移除阴影 */
    }
}

.special-collaboration-wrapper {
    width: 100%;
    max-width: 400px;
    position: relative;
    /* Wrapper is now just a positioning context */
}

.special-collaboration-wrapper::before {
    content: '特别合作';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, var(--accent-color), #f85c59);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
    z-index: 2;
}

.special-collaboration-wrapper::after {
    /* This pseudo-element is no longer needed on the wrapper */
   display: none;
}

.school-logo.special-collaboration {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 50px 25px;
    background: rgba(255,255,255,0.8); /* 半透明白色背景 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: none;
    position: relative;
    z-index: 2;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    transition: all 0.3s ease;
    will-change: transform;
}

.school-logo.special-collaboration:hover {
    transform: none; /* 禁用悬停时的旋转效果 */
    box-shadow: none; /* 禁用悬停时的阴影 */
}

.school-logo.special-collaboration::before {
    /* 背景使用 CMU logo 铺满并模糊，营造层次感 */
    content: '';
    position: absolute;
    inset: 0;
    background-image: none; /* 移除背景图片 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0px); /* 移除模糊效果 */
    transform: none; /* 移除视差效果 */
    opacity: 1; /* 保持不透明 */
    z-index: 0;
    transition: none; /* 移除过渡效果 */
    will-change: auto;
}

.school-logo.special-collaboration::after {
    display: none; /* 移除伪元素 */
}

.school-logo.special-collaboration img {
    width: 280px; /* 放大图标 */
    height: 280px; /* 放大图标 */
    object-fit: contain;
    border-radius: 50%;
    box-shadow: none; /* 移除内发光 */
    border: none; /* 移除边框 */
    position: relative;
    z-index: 1; /* 置于模糊背景之上 */
    transition: transform 0.3s ease; /* 保持过渡效果 */
}

.school-logo.special-collaboration:hover img {
    transform: none; /* 禁用悬停时的旋转效果 */
}
.school-logo.special-collaboration span {
    font-size: 1.2rem;
    font-weight: 700;
    transform: translateY(-8px);
    position: relative;
    z-index: 1;
    color: #C41230; /* 初始颜色 */
    animation: breathe-red 2s infinite alternate; /* 应用呼吸动画 */
}

.partner-schools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eef0f4;
}

/* 清理旧样式 */
.school-logos-background, .school-logos-foreground {
    display: none;
}

.school-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease;
}

.school-logo a:hover {
    transform: translateY(-8px);
}

.school-logo img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 15px;
    padding: 0;
    background-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-logo a:hover img {
    box-shadow: 0 8px 25px rgba(32, 48, 128, 0.15);
    transform: scale(1.08) rotate(5deg);
}

.school-logo span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.school-logo a:hover span {
    color: var(--primary-color);
}

.school-logo.special-collaboration {
    /* The old display:none is removed by this new block */
}

/* 团队价值观样式 */
.team-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.team-value-item {
    background: linear-gradient(135deg, #f9f9ff, #fdfdff);
    border-radius: 15px;
    padding: 25px;
    box-shadow: none;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #f0f0f0;
    --mouse-x: 50%;
    --mouse-y: 50%;
    transition: all 0.3s ease;
    will-change: transform;
}

.team-value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(80, 89, 149, 0.1);
    border-color: rgba(94, 114, 228, 0.3);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    color: #fff;
    transition: all 0.3s ease;
}

.team-value-item:hover .value-icon {
    transform: scale(1.1) rotate(-10deg);
    background: var(--primary-color-dark);
}

.value-icon i {
    font-size: 28px;
}

.value-text h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.value-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* 博客区样式 */
#blog {
    padding: 80px 0;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 100%;
}

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

.blog-content {
    padding: 30px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.blog-meta {
    display: flex;
    margin-bottom: 15px;
    color: #777;
    font-size: 0.9rem;
}

.blog-meta span {
    margin-right: 20px;
}

.blog-meta i {
    margin-right: 5px;
}

.blog-content p {
    margin-bottom: 20px;
}

/* 联系区样式 */
#contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit; 
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background-color: #663939;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content,
footer .container { /* 扩大 footer 可用宽度 */ }
footer .container { max-width: 1400px; padding-left: 28px; padding-right: 28px; }

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    align-items: start;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-tagline {
    font-weight: 600;
    letter-spacing: 2px;
}

.footer-desc {
    margin-top: 8px;
    max-width: 420px;
    color: rgba(255,255,255,0.8);
}

.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); color: #fff; transition: transform .2s ease, background .2s ease;
}
.footer-social a:hover { transform: translateY(-3px); background: rgba(255,255,255,0.18); }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 12px 48px; }

.footer-links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-links-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links-column a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.back-to-top {
    position: fixed; /* 永久浮动 */
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 30% 30%, #ff6b6b, #e53935);
    color: #fff;
    box-shadow: 0 12px 30px rgba(229,57,53,.35), 0 2px 6px rgba(0,0,0,.1);
    z-index: 1500;
    opacity: 0;               /* 默认隐藏，滚动后出现 */
    transform: translateY(12px) scale(.95);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.back-to-top:hover { box-shadow: 0 16px 36px rgba(229,57,53,.45), 0 4px 10px rgba(0,0,0,.12); transform: translateY(-2px) scale(1.03); }
.back-to-top .fa { font-size: 18px; }

/* 联系信息列 */
.footer-contact h3 { font-size: 1.2rem; margin-bottom: 15px; }
.footer-contact ul { list-style: none; padding: 0; margin: 0 0 12px; }
.footer-contact li { margin-bottom: 8px; color: rgba(255,255,255,0.85); }
.footer-contact li .fa { color: #fff; }
.footer-contact li i { width: 18px; margin-right: 8px; }
.footer-contact .footer-cta { margin-top: 10px; }

/* 响应式设计 */
@media screen and (max-width: 968px) {
    .section-title {
        font-size: 2rem;
    }
    
    #showcase h1 {
        font-size: 2.8rem;
    }
    
    #showcase p {
        font-size: 1.2rem;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .project-detail-content {
        grid-template-columns: 1fr;
    }
    
    .project-detail-image {
        order: -1;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content { display: grid; grid-template-columns: 1fr; gap: 30px; }
    .footer-links { display: grid; grid-template-columns: 1fr; gap: 16px; }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav.responsive ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.responsive ul li {
        margin: 0;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #f4f4f4;
    }
    
    #showcase {
        height: 70vh;
    }
    
    #showcase h1 {
        font-size: 2.5rem;
    }
    
    .gallery-container {
        height: 400px;
    }
    
    .gallery-item {
        height: 350px;
        width: 250px;
    }
    
    .gallery-img {
        height: 120px;
    }
}

@media screen and (max-width: 500px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    #showcase h1 {
        font-size: 2rem;
    }
    
    #showcase p {
        font-size: 1rem;
    }
    
    .gallery-container {
        height: 380px;
    }
    
    .gallery-item {
        height: 320px;
        width: 220px;
    }
    
    .gallery-img {
        height: 100px;
    }
}

@media screen and (max-width: 1200px) {
    .project-details {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .project-details {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
        gap: 30px;
    }
    
    .project-detail-header {
        padding: 15px;
    }
    
    .project-detail-header h3 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .project-details {
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 20px;
        padding: 0 10px;
    }
}

/* 学校标识样式 */
.school-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.school-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    transition: transform 0.3s ease;
}

.school-logo:hover {
    transform: translateY(-10px);
}

.school-logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.school-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 15px;
    padding: 0;
    background-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.school-logo:hover img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.school-logo span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.school-logo a:hover span {
    color: var(--primary-color);
}

/* 团队价值观样式 */
.team-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.team-value-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 300px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.team-value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1),
                0 5px 15px rgba(229, 57, 53, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #e53935);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.25);
}

.value-icon i {
    font-size: 36px;
    color: #fff;
}

.team-value-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.team-value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* 感谢页面样式 */
#thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-content i {
    font-size: 5rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.thank-you-content h2 {
    margin-bottom: 20px;
    color: #333;
}

.thank-you-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #666;
}

/* 价格对比区域 */
.pricing-comparison {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    flex: 1;
    min-width: 270px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.service-card.student-special {
    z-index: 1;
}

.service-card.premium {
    /* transform: scale(1.03); */
}

.service-card.premium:hover {
    /* transform: translateY(-8px) scale(1.03); */
}

/* 重置默认样式 */
.service-feature i {
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.highlight-feature, 
.premium-feature {
    padding: 12px 10px;
    margin-top: 5px;
    border-radius: 0 5px 5px 0;
}

.highlight-feature i,
.premium-feature i {
    margin-right: 10px;
    flex-shrink: 0;
}

.student-note i {
    margin-right: 10px;
    flex-shrink: 0;
}

.student-schools i {
    margin-right: 10px;
    flex-shrink: 0;
}

.service-special-tag {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #e53935;
    color: white;
    transform: rotate(45deg);
    padding: 5px 35px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.service-header {
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-card.premium .service-feature i {
    /* 移除默认样式 */
}

.service-header h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.price-main {
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.price-main .price-currency {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-right: 2px;
}

.price-main .price-amount {
    letter-spacing: 0.5px;
}

.price-period {
    font-size: 0.9rem;
    opacity: 0.9;
}

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

.service-features {
    margin-bottom: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.service-card.premium .service-feature i {
    color: #e53935;
}

/* 高亮特性区域 */
.highlight-feature, 
.premium-feature {
    background: rgba(229, 57, 53, 0.08);
    border-left: 3px solid #e53935;
}

.highlight-feature i,
.premium-feature i,
.service-card.premium .highlight-feature i {
    color: #e53935;
}

.highlight-feature span,
.premium-feature span {
    font-weight: 500;
}

.delivery-time {
    margin-top: 8px;
}

.student-note {
    display: flex;
    align-items: center;
    background: rgba(229, 57, 53, 0.05);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
}

.student-note i {
    color: #e53935;
}

.student-schools {
    display: flex;
    align-items: center;
    background: rgba(229, 57, 53, 0.03);
    padding: 10px;
    border-radius: 5px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
}

.student-schools i {
    color: #e53935;
}

.service-action {
    text-align: center;
    margin-top: auto;
    padding-top: 25px;
}

.btn-premium {
    background: var(--accent-color);
}

.btn-premium:hover {
    background: #c62828;
}

/* 服务介绍样式 */
.services-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.services-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

@media screen and (max-width: 992px) {
    .pricing-comparison {
        display: block;
    }
    
    .service-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .service-card.premium {
        /* transform: scale(1); */
    }
    
    .service-card.premium:hover {
        /* transform: translateY(-8px); */
    }
}

.btn-primary, .btn-premium {
    background: #e53935;
}

.btn-primary:hover, .btn-premium:hover {
    background: #c62828;
}

/* 服务推广区 - 优化样式 */
.service-promotion {
    text-align: center;
    margin: 0 auto 60px;
    padding: 50px 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, #e53935, #d32f2f);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.25);
}

.service-promotion::before,
.service-promotion::after {
    display: none; /* 移除旧的浅色图案 */
}

.promotion-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
    color: #ffffff; /* 白色标题 */
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.promotion-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5); /* 半透明白色点缀线 */
    border-radius: 2px;
}

.promotion-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.7;
    z-index: 1;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9); /* 浅白色副标题 */
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.promotion-highlight {
    z-index: 1;
    position: relative;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promotion-highlight span {
    font-weight: 500;
    color: #ffffff; /* 白色文字 */
    background-color: rgba(255, 255, 255, 0.12); /* 玻璃效果背景 */
    padding: 10px 20px;
    border-radius: 8px; /* 更现代的圆角 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.promotion-highlight span:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.promotion-highlight span::before {
    content: '\f00c';
    font-family: 'FontAwesome';
    margin-right: 10px;
    color: #34d399; /* 绿色对勾图标 */
    font-weight: normal;
}

/* 服务卡片个性化颜色 */
/* 第一个卡片 - 蓝色 */
.service-card:nth-of-type(1) {
    border: 2px solid rgba(229, 57, 53, 0.55);
}

.service-card:nth-of-type(1) .service-header {
    background: #e53935;
}

.service-card:nth-of-type(1) .service-feature i {
    color: #e53935;
}

.service-card:nth-of-type(1) .highlight-feature, 
.service-card:nth-of-type(1) .premium-feature {
    background: rgba(229, 57, 53, 0.08);
    border-left: 3px solid #e53935;
}

.service-card:nth-of-type(1) .highlight-feature i,
.service-card:nth-of-type(1) .premium-feature i {
    color: #e53935;
}

.service-card:nth-of-type(1) .btn {
    background: #e53935;
}

.service-card:nth-of-type(1) .btn:hover {
    background: #c62828;
}

/* 第二个卡片 - 黄色 */
.service-card:nth-of-type(2) {
    border: 2px solid rgba(229, 57, 53, 0.45);
}

.service-card:nth-of-type(2) .service-header {
    background: #d32f2f;
}

.service-card:nth-of-type(2) .service-feature i {
    color: #d32f2f;
}

.service-card:nth-of-type(2) .highlight-feature, 
.service-card:nth-of-type(2) .premium-feature {
    background: rgba(229, 57, 53, 0.06);
    border-left: 3px solid #d32f2f;
}

.service-card:nth-of-type(2) .highlight-feature i,
.service-card:nth-of-type(2) .premium-feature i {
    color: #d32f2f;
}

.service-card:nth-of-type(2) .service-special-tag {
    background: #d32f2f;
}

.service-card:nth-of-type(2) .btn {
    background: #d32f2f;
}

.service-card:nth-of-type(2) .btn:hover {
    background: #b71c1c;
}

.service-card:nth-of-type(2) .student-note i,
.service-card:nth-of-type(2) .student-schools i {
    color: #d32f2f;
}

.service-card:nth-of-type(2) .student-note {
    background: rgba(229, 57, 53, 0.05);
}

.service-card:nth-of-type(2) .student-schools {
    background: rgba(229, 57, 53, 0.03);
}

/* 第三个卡片 - 红色 */
.service-card:nth-of-type(3) {
    border: 2px solid #e53935;
}

.service-card:nth-of-type(3) .service-header {
    background: #e53935;
}

.service-card:nth-of-type(3) .service-feature i {
    color: #e53935;
}

.service-card:nth-of-type(3) .highlight-feature, 
.service-card:nth-of-type(3) .premium-feature {
    background: rgba(229, 57, 53, 0.08);
    border-left: 3px solid #e53935;
}

.service-card:nth-of-type(3) .highlight-feature i,
.service-card:nth-of-type(3) .premium-feature i {
    color: #e53935;
}

.service-card:nth-of-type(3) .service-special-tag {
    background: #e53935;
}

.service-card:nth-of-type(3) .btn {
    background: #e53935;
}

.service-card:nth-of-type(3) .btn:hover {
    background: #c62828;
}

.service-card:nth-of-type(3) .student-note i,
.service-card:nth-of-type(3) .student-schools i {
    color: #e53935;
}

.service-card:nth-of-type(3) .student-note {
    background: rgba(229, 57, 53, 0.05);
}

.service-card:nth-of-type(3) .student-schools {
    background: rgba(229, 57, 53, 0.03);
}

/* Intellectual Property Section */
#intellectual-property {
    padding: 80px 0;
    background: #f5f7fa;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 40px;
    font-size: 1.1rem;
    color: #666;
}

/* 证书轮播容器样式 */
.certs-carousel-container {
    margin: 40px 0;
    padding: 0;
    position: relative;
    z-index: 2;
    background: transparent;
}

.certs-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    pointer-events: auto;
    z-index: 2;
    height: 320px;
    width: 100%;
    margin: 20px 0;
}

.certs-track {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
    will-change: transform;
    animation: certsCarousel 35s linear infinite;
}

.certs-carousel.paused .certs-track { 
    animation-play-state: paused; 
}

.cert-item {
    flex: 0 1 320px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    background: transparent;
}
.cert-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(92, 107, 192, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
}

.cert-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}
.cert-item img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: #fff;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.cert-item:hover img {
    transform: scale(1.05);
}
.cert-info {
    padding: 20px;
    text-align: center;
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cert-info h3 {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

/* 证书轮播图片样式 */
.cert-slide {
    width: auto;
    height: 280px;
    max-height: 280px;
    min-height: 240px;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    margin: 0 10px;
    filter: none;
    transform: scale(1);
    opacity: 1;
    transition: transform 0.3s ease;
    box-shadow: none;
    pointer-events: auto;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
}

.cert-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}

.cert-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cert-title {
    display: none;
}

/* 证书轮播响应式设计 */
@media screen and (max-width: 992px) {
    .cert-slide { 
        height: 240px; 
        max-height: 240px; 
        min-height: 200px;
        transform: scale(1);
        transition: transform 0.3s ease;
    }
    .cert-slide:hover {
        transform: scale(1.05);
    }
    .certs-track { 
        gap: 16px; 
        animation-duration: 30s;
        animation-play-state: running;
    }
}

@media screen and (max-width: 480px) {
    .cert-slide { 
        height: 200px; 
        max-height: 200px; 
        margin: 0 5px; 
        padding: 0;
        transform: scale(1);
        transition: transform 0.3s ease;
    }
    .cert-slide:hover {
        transform: scale(1.05);
    }
    .certs-track { 
        gap: 12px; 
        animation-duration: 25s;
        animation-play-state: running;
    }
    .cert-title {
        display: none;
    }
    
    /* 移动端触摸优化 */
    .certs-carousel {
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .section-title-wrapper {
        justify-content: center;
        padding-top: 10px;
    }

    .section-title-wrapper .btn-group {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        background: transparent;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .partner-schools {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .school-logo.special-collaboration {
        padding: 30px 15px;
    }

    .school-logo.special-collaboration img {
        width: 150px;
        height: 150px;
    }

    .school-logo.special-collaboration span {
        font-size: 1.1rem;
    }

    /* 背景模糊在移动端略微减弱，避免过度占据视觉 */
    .school-logo.special-collaboration::before {
        filter: blur(12px);
        opacity: 0.24;
    }
}

@media screen and (max-width: 480px) {
    .team-content-wrapper {
        padding: 10px;
    }

    .special-collaboration-wrapper::before {
        font-size: 0.8rem;
        padding: 5px 15px;
    }

    .school-logo.special-collaboration img {
        width: 120px;
        height: 120px;
    }

    .partner-schools {
        gap: 15px;
    }

    .school-logo img {
        width: 70px;
        height: 70px;
    }

    .school-logo span {
        font-size: 0.9rem;
    }
}

@keyframes breathe {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* 为“Carnegie”文字添加红色呼吸特效 */
@keyframes breathe-red {
    0% {
        opacity: 0.7;
        color: #C41230;
    }
    100% {
        opacity: 1;
        color: #FF0000; /* 更亮的红色 */
    }
}

/* 3. 利用空间划分区域 */
section {
    padding: 80px 0;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color, #5c6bc0);
    border-radius: 2px;
}

/* 设备展示部分样式 */
#equipment {
    background-color: #f9f9f9;
    padding: 80px 0;
}

/* 服务展示部分样式 */
#services {
    background-color: #f5f7fa;
    padding: 80px 0;
}

/* --- 团队成员卡片 Google 风格设计 --- */
.team-content-wrapper {
    margin-top: 60px;
}

/* CMU 特别合作卡片 */
.cmu-special-card {
    background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(196, 18, 48, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    --parallax-y: 0px;
    transform: translateY(var(--parallax-y));
    position: relative;
    cursor: pointer;
    will-change: transform;
    border: 1px solid rgba(196, 18, 48, 0.1);
}

.cmu-special-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C41230, #d63384);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cmu-special-card:hover::before {
    transform: scaleX(1);
}

.cmu-special-card:hover {
    box-shadow: 0 16px 48px rgba(196, 18, 48, 0.25), 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px) translateY(var(--parallax-y)); /* 移除旋转效果 */
    border-color: rgba(196, 18, 48, 0.2);
}

.cmu-special-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(196, 18, 48, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.cmu-special-card:hover::after {
    opacity: 1;
}

.cmu-card-content {
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.cmu-logo-wrapper {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px; /* 调整内边距 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: none;
    min-width: 160px;
    min-height: 160px;
    --show-fallback: none;
    border: none; /* 移除边框 */
    animation: none; /* 移除动画 */
}

/* 移除整个动画定义 */

/* 移除备用图标显示方案 */
.cmu-logo-wrapper::after {
    display: none; /* 隐藏伪元素 */
}

/* 图片加载状态优化 */
.cmu-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 移除filter，让图标保持原始颜色 */
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block !important;
    max-width: 100%;
    max-height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none;
}

/* 确保CMU图标在红色背景上清晰可见 */
.cmu-logo-wrapper img[src*="CMU"] {
    /* 移除filter，让图标保持原始颜色 */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 图片加载中的状态 */
.cmu-logo-wrapper img[loading="lazy"] {
    opacity: 1 !important;
    transition: opacity 0.5s ease;
}

.cmu-logo-wrapper img[loading="lazy"].loaded {
    opacity: 1 !important;
}

/* 备用文字样式 */
.cmu-fallback-text {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CMU卡片信息样式 */
.cmu-info {
    flex: 1;
    min-width: 0;
}

.cmu-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.cmu-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #C41230;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.cmu-description {
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.cmu-link {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cmu-link:hover {
    background: #C41230;
    color: #fff;
    transform: scale(1.1);
}

/* 合作伙伴高校卡片网格：桌面横向三列，响应式回退到两列/一列 */
.partner-schools-grid {
    width: 100%;
    max-width: 1100px; /* 与其他区域保持一致的最大宽度 */
    margin: 0 auto 40px; /* 居中整个网格 */
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr)); /* 强制三列横向排列 */
    gap: 20px;
    justify-items: center; /* grid 子项在格子内水平居中 */
    align-items: start;
}

@media screen and (max-width: 992px) {
    .partner-schools-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
        gap: 18px;
        max-width: 900px;
    }
}

@media screen and (max-width: 600px) {
    .partner-schools-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 100%;
    }
}

.school-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    will-change: transform;
    width: 100%;
    max-width: 360px; /* keep card reasonably sized inside grid cell */
    margin: 0; /* grid will handle centering */
}

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

.school-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.school-card-content {
    padding: 24px;
    position: relative;
    height: 100%;
    /* Ensure content (logo + title) is centered inside the card */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px; /* 固定子元素垂直间距，保证 logo 与文字垂直居中感知一致 */
}

.school-logo-wrapper {
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0;
    transition: all 0.3s ease;
}

.school-card:hover .school-logo-wrapper {
    background: transparent;
    transform: scale(1.05);
}

.school-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Extra specificity to guarantee logos sit centered inside cards */
.school-card .school-logo,
.school-card .school-logo-wrapper,
.school-card .school-logo a {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-card .school-logo img,
.school-card .school-logo-wrapper img {
    display: block;
    margin: 0 auto;
}

.school-info {
    margin-bottom: 16px;
}

.school-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.school-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.school-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.school-link:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.1);
}

/* 团队价值观部分 */
.team-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.team-value-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.team-value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C41230, #d63384);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-value-item:hover::before {
    transform: scaleX(1);
}

.team-value-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
    position: relative;
}

.team-value-item:hover .value-icon {
    background: linear-gradient(135deg, #C41230, #d63384);
    transform: scale(1.1);
}

.value-icon i {
    font-size: 2rem;
    color: #666;
    transition: color 0.3s ease;
}

.team-value-item:hover .value-icon i {
    color: #fff;
}

.value-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.value-text p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* CMU卡片悬停效果 */
.cmu-special-card:hover .cmu-logo-wrapper {
    transform: none; /* 移除旋转和缩放效果 */
    box-shadow: none; /* 移除阴影 */
    border-color: transparent; /* 移除边框颜色变化 */
}

.cmu-logo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0; /* 确保伪元素不显示 */
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.cmu-special-card:hover .cmu-logo-wrapper::before {
    opacity: 0; /* 确保悬停时伪元素不显示 */
}

.cmu-special-card:hover .cmu-logo-wrapper img {
    transform: none; /* 移除缩放效果 */
    filter: none; /* 移除阴影滤镜 */
}

/* === 居中与图片显示优化 (统一规范) === */
/* 全局图片适配并默认作为块级元素以便居中 */
img {
    max-width: 100%; /* 避免超出父容器 */
    height: auto;
    display: block; /* 更容易水平居中 */
}

/* 通用居中工具类 */
.center {
    margin-left: auto;
    margin-right: auto;
    display: block; /* 适用于内联或块级元素 */
}
.center-inline {
    display: inline-block;
    vertical-align: middle;
}
.center-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 常见组件内图片居中处理（确保在容器内居中且不变形） */
.gallery-img,
.service-item img,
.blog-image img,
.school-logo img,
.school-logo-wrapper img,
.cert-item img,
.cmu-logo-wrapper img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    object-fit: cover; /* 默认使用 cover 保持视觉一致性 */
}

/* 对需要完整显示内容（例如徽标、图标）使用 contain */
.logo img,
.school-logo img[alt],
.cmu-logo-wrapper img[alt] {
    object-fit: contain;
}

/* 对于需要垂直居中的小缩略图或头像 */
.avatar, .avatar img {
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    object-fit: cover;
}

/* 响应式修复：当父容器固定高度时，保证图片按比例居中展示 */
.center-fit {
    position: relative;
    overflow: hidden;
}
.center-fit img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    max-width: none;
}

/* 清理：移除明确的全局高度限制（如果页面需要固定高度，请在局部容器设置） */

/* 强制团队区域及其父容器水平居中（覆盖重复或冲突定义） */
.team-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* 将内部内容在父容器中水平居中 */
    justify-content: center;
}

.team-content-wrapper .team-values {
    width: 100%;
    max-width: 1100px; /* 限制最大宽度，方便整体居中对齐 */
    display: grid;
    /* 默认桌面：三列横向排列，避免竖向堆叠占空间 */
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
    justify-items: center; /* grid 子项在格子内水平居中 */
    align-items: start;
}

.team-content-wrapper .team-value-item {
    width: 100%;
    max-width: 360px; /* 保证卡片宽度一致且可居中 */
    margin-left: auto;
    margin-right: auto;
    padding: 22px 18px; /* 缩小内边距，减少卡片垂直占位 */
}

/* Responsive: two columns on medium screens, one column on small screens */
@media screen and (max-width: 992px) {
    .team-content-wrapper .team-values {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 18px;
        margin-top: 20px;
    }
    .team-content-wrapper .team-value-item {
        padding: 20px 14px;
        max-width: 420px;
    }
}

@media screen and (max-width: 600px) {
    .team-content-wrapper .team-values {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 16px;
    }
    .team-content-wrapper .team-value-item {
        padding: 16px 12px;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .team-content-wrapper {
        padding: 10px; /* 为移动端提供内边距，避免紧贴边缘 */
    }
    .team-content-wrapper .team-values {
        gap: 16px;
    }
}

