body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* 卡片样式 */
.video-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 100%;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.video-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

/* 评分星星 */
.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

/* 作品元信息 */
.work-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.work-meta i {
    margin-right: 3px;
}

/* 管理后台侧边栏 */
.admin-sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 56px);
    padding: 20px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.admin-sidebar .nav-link {
    color: #333;
    padding: 10px 20px;
    margin: 2px 0;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.admin-sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* 仪表盘统计卡片 */
.dashboard-stats {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dashboard-stats .number {
    font-size: 2.5rem;
    font-weight: bold;
}

.dashboard-stats .label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 音频播放器 */
.audio-player {
    width: 100%;
    margin: 10px 0;
}

.audio-player-small {
    width: 100%;
    height: 40px;
}

/* 视频容器 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    border-radius: 5px;
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 评论区域 */
.comment-item {
    transition: background-color 0.2s;
    padding: 15px;
    border-radius: 5px;
}

.comment-item:hover {
    background-color: #f8f9fa;
}

.reply-item {
    padding: 10px;
    border-left: 3px solid #007bff;
    margin-top: 10px;
    background-color: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

/* 排行榜奖牌颜色 */
.bg-bronze {
    background-color: #cd7f32;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
        margin-bottom: 20px;
    }

    .dashboard-stats .number {
        font-size: 1.8rem;
    }

    .video-card .card-img-top {
        height: 140px;
    }
}

/* 社交分享按钮 */
.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}

.share-button:hover {
    transform: scale(1.1);
}

.share-weibo { background-color: #e6162d; }
.share-wechat { background-color: #07c160; }
.share-qq { background-color: #12b7f5; }
.share-copy { background-color: #6c757d; }

/* 收藏按钮动画 */
.fav-heart {
    transition: transform 0.3s;
    cursor: pointer;
}

.fav-heart:hover {
    transform: scale(1.2);
}

.fav-heart.active {
    color: #dc3545;
}

/* 录音界面样式 */
.recording-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 30px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.recording-timer {
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.record-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #667eea;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.record-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.record-btn.recording {
    background: #ff4444;
    color: white;
    animation: pulse 1.5s infinite;
}

.record-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.volume-indicator {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.volume-level {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.1s;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.video-container.recording .video-overlay {
    opacity: 1;
}

.waveform-container {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.waveform {
    height: 100px;
    background: #e9ecef;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* 作品卡片 */
.work-card {
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 用户头像 */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 标签 */
.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4391 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 页脚 */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* 动画效果 */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}