/* === 全局变量与基础 === */
:root {
    --primary: #8b5cf6;
    --primary-dark: #6d28d9;
    --bg-body: #0a0a14;
    --bg-card: rgba(15, 15, 25, 0.95);
    --bg-surface: rgba(25, 25, 40, 0.8);
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-muted: rgba(255, 255, 255, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.6);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* === 顶部导航栏 === */
.navbar {
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.98) 0%, rgba(10, 10, 20, 0.95) 100%);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 20px;
}

.navbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* === 按钮 === */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover { background: rgba(239, 68, 68, 0.35); }

.btn-sm { padding: 5px 10px; font-size: 11px; }

/* === 主内容区 === */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
}

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

.page-title { font-size: 20px; font-weight: 700; }

.video-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 10px;
}

/* === 视频卡片网格 === */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    padding: 0;
}

/* 核心卡片 */
.video-card {
    background: linear-gradient(165deg, rgba(35, 35, 50, 0.5) 0%, rgba(15, 15, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    overflow: visible;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    z-index: 10;
    font-size: 12px;
}

.video-card:hover {
    backdrop-filter: blur(20px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-8px) scale(1.02);
    z-index: 15;
}

.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    pointer-events: none;
}

.video-card:hover::after { opacity: 1; }

/* 卡片头部 9:16 竖屏 */
.card-header {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-card:hover .card-poster { transform: scale(1.1); }

/* 悬停播放视频 */
.card-hover-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* 播放占位符 */
.card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1.5px dashed rgba(139, 92, 246, 0.25);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.35);
    z-index: 1;
    transition: all 0.4s ease;
}

.card-placeholder i { font-size: 32px; color: rgba(139, 92, 246, 0.5); }
.card-placeholder span { font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* 视频播放进度条 */
.card-video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10;
    cursor: pointer;
    transition: height 0.15s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.card-video-progress:hover { height: 8px; opacity: 1; }

.card-video-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
    pointer-events: none;
    position: relative;
}

.card-video-progress:hover .card-video-progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #a78bfa;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
}

/* 分辨率角标 */
.card-resolution-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 30px;
    z-index: 5;
    background: linear-gradient(135deg, #10b981, #065f46);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.3px;
}

/* 时长角标 */
.card-duration-badge {
    position: absolute;
    bottom: 12px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'JetBrains Mono', monospace;
}

/* 卡片主体 */
.card-body {
    position: relative;
    z-index: 10;
    overflow: visible;
    padding: 8px 10px 6px;
    pointer-events: auto;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.card-id {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.card-time {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-time i { font-size: 9px; color: var(--primary); opacity: 0.7; }

.card-upload-date {
    font-size: 10px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 0;
}

.card-upload-date i { font-size: 9px; color: #3b82f6; }

.card-filename {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.card-notes {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 6px;
    min-height: 22px;
    max-height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    border-radius: 6px;
    padding: 4px 6px;
}

.card-notes.has-notes {
    color: #e2e8f0;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.card-notes.has-notes i {
    color: #a78bfa;
    font-size: 9px;
    margin-right: 2px;
}

.card-notes.empty-notes {
    color: var(--text-muted);
    font-style: italic;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.06);
}

/* 标签行 */
.card-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 3px;
}

.card-tag i { color: var(--primary); font-size: 8px; opacity: 0.7; }

/* 操作按钮 */
.card-actions {
    display: flex;
    gap: 4px;
    padding: 6px 6px 4px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 200;
    background: var(--bg-card);
    pointer-events: auto;
}

.card-btn {
    flex: 1;
    height: 28px;
    min-height: 28px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 250;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.card-btn i, .card-btn span { pointer-events: none; }

.card-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-btn.view { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255,255,255,0.2); }
.card-btn.download { flex: 0 0 28px; background: rgba(59,130,246,0.25); color: #93c5fd; border-color: rgba(59,130,246,0.4); }
.card-btn.delete {
    flex: 0 0 28px;
    background: rgba(239,68,68,0.3);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.4);
}

.card-btn.delete:hover {
    background: rgba(239,68,68,0.6);
    color: #fff;
    border-color: rgba(239,68,68,0.7);
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
}
.card-btn.comment { flex: 0 0 28px; background: rgba(139,92,246,0.2); color: #c4b5fd; border-color: rgba(139,92,246,0.3); }

/* === 弹窗 === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: linear-gradient(165deg, rgba(30, 30, 50, 0.98), rgba(15, 15, 25, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 900px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

/* 详情弹窗 */
.detail-video-wrapper {
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background: #000;
}

.detail-video-wrapper video {
    width: 100%;
    max-height: 60vh;
    display: block;
}

.detail-body { padding: 20px 24px; }

.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
}

.detail-notes {
    background: var(--bg-surface);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
}

.detail-notes-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-notes-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 20px;
}

.detail-notes-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    outline: none;
    transition: border-color 0.2s;
}

.detail-notes-input:focus { border-color: var(--primary); }

/* 留言区 */
.comments-section { margin-top: 20px; }

.comments-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comments-title i { color: var(--primary); }

.comment-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.comment-author-input {
    width: 90px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
}

.comment-content-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 10px;
    font-size: 12px;
    outline: none;
}

