/* 默认主题css样式 */

tailwind.config = {
    theme: {
        extend: {
            colors: {
                primary: '#2c3e50',
                secondary: '#3498db',
                gradientStart: '#f8f9fa',
                gradientEnd: '#e9ecef'
            },
            animation: {
                laser: 'laser 3s infinite',
                particle: 'particle 1s ease-out'
            },
            keyframes: {
                laser: {
                    '0%': { left: '-100%' },
                    '100%': { left: '100%' }
                },
                particle: {
                    '0%': { 
                        transform: 'translate(-50%, -50%) scale(0)',
                        opacity: '1'
                    },
                    '100%': { 
                        transform: 'translate(-50%, -50%) scale(3)',
                        opacity: '0'
                    }
                }
            }
        }
    }
}
/* 加载动画样式 */
.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* 半透明遮罩层 */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
}

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

/* 内容区域初始隐藏 */
.content {
    display: none;
    padding: 20px;
}

/* 媒体文件样式 */
.media-container {
    margin: 1rem 0;
}

.media-item {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.media-image {
    max-width: 50%;
    height: auto;
    object-fit: cover;
}

.media-video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
/* 图片悬停自动放大 */
.image-container {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-container img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.2);
}

.image-container:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}
tailwind.config = {
    theme: {
        extend: {
            animation: {
                'fade-in': 'fadeIn 0.5s ease-in forwards',
                'fade-out': 'fadeOut 0.5s ease-out forwards',
                'float': 'floating 3s ease-in-out infinite'
            },
            keyframes: {
                fadeIn: {
                    '0%': { opacity: 0, transform: 'translateY(10px)' },
                    '100%': { opacity: 1, transform: 'translateY(0)' }
                },
                fadeOut: {
                    '0%': { opacity: 1 },
                    '100%': { opacity: 0 }
                },
                floating: {
                    '0%': { transform: 'translateY(0px)' },
                    '50%': { transform: 'translateY(-8px)' },
                    '100%': { transform: 'translateY(0px)' }
                }
            }
        }
    }
}
.message-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.empty-state {
    animation: float 4s ease-in-out infinite;
}

/* 自定义滚动条 */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-thumb {
    background-color: #c5c5c5;
    border-radius: 3px;
}

/* 添加新留言的动画效果 */
@keyframes new-message {
    0% {
        transform: scale(0.9);
        opacity: 0;
        background-color: rgba(239, 246, 255, 0.8);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        background-color: white;
    }
}

.new-message {
    animation: new-message 0.8s ease-out;
}

.avatar-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(147, 197, 253, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}