/* ========================================================
 * 直播带货话术工具样式
 * 主色调：翡翠绿/青绿 (#0d9488 / #14b8a6)，点缀暖橙 (#f97316)
 * ======================================================== */

/* ========== 浮动动画 ========== */
@keyframes lspFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-7px); }
    100% { transform: translateY(0px); }
}

.lspFloat {
    animation: lspFloat 3.2s ease-in-out infinite;
    display: inline-block;
}

/* ========== 容器 ========== */
.lsp-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #f0fdfa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.lsp-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

/* ========== 顶部工具栏 ========== */
.lsp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #0d9488 0%, #f97316 100%);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 28px;
}

.toolbar-btn {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #0d9488;
    transition: all 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover:not(:disabled) {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.toolbar-btn:active:not(:disabled) {
    transform: translateY(0);
}

.toolbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 取消按钮 */
.toolbar-btn-cancel {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    color: #ef4444;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    animation: lspCancelIn 0.15s ease;
}

@keyframes lspCancelIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

.toolbar-btn-cancel:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.35);
}

/* 主操作按钮 */
.toolbar-btn-primary {
    background: linear-gradient(135deg, #fde68a 0%, #fca5a5 100%);
    color: #78350f;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.45);
    border: none;
}

.toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #fcd34d 0%, #f87171 100%);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.55);
    transform: translateY(-1px);
}

/* ========== 主内容区三栏布局 ========== */
.lsp-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f0fdfa;
}

/* ========== 左侧历史面板 ========== */
.lsp-history-panel {
    width: 200px;
    background: white;
    border-right: 1px solid #ccfbf1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.lsp-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.lsp-history-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.lsp-history-count-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0d9488;
    margin-left: 2px;
}

.lsp-history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
    line-height: 1;
}

.lsp-history-clear-btn:hover {
    background: #fde8e8;
}

.lsp-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.lsp-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 12px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.lsp-history-empty span:first-child {
    font-size: 24px;
    opacity: 0.7;
}

@keyframes lspFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lsp-history-item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    animation: lspFadeIn 0.2s ease;
}

.lsp-history-item:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    transform: translateX(2px);
}

.lsp-history-item.active {
    background: linear-gradient(to right, #ccfbf1 0%, #f0fdfa 100%);
    border-color: #0d9488;
    border-left: 3px solid #0d9488;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.15);
}

.lsp-history-item-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: #fde8e8;
    color: #ef4444;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.lsp-history-item:hover .lsp-history-item-delete {
    opacity: 1;
}

.lsp-history-item-delete:hover {
    background: #ef4444;
    color: white;
}

.lsp-history-item-preview {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
    padding-right: 20px;
}

.lsp-history-item-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.lsp-history-time {
    color: #b0bec5;
    font-size: 11px;
}

.lsp-history-style-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: #ccfbf1;
    color: #0d9488;
    white-space: nowrap;
}

.lsp-history-scene-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 5px;
    border-radius: 4px;
    background: #fef3c7;
    color: #d97706;
    white-space: nowrap;
}

/* ========== 中间输入面板 ========== */
.lsp-input-panel {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
    border-right: 1px solid #ccfbf1;
}

.lsp-input-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 6px;
}

.lsp-input-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.lsp-input-hint {
    font-size: 11px;
    color: #94a3b8;
}

.lsp-form-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ========== 表单各节 ========== */
.lsp-form-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lsp-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lsp-label-text {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.lsp-label-required {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 4px;
}

.lsp-label-optional {
    font-size: 10px;
    color: #9ca3af;
    font-style: italic;
}

.lsp-text-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #fafafa;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.lsp-text-input:focus {
    border-color: #0d9488;
    background: white;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}

.lsp-text-input.is-error {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.lsp-text-input::placeholder {
    color: #9ca3af;
}

.lsp-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #fafafa;
    outline: none;
    transition: all 0.2s;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
}

.lsp-textarea:focus {
    border-color: #0d9488;
    background: white;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}

.lsp-textarea::placeholder {
    color: #9ca3af;
}

.lsp-char-tip {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
    min-height: 14px;
}

.lsp-char-tip.warn {
    color: #f59e0b;
}

/* ========== 标签按钮组 ========== */
.lsp-tag-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.lsp-tag-btn {
    padding: 5px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    font-weight: 500;
}

.lsp-tag-btn:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0d6b61;
    transform: translateY(-1px);
}

