/**
 * AI瑙嗛鐢熸垚椤甸潰鏍峰紡 - 娣辫壊涓婚
 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #fafafa;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    color: #444;
}

/* 鍏ㄥ眬婊氬姩鏉℃牱寮?- 娣辫壊涓婚 */
body::-webkit-scrollbar,
.page-container::-webkit-scrollbar,
.control-panel::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 4px;
}

body::-webkit-scrollbar-track,
.page-container::-webkit-scrollbar-track,
.control-panel::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb,
.page-container::-webkit-scrollbar-thumb,
.control-panel::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover,
.page-container::-webkit-scrollbar-thumb:hover,
.control-panel::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.18);
}

body::-webkit-scrollbar-button,
.page-container::-webkit-scrollbar-button,
.control-panel::-webkit-scrollbar-button,
.history-list::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.page-container {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 2px; /* 馃敟 缂╁皬杈硅窛 */
    background: #fafafa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-container {
    flex: 1;
    display: flex;
    gap: 0;
    min-height: 0;
}

/* 鎺у埗闈㈡澘 - 娣辫壊涓婚 */
.control-panel {
    width: 350px;
    background: #ffffff;
    border-radius: 0;
    padding: 20px;
    border: none;
    border-right: 1px solid rgba(0,0,0,0.06);
    overflow-y: auto;
    flex-shrink: 0;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #333;
}

.panel-subtitle {
    font-size: 12px;
    color: #888;
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-group {
    margin-bottom: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.form-group:last-child { border-bottom: none; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
    background: rgba(0,0,0,0.03);
    color: #444;
}

.form-control:focus {
    outline: none;
    border-color: #3444fe;
    background: rgba(0,0,0,0.06);
    box-shadow: 0 0 0 2px rgba(52, 68, 254, 0.2);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.35);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: rgba(0,0,0,0.03);
    padding-right: 36px;
}

select.form-control option {
    background: #ffffff;
    color: #444;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.12) transparent;
}

/* textarea 滚动条样式 */
textarea.form-control::-webkit-scrollbar {
    width: 4px;
}

textarea.form-control::-webkit-scrollbar-track {
    background: transparent;
}

textarea.form-control::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.12);
    border-radius: 4px;
}

textarea.form-control::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.18);
}

/* 馃敟 娑﹁壊鍜屽弽鎺ㄦ寜閽尯鍩?- 涓嶢I鍥剧墖缂栬緫淇濇寔涓€鑷?*/
.prompt-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

/* 馃敟 鎸夐挳鍩虹鏍峰紡 - 涓嶢I鍥剧墖缂栬緫淇濇寔涓€鑷?*/
.prompt-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(0,0,0,0.08);
    color: #555;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.prompt-action-btn:hover {
    color: #3444fe;
    background: rgba(52, 68, 254, 0.15);
}

.prompt-action-btn:active {
    transform: scale(0.98);
}

.prompt-action-btn:disabled {
    color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
    cursor: not-allowed;
}

/* 馃敟 鍙嶆帹鎸夐挳鐗规畩鏍峰紡 */
.prompt-action-btn.reverse-btn:hover {
    color: #10b981;
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

/* 馃敟 鍙嶆帹涓姸鎬?- 缁胯壊绉戞妧鎰熸祦鍔ㄨ竟妗?*/
.prompt-action-btn.reverse-btn.loading {
    color: #10b981;
    border: none;
    background: transparent;
    overflow: visible;
}

.prompt-action-btn.reverse-btn.loading::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7, #34d399, #10b981);
    background-size: 300% 100%;
    animation: tech-border-flow 2s linear infinite;
    z-index: -1;
}

.prompt-action-btn.reverse-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 19px;
    background: #ffffff;
    z-index: -1;
}

/* 馃敟 娑﹁壊涓姸鎬?- 绱摑鑹茬鎶€鎰熸祦鍔ㄨ竟妗?*/
.prompt-action-btn.enhance-btn.loading {
    color: #3444fe;
    border: none;
    background: transparent;
    overflow: visible;
}

.prompt-action-btn.enhance-btn.loading::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 20px;
    background: linear-gradient(90deg, #3444fe, #2a36cb, #3399ff, #2a36cb, #3444fe);
    background-size: 300% 100%;
    animation: tech-border-flow 2s linear infinite;
    z-index: -1;
}

.prompt-action-btn.enhance-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 19px;
    background: #ffffff;
    z-index: -1;
}

