/* FOFU视频平台样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题色彩 */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    
    /* 背景色 */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e1e3f;
    --bg-hover: #2a2a4a;
    
    /* 文字色彩 */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* 边框色 */
    --border-color: #27272a;
    --border-hover: #3f3f46;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景星空 */
#starfield-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.6);
    backdrop-filter: blur(25px) saturate(1.8);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    height: 72px;
    padding: 16px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 导航栏悬浮效果 */
.header:hover {
    background: rgba(15, 15, 35, 0.75);
    backdrop-filter: blur(30px) saturate(2);
    -webkit-backdrop-filter: blur(30px) saturate(2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
    padding: 0 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
}

.nav-brand:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.nav-brand:active {
    transform: translateY(0);
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.nav-brand:hover .logo {
    transform: scale(1.1) rotate(5deg);
}

/* 自定义tooltip提示 */
.nav-brand {
    position: relative;
}

.nav-brand::after {
    content: "点击返回首页";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.nav-brand::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0px;
}

.nav-brand:hover::after,
.nav-brand:hover::before {
    opacity: 1;
    visibility: visible;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-video {
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 4px;
}

/* 搜索区域 */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 640px;
    margin: 0 24px;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    position: relative;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 560px;
    position: relative;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    height: 36px;
    padding: 0 16px 0 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-form::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: var(--transition);
    pointer-events: none;
    z-index: 1;
}

.search-form:focus-within::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.search-btn {
    width: 44px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.search-btn::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: left 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: scale(1.05);
}

.search-btn:active {
    transform: scale(0.95);
}

.voice-search-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.voice-search-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.voice-search-btn.recording {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #ef4444;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% {
        transform: translateY(-2px) scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), var(--shadow-lg);
    }
}

/* 右侧导航 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.upload-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.notifications-btn {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--secondary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.user-avatar img,
.creator-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* 用户下拉菜单中的用户信息 */
.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    margin-bottom: 8px;
}

.dropdown-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.dropdown-user-details {
    flex: 1;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dropdown-user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 8px;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-hover);
}

.dropdown-item i {
    width: 16px;
    color: var(--text-secondary);
}

/* 主容器 */
.main-container {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    transition: var(--transition);
    z-index: 999;
}

.sidebar.collapsed {
    width: 72px;
}

.sidebar-content {
    padding: 12px 0;
}

