/* ========== 故事创作容器 ========== */
.sc-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #f8f6ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

/* 全屏模式 */
.sc-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

/* ========== 顶部工具栏 ========== */
.sc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 28px;
}

.toolbar-title-group {
    flex: 1;
    justify-content: center;
}

.sc-toolbar-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.sc-toolbar-btn {
    padding: 6px 11px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    transition: all 0.2s;
    white-space: nowrap;
}

.sc-toolbar-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.32);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.sc-toolbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ========== 主内容区 ========== */
.sc-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f8f6ff;
}

/* ========== 左侧历史面板 ========== */
.sc-history-panel {
    width: 200px;
    background: #fff;
    border-right: 1px solid #e8e2f8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.sc-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #faf8ff, #f5f2fe);
    border-bottom: 1px solid #e8e2f8;
    flex-shrink: 0;
}

.sc-history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5b21b6;
}

.sc-history-clear-btn {
    background: #fff0f8;
    border: none;
    color: #db2777;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.sc-history-clear-btn:hover {
    background: #fce7f3;
}

.sc-history-search {
    padding: 8px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.sc-history-search input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #374151;
}

.sc-history-search input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.12);
}

.sc-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 6px;
}

.sc-history-list::-webkit-scrollbar { width: 4px; }
.sc-history-list::-webkit-scrollbar-track { background: transparent; }
.sc-history-list::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 2px; }
.sc-history-list:hover::-webkit-scrollbar-thumb { background: #7c3aed; }

.sc-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px;
    color: #a78bfa;
    font-size: 12px;
    gap: 4px;
}

.sc-history-empty small {
    font-size: 11px;
    color: #c4b5fd;
}

.sc-history-footer {
    padding: 6px 12px;
    border-top: 1px solid #e8e2f8;
    text-align: right;
    flex-shrink: 0;
}

.sc-history-count {
    font-size: 11px;
    color: #a78bfa;
}

.sc-history-item {
    display: flex;
    flex-direction: column;
    padding: 9px 10px;
    margin: 3px 2px;
    background: #faf8ff;
    border: 1px solid #ede9fe;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    animation: scFadeIn 0.2s ease;
}

@keyframes scFadeIn {
    from { opacity: 0; transform: translateX(-4px); }
    to   { opacity: 1; transform: translateX(0); }
}

.sc-history-item:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    transform: translateX(2px);
}

.sc-history-item.active {
    background: #ede9fe;
    border-color: #7c3aed;
    border-left: 3px solid #7c3aed;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.15);
}

.sc-history-item-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 17px;
    height: 17px;
    background: #fce7f3;
    color: #db2777;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.sc-history-item:hover .sc-history-item-delete {
    opacity: 1;
}

.sc-history-item-delete:hover {
    background: #db2777;
    color: white;
}

.sc-history-item-title {
    font-weight: 600;
    font-size: 12px;
    color: #1e1b4b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 22px);
    margin-bottom: 3px;
}

.sc-history-item-meta {
    color: #7c3aed;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-history-item-time {
    color: #a78bfa;
    font-size: 10px;
    margin-top: 2px;
}

/* ========== 中间输入面板 ========== */
.sc-input-panel {
    width: 340px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e8e2f8;
    overflow: hidden;
    flex-shrink: 0;
}

.sc-panel-header {
    padding: 12px 16px;
    background: linear-gradient(to bottom, #faf8ff, #f5f2fe);
    border-bottom: 1px solid #e8e2f8;
    flex-shrink: 0;
}

.sc-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5b21b6;
}

.sc-input-section {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.sc-input-section::-webkit-scrollbar { width: 4px; }
.sc-input-section::-webkit-scrollbar-track { background: transparent; }
.sc-input-section::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 2px; }
.sc-input-section:hover::-webkit-scrollbar-thumb { background: #7c3aed; }

.sc-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.sc-form-field {
    flex: 1;
    min-width: 0;
}

.sc-field-wide {
    flex: 1 1 100%;
    width: 100%;
}

.sc-input-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5b21b6;
    margin-bottom: 5px;
}

