/* ========== 自我介绍工具容器 ========== */
.si-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 600px;
    background: #fdf8f3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(201, 149, 108, 0.12);
    transition: all 0.3s ease;
}

/* 全屏模式 */
.si-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

/* ========== 顶部工具栏 ========== */
.si-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, #C9956C 0%, #a87450 100%);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(201, 149, 108, 0.35);
    flex-shrink: 0;
    min-height: 36px;
}

.si-toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.si-toolbar-title-group {
    flex: 1;
    justify-content: center;
}

.si-toolbar-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

.si-toolbar-btn {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #a87450;
    transition: all 0.2s;
    white-space: nowrap;
}

.si-toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.si-toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== 主内容区 ========== */
.si-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ========== 左侧历史面板 ========== */
.si-history-panel {
    width: 200px;
    background: white;
    border-right: 1px solid #f0d4b8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.si-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fdf8f3, #faf0e6);
    border-bottom: 1px solid #f0d4b8;
    flex-shrink: 0;
}

.si-history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.si-history-clear-btn {
    background: #fff0e8;
    border: none;
    color: #c97a50;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.si-history-clear-btn:hover {
    background: #fde8d4;
    color: #a85c30;
}

/* 历史搜索框 - 圆角胶囊设计 */
.si-history-search {
    padding: 6px 8px 8px;
    background: linear-gradient(to bottom, #f8ece0, #f2e2cc);
    border-radius: 12px;
    margin: 6px 6px 4px;
}

.si-history-search input {
    width: 100%;
    padding: 5px 10px 5px 28px;
    border: 1px solid #e8cdb0;
    border-radius: 12px;
    background: #fdf8f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8' stroke='%23C9956C' stroke-width='2' fill='none'/%3E%3Cpath d='M21 21l-4.35-4.35' stroke='%23C9956C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 8px center;
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
    color: #5a3a1a;
}

.si-history-search input:focus {
    background-color: white;
    border-color: #C9956C;
    box-shadow: 0 0 0 2px rgba(201, 149, 108, 0.15);
}

.si-history-search input::placeholder {
    color: #c4a882;
}

.si-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.si-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    color: #c4a882;
    font-size: 12px;
    gap: 4px;
    text-align: center;
}

.si-history-empty small {
    color: #d4b896;
    font-size: 11px;
}

.si-history-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    margin: 3px 0;
    background: #fdf8f3;
    border: 1px solid #f0d8c0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.si-history-item:hover {
    background: #faf0e6;
    border-color: #e8c4a0;
    transform: translateX(2px);
}

.si-history-item.active {
    background: #fef3e2;
    border-color: #C9956C;
    box-shadow: inset 3px 0 0 #C9956C, 0 1px 4px rgba(201, 149, 108, 0.2);
}

.si-history-item-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: #fde8d4;
    color: #c97a50;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.si-history-item:hover .si-history-item-del {
    opacity: 1;
}

/* 触屏设备始终显示删除按钮 */
@media (hover: none) {
    .si-history-item-del {
        opacity: 0.7;
    }
}

.si-history-item-del:hover {
    background: #c97a50;
    color: white;
}

.si-history-item-name {
    font-weight: 600;
    font-size: 12px;
    color: #5a3a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 22px);
}

.si-history-item-scenario {
    font-size: 11px;
    color: #a87450;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.si-history-item-time {
    font-size: 10px;
    color: #c4a882;
    margin-top: 2px;
}

.si-history-footer {
    padding: 8px 12px;
    border-top: 1px solid #f0d4b8;
    background: #fdf8f3;
}

.si-history-count {
    font-size: 11px;
    color: #c4a882;
}

/* ========== 中间输入面板 ========== */
.si-input-panel {
    width: 360px;
    min-width: 300px;
    max-width: 420px;
    background: white;
    border-right: 1px solid #f0d4b8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.si-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fdf8f3, #faf0e6);
    border-bottom: 1px solid #f0d4b8;
    flex-shrink: 0;
}

.si-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

.si-input-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.si-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.si-form-field {
    flex: 1;
    min-width: 0;
}

.si-form-field.si-field-wide {
    flex: 2;
}

.si-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #7c4a2a;
    margin-bottom: 4px;
}

