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

:root {
    --bg: #0A0A0B;
    --bg-soft: #0e0e10;
    --bg-elevated: #121214;
    --surface: #161619;
    --surface-hover: #1c1c20;
    --text: #F0F1F3;
    --text-secondary: #a8adb5;
    --text-muted: #6b7280;
    --accent: #B8C1CC;
    --accent-soft: rgba(184, 193, 204, 0.7);
    --accent-glow: rgba(184, 193, 204, 0.15);
    --accent-subtle: rgba(184, 193, 204, 0.08);
    --border: #232328;
    --border-soft: #1a1a1e;
    --success: #8ECFB8;
    --success-soft: rgba(142, 207, 184, 0.15);
    /* 图表配色 - 银灰色系 */
    --chart-1: #B8C1CC;
    --chart-2: #8B95A1;
    --chart-3: #6B7580;
    --chart-4: #4A5058;
    --chart-highlight: #D4DCE5;
    --warning: #C9A86C;
    --warning-soft: rgba(201, 168, 108, 0.15);

    /* Z-INDEX 层级系统（统一管理）
     * -1:     背景装饰
     *  1:     局部层叠
     * 100:    下拉菜单（用户头像等）
     * 2000:   模态弹窗（登录/关于/更新/授权/反馈）
     * 2500:   视频预览弹窗（覆盖分析结果弹窗）
     * 3000:   右键菜单
     * 5000:   Toast通知（始终可见）
     * 8000:   引导蒙版
     * 9999:   启动画面 / 全局进度条
     * 10000:  初始加载画面（最高层）
     */
}

/* ===== 浅色模式变量覆盖 ===== */
[data-theme="light"] {
    --bg: #F4F5F7;
    --bg-soft: #EBEDF0;
    --bg-elevated: #FFFFFF;
    --surface: #FFFFFF;
    --surface-hover: #F0F1F3;
    --text: #1A1C1E;
    --text-secondary: #4A4D52;
    --text-muted: #8A8F96;
    --accent: #4A5568;
    --accent-soft: rgba(74, 85, 104, 0.7);
    --accent-glow: rgba(74, 85, 104, 0.12);
    --accent-subtle: rgba(74, 85, 104, 0.06);
    --border: #D8DBE0;
    --border-soft: #E8EAED;
    --success: #22C55E;
    --success-soft: rgba(34, 197, 94, 0.12);
    --chart-1: #4A5568;
    --chart-2: #718096;
    --chart-3: #A0AEC0;
    --chart-4: #CBD5E0;
    --chart-highlight: #2D3748;
    --warning: #D97706;
    --warning-soft: rgba(217, 119, 6, 0.12);
}

[data-theme="light"] .titlebar {
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F5F7 100%);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    border-right: 1px solid var(--border);
}

[data-theme="light"] .splash {
    background: #F4F5F7;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== 数字等宽字体 ===== */
.mono-num {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-variant-numeric: tabular-nums;
}

/* ===== 启动画面 Splash Screen ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splash-pulse 2s ease-in-out infinite;
    margin-bottom: 24px;
}
.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(184, 193, 204, 0.4));
}
@keyframes splash-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 32px rgba(184, 193, 204, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 12px 48px rgba(184, 193, 204, 0.4); }
}
.splash-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.splash-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.splash-progress {
    width: 200px;
    height: 3px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}
.splash-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}
.splash-status {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== 全局进度条 ===== */
.global-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}
.global-progress.active {
    opacity: 1;
}
.global-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 50%, var(--accent) 100%);
    background-size: 200% 100%;
    animation: progress-shimmer 1.5s linear infinite;
    width: 0%;
    transition: width 0.3s ease;
}
@keyframes progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== 页面转场动画 ===== */
.page {
    display: none;
    flex: 1;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.page.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}
.page.page-entering {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
}

/* ===== 录制动画 ===== */
@keyframes recordPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes recordBorder {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
#recordBtn.recording {
    background: rgba(239, 68, 68, 0.2) !important;
    animation: recordPulse 1s ease-in-out infinite;
}
.video-panel-content {
    position: relative;
}

/* ===== 按钮涟漪效果 ===== */
.ripple-container {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-effect 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== 卡片3D悬浮效果 ===== */
.card-tilt {
    transition: transform 0.15s ease;
    transform-style: preserve-3d;
}
.card-tilt:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
}

/* ===== Logo呼吸动画 ===== */
.logo-breathe {
    animation: logo-breathe 3s ease-in-out infinite;
}
@keyframes logo-breathe {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(184, 193, 204, 0.3)); }
    50% { opacity: 0.85; filter: drop-shadow(0 0 16px rgba(184, 193, 204, 0.5)); }
}

/* ===== 图表动画 ===== */
.chart-bar-animate {
    transform-origin: bottom;
    animation: chart-grow 0.8s ease-out forwards;
}
@keyframes chart-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}
.chart-bar-animate:nth-child(1) { animation-delay: 0.1s; }
.chart-bar-animate:nth-child(2) { animation-delay: 0.15s; }
.chart-bar-animate:nth-child(3) { animation-delay: 0.2s; }
.chart-bar-animate:nth-child(4) { animation-delay: 0.25s; }
.chart-bar-animate:nth-child(5) { animation-delay: 0.3s; }
.chart-bar-animate:nth-child(6) { animation-delay: 0.35s; }
.chart-bar-animate:nth-child(7) { animation-delay: 0.4s; }