.sc-required {
    color: #db2777;
    font-size: 11px;
}

.sc-text-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1e1b4b;
    background: #faf8ff;
}

.sc-text-input:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.sc-select-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1e1b4b;
    background: #faf8ff;
    cursor: pointer;
}

.sc-select-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.sc-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    resize: vertical;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1e1b4b;
    background: #faf8ff;
    line-height: 1.6;
    font-family: inherit;
}

.sc-textarea:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

/* 选项区域 */
.sc-options-section {
    background: #faf8ff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ede9fe;
    margin-top: 4px;
}

.sc-options-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sc-options-title {
    font-size: 12px;
    font-weight: 600;
    color: #5b21b6;
}

.sc-options-quick-btns {
    display: flex;
    gap: 6px;
}

.sc-quick-btn {
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 4px;
    font-size: 11px;
    color: #7c3aed;
    cursor: pointer;
    padding: 2px 7px;
    transition: all 0.2s;
}

.sc-quick-btn:hover {
    background: #ede9fe;
    border-color: #7c3aed;
}

.sc-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* 奇数末项独占一行（5个选项时对称） */
.sc-options-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.sc-option-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #ede9fe;
    background: #fff;
    transition: all 0.2s;
}

.sc-option-checkbox:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
}

/* 选中状态高亮 */
.sc-option-checkbox:has(input:checked) {
    background: #f0ebff;
    border-color: #a78bfa;
}

.sc-option-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #7c3aed;
}

.sc-checkbox-label {
    font-size: 12px;
    color: #374151;
    white-space: nowrap;
}

/* 操作按钮区域 */
.sc-action-section {
    padding: 12px 14px;
    border-top: 1px solid #e8e2f8;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    background: #fff;
}

.sc-generate-btn {
    flex: 1;
    padding: 11px 16px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.25);
}

.sc-generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(124, 58, 237, 0.35);
}

.sc-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 按钮生成中动画 */
@keyframes scBtnPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.si-btn-generating {
    animation: scBtnPulse 1.4s ease-in-out infinite;
}

.sc-btn-icon {
    font-size: 15px;
}

.sc-cancel-btn {
    padding: 11px 14px;
    background: #fff0f8;
    color: #db2777;
    border: 1px solid #fce7f3;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.sc-cancel-btn:hover {
    background: #fce7f3;
}

/* ========== 右侧结果面板 ========== */
.sc-result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    min-width: 320px;
}

.sc-result-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.sc-result-panel-header h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

.sc-result-actions {
    display: flex;
    gap: 6px;
}

.sc-result-action-btn {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #7c3aed;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-result-action-btn:hover {
    background: #ede9fe;
    border-color: #7c3aed;
}

/* 占位符 */
.sc-result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    overflow-y: auto;
}

.sc-placeholder-icon {
    font-size: 52px;
    margin-bottom: 16px;
    animation: scFloat 3s ease-in-out infinite;
}

@keyframes scFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.sc-placeholder-title {
    font-size: 18px;
    font-weight: 700;
    color: #5b21b6;
    margin: 0 0 8px;
}

.sc-placeholder-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 0 20px;
}

.sc-placeholder-tips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 380px;
}

.sc-tip-item {
    background: #faf8ff;
    border: 1px solid #ede9fe;
    border-left: 3px solid #c4b5fd;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    color: #374151;
    text-align: left;
}

.sc-placeholder-quick-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sc-placeholder-btn {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(124, 58, 237, 0.25);
}

.sc-placeholder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(124, 58, 237, 0.35);
}

.sc-placeholder-shortcut {
    font-size: 12px;
    color: #a78bfa;
}

/* 加载动画 */
.sc-result-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.sc-loading-animation {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.sc-loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7c3aed;
    animation: scDotBounce 1.4s ease-in-out infinite;
}

