/* 广场页面专用样式 */

/* 浏览器重置 - 专门针对图片 */
.plaza-artworks *,
.plaza-artworks *::before,
.plaza-artworks *::after {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    -webkit-box-reflect: none !important;
    -webkit-filter: none !important;
    filter: none !important;
}

/* 全局设置 */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #64748b;
    --border-color: #e5e7eb;
    --surface-color: #ffffff;
    --background-color: #f8fafc;
}

.plaza-main {
    padding-top: 0;
    min-height: 100vh;
}

/* 标题区域 */
.plaza-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.plaza-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plaza-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* 筛选区域 */
.plaza-filters {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.filters-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.category-filters,
.sort-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
}

.filter-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.filter-btn i {
    font-size: 0.875rem;
}

/* 作品展示区域 - 瀑布流布局 */
.plaza-artworks {
    padding: 2rem 0;
    background: var(--background-color);
}

/* 强制移除图片的任何默认样式 */
.plaza-artworks img {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none !important;
    opacity: 1 !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

.artworks-grid {
    column-count: 4;
    column-gap: 0px;
    margin: 0;
}

/* 只对音乐分类使用网格布局 */
.artworks-grid.music-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    column-count: unset;
    column-gap: unset;
}

/* 作品卡片 - 默认瀑布流布局 */
.artwork-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 0px;
    break-inside: avoid;
    cursor: pointer;
    border-radius: 0px;
    overflow: hidden;
    transition: filter 0.6s ease-out, opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 作品卡片显示动画 */
.artwork-card.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 音乐网格布局的卡片样式 */
.artworks-grid.music-grid .artwork-card {
    display: block;
    margin-bottom: 0;
    break-inside: unset;
    border-radius: 0px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.artwork-card:hover {
    /* 移除向上移动效果，只保留亮度变化 */
    filter: brightness(1.05);
}

/* 确保已显示的卡片hover效果正常 */
.artwork-card.fade-in:hover {
    filter: brightness(1.05);
    transform: translateY(0) scale(1.02);
}

/* 音乐卡片的悬停效果 */
.artworks-grid.music-grid .artwork-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    filter: none;
}

/* 音乐卡片淡入后的hover效果 */
.artworks-grid.music-grid .artwork-card.fade-in:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    filter: none;
}

/* 作品预览 - 保持原始比例 */
.artwork-preview {
    position: relative;
    width: 100%;
    background: none !important;
    border-radius: 0px;
    overflow: hidden !important;
    border: none !important;
    box-shadow: none !important;
}

.artwork-preview img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    border-radius: 0px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    transform-origin: center center;
    opacity: 0;
}

/* 图片加载完成后的淡入效果 */
.artwork-preview img.loaded {
    opacity: 1;
}

.plaza-artworks .artworks-grid .artwork-card:hover .artwork-preview img {
    transform: scale(1.1) !important;
}