.lsp-tag-btn.active {
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    border-color: #0d9488;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.lsp-tag-btn-style.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-color: #f97316;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

/* ========== 主生成按钮 ========== */
.lsp-generate-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0d9488 0%, #f97316 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35);
    letter-spacing: 0.8px;
    margin-top: 4px;
}

.lsp-generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.5);
    filter: brightness(1.05);
}

.lsp-generate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.lsp-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========== 右侧结果面板 ========== */
.lsp-result-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

.lsp-result-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.lsp-result-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.lsp-result-style-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fcd34d;
}

.lsp-result-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 28px 16px;
    display: flex;
    flex-direction: column;
}

/* ========== 空状态 ========== */
.lsp-empty-hint {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}

.lsp-empty-icon {
    font-size: 52px;
    opacity: 0.6;
}

.lsp-empty-sub {
    font-size: 12px;
    color: #cbd5e1;
}

/* ========== Loading 状态 ========== */
.lsp-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    min-height: 300px;
}

.lsp-loading-spin {
    width: 44px;
    height: 44px;
    border: 3.5px solid #e2e8f0;
    border-top-color: #0d9488;
    border-right-color: #f97316;
    border-radius: 50%;
    animation: lspSpin 0.7s linear infinite;
}

@keyframes lspSpin {
    to { transform: rotate(360deg); }
}

.lsp-loading-text {
    font-size: 14px;
    color: #64748b;
}

.lsp-loading-bar {
    width: 140px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.lsp-loading-bar-inner {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #0d9488, #f97316);
    border-radius: 2px;
    animation: lspLoadingSlide 1.4s ease-in-out infinite;
}

@keyframes lspLoadingSlide {
    0%   { transform: translateX(-150%); }
    100% { transform: translateX(450%); }
}

/* ========== 错误状态 ========== */
.lsp-error-area {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    padding: 14px 16px;
    color: #c53030;
    font-size: 13px;
    line-height: 1.6;
}

.lsp-retry-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    background: white;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lsp-retry-btn:hover {
    background: #ef4444;
    color: white;
}

/* ========== 话术结果渲染区 ========== */
.lsp-pitch-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: lspFadeIn 0.3s ease;
}

/* 通用话术块 */
.lsp-pitch-block {
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
}

.lsp-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.lsp-block-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lsp-block-copy-btn {
    padding: 3px 9px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 11px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.lsp-block-copy-btn:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: white;
}

.lsp-text-box {
    font-size: 13px;
    line-height: 1.85;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 12px 14px;
    border-radius: 6px;
    overflow-x: hidden;
}

/* 开场白 - 橙色调 */
.lsp-opening-block {
    border-left: 4px solid #f97316;
    background: #fff7ed;
}

