@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --primary-color: #6d28d9;
    --secondary-color: #8b5cf6;
    --background-color: #121212;
    --card-background: rgba(255, 255, 255, 0.05);
    --text-color: #e2e8f0;
    --text-secondary: #94a3b8;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* 加载动画样式 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-nav {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 卡片式页面切换 */
.section {
    min-height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
    z-index: 0;
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 烟花特效（缩小尺寸） */
.firework {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease-out; /* 淡出过渡 */
}

/* 烟花粒子：圆形，有渐变 */
.firework-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    color: #fff; /* 基础颜色，通过JS动态修改 */
    opacity: 1;
    transform: translate(-50%, -50%);
    animation: particle-fall 1.5s ease-out forwards;
}

/* 粒子扩散+下落动画 */
@keyframes particle-fall {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
}

/* 隐藏烟花的过渡 */
.firework.fade-out {
    opacity: 0;
}


#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.activity-list {
    max-height: none;
    overflow-y: visible;
}

.activity-list::-webkit-scrollbar {
    width: 8px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.message-form textarea {
    resize: none;
    height: 150px;
}

.file-item {
    transition: all 0.3s ease;
}

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

/* 自定义下拉组件样式 */
.custom-dropdown {
    position: relative;
}

.dropdown-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-content {
    position: absolute;
    width: 100%;
    z-index: 10;
    max-height: none;
    overflow-y: visible;
}

.dropdown-category {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.dropdown-category:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-category.active {
    background: rgba(139, 92, 246, 0.2);
    border-left: 3px solid #8b5cf6;
}

.video-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.video-item:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.video-item.active {
    background: rgba(139, 92, 246, 0.2);
}



.video-info {
    flex: 1;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-arrow.rotate {
    transform: rotate(180deg);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }
}

@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }
}