/* 强制移除所有可能的白色背景和遮罩 */
.artwork-card,
.artwork-card *,
.artwork-preview,
.artwork-preview *:not(.artwork-overlay):not(.audio-preview) {
    background-color: transparent !important;
    background-image: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.artwork-card::before,
.artwork-card::after,
.artwork-preview::before,
.artwork-preview::after,
.artwork-card img::before,
.artwork-card img::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* 重置可能来自全局样式的卡片样式 */
.plaza-artworks .artwork-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* 最终兜底样式 - 使用更高的CSS权重 */
.plaza-artworks .artworks-grid .artwork-card,
.plaza-artworks .artworks-grid .artwork-card .artwork-preview,
.plaza-artworks .artworks-grid .artwork-card .artwork-preview img {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    vertical-align: top !important;
}

/* 视频预览专门样式 */
.video-preview {
    width: 100% !important;
    height: 100% !important;
    min-height: 250px !important;
    background: #000 !important;
    border-radius: 0px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.6s ease-out !important;
    transform-origin: center center !important;
}

/* 确保视频容器有合适的高度 */
.artwork-preview.video-container {
    min-height: 250px !important;
    background: #000 !important;
    border-radius: 0px !important;
    overflow: hidden !important;
}

.artwork-preview .video-preview {
    min-height: 250px !important;
}

/* 确保transition生效的高权重样式 */
.plaza-artworks .artworks-grid .artwork-card .artwork-preview img {
    transition: transform 0.6s ease-out !important;
    transform-origin: center center !important;
}

.plaza-artworks .artworks-grid .artwork-card .artwork-preview video {
    transition: transform 0.6s ease-out !important;
    transform-origin: center center !important;
    background: #000 !important;
    border-radius: 0px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 250px !important;
    object-fit: cover !important;
    display: block !important;
}

.plaza-artworks .artworks-grid .artwork-card .artwork-preview .audio-preview i {
    transition: transform 0.6s ease-out !important;
    transform-origin: center center !important;
}

/* 强制移除可能的伪元素 */
.plaza-artworks .artworks-grid .artwork-card::before,
.plaza-artworks .artworks-grid .artwork-card::after,
.plaza-artworks .artworks-grid .artwork-card .artwork-preview::before,
.plaza-artworks .artworks-grid .artwork-card .artwork-preview::after {
    content: none !important;
    display: none !important;
}

/* 专门针对音频预览的强制样式 */
.plaza-artworks .artworks-grid .artwork-card .artwork-preview .audio-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
}

.plaza-artworks .artworks-grid .artwork-card .artwork-preview .audio-preview * {
    color: white !important;
}

/* 超高优先级样式 - 确保音频预览背景正确显示 */
.plaza-artworks .artwork-card .artwork-preview .audio-preview,
.plaza-artworks .artworks-grid .artwork-card .artwork-preview .audio-preview,
body .plaza-artworks .artworks-grid .artwork-card .artwork-preview .audio-preview,
html body .plaza-artworks .artworks-grid .artwork-card .artwork-preview .audio-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-color: #667eea !important;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    aspect-ratio: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0px !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* 音频预览 */
.audio-preview {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: 
        linear-gradient(145deg, #0f0f23, #1a1a2e),
        radial-gradient(circle at 20% 20%, rgba(139,92,246,0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59,130,246,0.15), transparent 50%) !important;
    color: white !important;
    position: relative;
    border-radius: 0px;
    border: 1px solid rgba(139,92,246,0.3) !important;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.4),
        0 15px 35px rgba(139,92,246,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 0 60px rgba(139,92,246,0.05) !important;
    margin: 0 !important;
    padding: 2rem 1.5rem !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.plaza-artworks .artworks-grid .artwork-card:hover .audio-preview {
    transform: scale(1.02);
    border: 1px solid rgba(139,92,246,0.6) !important;
    box-shadow: 
        0 35px 100px rgba(0,0,0,0.5),
        0 20px 50px rgba(139,92,246,0.3),
        0 0 0 2px rgba(139,92,246,0.4),
        0 0 0 6px rgba(139,92,246,0.1),
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 0 80px rgba(139,92,246,0.1) !important;
}

/* 音频卡片动态装饰 */
.audio-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg, 
            transparent, 
            rgba(139,92,246,0.1), 
            transparent, 
            rgba(59,130,246,0.1), 
            transparent, 
            rgba(168,85,247,0.1), 
            transparent
        );
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

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

.plaza-artworks .artworks-grid .artwork-card:hover .audio-preview::before {
    opacity: 1;
    animation-duration: 3s;
}

/* 音频可视化条纹 */
.audio-preview::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(139,92,246,0.8),
        rgba(59,130,246,1),
        rgba(168,85,247,0.8),
        rgba(139,92,246,0.8),
        transparent
    );
    border-radius: 0px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139,92,246,0.5);
}

.plaza-artworks .artworks-grid .artwork-card:hover .audio-preview::after {
    opacity: 1;
    animation: audioWave 1.2s ease-in-out infinite;
}

