/* =============================================
   短视频脚本工具 - 样式文件
   ============================================= */

/* ---- 主容器 ---- */
.svs-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    min-height: 680px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.svs-container.is-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    border-radius: 0;
    border: none;
    min-height: 100vh;
}

/* ---- 工具栏 ---- */
.svs-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.svs-toolbar .toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.svs-toolbar .toolbar-group + .toolbar-group {
    padding-left: 8px;
    border-left: 1px solid #e2e8f0;
}

.svs-toolbar-title {
    flex: 1;
    justify-content: center;
    border-left: none !important;
    border-right: none !important;
}

.toolbar-title-text {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.5px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 12.5px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.toolbar-btn:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    color: #0284c7;
}

/* ---- 主内容区（三栏） ---- */
.svs-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ---- 左侧历史面板 ---- */
.svs-history-panel {
    width: 190px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    overflow: hidden;
}

.history-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.history-panel-header h3 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
}

.history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #ef4444;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 7px;
    border-radius: 3px;
    transition: all 0.15s;
}

.history-clear-btn:hover {
    background: #fde8e8;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.history-empty {
    text-align: center;
    padding: 30px 14px;
    color: #94a3b8;
}

.history-empty-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.history-empty-text {
    font-size: 12px;
}

.history-item {
    padding: 8px 12px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.15s;
    position: relative;
}

.history-item:hover {
    background: #eff6ff;
    border-left-color: #93c5fd;
}

.history-item.active {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.history-item-topic {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}

.history-item-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.history-item-del {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.15s;
    line-height: 1;
    padding: 2px;
}

.history-item:hover .history-item-del {
    opacity: 1;
}

.history-item-del:hover {
    color: #ef4444;
}

/* ---- 中间配置面板 ---- */
.svs-config-panel {
    width: 310px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.config-panel-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: linear-gradient(to bottom, #fafafa, #f7f8fa);
}

.config-panel-header h3 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.panel-tip {
    font-size: 11.5px;
    color: #94a3b8;
}

.config-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
}

/* ---- 表单通用 ---- */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.form-label.required::before {
    content: '*';
    color: #ef4444;
    font-size: 13px;
}

.optional-tag {
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 400;
    padding: 1px 6px;
    border-radius: 10px;
}

.char-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    transition: color 0.2s;
}

.char-count.warning {
    color: #f59e0b;
    font-weight: 500;
}

.char-count.danger {
    color: #ef4444;
    font-weight: 600;
}

.form-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
    resize: vertical;
    transition: border-color 0.15s;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

.form-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}

.form-textarea.is-error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.form-textarea.is-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.section-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ---- 按钮选择器（平台/时长/类型/风格） ---- */
.btn-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sel-btn {
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
}

.sel-btn:hover {
    background: #f0f9ff;
    border-color: #93c5fd;
    color: #0284c7;
}

.sel-btn.active {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-color: #6366f1;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* ---- 操作按钮区域 ---- */
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.35);
}

.generate-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
}

.generate-btn:active {
    transform: translateY(0);
}

/* 生成中：流光闪烁动画 */
@keyframes btnShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.generate-btn.btnShimmer,
.generate-btn.btnShimmer:hover {
    background: linear-gradient(
        135deg,
        #4f46e5 0%,
        #818cf8 25%,
        #c7d2fe 50%,
        #818cf8 75%,
        #4f46e5 100%
    );
    background-size: 300% auto;
    animation: btnShimmer 1.8s linear infinite;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.45);
}

.generate-btn:disabled {
    cursor: not-allowed;
}

.generate-btn .btn-shortcut-hint {
    font-size: 10.5px;
    opacity: 0.75;
    font-weight: 400;
}

.cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.cancel-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #ef4444;
}

.draft-saved-hint {
    font-size: 12px;
    color: #22c55e;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 500;
}

.draft-saved-hint.visible {
    opacity: 1;
}

/* ---- 右侧输出面板 ---- */
.svs-output-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.output-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.output-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.output-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.platform-badge {
    font-size: 11px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border-radius: 20px;
    font-weight: 500;
}

.re-gen-btn {
    padding: 4px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.15s;
}

.re-gen-btn:hover {
    background: #eff6ff;
    border-color: #6366f1;
}

/* ---- 空状态 ---- */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    overflow-y: auto;
}

.empty-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.empty-title {
    font-size: 17px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 28px;
}

.empty-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 380px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #a5b4fc;
    border-radius: 8px;
    font-size: 12.5px;
    color: #475569;
    transition: all 0.15s;
}

.feature-item:hover {
    background: #f0f4ff;
    border-color: #c7d2fe;
    border-left-color: #6366f1;
    transform: translateX(2px);
}

.feature-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* ---- 加载状态 ---- */
.loading-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-rings {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.loading-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: loading-spin 1.2s linear infinite;
}

.loading-ring:nth-child(1) {
    width: 64px;
    height: 64px;
    border-top-color: #6366f1;
    animation-duration: 1.2s;
}

.loading-ring:nth-child(2) {
    width: 48px;
    height: 48px;
    top: 8px;
    left: 8px;
    border-top-color: #818cf8;
    animation-duration: 0.9s;
    animation-direction: reverse;
}

.loading-ring:nth-child(3) {
    width: 32px;
    height: 32px;
    top: 16px;
    left: 16px;
    border-top-color: #a5b4fc;
    animation-duration: 0.7s;
}

@keyframes loading-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.loading-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6366f1;
    animation: loading-dot-bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-dot-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* ---- 脚本结果 ---- */