.sc-loading-dot:nth-child(2) { animation-delay: 0.16s; background: #a855f7; }
.sc-loading-dot:nth-child(3) { animation-delay: 0.32s; background: #db2777; }

@keyframes scDotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1.1); opacity: 1; }
}

.sc-loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #5b21b6;
    margin: 0 0 6px;
}

.sc-loading-sub {
    font-size: 12px;
    color: #a78bfa;
    margin: 0;
}

/* 结果内容 */
.sc-result-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
}

.sc-result-content::-webkit-scrollbar { width: 4px; }
.sc-result-content::-webkit-scrollbar-track { background: transparent; }
.sc-result-content::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 2px; }
.sc-result-content:hover::-webkit-scrollbar-thumb { background: #7c3aed; }

/* 错误提示 */
.sc-error-notice {
    background: #fff5f5;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sc-error-icon { font-size: 15px; flex-shrink: 0; }

.sc-error-msg { font-size: 13px; color: #be123c; line-height: 1.5; }

/* 结果区块 */
.sc-result-section {
    background: #fff;
    border: 1px solid #ede9fe;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(124, 58, 237, 0.05);
    transition: all 0.2s;
}

.sc-result-section:last-child {
    margin-bottom: 0;
}

.sc-result-section:hover {
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.sc-result-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    background: linear-gradient(to right, #faf8ff, #fff);
    border-bottom: 1px solid #ede9fe;
    user-select: none;
    transition: background 0.2s;
}

.sc-result-section-header:hover {
    background: linear-gradient(to right, #f5f3ff, #faf8ff);
}

.sc-section-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-section-icon { font-size: 15px; }

.sc-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #5b21b6;
}

.sc-section-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-section-copy-btn {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 3px;
    color: #7c3aed;
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
}

.sc-result-section-header:hover .sc-section-copy-btn {
    opacity: 1;
}

.sc-section-copy-btn:hover {
    background: #ede9fe;
}

.sc-section-collapse-icon {
    font-size: 12px;
    color: #a78bfa;
    transition: transform 0.2s;
}

.sc-result-section.collapsed .sc-section-collapse-icon {
    transform: rotate(-90deg);
}

/* 信息网格（概述区块 Meta 信息） */
.sc-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0ebff;
}

.sc-info-tag {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 12px;
    color: #5b21b6;
    white-space: nowrap;
}

/* 区块内容 */
.sc-section-body {
    padding: 12px 14px;
    font-size: 13px;
    color: #374151;
    line-height: 1.75;
    word-break: break-word;
}

/* 富文本样式 */
.sc-section-body p { margin: 0 0 10px; }
.sc-section-body p:last-child { margin-bottom: 0; }
.sc-section-body ul, .sc-section-body ol {
    margin: 6px 0 10px;
    padding-left: 20px;
}
.sc-section-body ul li::marker { color: #7c3aed; }
.sc-section-body ol li::marker { color: #db2777; }
.sc-section-body li { margin-bottom: 5px; }
.sc-section-body h3, .sc-section-body h4 {
    color: #5b21b6;
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: 700;
}
.sc-section-body strong { color: #5b21b6; }
.sc-section-body em { color: #7c3aed; font-style: italic; }

/* 故事正文特殊样式 */
.sc-story-body {
    font-size: 14px;
    line-height: 1.9;
    color: #1f2937;
}

.sc-story-body p {
    text-indent: 2em;
    margin-bottom: 12px;
}

/* 原始文本 */
.sc-raw-text-body {
    white-space: pre-wrap;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    background: #faf8ff;
    border-radius: 4px;
    color: #374151;
}

/* ========== 示例模态框 ========== */
.sc-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.sc-modal.show { display: flex; }

.sc-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.18);
    animation: scModalIn 0.25s ease-out;
}

@keyframes scModalIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    flex-shrink: 0;
}

.sc-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.sc-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-modal-close:hover { background: rgba(255,255,255,0.35); }

.sc-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.sc-modal-body::-webkit-scrollbar { width: 4px; }
.sc-modal-body::-webkit-scrollbar-thumb { background: #ddd6fe; border-radius: 2px; }
.sc-modal-body:hover::-webkit-scrollbar-thumb { background: #7c3aed; }

.sc-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 99999;
}

.sc-modal-overlay.show { display: block; }

/* 示例分类 */
.sc-example-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-example-category {
    background: #faf8ff;
    border-radius: 8px;
    border: 1px solid #ede9fe;
    overflow: hidden;
}

.sc-example-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(to right, #f5f3ff, #faf8ff);
    border-bottom: 1px solid #ede9fe;
}

.sc-cat-icon { font-size: 16px; }

.sc-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: #5b21b6;
    flex: 1;
}

.sc-cat-count {
    font-size: 11px;
    color: #a78bfa;
    background: #ede9fe;
    padding: 1px 7px;
    border-radius: 8px;
}

.sc-example-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.sc-example-item {
    background: #fff;
    border: 1px solid #ede9fe;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-example-item:hover {
    background: #f5f3ff;
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.sc-example-item-label {
    font-size: 13px;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 4px;
}

.sc-example-item-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 表单校验错误状态 ========== */
.sc-text-input.is-error,
.sc-textarea.is-error {
    border-color: #db2777 !important;
    box-shadow: 0 0 0 2px rgba(219, 39, 119, 0.12) !important;
    animation: scShakeField 0.4s ease;
}

@keyframes scShakeField {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-4px); }
    40%       { transform: translateX(4px); }
    60%       { transform: translateX(-3px); }
    80%       { transform: translateX(3px); }
}

/* ========== 字数统计 ========== */
.sc-char-counter-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 3px;
}

.sc-char-counter {
    font-size: 11px;
    color: #c4b5fd;
    transition: color 0.2s;
}

.sc-char-counter.is-many {
    color: #d97706;
}

/* ========== 历史搜索清除按钮 ========== */
.sc-history-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.sc-history-search-wrap input {
    padding-right: 26px;
}

.sc-search-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #a78bfa;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.sc-search-clear-btn:hover {
    color: #7c3aed;
}

/* ========== 响应式布局 ========== */
@media (max-width: 900px) {
    .sc-history-panel { display: none; }
    .sc-input-panel { width: 280px; min-width: 240px; }
}

@media (max-width: 640px) {
    .sc-main-content { flex-direction: column; }
    .sc-input-panel { width: 100%; flex-shrink: 0; max-height: 50vh; }
    .sc-result-panel { min-width: unset; }
    .toolbar-title-group { display: none; }
}

/* ========== 打印样式 ========== */
@media print {
    /* 隐藏非核心内容 */
    .sc-toolbar,
    .sc-history-panel,
    .sc-input-panel,
    .sc-result-panel-header .sc-result-actions,
    .sc-section-copy-btn,
    .sc-placeholder-quick-start,
    #resultPlaceholder,
    #resultLoading {
        display: none !important;
    }

    /* 全屏容器恢复正常布局 */
    .sc-container,
    .sc-container.fullscreen {
        position: static !important;
        height: auto !important;
        width: 100% !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    /* 主内容区展开 */
    .sc-main-content {
        display: block !important;
    }

    /* 结果面板占满 */
    .sc-result-panel {
        display: block !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* 展开所有区块 — 无论是否已折叠 */
    .sc-result-section.collapsed .sc-section-body,
    .sc-result-section.collapsed .sc-info-grid {
        display: block !important;
    }

    /* 区块边框简化 */
    .sc-result-section {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    /* 故事正文打印优化 */
    .sc-story-body {
        font-size: 12pt !important;
        line-height: 2 !important;
        color: #000 !important;
    }

    .sc-section-body {
        color: #000 !important;
    }
}
