/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏固定时的过渡效果 */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 渐变背景动画 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-gradient-animate {
    background: linear-gradient(-45deg, #2563eb, #4f46e5, #7c3aed, #2563eb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* 卡片悬停效果 */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 按钮悬停效果 */
.button-hover {
    transition: all 0.3s ease;
}

.button-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* 移动端菜单过渡效果 */
#mobileMenu {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
}

#mobileMenu.active {
    opacity: 1;
    transform: translateY(0);
}

/* 3D 效果样式 */
/* 主标题 3D 效果 */
.text-3d {
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
}

/* 卡片 3D 悬停效果 */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
    box-shadow: 
        -20px 20px 30px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 0, 0, 0.1);
}

/* 主题标签容器 */
.theme-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    perspective: 1000px;
}

/* 主题标签新样式 */
.theme-tag-3d {
    position: relative;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-tag-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.theme-tag-3d:hover::before {
    transform: translateX(100%);
}

.theme-tag-3d:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(-10deg);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-tag-3d .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.theme-tag-3d:hover .icon {
    transform: scale(1.2);
}

.theme-tag-3d .text {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 为每个主题标签添加独特的悬停颜色 */
.theme-tag-3d.innovation:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
}

.theme-tag-3d.experience:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 63, 94, 0.2));
}

.theme-tag-3d.green:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
}

.theme-tag-3d.growth:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
}

/* 时间轴 3D 效果 */
.timeline-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.timeline-item-3d {
    transition: transform 0.4s ease;
    transform-origin: center center;
}

.timeline-item-3d:hover {
    transform: translateZ(30px) scale(1.05);
}

/* 渐变背景 3D 光效 */
.gradient-3d {
    position: relative;
    overflow: hidden;
}

.gradient-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255,255,255,0.2) 0%,
        rgba(255,255,255,0) 60%
    );
    transform: rotate(30deg);
    animation: lightMove 10s infinite linear;
    pointer-events: none;
}

@keyframes lightMove {
    from {
        transform: rotate(0deg) translateY(0%);
    }
    to {
        transform: rotate(360deg) translateY(-50%);
    }
}

/* 按钮 3D 效果 */
.button-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-3d:hover {
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

.button-3d:active {
    transform: translateY(0) translateZ(5px);
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.2),
        0 2px 3px rgba(0, 0, 0, 0.1);
}

/* 3D 翻转卡片效果 */
.flip-card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-3d:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
} 