/* 简化的头部样式 - 仅保留返回按钮 */
header {
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    margin-left: 1rem;
}

.back-button i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    background: linear-gradient(90deg, #5254e8, #7c4dff);
}

.back-button:active {
    transform: translateY(0);
}

/* 合作伙伴模块样式 */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.partner-grid::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotate 20s linear infinite;
}

.partner-card {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
}

.partner-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffda79);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    border-color: #f0f0f0;
}

.partner-card:hover::after {
    transform: translateX(0);
}

.partner-logo {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(60%);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0);
    transform: scale(1.1);
}

.partner-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: color 0.3s ease;
}

.partner-card:hover .partner-name {
    color: #ff6b6b;
}

.cooperation-desc {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f5f5f5;
    position: relative;
    overflow: hidden;
}

.cooperation-desc::before {
    content: '\f0c0';
    font-family: 'FontAwesome';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 120px;
    color: rgba(255, 105, 180, 0.05);
    z-index: 0;
}

.cooperation-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
    z-index: 10;
}

.cooperation-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.cooperation-desc p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4a5568;
    position: relative;
    z-index: 10;
}

/* 故事模块样式 */
.story {
    padding: 6rem 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.05) 0%, transparent 25%);
    z-index: 0;
}

.story-container {
    position: relative;
    z-index: 10;
}

.story-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* 时间线效果 */
.story-content::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6, #ec4899);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.story-item {
    margin-bottom: 5rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.story-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-time {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #6366f1;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    border: 2px solid #f0f6ff;
}

.story-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.4s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* 交替显示左右布局 */
.story-item:nth-child(odd) .story-card {
    margin-right: 55%;
}

.story-item:nth-child(even) .story-card {
    margin-left: 55%;
}

/* 时间点标记 */
.story-item::after {
    content: '';
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid #6366f1;
    z-index: 30;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.story-title {
    font-size: 1.6rem;
    color: #2d3748;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.story-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
}

.story-text {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

/* 二次元装饰元素 */
.story-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236366f1' opacity='0.1'%3E%3Cpath d='M12,2L4,5V11C4,16.55 7.53,21.74 12,23C16.47,21.74 20,16.55 20,11V5L12,2M12,4L18,6.4V11.1C18,15.55 15.39,19.74 12,20.8C8.61,19.74 6,15.55 6,11.1V6.4L12,4Z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 10;
}

/* 团队模块样式 */
.team {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 105, 180, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(102, 126, 234, 0.03) 0%, transparent 20%);
    z-index: 0;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.team-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.team-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(0, 0, 0, 0.07);
}

.team-card:hover::before {
    opacity: 1;
}

.team-avatar {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

.team-role {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #6366f1;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
    transition: all 0.3s ease;
    transform: translateZ(10px);
}

.team-card:hover .team-role {
    background: #6366f1;
    color: white;
}

.team-info {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 3;
}

.team-name {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.team-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #8b5cf6);
    border-radius: 3px;
}

.team-bio {
    color: #4a5568;
    line-height: 1.6;
    margin: 1.2rem 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.team-card:hover .team-bio {
    color: #2d3748;
}

.team-fav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fav-tag {
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.team-card:hover .fav-tag {
    background: #f0e6ff;
    color: #6b21a8;
}

/* 团队社交图标 - 悬停时显示 */
.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    transition: bottom 0.3s ease;
    z-index: 4;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-3px);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {

    /* 移动端故事模块样式调整 */
    .story-content::before {
        left: 30px;
    }

    .story-item::after {
        left: 30px;
    }

    .story-time {
        left: 30px;
        transform: translateX(0) translateY(-50%);
        top: 0;
    }

    .story-item:nth-child(odd) .story-card,
    .story-item:nth-child(even) .story-card {
        margin-left: 70px;
        margin-right: 0;
    }

    .story-card {
        padding: 1.8rem;
    }

    .story-title {
        font-size: 1.4rem;
    }

    .partner-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .partner-logo {
        max-width: 100px;
        max-height: 60px;
    }

    .cooperation-desc {
        padding: 1.5rem;
    }

    .team-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-avatar {
        height: 250px;
    }
}