/* ===== 增强毛玻璃效果 ===== */
.glass-effect {
    background: rgba(22, 22, 25, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.glass-effect-light {
    background: rgba(184, 193, 204, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== 空状态插图 ===== */
.empty-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    opacity: 0.6;
}
.empty-illustration svg {
    width: 100%;
    height: 100%;
}

/* ===== 数据刷新旋转动画 ===== */
.spin-refresh {
    animation: spin-refresh 1s linear infinite;
}
@keyframes spin-refresh {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== hover高亮效果 ===== */
.highlight-hover {
    transition: all 0.2s ease;
}
.highlight-hover:hover {
    background: var(--surface-hover);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

/* ===== 分析结果弹窗 ===== */
.analysis-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;  /* 模态弹窗层 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.analysis-result-modal.show {
    opacity: 1;
    visibility: visible;
}
.result-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}
.result-modal-content {
    position: relative;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}
.analysis-result-modal.show .result-modal-content {
    transform: translateY(0) scale(1);
}
.result-modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: var(--success-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-icon i {
    font-size: 32px;
    color: var(--success);
}
.result-modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.result-modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}
.result-video-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.result-video-preview video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.video-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}
.ai-badge {
    background: rgba(184, 193, 204, 0.9);
    color: var(--bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.result-stats .stat-item {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-soft);
    border-radius: 10px;
}
.result-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'SF Mono', monospace;
}
.result-stats .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
.result-actions {
    display: flex;
    gap: 12px;
}
.result-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.result-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent-soft);
}
.result-btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: var(--bg);
    border: none;
}
.result-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 193, 204, 0.3);
}
.result-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-soft);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.result-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* ===== 视频预览弹窗 ===== */
.video-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2500;  /* 视频预览层（高于普通模态） */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.video-preview-modal.show {
    opacity: 1;
    visibility: visible;
}
.preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}
.preview-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.video-preview-modal.show .preview-content {
    transform: translateY(0);
}
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.preview-title i {
    color: var(--accent);
}
.preview-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-soft);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.preview-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.preview-video-container {
    background: var(--bg);
}
.preview-video-container video {
    width: 100%;
    max-height: 60vh;
    display: block;
}
.preview-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}
.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}
.info-item i {
    color: var(--accent);
}
.info-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--success-soft);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.preview-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}
.preview-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.preview-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent-soft);
}
.preview-btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: var(--bg);
    border: none;
}
.preview-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 193, 204, 0.3);
}

/* ===== 自定义羽毛球SVG图标 ===== */
.icon-shuttlecock {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C9.5 2 7.5 4 7.5 6.5c0 1.5.7 2.8 1.8 3.7L12 12l2.7-1.8c1.1-.9 1.8-2.2 1.8-3.7C16.5 4 14.5 2 12 2zm0 2c1.4 0 2.5 1.1 2.5 2.5S13.4 9 12 9s-2.5-1.1-2.5-2.5S10.6 4 12 4zm0 9l-1.5 1 .5 8h2l.5-8-1.5-1z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C9.5 2 7.5 4 7.5 6.5c0 1.5.7 2.8 1.8 3.7L12 12l2.7-1.8c1.1-.9 1.8-2.2 1.8-3.7C16.5 4 14.5 2 12 2zm0 2c1.4 0 2.5 1.1 2.5 2.5S13.4 9 12 9s-2.5-1.1-2.5-2.5S10.6 4 12 4zm0 9l-1.5 1 .5 8h2l.5-8-1.5-1z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== 标题栏 ===== */
.titlebar {
    height: 36px;
    background: linear-gradient(180deg, #111113 0%, #0d0d0f 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    -webkit-app-region: drag;
    border-bottom: 1px solid var(--border-soft);
}

.titlebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.titlebar-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.titlebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(184, 193, 204, 0.3));
}

.titlebar-controls {
    display: flex;
    -webkit-app-region: no-drag;
}

.titlebar-btn {
    width: 46px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-size: 11px;
}

.titlebar-btn:hover {
    background: var(--surface);
    color: var(--text);
}

.titlebar-btn.close:hover {
    background: #c42b1c;
    color: white;
}

/* ===== 主布局 ===== */
.app-layout {
    display: flex;
    height: calc(100% - 36px - 28px); /* 减去标题栏和状态栏高度 */
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: 220px;
    background: linear-gradient(180deg, rgba(14, 14, 16, 0.95) 0%, rgba(10, 10, 11, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
}

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

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 14px;
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 3px;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.nav-item:hover {
    background: var(--surface);
    color: var(--text);
}

.nav-item:hover i {
    color: var(--text-secondary);
}

.nav-item.active {
    background: var(--accent-subtle);
    color: var(--text);
}

.nav-item.active i {
    color: var(--accent);
}

/* 自动剪辑导航项 */
.nav-item.nav-clip {
    position: relative;
}

.nav-new-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--accent-subtle);
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-left: auto;
}

.sidebar-spacer {
    flex: 1;
}

/* 用户登录区域 */
.user-section {
    margin-bottom: 16px;
}

.user-logged-out {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    text-align: center;
}

.user-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 2px dashed var(--border);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-placeholder i {
    font-size: 20px;
    color: var(--text-muted);
}

