/* ==================== 全局样式 ==================== */
:root {
    --primary-color: #ff2d55;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-color: #34c759;
    --error-color: #ff3b30;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --background: #f5f7fa;
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 深色模式 ==================== */
body.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --background: #0f0f1e;
    --glass-background: rgba(30, 30, 50, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .input-wrapper input {
    background: rgba(30, 30, 50, 0.9);
    color: var(--text-primary);
}

body.dark-mode .input-wrapper input::placeholder {
    color: #666;
}

body.dark-mode .tool-btn {
    background: rgba(50, 50, 80, 0.7);
}

body.dark-mode .tool-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

body.dark-mode .logo svg {
    color: #ffffff;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

body.dark-mode .header h1 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== 背景装饰 ==================== */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -250px;
    right: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -200px;
    left: -200px;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ==================== 容器 ==================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* ==================== 毛玻璃卡片 ==================== */
.glass-card {
    background: var(--glass-background);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ==================== 头部 ==================== */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo svg {
    color: #1a1a1a;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: logoRotate 10s linear infinite;
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    display: inline;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text {
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 8px;
}

/* ==================== 主内容区 ==================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==================== 输入区域 ==================== */
.input-section {
    padding: 32px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: var(--text-secondary);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 48px 16px 50px;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.input-wrapper input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.input-wrapper input::placeholder {
    color: #999;
}

.clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.clear-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.parse-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.parse-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;
}

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

.parse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
}

.parse-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15);
}

.parse-btn:active {
    transform: translateY(0);
}

.parse-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.parse-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ==================== 使用说明 ==================== */
.tips {
    padding: 24px 32px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.tips h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tips h3 svg {
    color: #667eea;
}

.tips ol {
    list-style: none;
    counter-reset: tips-counter;
}

.tips li {
    counter-increment: tips-counter;
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tips li::before {
    content: counter(tips-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.tips li:hover::before {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ==================== 加载状态 ==================== */
.loading-section {
    padding: 60px 32px;
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== 错误提示 ==================== */
.error-section {
    padding: 48px 32px;
    text-align: center;
    animation: fadeInUp 0.4s ease-out;
}

.error-section svg {
    color: var(--error-color);
    margin-bottom: 16px;
}

.error-section h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.error-section p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==================== 结果展示 ==================== */
.result-section {
    animation: fadeInUp 0.6s ease-out;
}

.video-card {
    overflow: hidden;
    padding: 0;
}

.video-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.video-card:hover .video-cover img {
    transform: scale(1.05);
}

/* 视频预览功能已删除 */

.video-info {
    padding: 32px;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.author-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.video-title {
    margin-bottom: 24px;
}

.video-title p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ==================== 操作按钮 ==================== */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.action-btn.primary {
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    color: white;
    grid-column: 1 / -1;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #2a2a2a 0%, #4a4a4a 100%);
}

.action-btn.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

/* ==================== 页脚 ==================== */
.footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeIn 0.6s ease-out 0.4s backwards;
}

.footer p {
    margin: 8px 0;
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==================== 动画 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .input-section {
        padding: 24px;
    }

    .input-wrapper input {
        font-size: 0.95rem;
        padding: 14px 42px 14px 46px;
    }

    .parse-btn {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .tips {
        padding: 20px 24px;
    }

    .tips li {
        font-size: 0.9rem;
        padding-left: 36px;
    }

    .video-info {
        padding: 24px;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .action-btn.primary {
        grid-column: auto;
    }

    .footer {
        font-size: 0.85rem;
        margin-top: 32px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.75rem;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .input-section {
        padding: 20px;
    }

    .tips {
        padding: 16px 20px;
    }

    .video-info {
        padding: 20px;
    }

    .author-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .play-overlay {
        width: 64px;
        height: 64px;
    }

    .play-overlay svg {
        width: 48px;
        height: 48px;
    }
}

/* ==================== 工具栏 ==================== */
.toolbar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
    animation: fadeInDown 0.6s ease-out;
}

.tool-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background: var(--glass-background);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    animation: toolBtnEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.tool-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-btn:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes toolBtnEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tool-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: rgba(102, 126, 234, 0.1);
}

.tool-btn:active {
    transform: translateY(0) scale(0.95);
}

.history-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
}

/* ==================== 历史记录面板 ==================== */
.history-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--glass-background);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid var(--glass-border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-panel.show {
    right: 0;
}

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

.history-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.history-header svg {
    color: #667eea;
}

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

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.history-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.history-content::-webkit-scrollbar {
    width: 6px;
}

.history-content::-webkit-scrollbar-track {
    background: transparent;
}

.history-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.history-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-history svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.history-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .history-item {
    background: rgba(30, 30, 50, 0.5);
}

.history-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
    border-color: #667eea;
}

.history-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.history-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.history-item-author {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.history-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
}

.clear-history-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: var(--radius-sm);
    color: var(--error-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.clear-history-btn:hover {
    background: rgba(255, 59, 48, 0.15);
    transform: translateY(-2px);
}

/* 视频预览模态框已删除 */

/* ==================== 鼠标跟随光标 ==================== */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4) 0%, transparent 70%);
    pointer-events: none;
    transition: transform 0.15s ease-out;
    z-index: 9999;
    mix-blend-mode: screen;
    display: none;
}

body:not(.mobile) .cursor-follower {
    display: block;
}

/* ==================== 增强的动画效果 ==================== */
.glass-card {
    animation: cardFloat 6s ease-in-out infinite;
}

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

.action-btn {
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:active::after {
    width: 300px;
    height: 300px;
}

/* 彩虹边框效果 */
.video-card {
    position: relative;
}

.video-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    border-radius: var(--radius-md);
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    background-size: 400%;
    animation: rainbowRotate 20s linear infinite;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes rainbowRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

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

/* ==================== 响应式 - 历史面板 ==================== */
@media (max-width: 768px) {
    .toolbar {
        top: 12px;
        right: 12px;
    }

    .tool-btn {
        width: 44px;
        height: 44px;
    }

    .history-panel {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        width: 95%;
        border-radius: var(--radius-md);
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .background-decoration,
    .footer,
    .tips,
    .action-buttons,
    .toolbar,
    .history-panel,
    .video-modal,
    .cursor-follower {
        display: none;
    }
}