.si-required {
    color: #c97a50;
    margin-left: 2px;
}

.si-text-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e8d4c0;
    border-radius: 6px;
    font-size: 13px;
    color: #3d2010;
    background: #fdfaf7;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.si-text-input:focus {
    border-color: #C9956C;
    background: white;
    box-shadow: 0 0 0 2px rgba(201, 149, 108, 0.15);
}

.si-text-input::placeholder {
    color: #c4a882;
    font-size: 12px;
}

.si-select-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e8d4c0;
    border-radius: 6px;
    font-size: 13px;
    color: #3d2010;
    background: #fdfaf7;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%23C9956C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.si-select-input:focus {
    border-color: #C9956C;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(201, 149, 108, 0.15);
}

.si-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e8d4c0;
    border-radius: 6px;
    font-size: 12px;
    color: #3d2010;
    background: #fdfaf7;
    outline: none;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.2s;
    box-sizing: border-box;
}

.si-textarea:focus {
    border-color: #C9956C;
    background: white;
    box-shadow: 0 0 0 2px rgba(201, 149, 108, 0.15);
}

.si-textarea::placeholder {
    color: #c4a882;
    font-size: 12px;
}

.si-section-divider {
    font-size: 11px;
    font-weight: 600;
    color: #a87450;
    background: linear-gradient(to right, #fef3e2, transparent);
    padding: 4px 8px;
    margin: 6px 0 8px;
    border-left: 3px solid #C9956C;
    border-radius: 0 4px 4px 0;
}

/* 内容选项 */
.si-options-section {
    margin-top: 8px;
    background: #fdf8f3;
    border: 1px solid #f0d4b8;
    border-radius: 8px;
    padding: 10px 12px;
}

.si-options-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.si-options-title {
    font-size: 12px;
    font-weight: 600;
    color: #7c4a2a;
}

.si-options-quick-btns {
    display: flex;
    gap: 4px;
}

.si-quick-btn {
    background: white;
    border: 1px solid #e8cdb0;
    color: #a87450;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.si-quick-btn:hover {
    background: #fef3e2;
    border-color: #C9956C;
}

.si-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.si-options-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.si-option-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #f0d4b8;
    background: white;
    transition: all 0.15s;
    user-select: none;
}

.si-option-checkbox:hover {
    border-color: #C9956C;
    background: #fef3e2;
}

/* 已勾选状态高亮 */
.si-option-checkbox:has(input:checked) {
    border-color: #C9956C;
    background: linear-gradient(135deg, #fef3e2, #fde8c8);
    box-shadow: 0 1px 4px rgba(201, 149, 108, 0.12);
}

.si-option-checkbox:has(input:checked) .si-checkbox-label {
    color: #92400e;
    font-weight: 600;
}

.si-option-checkbox input[type="checkbox"] {
    accent-color: #C9956C;
    width: 13px;
    height: 13px;
    cursor: pointer;
    flex-shrink: 0;
}

.si-checkbox-label {
    font-size: 12px;
    color: #5a3a1a;
    font-weight: 500;
}

/* 操作按钮区 */
.si-action-section {
    padding: 12px 14px;
    border-top: 1px solid #f0d4b8;
    background: linear-gradient(to bottom, #fdfaf7, #fdf8f3);
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.si-generate-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #C9956C 0%, #a87450 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.si-generate-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b87850 0%, #966040 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 149, 108, 0.4);
}

.si-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.si-generate-btn.si-btn-generating {
    animation: si-btn-pulse 1.2s infinite ease-in-out;
    cursor: wait;
}

@keyframes si-btn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.si-cancel-btn {
    padding: 10px 14px;
    background: #fde8d4;
    color: #a87450;
    border: 1px solid #e8cdb0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.si-cancel-btn:hover {
    background: #fdd4bc;
    color: #8a5c30;
}

.si-btn-icon {
    font-size: 14px;
}

/* ========== 右侧结果面板 ========== */
.si-result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fdfaf7;
    overflow: hidden;
    min-width: 300px;
}

.si-result-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.si-result-actions {
    display: flex;
    gap: 6px;
}

.si-result-action-btn {
    background: white;
    border: 1px solid #e8cdb0;
    color: #a87450;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    font-weight: 500;
}

.si-result-action-btn:hover {
    background: #fef3e2;
    border-color: #C9956C;
}

/* 占位区域 */
.si-result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
}