.user-prompt {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.login-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    border: none;
    border-radius: 8px;
    color: var(--bg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(184, 193, 204, 0.3);
}

.login-btn i {
    font-size: 14px;
}

.register-link {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.register-link a {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 已登录状态 */
.user-logged-in {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    display: none;
}

.user-logged-in.show {
    display: block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--bg);
}

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

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-plan {
    font-size: 11px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-plan i {
    font-size: 10px;
}

.user-menu-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.user-menu-btn:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

/* 系统状态 */
.system-status {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-soft);
    padding: 3px 8px;
    border-radius: 10px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
    animation: breathe 2s ease-in-out infinite;
}

.status-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--success);
    animation: ripple 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
}

.status-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.status-item-label {
    color: var(--text-muted);
    font-size: 12px;
}

.status-item-value {
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* ===== 主内容区 ===== */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== 首页布局 ===== */
.home-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    overflow-y: auto;
}

/* 快捷操作区 */
.quick-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* 主内容区 - 两栏 */
.main-content-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* 左侧主区域 */
.left-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

/* ===== 右侧分析记录面板 ===== */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-panel {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
}

.sidebar-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-panel-title i {
    color: var(--accent);
    font-size: 14px;
}

.sidebar-panel-action {
    font-size: 11px;
    color: var(--accent);
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar-panel-action:hover {
    opacity: 0.8;
}

/* 快速统计 */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.quick-stat-item {
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
    transition: all 0.2s;
}

.quick-stat-item:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.quick-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'SF Mono', 'Consolas', monospace;
    line-height: 1.2;
}

.quick-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 球员档案列表 */
.players-list {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
    padding: 8px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-elevated);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.player-card:last-child {
    margin-bottom: 0;
}

.player-card:hover {
    background: var(--surface-hover);
    border-color: var(--accent-subtle);
    transform: translateX(2px);
}

.player-card.active {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.player-card.new {
    animation: playerFadeIn 0.4s ease-out;
}

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

.player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--chart-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--bg);
    flex-shrink: 0;
    position: relative;
}

.player-avatar.has-image {
    background: none;
}

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

.player-rank {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--bg);
    border: 2px solid var(--bg-elevated);
}

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

.player-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.player-name .ai-tag {
    font-size: 9px;
    padding: 2px 5px;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
}

.player-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.player-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-stat i {
    font-size: 10px;
    color: var(--accent);
}

.player-arrow {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
}

.player-card:hover .player-arrow {
    opacity: 1;
}

/* 最近分析区域 */
.recent-analysis {
    display: flex;
    padding: 12px 16px;
    gap: 16px;
}

.recent-item {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.recent-count {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.recent-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* 空状态 */
.players-empty {
    padding: 40px 16px;
    text-align: center;
}

.players-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.players-empty-icon i {
    font-size: 24px;
    color: var(--text-muted);
}

.players-empty-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.players-empty-hint {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* 上传+提示横向排列 */
.upload-row {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    align-items: stretch;
}

/* 右侧信息栏 */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

.action-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, var(--accent-subtle) 100%);
    opacity: 0;
    transition: opacity 0.25s;
}

.action-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.action-card.primary {
    background: linear-gradient(135deg, #1a1a1f 0%, #141416 100%);
    border: 1px solid var(--accent);
    box-shadow:
        0 0 20px rgba(184, 193, 204, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.action-card.primary::before {
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
    opacity: 1;
}

.action-card.primary::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 40%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.2;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.35; }
}

.action-card.primary:hover {
    border-color: var(--accent);
    box-shadow:
        0 0 30px rgba(184, 193, 204, 0.2),
        0 12px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.action-icon {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    transition: all 0.25s;
}

.action-card:hover .action-icon {
    color: var(--accent);
    border-color: var(--accent-soft);
    background: var(--accent-subtle);
}

.action-card.primary .action-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    border-color: var(--accent);
    color: var(--bg);
    box-shadow: 0 4px 16px rgba(184, 193, 204, 0.3);
}

.action-card.primary:hover .action-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(184, 193, 204, 0.4);
}

.action-info {
    position: relative;
    z-index: 1;
}

.action-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.action-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* 自动剪辑卡片 - 与整体风格统一 */
.action-card.clip {
    /* 继承基础 .action-card 样式，无特殊背景 */
}

/* 功能标签 */
.action-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--accent-subtle);
    color: var(--text-secondary);
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* ===== 紧凑上传区 ===== */
.upload-zone-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 0 0 auto;
    min-width: 200px;
}

.upload-zone-compact:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.upload-zone-compact .upload-icon-box {
    width: 48px;
    height: 48px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    transition: all 0.3s;
}

.upload-zone-compact:hover .upload-icon-box {
    background: var(--accent);
    color: var(--bg);
    transform: scale(1.05);
}

.upload-zone-compact .upload-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-zone-compact .upload-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.upload-zone-compact .upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* 提示卡片 */
.tips-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    flex: 1;
}

.tips-card .tips-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
}

.tips-card .tips-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tips-card .tips-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tips-card .tips-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 角落装饰圆 */
.upload-zone::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-subtle);
    border-radius: 50%;
    opacity: 0.3;
}

.upload-zone:hover {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(184, 193, 204, 0.05) 100%);
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    transform: scale(1.01);
}

.upload-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.upload-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

/* 外圈动画 */
.upload-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-subtle);
    border-radius: 50%;
    animation: ring-pulse 3s ease-in-out infinite;
}

.upload-ring:nth-child(2) {
    animation-delay: 1s;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.15); opacity: 0; }
}

.upload-icon-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.upload-zone:hover .upload-icon-box {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(184, 193, 204, 0.15);
}