.script-result {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.script-section {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: #fff;
}

.script-section:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* 脚本区块入场动画 */
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-animate .script-section {
    animation: sectionFadeIn 0.38s ease both;
}

.result-animate .script-section:nth-child(1) { animation-delay: 0s; }
.result-animate .script-section:nth-child(2) { animation-delay: 0.07s; }
.result-animate .script-section:nth-child(3) { animation-delay: 0.14s; }
.result-animate .script-section:nth-child(4) { animation-delay: 0.21s; }
.result-animate .script-section:nth-child(5) { animation-delay: 0.28s; }
.result-animate .script-section:nth-child(6) { animation-delay: 0.35s; }

.script-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.sec-title-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sec-icon {
    font-size: 16px;
}

.sec-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.sec-tip {
    font-size: 11px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 1px 7px;
    border-radius: 10px;
}

.sec-copy-btn {
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 11.5px;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.15s;
}

.sec-copy-btn:hover {
    background: #eff6ff;
    border-color: #6366f1;
}

.script-sec-body {
    padding: 12px 16px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.75;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 封面文案 - 暖橙色调 */
#sec-cover .script-sec-header {
    background: linear-gradient(to right, #fff7ed, #ffedd5);
    border-bottom-color: #fed7aa;
}
#sec-cover .sec-icon, #sec-cover .sec-title { color: #c2410c; }

/* 开场钩子 - 玫红色调 */
#sec-hook .script-sec-header {
    background: linear-gradient(to right, #fff1f2, #ffe4e6);
    border-bottom-color: #fecdd3;
}
#sec-hook .sec-icon, #sec-hook .sec-title { color: #be123c; }

/* 主体分镜 - 蓝色调 */
#sec-shots .script-sec-header {
    background: linear-gradient(to right, #eff6ff, #dbeafe);
    border-bottom-color: #bfdbfe;
}
#sec-shots .sec-icon, #sec-shots .sec-title { color: #1d4ed8; }

/* 结尾引流 - 紫罗兰色调 */
#sec-cta .script-sec-header {
    background: linear-gradient(to right, #f5f3ff, #ede9fe);
    border-bottom-color: #ddd6fe;
}
#sec-cta .sec-icon, #sec-cta .sec-title { color: #6d28d9; }

.sec-music .script-sec-header {
    background: linear-gradient(to right, #fdf4ff, #fae8ff);
    border-bottom-color: #e9d5ff;
}

.sec-music .sec-icon,
.sec-music .sec-title {
    color: #7c3aed;
}

.sec-hashtags .script-sec-header {
    background: linear-gradient(to right, #f0fdf4, #dcfce7);
    border-bottom-color: #bbf7d0;
}

.sec-hashtags .sec-icon,
.sec-hashtags .sec-title {
    color: #15803d;
}

.hashtag-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
}

.hashtag-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 12.5px;
    color: #15803d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.hashtag-tag:hover {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #fff;
    border-color: #22c55e;
}

/* ---- 错误状态 ---- */
.error-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 14px;
    opacity: 0.8;
}

.error-text {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 9px 24px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border: none;
    border-radius: 7px;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    transform: translateY(-1px);
}

/* ---- 示例抽屉 ---- */
.svs-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 440px;
    height: 100vh;
    background: #fff;
    border-left: 1px solid #e2e8f0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.svs-drawer.is-open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    flex-shrink: 0;
}

.drawer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 5px;
    transition: background 0.15s;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.example-card {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.example-card:hover {
    border-color: #6366f1;
    background: #fafafe;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.12);
    transform: translateY(-1px);
}

.example-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.example-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.example-meta-tag {
    font-size: 11px;
    padding: 1px 8px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.example-card-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.svs-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(1px);
}

.svs-drawer-overlay.visible {
    display: block;
}

/* ---- 工作日/周末动态主题 ---- */
body.is-weekend .svs-toolbar {
    background: linear-gradient(to bottom, #fdf4ff, #fae8ff);
    border-bottom-color: #e9d5ff;
}

body.is-weekend .toolbar-title-text {
    color: #7c3aed;
}

body.is-weekend .svs-container {
    border-color: #e9d5ff;
    box-shadow: 0 2px 16px rgba(124, 58, 237, 0.1);
}

body.is-weekend .svs-container.is-fullscreen {
    box-shadow: none;
}

body.is-weekend .toolbar-btn:hover {
    background: #fdf4ff;
    border-color: #d8b4fe;
    color: #7c3aed;
}

body.is-weekend .sel-btn.active {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border-color: #7c3aed;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

body.is-weekend .generate-btn {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35);
}

body.is-weekend .generate-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.45);
}

/* ---- 滚动条美化 ---- */
.config-panel-body::-webkit-scrollbar,
.script-result::-webkit-scrollbar,
.history-list::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar {
    width: 5px;
}

.config-panel-body::-webkit-scrollbar-track,
.script-result::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track,
.drawer-body::-webkit-scrollbar-track {
    background: #f8fafc;
}

.config-panel-body::-webkit-scrollbar-thumb,
.script-result::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.config-panel-body::-webkit-scrollbar-thumb:hover,
.script-result::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover,
.drawer-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    .svs-history-panel {
        display: none;
    }
    .svs-config-panel {
        width: 280px;
    }
}

@media (max-width: 640px) {
    .svs-main-content {
        flex-direction: column;
    }
    .svs-config-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 50vh;
    }
    .svs-output-panel {
        min-height: 50vh;
    }
    .svs-drawer {
        width: 100%;
        right: -100%;
    }
    .empty-feature-list {
        grid-template-columns: 1fr;
    }
}