.si-placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.si-placeholder-title {
    font-size: 16px;
    font-weight: 600;
    color: #7c4a2a;
    margin: 0 0 8px;
}

.si-placeholder-desc {
    font-size: 13px;
    color: #a87450;
    margin: 0 0 18px;
    line-height: 1.6;
    max-width: 320px;
}

.si-placeholder-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.si-tip-item {
    font-size: 12px;
    color: #c4a882;
    background: white;
    padding: 5px 14px;
    border-radius: 14px;
    border: 1px solid #f0d4b8;
}

.si-placeholder-quick-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.si-placeholder-btn {
    background: linear-gradient(135deg, #C9956C 0%, #a87450 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.si-placeholder-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 149, 108, 0.35);
}

.si-placeholder-shortcut {
    font-size: 11px;
    color: #c4a882;
}

/* 加载状态 */
.si-result-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.si-loading-animation {
    display: flex;
    gap: 8px;
}

.si-loading-dot {
    width: 10px;
    height: 10px;
    background: #C9956C;
    border-radius: 50%;
    animation: si-bounce 1.2s infinite ease-in-out;
}

.si-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.si-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes si-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.si-loading-text {
    font-size: 14px;
    font-weight: 500;
    color: #7c4a2a;
    margin: 0;
}

.si-loading-sub {
    font-size: 12px;
    color: #c4a882;
    margin: 0;
}

/* 结果内容区域 */
.si-result-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* ========== 结果区块 ========== */
.si-result-section {
    background: white;
    border: 1px solid #f0d4b8;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    animation: si-fadeIn 0.25s ease;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.si-result-section:hover {
    border-color: #e8c4a0;
    box-shadow: 0 2px 10px rgba(201, 149, 108, 0.1);
}

@keyframes si-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.si-result-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(to right, #fef3e2, #fdf8f3);
    cursor: pointer;
    border-bottom: 1px solid #f0d4b8;
    user-select: none;
    transition: background 0.15s;
}

.si-result-section-header:hover {
    background: linear-gradient(to right, #fde8c8, #fef3e2);
}

.si-section-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.si-section-icon {
    font-size: 14px;
}

.si-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #7c4a2a;
}

.si-section-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.si-section-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #c4a882;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.15s;
}

.si-section-copy-btn:hover {
    background: #fde8d4;
    color: #a87450;
}

.si-section-collapse-icon {
    font-size: 12px;
    color: #c4a882;
    transition: transform 0.2s;
}

.si-result-section.collapsed .si-section-collapse-icon {
    transform: rotate(-90deg);
}

.si-result-section.collapsed .si-section-body,
.si-result-section.collapsed .si-one-liner-box {
    display: none;
}

/* 一句话简介特殊样式 */
.si-one-liner-box {
    background: linear-gradient(135deg, #fef3e2, #fde8c8);
    border-left: 4px solid #C9956C;
    margin: 14px 16px;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: #7c4a2a;
    font-style: italic;
    line-height: 1.6;
    word-break: break-word;
}

/* 区块内容样式 */
.si-section-body {
    padding: 14px 16px;
    color: #374151;
    line-height: 1.75;
    word-break: break-word;
    font-size: 13px;
}

.si-section-body p {
    margin: 0 0 10px;
}

.si-section-body p:last-child {
    margin-bottom: 0;
}

.si-section-body ul,
.si-section-body ol {
    padding-left: 20px;
    margin: 6px 0;
}

.si-section-body ul li::marker {
    color: #C9956C;
}

.si-section-body li {
    margin-bottom: 5px;
    line-height: 1.65;
}

.si-section-body h3, .si-section-body h4 {
    color: #5a3a1a;
    margin: 12px 0 6px;
    font-size: 13px;
}

.si-section-body strong {
    color: #3d2010;
    font-weight: 600;
}

.si-section-body em {
    color: #a87450;
}

.si-section-body a {
    color: #C9956C;
    text-decoration: none;
}

.si-section-body a:hover {
    text-decoration: underline;
}

/* 原始文本区块 */
.si-raw-text-body {
    white-space: pre-wrap;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #5a3a1a;
    background: #fdfaf7;
}

/* 错误消息样式 */
.si-error-body {
    padding: 16px;
    color: #b45309;
    font-size: 13px;
    line-height: 1.7;
    background: #fffbf5;
}

/* ========== 示例模态框 ========== */
.si-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.si-modal.show {
    display: flex;
}

.si-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(201, 149, 108, 0.25);
    animation: si-modalIn 0.2s ease;
}