/* 馃敟 绉戞妧鎰熸祦鍔ㄨ竟妗嗗姩鐢?*/
@keyframes tech-border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 绫诲瀷閫夋嫨鍣?*/
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.type-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(0,0,0,0.06);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    pointer-events: auto;
    user-select: none;
    color: #444;
}

.type-btn:hover {
    background: rgba(52, 68, 254, 0.2);
}

.type-btn.active {
    background: linear-gradient(135deg, #3444fe 0%, #2a36cb 100%);
    color: white;
}

/* 鍥剧墖涓婁紶鍖哄煙 */
.upload-label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.upload-label-wrapper label {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.upload-hint-inline {
    font-size: 12px;
    color: rgba(0,0,0,0.2);
}

.frame-upload-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.frame-upload-item {
    flex: 1;
}

.frame-upload-item label {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

/* 馃敟 棣栧熬甯у垏鎹㈡寜閽?*/
.frame-swap-btn {
    background: rgba(52, 68, 254, 0.2);
    border: 1px solid rgba(52, 68, 254, 0.4);
    color: #3444fe;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 20px; /* 涓庢爣绛惧榻?*/
}

.frame-swap-btn:hover {
    background: rgba(52, 68, 254, 0.4);
    border-color: #3444fe;
    transform: scale(1.1);
}

.frame-swap-btn:active {
    transform: scale(0.95);
}

.upload-area-compact {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.02);
    border: 2px dashed rgba(0,0,0,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area-compact:hover {
    border-color: #3444fe;
    background: rgba(52, 68, 254, 0.1);
}

/* 馃敟 鎷栨嫿涓婁紶楂樹寒鐘舵€?*/
.upload-area-compact.drag-over {
    border-color: #3444fe;
    background: rgba(52, 68, 254, 0.25);
    box-shadow: 0 0 20px rgba(52, 68, 254, 0.4);
    border-style: solid;
}

.upload-plus-icon {
    font-size: 32px;
    color: rgba(0,0,0,0.2);
    pointer-events: none;
}

.uploaded-preview {
    display: none;
    position: relative;
    margin-top: 8px;
}

.uploaded-preview img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.uploaded-preview img:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(52, 68, 254, 0.3);
}

.uploaded-preview .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    font-size: 12px;
}

/* 馃敟 鍥剧墖鏌ョ湅妯℃€佹 */
.frame-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: zoom-out;
}

.frame-image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.frame-image-modal .close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.frame-image-modal .close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 鎻愮ず璇嶈緭鍏?*/
.prompt-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.char-count {
    font-size: 12px;
    color: #888;
}

/* 鏃堕暱淇℃伅 */
.duration-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.duration-badge {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.duration-hint {
    font-size: 12px;
    color: #888;
}

/* 瑙嗛鍒嗚鲸鐜囬€夋嫨鍣?*/
.resolution-selector {
    display: flex;
    gap: 10px;
}

.resolution-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.resolution-btn:hover {
    background: rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.12);
}

.resolution-btn.active {
    background: rgba(52, 68, 254, 0.08);
    border-color: #3444fe;
    color: #3444fe;
}

.resolution-btn .res-name {
    font-weight: 600;
    font-size: 15px;
}

.resolution-btn .res-desc {
    font-size: 11px;
    opacity: 0.7;
}

.resolution-hint {
    font-size: 11px;
    color: rgba(0,0,0,0.2);
    margin-top: 8px;
}

/* 绠楀姏娑堣€椾俊鎭?*/
.power-cost-info {
    background: rgba(52, 68, 254, 0.1);
    border: 1px solid rgba(52, 68, 254, 0.2);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.power-cost-row,
.power-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.power-cost-row {
    margin-bottom: 8px;
}

.power-label,
.balance-label {
    font-size: 14px;
    color: #555;
}

.power-value {
    font-size: 16px;
    font-weight: 700;
    color: #3444fe;
}

.balance-value {
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
}

/* 鐢熸垚鎸夐挳 */
.generate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3444fe 0%, #2a36cb 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.generate-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 杩涘害鏉?*/
.progress-container {
    margin-top: 20px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3444fe 0%, #2a36cb 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 棰勮闈㈡澘 - 娣辫壊涓婚 */
.preview-panel {
    flex: 1;
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.preview-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

.action-btn {
    padding: 8px 16px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    color: #444;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    border-color: #3444fe;
    background: rgba(52, 68, 254, 0.1);
}

.preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 0;
    min-height: 0;
    border: 1px dashed rgba(0,0,0,0.12);
    overflow: hidden;
}

.empty-preview {
    text-align: center;
    color: #888;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-icon svg {
    width: 48px;
    height: 48px;
}

.empty-hint {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* 馃敟 瑙嗛棰勮 - 绛夋瘮鏄剧ず锛屾棤鐏拌壊鑳屾櫙闂儊 */
.preview-video {
    width: 100%;
    max-height: 100%;
    border-radius: 10px;
    background: transparent;
    object-fit: contain; /* 馃敟 淇濇寔瑙嗛鍘熷姣斾緥 */
}

/* 鍘嗗彶闈㈡澘 - 娣辫壊涓婚 */
.history-panel {
    width: 300px;
    background: #ffffff;
    border-radius: 0;
    padding: 50px 20px 20px;
    border-left: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: hidden !important;
    height: calc(100vh - 40px);
    position: relative;
    z-index: 100;
    box-sizing: border-box;
}

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

.history-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.clear-history-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.clear-history-btn:hover {
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
}
/* 保留 history-header 可见（统一规范） */

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

.empty-history {
    text-align: center;
    color: rgba(0,0,0,0.2);
    padding: 40px 20px;
}

.history-item {
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.history-item:hover {
    background: rgba(52, 68, 254, 0.1);
    border-color: rgba(52, 68, 254, 0.3);
}

/* 馃敟 鍗曟潯鍒犻櫎鎸夐挳 */
.history-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.history-item:hover .history-delete-btn {
    opacity: 0.7;
}

.history-delete-btn:hover {
    opacity: 1 !important;
    background: rgba(239, 68, 68, 0.8);
}

.history-item-content {
    cursor: pointer;
}

.history-item.active {
    border-color: #3444fe;
}

/* 馃敟 澶勭悊涓姸鎬佹牱寮?*/
.history-item.processing {
    border-color: rgba(52, 68, 254, 0.5);
    background: rgba(52, 68, 254, 0.1);
    cursor: default;
}

.history-item.processing .history-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 68, 254, 0.15);
}

.processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #3444fe;
    font-size: 12px;
}

.processing-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(52, 68, 254, 0.3);
    border-top-color: #3444fe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 馃敟 闃熷垪涓姸鎬佹牱寮?*/
.history-item.queued {
    border-color: rgba(52, 68, 254, 0.5);
    background: rgba(52, 68, 254, 0.1);
}

.history-item.queued .history-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 68, 254, 0.15);
}