.upload-icon-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon-inner .fa-film {
    font-size: 32px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.upload-icon-inner .upload-arrow {
    position: absolute;
    font-size: 14px;
    color: var(--accent);
    bottom: -4px;
    right: -8px;
    background: var(--bg-elevated);
    border-radius: 50%;
    padding: 4px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    animation: bounce-up 2s ease-in-out infinite;
}

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.upload-zone:hover .upload-icon-inner .fa-film {
    color: var(--accent);
    transform: scale(1.05);
}

.upload-zone:hover .upload-icon-inner .upload-arrow {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-6px);
}

.upload-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.upload-formats {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.format-badge {
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.upload-zone:hover .format-badge {
    border-color: var(--accent-soft);
    background: var(--accent-subtle);
}

/* 右侧信息栏 - 样式 */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

/* ===== 双视频框区域 ===== */
.video-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    min-height: 300px;
}

.video-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.video-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--accent) 0%, transparent 40%, transparent 60%, var(--accent-soft) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
    filter: blur(8px);
}

.video-panel:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--accent-soft);
}

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

.video-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-soft);
}

.panel-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.panel-indicator i {
    color: var(--accent);
    font-size: 14px;
}

.panel-indicator.live .indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.panel-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-elevated);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.panel-btn:hover {
    background: var(--accent-subtle);
    color: var(--accent);
}

.video-panel-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-elevated);
    cursor: pointer;
    min-height: 200px;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px;
    transition: all 0.3s;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    border: 2px dashed var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.placeholder-icon i {
    font-size: 24px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.video-panel:hover .placeholder-icon {
    border-color: var(--accent);
    background: var(--accent-subtle);
    transform: scale(1.05);
}

.video-panel:hover .placeholder-icon i {
    color: var(--accent);
    transform: rotate(90deg);
}

.placeholder-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

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

.video-panel-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* 底部操作提示 */
.video-tips {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    flex-shrink: 0;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 13px;
}

.tip-item i {
    color: var(--accent);
    font-size: 14px;
    opacity: 0.6;
}

.analyze-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(184, 193, 204, 0.3);
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184, 193, 204, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-soft);
    color: var(--text-muted);
    box-shadow: none;
}

.analyze-btn.ready {
    animation: pulse-ready 2s ease-in-out infinite;
}

@keyframes pulse-ready {
    0%, 100% { box-shadow: 0 4px 16px rgba(184, 193, 204, 0.3); }
    50% { box-shadow: 0 4px 24px rgba(184, 193, 204, 0.5); }
}

/* 自动剪辑快捷按钮 */
.clip-shortcut-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.clip-shortcut-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-soft);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.clip-shortcut-btn i {
    font-size: 12px;
}

/* ===== 中间数据概览区 ===== */
.overview-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    overflow: hidden;
}

.overview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.overview-header i {
    color: var(--accent);
    font-size: 16px;
}

.overview-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* 统计卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
}