@keyframes audioWave {
    0%, 100% { 
        transform: translateX(-50%) scaleX(1); 
        opacity: 0.7; 
        box-shadow: 0 0 20px rgba(139,92,246,0.5);
    }
    50% { 
        transform: translateX(-50%) scaleX(1.3); 
        opacity: 1; 
        box-shadow: 0 0 30px rgba(139,92,246,0.8);
    }
}

/* 音乐图标容器 */
.audio-preview .music-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: 
        linear-gradient(145deg, #8b5cf6, #3b82f6),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
    border-radius: 50%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 
        0 8px 25px rgba(139,92,246,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.plaza-artworks .artworks-grid .artwork-card:hover .audio-preview .music-icon-container {
    transform: scale(1.1) rotate(5deg);
    background: 
        linear-gradient(145deg, #a855f7, #6366f1),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 50%);
    box-shadow: 
        0 15px 40px rgba(139,92,246,0.5),
        0 0 0 4px rgba(139,92,246,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.audio-preview i {
    font-size: 2.8rem;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.plaza-artworks .artworks-grid .artwork-card:hover .audio-preview i {
    color: white !important;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
    text-shadow: 0 0 30px rgba(255,255,255,0.6);
    animation: musicFloat 2s ease-in-out infinite;
}

@keyframes musicFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* 音乐标题样式 */
.audio-preview .music-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    text-align: center;
    line-height: 1.3;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.plaza-artworks .artworks-grid .artwork-card:hover .audio-preview .music-title {
    color: #f1f5f9;
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(139,92,246,0.3);
}

/* 音频频谱装饰 */
.audio-preview .audio-spectrum {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.audio-preview .audio-spectrum .bar {
    width: 2px;
    background: linear-gradient(to top, rgba(139,92,246,0.6), rgba(59,130,246,0.6));
    border-radius: 0px;
}

.audio-preview .audio-spectrum .bar:nth-child(1) { height: 20px; animation: spectrum 1.2s ease-in-out infinite; }
.audio-preview .audio-spectrum .bar:nth-child(2) { height: 30px; animation: spectrum 1.2s ease-in-out infinite 0.1s; }
.audio-preview .audio-spectrum .bar:nth-child(3) { height: 25px; animation: spectrum 1.2s ease-in-out infinite 0.2s; }
.audio-preview .audio-spectrum .bar:nth-child(4) { height: 35px; animation: spectrum 1.2s ease-in-out infinite 0.3s; }
.audio-preview .audio-spectrum .bar:nth-child(5) { height: 28px; animation: spectrum 1.2s ease-in-out infinite 0.4s; }

@keyframes spectrum {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.plaza-artworks .artworks-grid .artwork-card:hover .audio-preview .audio-spectrum {
    opacity: 1;
}

.audio-preview audio {
    width: 80%;
    margin-top: 1rem;
}

/* 视频预览 */
.artwork-preview video {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: block;
    border-radius: 0px;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    object-fit: cover;
    background: #000;
    transition: transform 0.6s ease-out;
    transform-origin: center center;
}

.plaza-artworks .artworks-grid .artwork-card:hover .artwork-preview video {
    transform: scale(1.1) !important;
}

/* 悬浮信息层 */
.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0px;
}

/* 移除悬停显示文字的效果 - 只在点击弹窗中显示信息 */
/* .artwork-card:hover .artwork-overlay {
    transform: translateY(0);
} */

.artwork-overlay .artwork-prompt {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artwork-overlay .quick-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* 酷炫弹窗样式 */
.artwork-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.95), rgba(15,23,42,0.95));
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.artwork-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1e293b, #334155);
    border-radius: 24px;
    max-width: 95vw;
    width: 1500px;
    height: 85vh;
    max-height: 85vh;
    display: flex;
    overflow: hidden;
    transform: scale(0.8) rotateY(15deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 32px 64px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}

.artwork-modal.active .modal-content {
    transform: scale(1) rotateY(0deg);
}

.modal-media {
    flex: 1;
    max-width: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.modal-media::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.1), transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(168,85,247,0.1), transparent 50%);
    pointer-events: none;
}

.modal-media img,
.modal-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.modal-media .audio-player {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.modal-media .audio-player i {
    font-size: 5rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(59,130,246,0.6));
}

.modal-media .audio-player audio {
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.9));
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 0px;
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.modal-media .audio-player h3 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.modal-info {
    flex: 1;
    max-width: 35%;
    padding: 2.5rem;
    display: block;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    position: relative;
}

.modal-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.1), transparent 70%);
    pointer-events: none;
}