.lsp-opening-block .lsp-text-box {
    background: linear-gradient(to bottom, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
}

/* 产品介绍 - 蓝色调 */
.lsp-intro-block {
    border-left: 4px solid #3b82f6;
    background: #eff6ff;
}

.lsp-intro-block .lsp-text-box {
    background: linear-gradient(to bottom, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
}

/* 核心卖点 - 绿色调 */
.lsp-sp-block {
    border-left: 4px solid #10b981;
    background: #f0fdf4;
}

.lsp-sp-block .lsp-text-box {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
}

.lsp-sp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lsp-sp-item {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    word-break: break-word;
}

.lsp-sp-item-icon {
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.lsp-sp-item-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
}

/* 促销话术 - 紫色调 */
.lsp-promo-block {
    border-left: 4px solid #8b5cf6;
    background: #faf5ff;
}

.lsp-promo-block .lsp-text-box {
    background: linear-gradient(to bottom, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #e9d5ff;
}

/* 催单话术 - 红色调 */
.lsp-urgency-block {
    border-left: 4px solid #ef4444;
    background: #fff5f5;
}

.lsp-urgency-block .lsp-text-box {
    background: linear-gradient(to bottom, #fff5f5 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
}

/* 结尾话术 - 青绿调 */
.lsp-closing-block {
    border-left: 4px solid #0d9488;
    background: #f0fdfa;
}

.lsp-closing-block .lsp-text-box {
    background: linear-gradient(to bottom, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
}

/* 直播技巧 - 琥珀调 */
.lsp-tips-block {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.lsp-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lsp-tips-list li {
    font-size: 12px;
    color: #374151;
    line-height: 1.65;
    padding: 7px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    word-break: break-word;
}

.lsp-tips-list li::before {
    content: "💡";
    flex-shrink: 0;
}

/* ========== 弹窗 ========== */
.lsp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.lsp-modal.show {
    display: flex;
}

.lsp-modal-content {
    background: white;
    border-radius: 12px;
    width: 680px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.lsp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #0d9488 0%, #f97316 100%);
    color: white;
    flex-shrink: 0;
}

.lsp-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.lsp-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lsp-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.lsp-modal-body {
    padding: 16px 20px 20px;
    overflow-y: auto;
    flex: 1;
}

.lsp-example-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.lsp-example-card {
    padding: 13px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.lsp-example-card:hover {
    border-color: #0d9488;
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.lsp-example-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.lsp-example-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.lsp-example-tag-style {
    background: #ccfbf1;
    color: #0d9488;
}

.lsp-example-tag-scene {
    background: #fef3c7;
    color: #d97706;
}

.lsp-example-card-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========== Toast 提示 ========== */
.lsp-copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10001;
    pointer-events: none;
    white-space: nowrap;
}

.lsp-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========== 话术块过渡动画 ========== */
.lsp-pitch-block {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lsp-pitch-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========== resultMain overflow ========== */
#resultMain {
    overflow-x: hidden;
}

/* ========== 错误状态语义化类 ========== */
.lsp-error-icon {
    margin-right: 6px;
    font-size: 14px;
    flex-shrink: 0;
}

.lsp-error-msg {
    flex: 1;
    word-break: break-word;
}

.lsp-error-area {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}

/* ========== 自定义滚动条 ========== */
.lsp-history-list::-webkit-scrollbar,
.lsp-form-scroll::-webkit-scrollbar,
.lsp-result-content::-webkit-scrollbar,
.lsp-modal-body::-webkit-scrollbar {
    width: 5px;
}

.lsp-history-list::-webkit-scrollbar-track,
.lsp-form-scroll::-webkit-scrollbar-track,
.lsp-result-content::-webkit-scrollbar-track,
.lsp-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.lsp-history-list::-webkit-scrollbar-thumb,
.lsp-form-scroll::-webkit-scrollbar-thumb,
.lsp-result-content::-webkit-scrollbar-thumb,
.lsp-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.2s;
}

.lsp-history-list::-webkit-scrollbar-thumb:hover,
.lsp-form-scroll::-webkit-scrollbar-thumb:hover,
.lsp-result-content::-webkit-scrollbar-thumb:hover,
.lsp-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== 输入框聚焦增强 ========== */
.lsp-text-input:focus,
.lsp-textarea:focus {
    transform: none;
}

.lsp-form-section:focus-within .lsp-label-text {
    color: #0d9488;
    transition: color 0.2s;
}

/* ========== 标签组分隔线 ========== */
.lsp-form-scroll .lsp-form-section + .lsp-form-section {
    padding-top: 2px;
    border-top: 1px solid #f1f5f9;
}

/* ========== 历史面板优化 ========== */
.lsp-history-panel {
    background: linear-gradient(to bottom, #ffffff 0%, #fafcff 100%);
}

.lsp-history-item-preview {
    letter-spacing: 0.1px;
}

/* ========== 结果面板徽章优化 ========== */
.lsp-result-style-badge {
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

/* ========== 生成按钮脉冲动画（空闲时提示） ========== */
@keyframes lspPulse {
    0%   { box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35); }
    50%  { box-shadow: 0 4px 20px rgba(13, 148, 136, 0.55), 0 0 0 4px rgba(13, 148, 136, 0.08); }
    100% { box-shadow: 0 2px 10px rgba(13, 148, 136, 0.35); }
}

.lsp-generate-btn:not(:disabled):not(:hover) {
    animation: lspPulse 2.8s ease-in-out infinite;
}

.lsp-generate-btn:disabled {
    animation: none;
}

/* ========== 话术块复制按钮悬停增强 ========== */
.lsp-block-copy-btn {
    transition: all 0.18s ease;
}

/* ========== 空状态图标增强 ========== */
.lsp-empty-icon {
    filter: drop-shadow(0 2px 6px rgba(13, 148, 136, 0.2));
}

/* ========== 卖点复制按钮与计数标签 ========== */
.lsp-sp-copy-btn {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.lsp-sp-count-label {
    font-size: 11px;
    color: #9ca3af;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .lsp-input-panel {
        width: 320px;
    }
    .lsp-history-panel {
        width: 180px;
    }
}

@media (max-width: 700px) {
    .lsp-history-panel {
        display: none;
    }
    .lsp-input-panel {
        width: 300px;
    }
    .lsp-example-grid {
        grid-template-columns: 1fr;
    }
}