.queued-indicator {
    color: #3444fe !important;
}

.queued-indicator .queue-icon {
    font-size: 24px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* 馃敟 澶辫触鐘舵€佹牱寮?*/
.history-item.failed {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.history-item.failed .history-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.15);
}

.failed-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #ef4444;
    font-size: 12px;
}

.failed-indicator span:first-child {
    font-size: 24px;
}

.history-thumbnail {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.history-thumbnail img,
.history-thumbnail video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.history-thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 馃敟 瑙嗛鍗犱綅绗︽牱寮忥紙娌℃湁缂╃暐鍥炬椂鏄剧ず锛?*/
.history-thumbnail .video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(52, 68, 254, 0.2), rgba(37, 99, 235, 0.2));
}

.history-info {
    font-size: 12px;
    color: #888;
}

.history-prompt {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-time {
    font-size: 11px;
    color: #888;
}

/* 闃熷垪鍖哄煙 */
.queue-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e1e5e9;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.queue-count {
    color: #3444fe;
    font-weight: 600;
}

.queue-item {
    background: #f8f9ff;
    border: 2px solid #e1e5f9;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.queue-item-status {
    color: #3444fe;
    font-weight: 600;
    margin-bottom: 4px;
}

.queue-item-prompt {
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 鍝嶅簲寮忚璁?*/
@media (max-width: 1200px) {
    .control-panel {
        width: 300px;
    }

    .history-panel {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .editor-container {
        flex-direction: column;
    }

    .control-panel,
    .history-panel {
        width: 100%;
        max-height: none;
    }

    .preview-content {
        min-height: 300px;
    }
}

@media (max-width: 576px) {
    .page-container {
        padding: 2px; /* 馃敟 缂╁皬杈硅窛 */
    }

    .control-panel,
    .history-panel {
        padding: 15px;
        border-radius: 0;
    }
    .preview-panel {
        padding: 0;
        border-radius: 0;
    }

    .frame-upload-container {
        flex-direction: column;
    }
}