.stat-card i {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    font-family: 'SF Mono', 'Consolas', monospace;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.stat-card.highlight {
    border-color: var(--accent-soft);
    background: linear-gradient(180deg, var(--accent-subtle) 0%, var(--bg-elevated) 100%);
}

.stat-card.highlight i {
    color: var(--accent);
}

/* 趋势区域 */
.trend-section {
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.trend-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* 趋势图表 */
.home-trend-chart {
    height: 70px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 0 4px;
}

.home-trend-chart .trend-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.home-trend-chart .trend-bar-wrapper {
    height: 50px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.home-trend-chart .trend-bar {
    width: 100%;
    max-width: 32px;
    min-height: 6px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.home-trend-chart .trend-bar:hover {
    filter: brightness(1.2);
}

.trend-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* 快速入门步骤 */
.quick-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    flex-shrink: 0;
}

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

.guide-num {
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.guide-step i {
    font-size: 18px;
    color: var(--text-muted);
}

.guide-step span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 旧样式兼容 - 移除 */
.upload-zone-compact-old .upload-hint {
    font-size: 11px;
}

/* 统计卡片 */
.stats-card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.stats-header i {
    color: var(--accent);
    font-size: 14px;
}

.stats-header span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-item {
    text-align: center;
    padding: 16px 10px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-elevated) 100%);
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    border-color: var(--border);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-soft) 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--text);
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(240, 241, 243, 0.1);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* 最近记录 */
.recent-card {
    flex: 1;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.recent-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-title i {
    color: var(--accent);
    font-size: 14px;
}

.recent-more {
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s;
}

.recent-more:hover {
    color: var(--accent);
    background: var(--accent-subtle);
}

.recent-list {
    flex: 1;
    overflow-y: auto;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 6px;
    border: 1px solid transparent;
}

.recent-item:hover {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.recent-thumb {
    width: 56px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.recent-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-subtle);
    border-radius: 50%;
}

.recent-thumb i {
    font-size: 14px;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

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

.recent-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.recent-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.recent-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-meta i {
    font-size: 10px;
}

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

.recent-tags .tag {
    font-size: 10px;
    padding: 2px 8px;
    background: var(--accent-subtle);
    color: var(--accent);
    border-radius: 4px;
    font-weight: 500;
}

.recent-thumb.has-preview {
    width: 72px;
    height: 42px;
}

.recent-thumb.has-preview::before {
    display: none;
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.thumb-play i {
    font-size: 10px;
    color: white;
    margin-left: 2px;
}

.recent-item:hover .thumb-play {
    opacity: 1;
}

.thumb-duration {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 9px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* ===== 功能亮点区 ===== */
.features-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}

.feature-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
}

.feature-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.feature-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    background: var(--success-soft);
    color: var(--success);
    border-radius: 20px;
}

/* ===== 使用提示 ===== */
.tips-section {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: -10px;
}

.tips-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #8B95A1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-size: 16px;
    flex-shrink: 0;
}

.tips-content {
    flex: 1;
}

.tips-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.tips-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== 统计增强 ===== */
.stats-period {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: auto;
}

.stat-trend {
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: #EF4444;
}

.stat-trend i {
    font-size: 8px;
}

.stats-chart {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 50px;
    margin-bottom: 8px;
}

.chart-bar {
    flex: 1;
    background: var(--accent-subtle);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s;
}

.chart-bar.active {
    background: var(--accent);
}

.chart-bar:hover {
    background: var(--accent);
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== 设置页 ===== */
.settings-layout {
    padding: 24px;
    overflow-y: auto;
    max-width: 640px;
}

.settings-section {
    margin-bottom: 28px;
}

.settings-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setting-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.setting-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.setting-control select {
    padding: 6px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.toggle {
    width: 40px;
    height: 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle.on {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle.on::after {
    transform: translateX(18px);
}

.setting-btn {
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent-soft);
    color: var(--text);
}

.setting-btn.danger {
    color: #EF4444;
}

.setting-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.setting-btn i {
    font-size: 11px;
}

.shortcut-key {
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ===== 帮助页 ===== */
.help-layout {
    padding: 24px;
    overflow-y: auto;
    max-width: 640px;
}

.about-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, var(--accent-subtle) 0%, transparent 50%);
    pointer-events: none;
}

.about-logo {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, #8B95A1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(184, 193, 204, 0.3);
}

.about-logo svg {
    width: 36px;
    height: 36px;
    fill: var(--bg);
}

.about-name {
    position: relative;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.about-version {
    position: relative;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.about-copyright {
    position: relative;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.update-btn {
    position: relative;
    padding: 10px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.update-btn:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-soft);
    color: var(--accent);
}

.update-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.update-btn:hover i {
    transform: rotate(180deg);
}

/* ===== 首次引导遮罩 ===== */
.onboarding {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 8000;  /* 引导蒙版层（高于Toast） */
    display: none;
    align-items: center;
    justify-content: center;
}

.onboarding.show {
    display: flex;
}

.onboarding-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 480px;
    max-width: 90vw;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.onboarding-header {
    padding: 32px 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border-soft);
}

.onboarding-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, #8B95A1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(184, 193, 204, 0.3);
}

.onboarding-logo svg {
    width: 36px;
    height: 36px;
    fill: var(--bg);
}

.onboarding-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.onboarding-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.onboarding-content {
    padding: 28px 32px;
}

.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.onboarding-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: var(--bg);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.onboarding-footer {
    padding: 20px 32px 28px;
    display: flex;
    gap: 12px;
}

.onboarding-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.onboarding-btn.secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.onboarding-btn.secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.onboarding-btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: var(--bg);
}

.onboarding-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 193, 204, 0.3);
}

/* ===== 关于对话框 ===== */
.about-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.about-modal.show {
    opacity: 1;
    visibility: visible;
}

.about-card {
    width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.about-modal.show .about-card {
    transform: scale(1);
}

.about-header {
    padding: 40px 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--surface) 100%);
}

.about-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #8B95A1 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(184, 193, 204, 0.3);
}

.about-logo svg {
    width: 48px;
    height: 48px;
    fill: var(--bg);
}

.about-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-version {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.about-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--success-soft);
    color: var(--success);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.about-content {
    padding: 24px 32px;
}

.about-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
}

.about-info-row:last-child {
    border-bottom: none;
}

.about-info-label {
    color: var(--text-muted);
}

.about-info-value {
    color: var(--text);
    font-weight: 500;
}

.about-footer {
    padding: 20px 32px 28px;
    text-align: center;
}

.about-copyright {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.about-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.about-link:hover {
    color: var(--chart-highlight);
}

/* ===== 更新提示弹窗 ===== */
.update-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.update-modal.show {
    opacity: 1;
    visibility: visible;
}

.update-card {
    width: 440px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.update-header {
    padding: 28px 28px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.update-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--success) 0%, #6BB89A 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.update-title h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.update-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.update-content {
    padding: 0 28px 24px;
}

.update-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-elevated);
    border-radius: 10px;
    margin-bottom: 16px;
}

.update-version-badge .old {
    color: var(--text-muted);
    font-size: 13px;
}

.update-version-badge .arrow {
    color: var(--text-muted);
}

.update-version-badge .new {
    color: var(--success);
    font-weight: 600;
    font-size: 14px;
}

.update-changelog {
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 16px;
    max-height: 160px;
    overflow-y: auto;
}

.update-changelog h4 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.update-changelog ul {
    list-style: none;
}

.update-changelog li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
}

.update-changelog li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.update-footer {
    padding: 20px 28px 24px;
    display: flex;
    gap: 12px;
}

/* ===== 激活/授权弹窗 ===== */
.license-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.license-modal.show {
    opacity: 1;
    visibility: visible;
}

.license-card {
    width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.license-header {
    padding: 32px 32px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--surface) 100%);
}

