/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 颜色变量定义 */
:root {
    --deep-space-blue: #0A2463; /* 深空蓝 - 代表科技、北斗 */
    --starlight-gold: #FFD700; /* 星光金 - 代表人才、荣誉 */
    --light-blue: #3E92CC;
    --dark-blue: #1E3A8A;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #666666;
}

/* 头部样式 */
.header {
    background-color: var(--deep-space-blue);
    color: var(--white);
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* 主内容区域 */
main {
    margin-top: 92px;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo 区域 */
.logo-section {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 16px;
}

.logo-img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.logo-english {
    font-size: 16px;
    font-weight: normal;
    color: var(--starlight-gold);
    margin-left: 8px;
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin: 0 40px;
}

.nav-left {
    display: flex;
    list-style: none;
    margin-right: auto;
}

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

.nav-left li,
.nav-right li {
    margin: 0 12px;
    position: relative;
}

/* 二级菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 300px;
    max-width: 90vw;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

/* 调整右侧菜单项的下拉菜单位置 */
.nav-left li:last-child .dropdown-menu,
.nav-right li:last-child .dropdown-menu {
    left: auto;
    right: 0;
}

/* 确保下拉菜单不会超出屏幕 */
.dropdown-menu {
    transform-origin: top left;
}

.nav-left li:last-child .dropdown-menu,
.nav-right li:last-child .dropdown-menu {
    transform-origin: top right;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单头部 */
.dropdown-header {
    padding: 16px 24px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--deep-space-blue);
}

.dropdown-divider {
    height: 2px;
    background-color: var(--starlight-gold);
    margin-top: 8px;
    width: 60px;
}

/* 下拉菜单内容 */
.dropdown-content {
    padding: 8px 0;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 24px !important;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 28px !important;
    padding-right: 24px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* 禁用二级菜单链接的下划线效果 */
.dropdown-menu .dropdown-item::after {
    display: none !important;
}

/* 菜单项图标 */
.item-icon {
    margin-right: 12px;
    color: var(--deep-space-blue);
    flex-shrink: 0;
}

.item-icon svg {
    width: 20px;
    height: 20px;
}

/* 菜单项内容 */
.item-content {
    flex-grow: 1;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.item-grade {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}

.dropdown-item:hover .item-title {
    color: var(--deep-space-blue);
}

.dropdown-item:hover .item-icon {
    color: var(--starlight-gold);
}

.nav-left a,
.nav-right a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-left a:hover,
.nav-right a:hover,
.nav-left .active > a,
.dropdown-item.active {
    color: var(--starlight-gold);
}

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

.nav-left a:hover::after,
.nav-right a:hover::after,
.nav-left .active > a::after {
    width: 100%;
}

/* 二级菜单活动状态样式 */
.dropdown-item.active {
    background-color: #f8f9fa;
}

.dropdown-item.active .item-icon {
    color: var(--starlight-gold);
}

.dropdown-item.active .item-title {
    color: var(--deep-space-blue);
}

/* 登录按钮 */
.login-section {
    flex-shrink: 0;
}

.login-btn {
    background-color: var(--starlight-gold);
    color: var(--deep-space-blue);
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background-color: #FFC107;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-container {
        padding: 0 16px;
    }
    
    .nav-left li,
    .nav-right li {
        margin: 0 8px;
    }
    
    .nav-left a,
    .nav-right a {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .logo-section {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .logo {
        justify-content: center;
    }
    
    .nav-menu {
        margin: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-left,
    .nav-right {
        justify-content: center;
    }
    
    .login-section {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-english {
        font-size: 14px;
    }
    
    .nav-left,
    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-left li,
    .nav-right li {
        margin: 4px 8px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }
    
    .logo-icon {
        margin-right: 12px;
    }
    
    .logo-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-english {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .login-btn {
        padding: 6px 20px;
        font-size: 13px;
    }
}

/* 轮播区域样式 */
.carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.carousel-item {
    display: none;
    width: 100%;
    min-height: 450px;
    height: 450px;
    background-color: var(--light-blue);
    color: white;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.carousel-item.active {
    display: block;
}

/* 第一个轮播样式 */
.carousel-item:first-child {
    background: linear-gradient(135deg, var(--deep-space-blue) 0%, var(--light-blue) 100%);
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* 第二个轮播样式 */
.carousel-item-2 {
    background-image: url('img/7Y8A00951.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: left;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* 第三个轮播样式 */
.carousel-item-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}



.carousel-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 60px 20px;
    margin-top: 0;
    margin-bottom: 0;
}

/* 第二个轮播内容调整 */
.carousel-item-2 .carousel-content {
    text-align: left;
}

/* 第二个轮播按钮样式 */
.carousel-item-2 .carousel-buttons {
    justify-content: flex-start;
    max-width: 800px;
}

/* 赞助商信息 */
.carousel-sponsors {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* 轮播标题统一样式 */
.carousel-content h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* 第一个轮播标题样式 */
.carousel-item.active .carousel-content h2 {
    text-align: center;
}

/* 第二个轮播标题样式 */
.carousel-item-2 .carousel-content h2 {
    margin-bottom: 25px;
    line-height: 1.2;
    max-width: 900px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* 第三个轮播标题样式 */
.carousel-item-3 .carousel-content h2 {
    text-align: center;
}

/* 轮播说明文字统一样式 */
.carousel-content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 45px;
}

/* 第一个轮播说明文字样式 */
.carousel-item.active .carousel-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* 第二个轮播说明文字样式 */
.carousel-description {
    max-width: 800px;
    margin-bottom: 45px;
    flex-grow: 1;
}

.carousel-description p {
    margin-bottom: 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 第三个轮播说明文字样式 */
.carousel-item-3 .carousel-content p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.carousel-footer {
    margin-bottom: 35px;
}

.carousel-footer p {
    font-size: 16px;
    opacity: 0.9;
}

/* 赞助商信息字体调整 */
.carousel-sponsors {
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* 右侧对齐按钮 */
.carousel-buttons.right-aligned {
    justify-content: flex-end;
    align-items: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Arial', sans-serif;
}

.btn-primary {
    background-color: var(--starlight-gold);
    color: var(--deep-space-blue);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* 统一所有轮播图的次要按钮样式 */
.carousel-item:nth-child(2) .btn-secondary {
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: white;
}

/* 统一所有轮播图的次要按钮悬停样式 */
.carousel-item:nth-child(2) .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.indicator.active {
    background-color: white;
    width: 40px;
    border-radius: 8px;
    border-color: var(--starlight-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 第二个轮播的指示器样式 */
.carousel-item-2 .indicator {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-item-2 .indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.carousel-item-2 .indicator.active {
    background-color: white;
}

/* 平台数据一览样式 */
.data-dashboard {
    background-color: var(--light-gray);
    color: var(--deep-space-blue);
    padding: 60px 0;
    text-align: center;
}

.data-dashboard .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--deep-space-blue);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue) 0%, var(--starlight-gold) 100%);
    border-radius: 2px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dashboard-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

/* 顶部颜色条 */
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue) 0%, var(--starlight-gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dashboard-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 36, 99, 0.15);
}

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

.dashboard-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--deep-space-blue);
    margin-bottom: 10px;
}

.dashboard-label {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* 身份选择样式 */
.user-roles {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.user-roles .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.role-card {
    background-color: white;
    padding: 50px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* 顶部颜色条 */
.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue) 0%, var(--starlight-gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.role-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(10, 36, 99, 0.15);
}

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

.role-icon {
    font-size: 64px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-card:hover .role-icon {
    transform: scale(1.1);
}

.role-card h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--deep-space-blue);
    transition: color 0.3s ease;
    text-align: center;
}

.role-desc {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.role-details {
    list-style: none;
    padding: 0 20px;
    margin: 0 0 25px 0;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.role-details li {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    padding: 0 0 0 24px;
    position: relative;
    line-height: 1.4;
    text-align: left;
    display: flex;
    align-items: center;
}

.role-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-size: 18px;
    font-weight: bold;
}

/* 带对勾的列表样式 */
.role-details.checked li::before {
    content: '✓';
    font-size: 16px;
    color: #4CAF50;
    background-color: transparent;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    line-height: 1;
}

/* 学生图标样式 */
.student-icon {
    background: linear-gradient(135deg, #3E92CC 0%, #0A2463 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(62, 146, 204, 0.3);
}

/* 教师图标样式 */
.teacher-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A24 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 企业图标样式 */
.enterprise-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.student-icon svg,
.teacher-icon svg,
.enterprise-icon svg {
    width: 40px;
    height: 40px;
}

.student-icon svg circle,
.student-icon svg path,
.teacher-icon svg path,
.enterprise-icon svg path {
    fill: white !important;
    stroke: white !important;
}

.role-card .btn-primary {
    width: 100%;
    max-width: 200px;
    transition: all 0.3s ease;
}

.carousel-item:nth-child(2) .indicator.active {
    background-color: var(--deep-space-blue);
}

/* 响应式轮播 */
@media (max-width: 768px) {
    .carousel-item {
        min-height: 450px;
        padding: 60px 16px;
    }
    
    /* 第一个轮播标题响应式 */
    .carousel-item:first-child .carousel-content h2 {
        font-size: 32px;
    }
    
    /* 第二个轮播标题响应式 */
    .carousel-item:nth-child(2) .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .carousel-description p {
        font-size: 16px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .carousel-buttons {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        min-height: 400px;
        padding: 40px 12px;
    }
    
    /* 第一个轮播标题响应式 */
    .carousel-item:first-child .carousel-content h2 {
        font-size: 28px;
    }
    
    /* 第二个轮播标题响应式 */
    .carousel-item:nth-child(2) .carousel-content h2 {
        font-size: 20px;
    }
    
    .carousel-content p {
        font-size: 14px;
    }
    
    .carousel-description p {
        font-size: 14px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .carousel-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .carousel-buttons button {
        width: 200px;
    }
    
    /* 学生身份卡片响应式设计 */
    .role-details {
        margin-bottom: 20px;
    }
    
    .role-details li {
        font-size: 13px;
        margin-bottom: 8px;
        padding-left: 16px;
    }
    
    .role-details li::before {
        font-size: 16px;
    }
    
    /* 右侧悬浮工具栏响应式设计 */
    .floating-toolbar {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .toolbar-item {
        padding: 10px 14px;
    }
    
    .toolbar-item span {
        font-size: 12px;
    }
    
    .toolbar-item svg {
        width: 20px;
        height: 20px;
    }
}

/* 精选挑战活动样式 */
.featured-activities {
    background-color: var(--white);
    padding: 60px 0;
}

.featured-activities .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.featured-activities .section-title {
    margin-bottom: 0;
}

.section-header .btn-secondary {
    background-color: transparent;
    color: var(--deep-space-blue);
    border: 2px solid var(--light-blue);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-header .btn-secondary:hover {
    background-color: var(--light-blue);
    color: white;
    border-color: var(--light-blue);
    transform: translateY(-2px);
}

/* 合作伙伴部分 */
.partners {
    padding: 60px 0;
    background-color: white;
}

.partners .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partner-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.partner-tab {
    padding: 8px 20px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.partner-tab:hover {
    background-color: rgba(10, 36, 99, 0.1);
    transform: translateY(-2px);
}

.partner-tab.active {
    background-color: var(--deep-space-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.3);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.partner-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--light-blue);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.partner-card:hover .logo-placeholder {
    transform: scale(1.05);
}

.logo-placeholder.foundation {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.logo-placeholder.enterprise {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.logo-placeholder.university {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.logo-placeholder.institute {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.logo-placeholder.media {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* 学生成果与感悟 */
.student-testimonials {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.student-testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--light-blue);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    margin-right: 20px;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--deep-space-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(62, 146, 204, 0.3);
}

.testimonial-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--deep-space-blue);
    margin-bottom: 5px;
}

.testimonial-info p {
    font-size: 14px;
    color: var(--dark-gray);
    margin: 0;
    line-height: 1.4;
}

.testimonial-content {
    position: relative;
}

.testimonial-quote {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-gray);
    font-style: italic;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 40px;
    color: var(--light-blue);
    line-height: 1;
}

.testimonial-quote::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: -20px;
    font-size: 40px;
    color: var(--light-blue);
    line-height: 1;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.activity-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(10, 36, 99, 0.15);
}

.activity-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.activity-card-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--deep-space-blue);
    margin-bottom: 12px;
    line-height: 1.3;
}

.activity-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.esg-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.esg-tag.environment {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.esg-tag.social {
    background-color: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.esg-tag.governance {
    background-color: rgba(33, 150, 243, 0.15);
    color: #2196F3;
}

.activity-card-body {
    padding: 20px 24px;
    flex-grow: 1;
}

.activity-card-body p {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-card-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-participants {
    font-size: 13px;
    color: var(--dark-gray);
}

/* 分类标签样式 */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 20px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    background-color: rgba(10, 36, 99, 0.1);
    transform: translateY(-2px);
}

.category-tab.active {
    background-color: var(--deep-space-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.3);
}

/* 大学logo样式 */
.university-logo {
    margin-bottom: 12px;
    width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.university-logo.longi {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.university-logo.zte {
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%);
}

.university-logo.tencent {
    background: linear-gradient(135deg, #e17055 0%, #fab1a0 100%);
}

.university-logo.huawei {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.university-logo.tsinghua {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.university-logo.wuhan {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.university-logo.hust {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.university-logo.xian {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.university-logo.lanzhou {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.university-logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.activity-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

/* 活动卡片响应式设计 */
@media (max-width: 768px) {
    .featured-activities {
        padding: 60px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .activity-card-header,
    .activity-card-body,
    .activity-card-footer {
        padding: 16px 20px;
    }
    
    .activity-card-title {
        font-size: 18px;
    }
    
    .activity-card-body p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .featured-activities {
        padding: 40px 0;
    }
    
    .featured-activities .section-title {
        font-size: 24px;
    }
    
    .section-header .btn-secondary {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .activity-card-header,
    .activity-card-body,
    .activity-card-footer {
        padding: 14px 16px;
    }
    
    .activity-card-title {
        font-size: 16px;
    }
    
    .activity-card-body p {
        font-size: 13px;
    }
    
    .badge,
    .esg-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .activity-participants {
        font-size: 12px;
    }
    
    .activity-status {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    /* 合作伙伴响应式设计 */
    .partners {
        padding: 60px 0;
    }
    
    .partners .section-title {
        font-size: 24px;
    }
    
    .partner-tabs {
        gap: 10px;
    }
    
    .partner-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .partner-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .partner-card {
        padding: 20px;
    }
    
    .logo-placeholder {
        width: 140px;
        height: 70px;
        font-size: 13px;
    }
    
    /* 学生成果与感悟响应式设计 */
    .student-testimonials {
        padding: 60px 0;
    }
    
    .student-testimonials .section-title {
        font-size: 24px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .testimonial-info h4 {
        font-size: 16px;
    }
    
    .testimonial-quote {
        font-size: 13px;
        padding-left: 15px;
    }
    
    .testimonial-quote::before {
        font-size: 30px;
        top: -5px;
    }
    
    .testimonial-quote::after {
        font-size: 30px;
        bottom: -15px;
    }
}

/* 右侧悬浮工具栏样式 */
.floating-toolbar {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transform: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toolbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--deep-space-blue) 100%);
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toolbar-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 6px 16px rgba(10, 36, 99, 0.4);
}

.toolbar-item svg {
    flex-shrink: 0;
}

.toolbar-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background-color: var(--deep-space-blue);
    color: white;
    padding: 60px 0 30px;

}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 280px repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--starlight-gold);
    position: relative;
    padding-bottom: 10px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--starlight-gold);
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after,
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--starlight-gold);
}

.footer-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    margin-bottom: 15px;
}

.footer-affiliation {
    font-size: 13px;
    color: var(--starlight-gold);
    margin-top: 0px;
    font-weight: 500;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--starlight-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: nowrap;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.social-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.social-link:hover {
    background-color: var(--starlight-gold);
    color: var(--deep-space-blue);
    border-color: var(--starlight-gold);
    transform: translateY(-2px);
}

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

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* 页脚响应式设计 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .social-links {
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: flex-start;
        align-items: center;
    }
    
    .social-link {
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