@keyframes si-modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.si-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(to right, #fef3e2, #fdf8f3);
    border-bottom: 1px solid #f0d4b8;
    flex-shrink: 0;
}

.si-modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #7c4a2a;
}

.si-modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #fde8d4;
    color: #a87450;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.si-modal-close:hover {
    background: #C9956C;
    color: white;
}

.si-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.si-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.si-example-category {
    margin-bottom: 16px;
}

.si-example-category-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0d4b8;
    font-size: 13px;
    font-weight: 600;
    color: #7c4a2a;
}

.si-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.si-example-item {
    background: #fdfaf7;
    border: 1px solid #f0d4b8;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.si-example-item:hover {
    background: #fef3e2;
    border-color: #C9956C;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(201, 149, 108, 0.15);
}

.si-example-title {
    font-size: 13px;
    font-weight: 600;
    color: #5a3a1a;
    margin-bottom: 4px;
}

.si-example-desc {
    font-size: 11px;
    color: #a87450;
    line-height: 1.5;
}

/* ========== Toast提示 ========== */
.si-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    background: #5a3a1a;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 200000;
    transition: transform 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.si-toast.show {
    transform: translateX(-50%) translateY(0);
}

.si-toast.success { background: #d97706; }
.si-toast.warning { background: #c97a50; }
.si-toast.error { background: #ef4444; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .si-input-panel {
        width: 280px;
        min-width: 240px;
    }

    .si-history-panel {
        width: 160px;
    }
}

@media (max-width: 680px) {
    .si-main-content {
        flex-direction: column;
    }

    .si-history-panel {
        width: 100%;
        max-height: 120px;
    }

    .si-input-panel {
        width: 100%;
        max-width: none;
    }

    .si-result-panel {
        min-height: 300px;
    }
}

/* ========== 自定义滚动条 ========== */
.si-history-list::-webkit-scrollbar,
.si-input-scroll::-webkit-scrollbar,
.si-result-content::-webkit-scrollbar,
.si-modal-body::-webkit-scrollbar {
    width: 4px;
}

.si-history-list::-webkit-scrollbar-track,
.si-input-scroll::-webkit-scrollbar-track,
.si-result-content::-webkit-scrollbar-track,
.si-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.si-history-list::-webkit-scrollbar-thumb,
.si-input-scroll::-webkit-scrollbar-thumb,
.si-result-content::-webkit-scrollbar-thumb,
.si-modal-body::-webkit-scrollbar-thumb {
    background: #e8cdb0;
    border-radius: 4px;
}

.si-history-list::-webkit-scrollbar-thumb:hover,
.si-input-scroll::-webkit-scrollbar-thumb:hover,
.si-result-content::-webkit-scrollbar-thumb:hover,
.si-modal-body::-webkit-scrollbar-thumb:hover {
    background: #C9956C;
}

/* ========== 打印样式 ========== */
@media print {
    .si-toolbar,
    .si-history-panel,
    .si-input-panel,
    #resultActions,
    #resultPlaceholder,
    #resultLoading { display: none !important; }

    .si-container {
        position: static !important;
        height: auto !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .si-main-content { display: block !important; }

    .si-result-panel {
        overflow: visible !important;
        min-height: 0;
    }

    .si-result-content {
        overflow: visible !important;
        padding: 0;
    }

    .si-result-section {
        break-inside: avoid;
        margin-bottom: 16px;
        border: 1px solid #e0c4a0 !important;
    }

    .si-result-section.collapsed .si-section-body,
    .si-result-section.collapsed .si-one-liner-box {
        display: block !important;
    }
}