.license-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--warning) 0%, #A8894A 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.license-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.license-trial-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--warning-soft);
    border-radius: 20px;
    font-size: 13px;
    color: var(--warning);
}

.license-content {
    padding: 24px 32px;
}

.license-input-group {
    margin-bottom: 20px;
}

.license-input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.license-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-family: 'SF Mono', Monaco, monospace;
    letter-spacing: 2px;
    text-align: center;
    transition: border-color 0.2s;
}

.license-input:focus {
    outline: none;
    border-color: var(--accent);
}

.license-input::placeholder {
    color: var(--text-muted);
    letter-spacing: normal;
}

.license-features {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 16px;
}

.license-features h4 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.license-feature-item i {
    color: var(--success);
    font-size: 14px;
}

.license-footer {
    padding: 20px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.license-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.license-btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    color: var(--bg);
}

.license-btn.secondary {
    background: transparent;
    color: var(--text-muted);
}

.license-btn.secondary:hover {
    color: var(--text);
}

/* ===== 反馈弹窗 ===== */
.feedback-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.feedback-modal.show {
    opacity: 1;
    visibility: visible;
}

.feedback-card {
    width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

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

.feedback-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feedback-header h3 i {
    color: var(--accent);
}

.feedback-content {
    padding: 24px 28px;
}

.feedback-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.feedback-type {
    flex: 1;
    padding: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-type:hover {
    border-color: var(--accent);
}

.feedback-type.active {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.feedback-type i {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}

.feedback-type.active i {
    color: var(--accent);
}

.feedback-type span {
    font-size: 12px;
    color: var(--text-secondary);
}

.feedback-input-group {
    margin-bottom: 16px;
}

.feedback-input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.feedback-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--accent);
}

.feedback-textarea {
    width: 100%;
    height: 120px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    resize: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.feedback-footer {
    padding: 20px 28px 24px;
    display: flex;
    gap: 12px;
}

/* ===== 骨架屏加载 ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

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

.skeleton-content {
    padding: 18px;
}

.skeleton-title {
    height: 18px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    width: 50%;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 30%;
}

/* ===== 空状态 ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.empty-state-illustration {
    width: 160px;
    height: 160px;
    margin-bottom: 24px;
    position: relative;
}

.empty-state-illustration svg {
    width: 100%;
    height: 100%;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.empty-state-icon i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.4;
}

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

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.empty-state-btn {
    padding: 12px 24px;
    background: var(--accent-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.empty-state-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

/* ===== 用户下拉菜单 ===== */
.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 100;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.user-dropdown-item:hover {
    background: var(--accent-subtle);
    color: var(--text);
}

.user-dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.user-dropdown-item:hover i {
    color: var(--accent);
}

.user-dropdown-item.danger {
    color: #EF4444;
}

.user-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-dropdown-item.danger i {
    color: #EF4444;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ===== 记录页搜索栏 ===== */
.records-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.filter-btn {
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent-soft);
    color: var(--text);
}

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

/* ===== 批量分析弹窗 ===== */
.batch-modal-box {
    width: 480px;
    padding: 0;
}

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

.batch-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-header h3 i {
    color: var(--accent);
}

.batch-content {
    padding: 20px 28px;
    max-height: 300px;
    overflow-y: auto;
}

.batch-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-soft);
}

.batch-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
}

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

.batch-file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.batch-file-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.batch-file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.batch-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.faq-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.faq-item:hover {
    border-color: var(--accent-soft);
    background: var(--surface-hover);
}

.faq-q {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-q i {
    font-size: 12px;
    color: var(--accent);
}

.faq-a {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 20px;
}

/* ===== 联系卡片 ===== */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.15s;
}

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

.contact-item:hover {
    background: var(--surface-hover);
}

.contact-item > i:first-child {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

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

.contact-action {
    color: var(--text-muted);
    font-size: 12px;
    transition: color 0.15s;
}

.contact-item:hover .contact-action {
    color: var(--accent);
}

/* ===== 视频库页 ===== */
.library-layout {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.library-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
}

.library-actions {
    display: flex;
    gap: 12px;
}

.library-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.library-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--accent);
}

.library-btn.primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    border: none;
    color: var(--bg);
}

.library-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.library-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.library-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.library-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.library-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.library-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.library-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.library-card:hover .library-thumb-overlay {
    opacity: 1;
}

.library-thumb-overlay i {
    font-size: 32px;
    color: white;
}

.library-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.library-status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.library-status.analyzed {
    background: var(--success-soft);
    color: var(--success);
}

.library-status.pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.library-info {
    padding: 14px;
}

.library-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-meta {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.add-card {
    border: 2px dashed var(--border);
    background: transparent;
    min-height: 200px;
}

.add-card:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.add-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    padding: 40px;
}

.add-card-content i {
    font-size: 32px;
    opacity: 0.5;
}

.add-card:hover .add-card-content {
    color: var(--accent);
}

.add-card:hover .add-card-content i {
    opacity: 1;
}