.modal-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.modal-title {
    display: none;
}

.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.modal-body {
    height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
    position: relative;
    z-index: 1;
    scrollbar-width: auto;
    scrollbar-color: #3b82f6 #1e293b;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h4::before {
    content: '';
    width: 3px;
    height: 12px;
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.modal-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(15,23,42,0.8);
    border-radius: 0px;
    border: 1px solid rgba(59,130,246,0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(59,130,246,0.3);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.75rem;
    color: #94a3b8;
}

.modal-footer {
    border-top: 1px solid rgba(59,130,246,0.2);
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
    color: #64748b;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15,23,42,0.8);
    border-radius: 0px;
    border: 1px solid rgba(59,130,246,0.1);
}

.like-btn, .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.like-btn {
    background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(220,38,38,0.1));
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

.copy-btn {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.3);
    padding: 0.6rem !important;
    min-width: auto !important;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    font-size: 0.75rem !important;
}

.like-btn:hover, .copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.like-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #ef4444;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: #3b82f6;
}

.like-btn.liked {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #ef4444;
}

/* 自定义滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 12px;
}

.modal-body::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 6px;
    border: 2px solid #1e293b;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}



.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.9));
    color: #94a3b8;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: scale(1.1) rotate(90deg);
    border-color: #ef4444;
}

/* 加载指示器样式 */
#loadingIndicator,
#endIndicator {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 2rem;
}

#loadingIndicator i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

#endIndicator i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #10b981;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .artworks-grid {
        column-count: 3;
    }
    
    .artworks-grid.music-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .artworks-grid {
        column-count: 2;
    }
    
    .artworks-grid.music-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .modal-content {
        flex-direction: column;
        max-width: 95vw;
        width: auto;
        height: 95vh;
        max-height: 95vh;
    }
    
    .modal-media {
        max-width: 100%;
        max-height: 60%;
    }
    
    .modal-info {
        max-width: 100%;
    }
    
    .modal-body {
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    .plaza-filters {
        padding: 1.5rem 0;
    }
    
    .filters-wrapper {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .category-filters,
    .sort-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .plaza-artworks {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .artworks-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .artworks-grid.music-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .artwork-card {
        margin-bottom: 0;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .modal-info {
        padding: 1.5rem;
    }
    
    .modal-meta {
        font-size: 0.7rem !important;
    }
    
    #modalPrompt {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    .modal-body {
        height: 250px !important;
        padding-right: 0.25rem !important;
    }
    
    .audio-preview {
        padding: 1.5rem 1rem !important;
    }
    
    .audio-preview .music-icon-container {
        width: 70px;
        height: 70px;
    }
    
    .audio-preview i {
        font-size: 2.2rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
}

/* 作品加载占位动画 - 增强版 */
.artwork-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.artwork-loading-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-line 1.5s infinite ease;
}

@keyframes loading-line {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.artwork-loading-placeholder.hide {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

/* Hide loading text and old animations */
.loading-text,
.loading-icon-container,
.loading-pulse-ring,
.loading-center-icon,
#loadingIndicator {
    display: none !important;
}

/* Modern infinite scroll loader */
.infinite-scroll-loader {
    width: 40px;
    height: 40px;
    margin: 40px auto;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}

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