/* ========== BanavelAi Image 1.0 - 主样式表 ========== */

/* ---------- CSS 变量 / 主题系统 ---------- */
:root,
[data-theme="light"] {
    --bg-primary: #f5f0e8;
    --bg-secondary: #fffdf7;
    --bg-tertiary: #f0ebe1;
    --bg-gradient: linear-gradient(135deg, #f5f0e8 0%, #ede6d6 50%, #e8dcc8 100%);
    --text-primary: #2c2416;
    --text-secondary: #6b5c48;
    --text-muted: #9c8b72;
    --border-color: #d4c9b4;
    --border-focus: #a08560;
    --accent: #8b6914;
    --accent-hover: #a37d1e;
    --accent-gradient: linear-gradient(135deg, #8b6914 0%, #b8860b 50%, #d4a017 100%);
    --panel-shadow: 0 1px 4px rgba(44, 36, 22, 0.08), 0 4px 16px rgba(44, 36, 22, 0.04);
    --panel-border: 1px solid var(--border-color);
    --panel-bg: var(--bg-secondary);
    --panel-blur: none;
    --input-bg: var(--bg-tertiary);
    --input-border: 1px solid var(--border-color);
    --glow-color: rgba(139, 105, 20, 0.15);
    --success-bg: #e8f5e9;
    --success-text: #2e7d32;
    --error-bg: #fce4ec;
    --error-text: #c62828;
    --loading-bg: #fff3e0;
    --loading-text: #e65100;
    --scrollbar-bg: #e0d6c4;
    --scrollbar-thumb: #b8a88a;
    --paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

[data-theme="dark"] {
    --bg-primary: #0a0e1a;
    --bg-secondary: rgba(20, 27, 45, 0.65);
    --bg-tertiary: rgba(30, 40, 65, 0.5);
    --bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #111827 40%, #1a1040 100%);
    --text-primary: #e8eaf0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.12);
    --border-focus: #6366f1;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a78bfa 100%);
    --panel-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --panel-border: 1px solid var(--border-color);
    --panel-bg: var(--bg-secondary);
    --panel-blur: blur(18px) saturate(1.6);
    --input-bg: var(--bg-tertiary);
    --input-border: 1px solid var(--border-color);
    --glow-color: rgba(99, 102, 241, 0.2);
    --success-bg: rgba(34, 197, 94, 0.12);
    --success-text: #4ade80;
    --error-bg: rgba(239, 68, 68, 0.12);
    --error-text: #f87171;
    --loading-bg: rgba(99, 102, 241, 0.12);
    --loading-text: #a5b4fc;
    --scrollbar-bg: rgba(30, 40, 65, 0.4);
    --scrollbar-thumb: rgba(100, 116, 139, 0.5);
    --paper-texture: none;
}

/* ---------- 基础 & 全局样式 ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.5s ease, color 0.3s ease;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--paper-texture);
    pointer-events: none;
    z-index: 0;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

/* ---------- 顶部导航栏 ---------- */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: var(--panel-bg);
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    border-bottom: var(--panel-border);
    box-shadow: var(--panel-shadow);
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar .logo {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.top-bar .actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 手机端顶部按钮自适应 */
@media (max-width: 480px) {
    .top-bar {
        padding: 10px 12px;
    }

    .top-bar .logo {
        font-size: 0.95rem;
    }

    .theme-toggle {
        padding: 0 8px !important;
        font-size: 0.78rem !important;
        height: 34px;
        min-width: 0;
    }
}

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
    width: 42px;
    height: 42px;
    border: var(--panel-border);
    border-radius: 10px;
    background: var(--input-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.theme-toggle:hover {
    border-color: var(--border-focus);
    box-shadow: 0 0 12px var(--glow-color);
    transform: rotate(15deg);
}

/* ---------- 三栏布局 ---------- */
.layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 320px 1fr 280px;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 24px 40px;
}

@media (max-width: 1200px) {
    .layout {
        grid-template-columns: 320px 1fr;
    }

    .history-sidebar {
        display: none;
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- 面板通用样式 ---------- */
.panel {
    background: var(--panel-bg);
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--panel-shadow);
    border: var(--panel-border);
    transition: background 0.4s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.panel:hover {
    box-shadow: var(--panel-shadow), 0 0 20px var(--glow-color);
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- 表单组件 ---------- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    background: var(--input-bg);
    border: var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--glow-color);
}

textarea {
    height: 110px;
    resize: vertical;
    line-height: 1.5;
}

input[type="file"] {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 0;
}

input[type="file"]::file-selector-button {
    background: var(--input-bg);
    border: var(--input-border);
    border-radius: 8px;
    padding: 6px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    border-color: var(--border-focus);
}

/* ---------- 图片预览列表 ---------- */
.image-preview-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

/* ---------- 模型选择行 ---------- */
.model-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.fetch-btn {
    flex-shrink: 0;
    padding: 0 14px;
    background: var(--input-bg);
    border: var(--input-border);
    border-radius: 10px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fetch-btn:hover {
    border-color: var(--border-focus);
    box-shadow: 0 0 8px var(--glow-color);
}

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

.fetch-btn .spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.fetch-btn.loading .spinner {
    display: inline-block;
}

.fetch-btn.loading .fetch-text {
    display: none;
}

/* ---------- 动画关键帧 ---------- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes dots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes toast-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* ---------- 主按钮 ---------- */
.btn-primary {
    width: 100%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--glow-color);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------- 状态提示 ---------- */
.status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    display: none;
    font-weight: 500;
    text-align: center;
    font-size: 0.85rem;
    animation: fadeIn 0.3s ease;
}

.status.success {
    background: var(--success-bg);
    color: var(--success-text);
    display: block;
}

.status.error {
    background: var(--error-bg);
    color: var(--error-text);
    display: block;
}

.status.loading {
    background: var(--loading-bg);
    color: var(--loading-text);
    display: block;
}

/* ---------- 结果区域 ---------- */
.result-section {
    margin-bottom: 20px;
}

.result-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.output-text {
    background: var(--input-bg);
    padding: 16px;
    border-radius: 12px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-primary);
    border: var(--input-border);
}

/* ---------- 空状态 ---------- */
#emptyState {
    text-align: center;
    color: var(--text-muted);
    padding: 80px 30px;
    font-size: 1rem;
}

.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

/* ---------- 模型状态 ---------- */
.model-status {
    font-size: 0.78rem;
    margin-top: 6px;
    color: var(--text-muted);
    min-height: 1.2em;
}

.model-status.ok {
    color: var(--success-text);
}

.model-status.fail {
    color: var(--error-text);
}

/* ---------- 模态框通用 ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--panel-bg);
    width: 900px;
    max-width: 95vw;
    height: 80vh;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: var(--panel-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 16px 24px;
    border-bottom: var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.modal-sidebar {
    width: 220px;
    border-right: var(--panel-border);
    padding: 16px;
    overflow-y: auto;
    background: var(--bg-tertiary);
}

/* ---------- 咒语书 - 分类/提示词卡片 ---------- */
.folder-item {
    padding: 10px 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.folder-item:hover,
.folder-item.active {
    background: var(--glow-color);
    font-weight: 600;
    color: var(--accent);
}

.folder-item .folder-actions {
    display: none;
    gap: 4px;
}

.folder-item:hover .folder-actions {
    display: flex;
}

.folder-item .folder-actions button {
    font-size: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 2px;
}

.modal-main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-secondary);
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.prompt-card {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
    padding: 12px;
    background: var(--input-bg);
    border: var(--input-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.prompt-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--glow-color);
}

.prompt-thumb {
    width: 100%;
    height: 120px;
    background: var(--scrollbar-bg);
    object-fit: cover;
}

.prompt-info {
    padding: 0;
    text-align: center;
}

.prompt-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-text {
    display: none;
}

/* ---------- 模态框底部操作栏 ---------- */
.modal-actions {
    padding: 16px 24px;
    border-top: var(--panel-border);
    background: var(--bg-tertiary);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.header-btn {
    font-size: 0.8rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
}

.header-btn:hover {
    text-decoration: underline;
}

/* ---------- 历史记录侧栏 ---------- */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    padding-right: 4px;
}

.history-item {
    background: var(--input-bg);
    border: var(--input-border);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    padding: 10px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.history-item:hover {
    border-color: var(--accent);
}

.history-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--scrollbar-bg);
    flex-shrink: 0;
}

.history-info {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.history-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.history-prompt {
    font-size: 0.8rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-tags {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.hist-badge {
    font-size: 0.65rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ---------- Toast 通知 ---------- */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--bg-secondary);
    border: var(--panel-border);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    animation: toast-in 0.3s forwards;
    pointer-events: auto;
    border-left: 4px solid var(--accent);
    min-width: 280px;
}

.toast.error {
    border-left-color: var(--error-bg);
}

.toast.fade-out {
    animation: toast-out 0.3s ease forwards;
}

/* ---------- 图片画廊 ---------- */
.result-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: var(--panel-border);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
}

/* ---------- 灯箱 (Lightbox) ---------- */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* ---------- 对比模式 ---------- */
.compare-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 0 !important;
}

.compare-grid .gallery-item {
    border-radius: 0 !important;
    border: none !important;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.compare-grid .gallery-item:hover {
    transform: none !important;
    z-index: 5;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
    position: relative;
}

/* ---------- 拖拽上传 ---------- */
.drag-active {
    border-color: var(--accent) !important;
    background: var(--glow-color) !important;
    box-shadow: 0 0 15px var(--glow-color) inset !important;
}

/* ---------- 重绘模态框 ---------- */
#redrawModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.redraw-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 400px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: var(--panel-border);
    animation: modalFadeIn 0.3s;
}

/* ---------- 指南 Tab ---------- */
.info-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: var(--panel-border);
}

.info-tab {
    flex: 1;
    padding: 14px 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.info-tab:hover {
    color: var(--accent);
    background: var(--glow-color);
}

.info-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-secondary);
}

.info-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.info-pane.active {
    display: block;
}

.info-pane h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-pane p,
.info-pane li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ---------- API 配置行 ---------- */
.api-profile-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: stretch;
}

/* ---------- 时间徽章 ---------- */
.time-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}