.nav-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 24px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 20px;
    margin: 2px 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    background: none;
    width: calc(100% - 16px);
    text-align: left;
    font-size: 14px;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.nav-item:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(255, 107, 107, 0.05) 100%);
    color: var(--primary-color);
    transform: translateX(6px);
    box-shadow: 
        0 4px 12px rgba(255, 107, 107, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-item:hover::before {
    transform: scaleY(0.7);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8a8a 100%);
    color: white;
    font-weight: 600;
    transform: translateX(6px);
    box-shadow: 
        0 6px 20px rgba(255, 107, 107, 0.3),
        0 3px 6px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-item.active::before {
    transform: scaleY(1);
    background: rgba(255, 255, 255, 0.4);
    width: 5px;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    animation: active-pulse 2s infinite;
}

.nav-item i {
    width: 20px;
    flex-shrink: 0;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover i,
.nav-item.active i {
    transform: scale(1.15);
}

.nav-item.active i {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.nav-item span {
    flex: 1;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes active-pulse {
    0%, 100% {
        opacity: 0.9;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }
}

/* 为侧边栏添加更好的交互反馈 */
.nav-item:active {
    transform: translateX(4px) scale(0.98);
    transition: all 0.1s ease;
}

/* 深色模式下的优化 */
@media (prefers-color-scheme: dark) {
    .nav-item:hover {
        background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(255, 107, 107, 0.08) 100%);
        box-shadow: 
            0 4px 12px rgba(255, 107, 107, 0.15),
            0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, #ff7575 100%);
        box-shadow: 
            0 6px 20px rgba(255, 107, 107, 0.4),
            0 3px 6px rgba(255, 107, 107, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    
    .nav-item.active::after {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    }
}

/* 为导航区域添加整体的视觉层次 */
.nav-section:first-child .nav-item:first-child {
    margin-top: 4px;
}

.nav-section:last-child .nav-item:last-child {
    margin-bottom: 8px;
}

/* 分类标题的视觉增强 */
.nav-section h3 {
    position: relative;
    padding-left: 20px;
}

.nav-section h3::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: translateY(-50%);
    border-radius: 1px;
}

.subscription {
    position: relative;
}

.creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.creator-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.live-indicator {
    color: #ef4444;
    font-size: 8px;
    margin-left: auto;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 24px;
    padding-top: 96px; /* 72px header height + 24px spacing */
    transition: var(--transition);
}

.sidebar.collapsed + .main-content {
    margin-left: 72px;
}

/* 筛选栏 */
.filter-bar {
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-chips {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}

.filter-chip {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-chip:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* 视频卡片 */
.video-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.video-card:hover::before {
    opacity: 1;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-card:hover .video-thumbnail::after {
    opacity: 1;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    transition: all 0.3s ease;
}

.video-card:hover .video-duration {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: scale(1.05);
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@keyframes live-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    }
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.play-btn:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.play-btn:hover::before {
    opacity: 0.1;
}

.play-btn:active {
    transform: scale(1.05);
}

.video-info {
    padding: 20px;
    display: flex;
    gap: 16px;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-info .creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    position: relative;
    overflow: hidden;
}

.video-info .creator-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-info .creator-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.video-info .creator-avatar:hover::before {
    opacity: 0.1;
}

.video-details {
    flex: 1;
    min-width: 0;
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-title:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.creator-name {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.creator-name:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

.creator-name::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.creator-name:hover::before {
    opacity: 1;
}

.video-stats {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
}

.stat-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: scale(1.05);
}

.stat-icon {
    width: 12px;
    height: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.stat-item:hover .stat-icon {
    opacity: 1;
}

.video-actions {
    flex-shrink: 0;
}

.action-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* 加载更多 */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.load-more-btn i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 右键菜单 */
.context-menu {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    min-width: 160px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: var(--transition);
}

.context-menu.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.context-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.context-item:hover {
    background: var(--bg-hover);
}

.context-item i {
    width: 16px;
    color: var(--text-secondary);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    
    .nav-right .upload-btn span {
        display: none;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-top: 88px; /* 72px header height + 16px spacing */
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-chips {
        gap: 8px;
    }
    
    .filter-chip {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 12px;
    }
    
    .main-content {
        padding: 12px;
        padding-top: 84px; /* 72px header height + 12px spacing */
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 15px;
    }
    
    .creator-name,
    .video-stats {
        font-size: 13px;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

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

/* 焦点样式 */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 选择样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeIn 0.5s ease-out;
}

/* 高级视觉效果 */
.video-card {
    position: relative;
    overflow: hidden;
}

.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 10;
}

.video-card:hover::after {
    left: 100%;
}

/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.video-card.loading {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-secondary) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

/* 悬停效果增强 */
.video-card:hover .video-title {
    color: var(--primary-color);
}

/* 交互反馈 */
.video-card:active {
    transform: translateY(-6px) scale(1.01);
    transition: transform 0.1s ease;
}

/* 焦点状态 */
.video-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 直播指示器动画 */
.live-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 微交互效果 */
.video-card .play-btn {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .play-btn {
    opacity: 1;
    transform: scale(1);
}

/* 悬停时的额外效果 */
.video-card:hover .video-duration {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.05);
    }
    40% {
        transform: translateY(-3px) scale(1.1);
    }
    60% {
        transform: translateY(-1px) scale(1.08);
    }
}

/* 统计数据悬停效果 */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.4s ease;
}

.stat-item:hover::before {
    left: 100%;
}

/* 渐入动画优化 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.video-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.video-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* 响应式动画调整 */
@media (max-width: 768px) {
    .video-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .video-card .play-btn {
        opacity: 1;
        transform: scale(0.9);
    }
    
    .video-card:hover .play-btn {
        transform: scale(1);
    }
}

/* 视频卡片加载骨架屏 */
.video-card.skeleton {
    pointer-events: none;
}

.video-card.skeleton .video-thumbnail {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.video-card.skeleton .video-title,
.video-card.skeleton .creator-name,
.video-card.skeleton .video-stats {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    color: transparent;
    border-radius: 4px;
}

/* 音量波形动画 */
@keyframes wave {
    0%, 100% { height: 20%; }
    25% { height: 60%; }
    50% { height: 100%; }
    75% { height: 40%; }
}

.audio-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
}

.audio-wave span {
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.audio-wave span:nth-child(2) { animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; }

/* 高级悬停效果：倾斜和光泽 */
.video-card {
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-2deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 3D 视差效果 */
.video-card:hover .video-thumbnail {
    transform: translateZ(20px) scale(1.02);
}

.video-card:hover .video-info {
    transform: translateZ(10px);
}

/* 边界光效 */
.video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover::before {
    opacity: 0.5;
}

/* 性能优化：减少重绘 */
.video-card {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 渐变遮罩效果 */
.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-thumbnail::after {
    opacity: 1;
}

/* 标签的细致动画 */
.video-duration,
.live-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover .video-duration {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-card:hover .live-indicator {
    transform: scale(1.1);
    animation-duration: 1s;
}

/* 文字选择样式 */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* 滚动条美化 */
.video-grid::-webkit-scrollbar {
    width: 8px;
}

.video-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: background 0.3s ease;
}

.video-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary-light), var(--primary-color));
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .video-card {
        border: 2px solid var(--text-primary);
    }
    
    .video-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px var(--primary-color);
    }
}

/* 减动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-card:hover,
    .video-thumbnail,
    .play-btn,
    .video-duration,
    .creator-avatar,
    .stat-item {
        animation: none !important;
        transition: none !important;
    }
    
    .video-card:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* 页面内容样式 */
.page-content {
    width: 100%;
}

.page-header {
    margin-bottom: 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h1 i {
    color: var(--primary-color);
}

.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* 分类筛选器样式 */
.category-filter {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

/* 主要分类 */
.main-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

/* 展开/收起按钮 */
.expand-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.expand-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.expand-toggle .expand-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.expand-toggle.expanded .expand-icon {
    transform: rotate(180deg);
}

/* 其余分类 - 可展开区域 */
.expanded-categories {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

.expanded-categories.show {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 筛选工具栏样式 */
.filter-toolbar {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.filter-label {
    font-size: 14px;
    color: #888;
    font-weight: 500;
    margin-bottom: 4px;
}

/* 下拉菜单样式 */
.filter-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 40px 10px 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 100px;
    position: relative;
}

.dropdown-toggle:hover {
    background: #333;
    border-color: #555;
}

.dropdown-toggle.active {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.1);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-toggle.active .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    margin-top: 4px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    color: #ccc;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #333;
    color: #fff;
}

.dropdown-item.active {
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
}

/* 内容类型按钮组样式 */
.filter-buttons {
    display: flex;
    gap: 8px;
}

.content-type-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 16px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-type-btn:hover {
    background: #333;
    border-color: #555;
    color: #fff;
}

.content-type-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.content-type-btn i {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-toolbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .filter-group {
        width: 100%;
        min-width: unset;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .content-type-btn {
        flex: 1;
        justify-content: center;
    }
}

.category-filter .filter-chip {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter .filter-chip:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.category-filter .filter-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 历史记录控制按钮 */
.history-controls {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
}

.clear-history-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

/* 直播状态指示器 */
.live-status {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
}

.live-indicator-large {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-weight: 600;
}

.live-indicator-large i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 作品展示网格 */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.showcase-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.showcase-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.showcase-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-card:hover .showcase-thumbnail img {
    transform: scale(1.05);
}

.showcase-info {
    padding: 16px;
}

.showcase-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.showcase-author {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.showcase-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 加载状态样式 */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    font-size: 14px;
    margin: 0;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 直播相关样式 */
.video-duration.live {
    background: #ef4444;
    color: white;
    font-weight: 600;
}

.video-card .live-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-card .live-indicator i {
    animation: pulse 2s infinite;
}

/* 深色模式下的额外优化 */
@media (prefers-color-scheme: dark) {
    .video-card.skeleton .video-thumbnail,
    .video-card.skeleton .video-title,
    .video-card.skeleton .creator-name,
    .video-card.skeleton .video-stats {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
}

/* ===== 音效制作页面样式 (音乐播放器风格) ===== */

/* 音频页面专用背景 */
#audio-page {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: -82px; /* 向上扩展到导航栏位置 */
    padding-top: -72px; /* 保持内容位置不变 */
}

#audio-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#audio-page > * {
    position: relative;
    z-index: 1;
}

/* 音频英雄区域 */
.audio-hero-section {
    padding: 60px 0 80px 0;
    text-align: center;
    position: relative;
}

/* 音频轮播容器 */
.audio-carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    perspective: 1000px;
}

.audio-carousel {
    display: flex;
    align-items: end;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 专辑轨道 */
.audio-album-track {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.audio-album-track:hover {
    transform: translateY(-10px) scale(1.05);
}

/* 专辑封面 */
.album-cover {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.album-cover.small {
    width: 120px;
    height: 120px;
    opacity: 0.7;
    filter: blur(1px) brightness(0.8);
}

.album-cover.medium {
    width: 160px;
    height: 160px;
    opacity: 0.85;
    filter: blur(0.5px) brightness(0.9);
}

.album-cover.large {
    width: 220px;
    height: 220px;
    opacity: 1;
    border: 6px solid #f59e0b;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.4), 0 12px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 10;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.album-cover:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* 播放叠加层 */
.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: inherit;
    backdrop-filter: blur(4px);
}

.album-cover.large .play-overlay {
    opacity: 1;
}

.album-cover:hover .play-overlay {
    opacity: 1;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.play-btn-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.play-btn-large:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.play-btn-large:hover::before {
    opacity: 0.1;
}

.play-btn-large i {
    position: relative;
    z-index: 1;
    margin-left: 4px;
}

.play-btn-medium {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.play-btn-medium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.play-btn-medium:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-btn-medium:hover::before {
    opacity: 0.1;
}

.play-btn-medium i {
    position: relative;
    z-index: 1;
    margin-left: 3px;
}

.play-btn-small {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}

.play-btn-small::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.play-btn-small:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.play-btn-small:hover::before {
    opacity: 0.1;
}

.play-btn-small i {
    position: relative;
    z-index: 1;
    margin-left: 2px;
}

/* 轮播导航按钮 */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.carousel-nav-btn.prev {
    left: -80px;
}

.carousel-nav-btn.next {
    right: -80px;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
}

/* 当前音频信息 */
.current-audio-info {
    text-align: center;
    margin-top: 40px;
}

.current-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.current-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* 音频内容区域 */
.audio-content-section {
    margin: 60px 0;
}

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

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-nav {
    display: flex;
    gap: 8px;
}

.section-nav-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.section-nav-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* 音频轨道容器 */
.audio-tracks-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.audio-tracks-container::-webkit-scrollbar {
    display: none;
}

/* 音频轨道卡片 */
.audio-track-card {
    min-width: 280px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.audio-track-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.audio-track-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.audio-track-card:hover::before {
    opacity: 1;
}

/* 轨道缩略图 */
.track-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.track-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) saturate(1.1);
}

.audio-track-card:hover .track-thumbnail img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

/* 轨道叠加层 */
.track-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.audio-track-card:hover .track-overlay {
    opacity: 1;
}

.track-play-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
}

.audio-track-card:hover .track-play-btn {
    opacity: 1;
    transform: scale(1);
}

.track-play-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.track-play-btn:hover {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.track-play-btn:hover::before {
    opacity: 0.1;
}

.track-play-btn i {
    position: relative;
    z-index: 1;
    margin-left: 2px;
}

/* 轨道时长 */
.track-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    transition: all 0.3s ease;
}

.audio-track-card:hover .track-duration {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: scale(1.05);
}

/* 轨道信息 */
.track-info {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.track-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.audio-track-card:hover .track-title {
    color: var(--primary-color);
}

.track-artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    font-weight: 500;
}

.track-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.track-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.track-stats span:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* 音频分类区域 */
.audio-categories-section {
    margin: 80px 0 60px 0;
}

.audio-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* 分类卡片 */
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 20px 25px -5px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.category-card:hover .category-icon::before {
    opacity: 1;
}

.category-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.category-card:hover h4 {
    color: var(--primary-color);
}

.category-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 音频页面响应式设计 */
@media (max-width: 1200px) {
    .carousel-nav-btn.prev {
        left: -60px;
    }
    
    .carousel-nav-btn.next {
        right: -60px;
    }
    
    .album-cover.small {
        width: 100px;
        height: 100px;
    }
    
    .album-cover.medium {
        width: 140px;
        height: 140px;
    }
    
    .album-cover.large {
        width: 200px;
        height: 200px;
    }
    
    .play-btn-large {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .audio-hero-section {
        padding: 40px 0 60px 0;
    }
    
    .carousel-nav-btn {
        display: none;
    }
    
    .audio-carousel {
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .album-cover.small,
    .album-cover.medium {
        width: 80px;
        height: 80px;
    }
    
    .album-cover.large {
        width: 160px;
        height: 160px;
    }
    
    .play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .current-title {
        font-size: 24px;
    }
    
    .audio-tracks-container {
        gap: 16px;
    }
    
    .audio-track-card {
        min-width: 240px;
    }
    
    .audio-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .category-card {
        padding: 24px 16px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .audio-hero-section {
        padding: 30px 0 40px 0;
    }
    
    .album-cover.large {
        width: 140px;
        height: 140px;
    }
    
    .current-title {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .audio-tracks-container {
        gap: 12px;
    }
    
    .audio-track-card {
        min-width: 200px;
    }
    
    .track-info {
        padding: 16px;
    }
    
    .audio-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 20px 12px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .category-card h4 {
        font-size: 16px;
    }
    
    .category-card p {
        font-size: 13px;
    }
}

/* 音频可视化效果 */
.audio-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
    position: absolute;
    bottom: 8px;
    left: 12px;
    z-index: 5;
}

.audio-waveform span {
    width: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: audioWave 1.2s ease-in-out infinite;
    height: 8px;
}

@keyframes audioWave {
    0%, 100% { 
        height: 8px; 
        background: var(--primary-color);
    }
    25% { 
        height: 16px; 
        background: #f59e0b;
    }
    50% { 
        height: 20px; 
        background: #ef4444;
    }
    75% { 
        height: 12px; 
        background: #8b5cf6;
    }
}

/* 播放状态样式 */
.playing {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5) !important;
    animation: playingPulse 2s ease-in-out infinite;
}

@keyframes playingPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

.audio-playing {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.3) !important;
}

/* 分类卡片活动状态 */
.category-card.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.05);
}

.category-card.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-card.active h4 {
    color: white;
}

.category-card.active p {
    color: rgba(255, 255, 255, 0.9);
}

/* 缩放进入动画 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 增强的悬停效果 */
.audio-track-card:hover .track-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
}

/* 专辑封面旋转效果 */
.album-cover.large:hover {
    animation: albumRotate 10s linear infinite;
}

@keyframes albumRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 音频页面的特殊背景粒子效果 */
#audio-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(20px, -20px) scale(1.1);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.6;
    }
}

/* 音频加载状态 */
.audio-loading {
    position: relative;
    overflow: hidden;
}

.audio-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    animation: audioLoading 1.5s ease-in-out infinite;
}

@keyframes audioLoading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式音频波形 */
@media (max-width: 768px) {
    .audio-waveform {
        height: 16px;
        bottom: 6px;
        left: 8px;
    }
    
    .audio-waveform span {
        width: 2px;
    }
    
    @keyframes audioWave {
        0%, 100% { height: 6px; }
        25% { height: 12px; }
        50% { height: 16px; }
        75% { height: 10px; }
    }
}

/* 优化后的音频轮播区域样式 */
.audio-background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.9) 100%);
    z-index: 1;
}

.audio-hero-section {
    position: relative;
    overflow: hidden;
}

.audio-carousel-container {
    position: relative;
    z-index: 2;
}

/* 导航按钮工具提示 */
.nav-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-nav-btn:hover .nav-tooltip {
    opacity: 1;
}

/* 专辑封面叠加层 */
.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 8px 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.album-cover:hover .album-overlay {
    transform: translateY(0);
}

.album-genre {
    font-size: 10px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.album-tracks {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

/* 特色专辑覆盖层 */
.featured-overlay {
    background: linear-gradient(transparent, rgba(99, 102, 241, 0.9));
    padding: 12px 16px;
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* 专辑发光效果 */
.album-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(45deg, transparent, var(--primary-color), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.album-cover:hover .album-glow {
    opacity: 0.6;
}

.featured-glow {
    background: linear-gradient(45deg, #f59e0b, var(--primary-color), #8b5cf6, #f59e0b);
    background-size: 300% 300%;
    animation: glowRotate 3s ease-in-out infinite;
}

@keyframes glowRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 黑胶唱片效果 */
.vinyl-effect {
    position: absolute;
    inset: 10%;
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.1) 32%, rgba(0, 0, 0, 0.1) 34%, transparent 36%),
        radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.05) 52%, rgba(0, 0, 0, 0.05) 54%, transparent 56%),
        radial-gradient(circle at center, transparent 70%, rgba(0, 0, 0, 0.05) 72%, rgba(0, 0, 0, 0.05) 74%, transparent 76%);
    border-radius: 50%;
    pointer-events: none;
}

/* 播放按钮涟漪效果 */
.play-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 音频信息区域优化 */
.current-audio-info {
    position: relative;
    z-index: 2;
}

.audio-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.genre-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.genre-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.genre-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audio-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.control-btn.favorite.active {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* 音频统计信息 */
.audio-stats {
    display: flex;
    gap: 24px;
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 进度指示器 */
.progress-indicator {
    margin-top: 20px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 音频可视化器 */
.audio-visualizer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    height: 40px;
    align-items: flex-end;
    z-index: 2;
}

.visualizer-bar {
    width: 4px;
    background: linear-gradient(to top, var(--primary-color), #8b5cf6);
    border-radius: 2px;
    height: 8px;
    animation: visualizerPulse 1.5s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes visualizerPulse {
    0%, 100% { height: 8px; opacity: 0.6; }
    25% { height: 20px; opacity: 0.8; }
    50% { height: 35px; opacity: 1; }
    75% { height: 25px; opacity: 0.9; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .audio-stats {
        gap: 16px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .audio-controls {
        gap: 6px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
    }
    
    .audio-visualizer {
        bottom: 15px;
        height: 30px;
    }
    
    .visualizer-bar {
        width: 3px;
    }
    
    @keyframes visualizerPulse {
        0%, 100% { height: 6px; opacity: 0.6; }
        25% { height: 15px; opacity: 0.8; }
        50% { height: 25px; opacity: 1; }
        75% { height: 18px; opacity: 0.9; }
    }
}

/* Toast 通知动画 */
@keyframes toastSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes buttonRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 播放状态样式 */
.audio-album-track.playing .album-cover {
    animation: playingPulse 2s ease-in-out infinite;
}

.audio-album-track.playing .album-glow {
    animation: playingGlow 2s ease-in-out infinite;
}

@keyframes playingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes playingGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 播放叠加层默认隐藏 */
.play-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.audio-album-track.featured .play-overlay,
.audio-album-track.playing .play-overlay {
    opacity: 1;
}

/* 控制按钮活动状态 */
.control-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.control-btn.shuffle.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

/* 增强的专辑封面悬停效果 */
.audio-album-track:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 12px;
}

.audio-album-track:focus .album-cover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* 可视化器增强动画 */
.visualizer-bar {
    transition: all 0.1s ease;
}

/* 专辑封面图片优化 */
.album-cover img {
    transition: all 0.3s ease;
    object-fit: cover;
    border-radius: inherit;
}

/* 特色专辑额外效果 */
.audio-album-track.featured .album-cover:hover {
    transform: scale(1.02) rotateY(0deg);
}

.featured .play-overlay {
    backdrop-filter: blur(2px);
}

/* 进度条交互 */
.progress-bar {
    cursor: pointer;
    position: relative;
}

.progress-bar:hover {
    background: rgba(255, 255, 255, 0.15);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--progress, 0%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.progress-bar:hover::after {
    opacity: 1;
}

/* 音频统计项动画 */
.stat-item {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item:hover .stat-value {
    color: var(--primary-color);
}

/* 响应式优化 */
@media (max-width: 480px) {
    .audio-info-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .audio-controls {
        justify-content: center;
    }
    
    .audio-stats {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 80px;
    }
}

/* 搜索建议样式 */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    animation: slideDown 0.2s ease-out;
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    padding: 16px 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-md);
    margin: 4px 8px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.suggestion-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-secondary));
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
    border-color: transparent;
}

.suggestion-item:hover::before {
    transform: scaleY(1);
}

.suggestion-item:first-child {
    margin-top: 8px;
}

.suggestion-item:last-child {
    border-bottom: none;
    margin-bottom: 8px;
}

.suggestion-icon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: var(--transition);
}

.suggestion-item:hover .suggestion-icon {
    opacity: 1;
    transform: scale(1.1);
}

.suggestion-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.suggestion-type {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 视频模态框样式 */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.video-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.video-modal-header h3 {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.video-player {
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.video-placeholder i {
    font-size: 64px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.video-modal-info {
    padding: 20px;
}

.video-actions {
    display: flex;
    gap: 16px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.action-button:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.action-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 通知面板样式 */
.notification-panel {
    position: fixed;
    top: 64px;
    right: 20px;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    max-height: 500px;
    overflow: hidden;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.mark-all-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--bg-hover);
}

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

.notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-content p {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.notif-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* 上传模态框样式 */
.upload-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.upload-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
}

.upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.upload-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.upload-area {
    padding: 40px;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    background: var(--bg-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.upload-zone i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.upload-zone h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.upload-zone p {
    margin: 8px 0;
    color: var(--text-secondary);
}

.select-file-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.select-file-btn:hover {
    color: var(--primary-dark);
}

.upload-info {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 16px !important;
}

/* 移动端样式增强 */
@media (max-width: 768px) {
    .notification-panel {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    .video-modal {
        padding: 10px;
    }
    
    .video-modal-content {
        max-height: 95vh;
    }
    
    .video-modal-header {
        padding: 16px;
    }
    
    .video-modal-info {
        padding: 16px;
    }
    
    .upload-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .upload-area {
        padding: 20px;
    }
    
    .upload-zone {
        padding: 40px 20px;
    }
    
    .upload-zone i {
        font-size: 32px;
    }
    
    .upload-zone h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .search-container {
        flex: 1;
        margin: 0 8px;
    }
    
    .search-form {
        max-width: none;
    }
    
    .voice-search-btn {
        display: none;
    }
    
    .upload-btn span {
        display: none;
    }
    
    .filter-chips {
        padding: 0 16px;
        margin: 0 -16px;
    }
    
    .video-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .action-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 加载状态样式 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 美术设计作品展示样式 - 优化版本 */
.design-showcase {
    width: 100%;
    padding: 0 8px;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    align-items: start;
    /* 移除复杂的行高度计算，使用更直观的布局 */
}

/* 现代瀑布流布局 - CSS原生支持 */
@supports (grid-template-rows: masonry) {
    .design-grid {
        grid-template-rows: masonry;
        align-items: stretch;
    }
}

/* 更好的回退方案 - 使用CSS columns作为瀑布流 */
@supports not (grid-template-rows: masonry) {
    .design-grid {
        column-count: auto;
        column-width: 300px;
        column-gap: 20px;
        column-fill: balance;
        display: block;
    }
    
    .design-grid .design-card {
        break-inside: avoid;
        display: inline-block;
        width: 100%;
        margin-bottom: 20px;
        vertical-align: top;
    }
}

/* 设计卡片基础样式 - 优化版本 */
.design-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* 移除复杂的行span系统，使用更直观的min-height */
}

/* 不同类型卡片的基本尺寸 - 简化版本 */
.design-card.small {
    min-height: 280px;
}

.design-card.medium {
    min-height: 380px;
}

.design-card.large {
    min-height: 480px;
}

.design-card.extra-large {
    min-height: 580px;
}

.design-card.wide {
    min-height: 320px;
}

.design-card.tall {
    min-height: 650px;
}

/* 特色作品样式 - 增强版本 */
.design-card.featured {
    background: linear-gradient(
        135deg, 
        var(--bg-card) 0%, 
        rgba(99, 102, 241, 0.08) 50%,
        rgba(168, 85, 247, 0.05) 100%
    );
    border: 2px solid rgba(99, 102, 241, 0.3);
    min-height: 520px;
    position: relative;
    overflow: visible;
}

.design-card.featured::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color)
    );
    border-radius: calc(var(--radius-xl) + 4px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.design-card.featured:hover::after {
    opacity: 0.4;
}

.design-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(168, 85, 247, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.design-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 20px 40px -8px rgba(0, 0, 0, 0.3),
        0 15px 20px -3px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
}

.design-card:hover::before {
    opacity: 1;
}

/* 缩略图样式 - 瀑布流优化 */
.design-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    flex: 1; /* 占据可用空间 */
    min-height: 0; /* 允许flex缩小 */
}

/* 不同卡片类型的缩略图比例 */
.design-card.small .design-thumbnail {
    aspect-ratio: 4 / 3;
    flex-shrink: 0; /* 保持固定比例 */
}

.design-card.medium .design-thumbnail {
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
}

.design-card.large .design-thumbnail {
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
}

.design-card.extra-large .design-thumbnail {
    aspect-ratio: 3 / 5;
    flex-shrink: 0;
}

.design-card.featured .design-thumbnail {
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
}

.design-card.tall .design-thumbnail {
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
}

.design-card.wide .design-thumbnail {
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
}

/* 默认缩略图比例 */
.design-card:not(.small):not(.medium):not(.large):not(.extra-large):not(.featured):not(.tall):not(.wide) .design-thumbnail {
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.design-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) saturate(1.1);
}

.design-card:hover .design-thumbnail img {
    transform: scale(1.1);
    filter: brightness(1.05) saturate(1.2);
}

/* 悬停遮罩层 */
.design-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.design-card:hover .design-overlay {
    opacity: 1;
}

/* 操作按钮 */
.design-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.design-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8) translateY(10px);
}

.design-card:hover .design-action-btn {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.design-action-btn:nth-child(1) { transition-delay: 0.1s; }
.design-action-btn:nth-child(2) { transition-delay: 0.15s; }
.design-action-btn:nth-child(3) { transition-delay: 0.2s; }

.design-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.design-card.featured .design-action-btn {
    width: 52px;
    height: 52px;
    font-size: 18px;
}

.design-card.featured .design-actions .design-action-btn:first-child {
    width: auto;
    padding: 0 20px;
    border-radius: 26px;
    font-size: 14px;
    font-weight: 600;
}

/* 分类标识 */
.design-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.design-category-badge.animate {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    }
}

/* 作品信息区域 */
.design-info {
    padding: 20px;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; /* 将内容推到底部 */
}

.design-card.featured .design-info {
    padding: 24px;
}

/* 作品标题 */
.design-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.design-card.featured .design-title {
    font-size: 20px;
    font-weight: 700;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.design-title:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* 作者信息和统计 */
.design-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.design-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.design-author .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.design-author .author-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.design-author .author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.design-author .author-name:hover {
    color: var(--primary-color);
}

/* 统计信息 */
.design-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.design-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-weight: 500;
}

.design-stats .stat-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: scale(1.05);
}

.design-stats .stat-item i {
    font-size: 10px;
    opacity: 0.8;
}

/* 标签 */
.design-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.design-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.design-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* 响应式设计 - 优化版本 */
@media (max-width: 1400px) {
    .design-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    @supports not (grid-template-rows: masonry) {
        .design-grid {
            column-width: 280px;
            column-gap: 18px;
        }
    }
}

@media (max-width: 1200px) {
    .design-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    
    @supports not (grid-template-rows: masonry) {
        .design-grid {
            column-width: 260px;
            column-gap: 16px;
        }
    }
    
    /* 适度减小卡片尺寸 */
    .design-card.small { min-height: 250px; }
    .design-card.medium { min-height: 330px; }
    .design-card.large { min-height: 420px; }
    .design-card.extra-large { min-height: 500px; }
    .design-card.featured { min-height: 450px; }
    .design-card.tall { min-height: 550px; }
    .design-card.wide { min-height: 280px; }
}

@media (max-width: 768px) {
    .design-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 14px;
    }
    
    @supports not (grid-template-rows: masonry) {
        .design-grid {
            column-width: 240px;
            column-gap: 14px;
        }
    }
    
    /* 平板端卡片尺寸调整 */
    .design-card.small { min-height: 220px; }
    .design-card.medium { min-height: 300px; }
    .design-card.large { min-height: 380px; }
    .design-card.extra-large { min-height: 450px; }
    .design-card.featured { min-height: 400px; }
    .design-card.tall { min-height: 500px; }
    .design-card.wide { min-height: 250px; }
    
    .design-info {
        padding: 16px;
    }
    
    .design-title {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .design-card.featured .design-title {
        font-size: 17px;
    }
    
    .design-actions {
        gap: 8px;
    }
    
    .design-action-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .design-card.featured .design-action-btn {
        width: 44px;
        height: 44px;
    }
    
    .design-card:hover {
        transform: translateY(-4px) scale(1.005);
    }
}

@media (max-width: 480px) {
    .design-showcase {
        padding: 0 4px;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    @supports not (grid-template-rows: masonry) {
        .design-grid {
            column-count: 1;
            column-gap: 0;
        }
        
        .design-grid .design-card {
            margin-bottom: 12px;
        }
    }
    
    /* 手机端卡片尺寸 - 统一高度 */
    .design-card.small,
    .design-card.medium,
    .design-card.large,
    .design-card.extra-large,
    .design-card.wide,
    .design-card.tall { 
        min-height: auto; /* 让内容决定高度 */
    }
    
    .design-card.featured { 
        min-height: 350px; 
    }
    
    .design-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .design-stats {
        align-self: stretch;
        justify-content: space-between;
    }
    
    /* 移动端统一缩略图比例 */
    .design-thumbnail {
        aspect-ratio: 16 / 10;
    }
    
    .design-card.medium .design-thumbnail,
    .design-card.large .design-thumbnail,
    .design-card.extra-large .design-thumbnail,
    .design-card.tall .design-thumbnail {
        aspect-ratio: 16 / 10;
    }
    
    .design-card:hover {
        transform: translateY(-2px) scale(1.002);
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .design-showcase {
        padding: 0 2px;
    }
    
    .design-grid {
        gap: 10px;
    }
    
    .design-info {
        padding: 12px;
    }
    
    .design-title {
        font-size: 14px;
    }
    
    .design-action-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* 加载动画 - 优化版本 */
.design-card {
    animation: designCardFadeIn 0.6s ease-out forwards;
    opacity: 0; /* 初始不可见，动画后显示 */
}

.design-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.design-card:nth-child(even) {
    animation-delay: 0.15s;
}

.design-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* 新的设计卡片动画 */
@keyframes designCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* 增强的视觉效果 */
.design-grid {
    /* 提升渲染性能 */
    will-change: transform;
    contain: layout style paint;
}

.design-card {
    /* 优化GPU加速 */
    will-change: transform, box-shadow;
    contain: layout style paint;
}

/* 微妙的鼠标跟踪效果 */
.design-card::before {
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(99, 102, 241, 0.06),
        rgba(168, 85, 247, 0.03),
        transparent 40%
    );
    transition: opacity 0.3s ease;
}

/* 特殊的聚焦效果 */
.design-card:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    transform: translateY(-4px) scale(1.005);
}

/* 无障碍优化 */
@media (prefers-reduced-motion: reduce) {
    .design-card {
        animation: none;
        opacity: 1;
    }
    
    .design-card:hover {
        transform: none;
    }
}

/* 骨架屏 */
.design-card.loading {
    pointer-events: none;
}

.design-card.loading .design-thumbnail {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.design-card.loading .design-title,
.design-card.loading .author-name,
.design-card.loading .design-tag {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    color: transparent;
    border-radius: 4px;
}

/* 深色模式优化 */
@media (prefers-color-scheme: dark) {
    .design-card.loading .design-thumbnail,
    .design-card.loading .design-title,
    .design-card.loading .author-name,
    .design-card.loading .design-tag {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .design-card,
    .design-card:hover,
    .design-thumbnail img,
    .design-action-btn,
    .design-tag,
    .author-avatar {
        animation: none !important;
        transition: none !important;
    }
    
    .design-card:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

/* 高级交互效果 */
.video-card {
    transform-origin: center;
}

.video-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* 无障碍改善 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .video-card:hover {
        transform: none;
    }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0f;
        --bg-secondary: #151520;
        --bg-tertiary: #1a1a2e;
        --bg-card: #1e1e3f;
    }
}

/* 打印样式 */
@media print {
    .sidebar,
    .header,
    .filter-bar,
    .load-more {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .video-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}