.comment-content-input:focus,
.comment-author-input:focus { border-color: var(--primary); }

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

.comment-item {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.comment-main { flex: 1; }

.comment-author {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 3px;
}

.comment-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.comment-time {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
}

.comment-del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.comment-del:hover { color: #f87171; background: rgba(239,68,68,0.15); }

/* === 上传弹窗 === */
.upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(139, 92, 246, 0.03);
    margin: 20px 24px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.upload-zone i { font-size: 40px; color: var(--primary); margin-bottom: 12px; }

.upload-zone p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 8px;
}

.upload-form-fields { padding: 0 24px 20px; }

.upload-field {
    margin-bottom: 14px;
}

.upload-field label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.upload-progress {
    margin: 16px 24px 0;
    display: none;
}

.upload-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #6366f1);
    transition: width 0.3s;
    border-radius: 3px;
}

.upload-progress-text {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 6px;
}

/* === 登录弹窗 === */
.login-modal .modal-content {
    max-width: 360px;
    text-align: center;
    padding: 30px;
}

.login-modal .modal-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    margin-bottom: 16px;
    text-align: center;
}

.login-input:focus { border-color: var(--primary); }

.login-error {
    color: #f87171;
    font-size: 12px;
    margin-bottom: 10px;
    display: none;
}

/* === Toast === */
.toast {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.5s forwards;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.toast.success { background: linear-gradient(135deg, #10b981, #065f46); color: white; }
.toast.error { background: linear-gradient(135deg, #ef4444, #b91c1c); color: white; }
.toast.info { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: white; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* === 空状态 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 16px; color: rgba(139,92,246,0.3); }
.empty-state p { font-size: 14px; }

/* === 滚动条 === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* === 响应式 === */
@media (max-width: 768px) {
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .navbar { padding: 0 14px; }
    .main-content { padding: 14px; }
    .modal-content { width: 96%; }
    .detail-meta { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .type-tabs { gap: 0; }
    .type-tab { flex: 1; justify-content: center; }
}

/* === Tab 切换 === */
.type-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 4px;
}

.type-tab {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.type-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.type-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.type-tab i { font-size: 13px; }

/* === 标签筛选栏 === */
.tag-filter-bar {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.tag-filter-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.tag-filter-label i { color: #f59e0b; font-size: 11px; }

.tag-filter-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.tag-pill {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.tag-pill:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.tag-pill.active {
    background: linear-gradient(135deg, rgba(245,158,11,0.25), rgba(234,88,12,0.25));
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.tag-pill i { font-size: 10px; opacity: 0.7; }

.tag-count {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 1px;
}

.tag-delete-btn {
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.5;
    cursor: pointer;
    line-height: 1;
}

.tag-delete-btn:hover { opacity: 1; color: #f87171; }

/* 卡片上的大标签 */
.card-tag-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.card-tag-label:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.5);
}

.card-tag-label i { font-size: 9px; }

/* 图片类型角标 */
.card-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 5;
    background: rgba(59, 130, 246, 0.8);
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* === Infinite Scroll 加载 === */
.load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 图片详情 */
.detail-image-wrapper {
    width: 100%;
    background: #000;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}