.library-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-text {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== 记录页 ===== */
.records-layout {
    padding: 24px;
    overflow-y: auto;
    height: 100%;
}

.records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.records-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.records-count {
    font-size: 13px;
    color: var(--text-muted);
}

.records-count strong {
    color: var(--accent);
}

.filter-select {
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.view-toggle {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.view-toggle:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.record-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}

.record-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.record-thumb {
    position: relative;
    height: 160px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.record-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.record-card:hover .record-thumb-overlay {
    opacity: 1;
}

.record-thumb-overlay i {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.record-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.record-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.record-badge.completed {
    background: var(--success-soft);
    color: var(--success);
}

.record-badge.processing {
    background: var(--warning-soft);
    color: var(--warning);
}

.record-content {
    padding: 18px;
}

.record-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.record-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.record-meta i {
    font-size: 11px;
}

.record-stats {
    display: flex;
    gap: 16px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    margin-bottom: 14px;
}

.record-stats .stat {
    flex: 1;
    text-align: center;
}

.record-stats .stat span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.record-stats .stat strong {
    font-size: 14px;
    color: var(--text);
}

.record-actions {
    display: flex;
    gap: 8px;
}

.record-btn {
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-btn:hover {
    background: var(--surface-hover);
    border-color: var(--accent-soft);
    color: var(--text);
}

.record-btn.primary {
    flex: 1;
    justify-content: center;
    background: var(--accent-subtle);
    border-color: var(--accent-soft);
    color: var(--accent);
}

.record-btn.primary:hover {
    background: var(--accent);
    color: var(--bg);
}

.records-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-btns {
    display: flex;
    gap: 6px;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--surface-hover);
    color: var(--text);
}

.pagination-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 数据统计页 ===== */
.dashboard-layout {
    padding: 24px;
    overflow-y: auto;
    height: 100%;
}

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

.dashboard-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.period-selector {
    display: flex;
    gap: 6px;
    background: var(--surface);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.period-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.period-btn.active {
    background: var(--accent);
    color: var(--bg);
}

.period-btn:hover:not(.active) {
    background: var(--bg-elevated);
}

.dashboard-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.overview-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}

.overview-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

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

.overview-trend {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.overview-trend.up {
    background: var(--success-soft);
    color: var(--success);
}

.overview-trend.down {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.overview-trend.neutral {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
}

.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.chart-card.large {
    grid-column: 1;
}

.chart-header {
    margin-bottom: 20px;
}

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

.chart-header h3 i {
    color: var(--accent);
    font-size: 14px;
}

.trend-chart {
    display: flex;
    flex-direction: column;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 20px;
}

.chart-area {
    flex: 1;
    height: 120px;
}

.chart-area svg {
    width: 100%;
    height: 100%;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
}

.pie-chart-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pie-chart {
    position: relative;
    width: 120px;
    height: 120px;
}

.pie-chart svg {
    transform: rotate(-90deg);
}

.pie-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pie-center strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.pie-center span {
    font-size: 10px;
    color: var(--text-muted);
}

.pie-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.radar-chart {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-chart svg {
    width: 160px;
    height: 160px;
}

.radar-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 10px;
    color: var(--text-muted);
}

.radar-labels span {
    position: absolute;
}

/* ===== 分析报告页 ===== */
.report-layout {
    padding: 24px;
    overflow-y: auto;
    height: 100%;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.back-btn {
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.back-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.report-title-section {
    flex: 1;
}

.report-title-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.report-date {
    font-size: 13px;
    color: var(--text-muted);
}

.report-actions {
    display: flex;
    gap: 10px;
}

.report-action-btn {
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}

.report-action-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.report-action-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.report-action-btn.primary:hover {
    opacity: 0.9;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ===== 双球员卡路里区 ===== */
.calorie-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.calorie-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.calorie-card .calorie-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.calorie-card.player1 .calorie-icon {
    background: linear-gradient(135deg, rgba(8,145,178,0.15), rgba(20,184,166,0.15));
    color: #0891B2;
}

.calorie-card.player2 .calorie-icon {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.15));
    color: #F59E0B;
}

.calorie-card .calorie-info {
    flex: 1;
}

.calorie-card .calorie-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.calorie-card .calorie-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.calorie-card .calorie-value span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.calorie-card .calorie-tag {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 6px;
    align-self: flex-start;
    flex-shrink: 0;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}

.metric-card.highlight {
    background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--surface) 100%);
    border-color: var(--accent-soft);
}

.metric-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}

.metric-card.highlight .metric-icon {
    background: var(--accent);
    color: var(--bg);
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

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

.report-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.viz-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.viz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

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

.viz-header h3 i {
    color: var(--accent);
}

.viz-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    padding: 3px;
    border-radius: 6px;
}

.viz-tab {
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.viz-tab.active {
    background: var(--surface);
    color: var(--text);
}

.heatmap-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.court-diagram {
    flex: 1;
    max-width: 200px;
}

.court-diagram svg {
    width: 100%;
    height: auto;
}

.heatmap-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-bar {
    width: 16px;
    height: 100px;
    background: linear-gradient(to bottom, #D4DCE5, #B8C1CC, #6B7580, var(--bg-elevated));
    border-radius: 4px;
}

.legend-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    font-size: 10px;
    color: var(--text-muted);
}

.shot-distribution {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shot-type {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shot-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.shot-name {
    color: var(--text-secondary);
}

.shot-count {
    color: var(--text-muted);
}

.shot-bar {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.shot-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

.report-rounds {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

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

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

.rounds-header h3 i {
    color: var(--accent);
}

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

.rounds-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.round-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-radius: 10px;
}

.round-number {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.round-info {
    flex: 1;
}

.round-shots {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 2px;
}

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

.round-duration {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 6px;
}

/* ===== 比赛概览文字摘要 ===== */
.report-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--surface) 100%);
    border: 1px solid var(--accent-soft);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.report-summary-card .summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.report-summary-card .summary-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ===== 球速分析区 ===== */
.speed-analysis {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.speed-stats {
    display: flex;
    gap: 12px;
}

.speed-stat-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-elevated);
    border-radius: 10px;
}

.speed-stat-item .stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.speed-stat-item .stat-unit {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.speed-stat-item .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.speed-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 80px;
    padding: 0 4px;
}

.speed-chart .bar {
    flex: 1;
    min-width: 4px;
    max-width: 24px;
    border-radius: 3px 3px 0 0;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
}

.speed-chart .bar:hover {
    opacity: 0.8;
}

.speed-desc {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    padding: 8px 0 0;
    border-top: 1px solid var(--border);
}

/* ===== 球员表现文字评价 ===== */
.player-analysis-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.analysis-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.analysis-block .block-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.analysis-block .block-icon.p1 {
    background: rgba(8,145,178,0.12);
    color: #0891B2;
}

.analysis-block .block-icon.p2 {
    background: rgba(245,158,11,0.12);
    color: #F59E0B;
}

.analysis-block .block-icon.match {
    background: rgba(139,92,246,0.12);
    color: #8B5CF6;
}

.analysis-block .block-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.analysis-block .block-text strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== 报告底栏 ===== */
.report-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 16px 0 8px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

/* ===== 报告空状态 ===== */
.report-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    text-align: center;
    padding: 40px;
}

.report-empty-state .empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.report-empty-state .empty-icon i {
    font-size: 32px;
    color: var(--accent);
}

.report-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.report-empty-state p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 320px;
}

/* ===== 球员对比 ===== */
.player-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-row .label {
    font-size: 12px;
    color: var(--text-muted);
    width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.comparison-row .bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-row .bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.comparison-row .bar-item .player-label {
    width: 42px;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.comparison-row .bar-item .bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.comparison-row .bar-item .bar-fill-p1 {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0891B2, #14B8A6);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-row .bar-item .bar-fill-p2 {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #F59E0B, #EF4444);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-row .bar-item .bar-value {
    width: 60px;
    text-align: right;
    color: var(--text);
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

/* ===== 进度弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    align-items: center;
    justify-content: center;
    z-index: 2000;  /* 模态弹窗层 */
}

.modal.show {
    display: flex;
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    width: 360px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* 登录弹窗 */
.login-modal-box {
    width: 400px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.login-header {
    padding: 32px 32px 24px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--border-soft);
}

.login-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #8B95A1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(184, 193, 204, 0.3);
}

.login-logo svg {
    width: 28px;
    height: 28px;
    fill: var(--bg);
}

.login-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.login-tabs {
    display: flex;
    padding: 0 32px;
    margin-top: -1px;
}

.login-tab {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.login-tab:hover {
    color: var(--text-secondary);
}

.login-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.login-form {
    padding: 24px 32px 32px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* 表单验证错误状态 */
.form-group.has-error input {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-error {
    font-size: 12px;
    color: #EF4444;
    margin-top: 6px;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.2s ease, min-height 0.2s ease;
}

.form-group.has-error .form-error {
    opacity: 1;
    min-height: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.forgot-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    border: none;
    border-radius: 10px;
    color: var(--bg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 193, 204, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.progress-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    position: relative;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring circle {
    fill: none;
    stroke-width: 6;
}

.progress-ring .track {
    stroke: var(--border);
}

.progress-ring .bar {
    stroke: var(--accent);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.progress-pct {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.progress-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

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

/* ===== 启动画面 ===== */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s, visibility 0.4s;
}

.splash.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #8B95A1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 12px 48px rgba(184, 193, 204, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.splash-logo svg {
    width: 40px;
    height: 40px;
    fill: var(--bg);
}

.splash-name {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.splash-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.splash-bar {
    width: 160px;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.splash-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.splash-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.5px;
}

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

#fileInput { display: none; }

/* ===== 底部状态栏 ===== */
.statusbar {
    height: 28px;
    background: linear-gradient(180deg, #0d0d0f 0%, #0a0a0b 100%);
    border-top: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 11px;
    color: var(--text-muted);
}

.statusbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.statusbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.statusbar-item i {
    font-size: 10px;
}

.statusbar-item.active {
    color: var(--success);
}

.statusbar-item.processing {
    color: var(--accent);
}

.statusbar-divider {
    width: 1px;
    height: 12px;
    background: var(--border);
}

.statusbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.statusbar-gpu {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    background: var(--success-soft);
    border-radius: 4px;
    color: var(--success);
    font-weight: 500;
}

.statusbar-gpu i {
    font-size: 10px;
}

/* ===== Toast通知 ===== */
.toast-container {
    position: fixed;
    top: 52px;
    right: 20px;
    z-index: 5000;  /* Toast通知层（始终可见，高于模态弹窗） */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    max-width: 360px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: var(--success-soft);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.toast.info .toast-icon {
    background: var(--accent-subtle);
    color: var(--accent);
}

.toast.warning .toast-icon {
    background: var(--warning-soft);
    color: var(--warning);
}

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

.toast-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

/* ===== 右键菜单 ===== */
.context-menu {
    position: fixed;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    display: none;
}

.context-menu.show {
    display: block;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.context-menu-item:hover {
    background: var(--accent-subtle);
    color: var(--text);
}

.context-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.context-menu-item:hover i {
    color: var(--accent);
}

.context-menu-item.danger {
    color: #EF4444;
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.context-menu-item.danger i {
    color: #EF4444;
}

.context-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}
