/* ========================================================
 * 文本润色工具样式
 * 主色调：翡翠绿/青绿 (#0d9488 / #14b8a6)
 * ======================================================== */

/* ========== 浮动动画 ========== */
@keyframes heqFloat {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-7px); }
    100% { transform: translateY(0px); }
}

.heqFloat {
    animation: heqFloat 3.2s ease-in-out infinite;
    display: inline-block;
}

/* ========== 容器 ========== */
.tp-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;
}

.tp-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

/* ========== 顶部工具栏 ========== */
.tp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 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: tpCancelIn 0.15s ease;
}

@keyframes tpCancelIn {
    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, #f6d365 0%, #fda085 100%);
    color: #0d6b61;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(253, 160, 133, 0.45);
    border: none;
}

.toolbar-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #fdd835 0%, #fb8c00 100%);
    box-shadow: 0 4px 14px rgba(253, 160, 133, 0.65);
    transform: translateY(-1px);
    filter: brightness(1.04);
}

/* ========== 主内容区三栏布局 ========== */
.tp-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f0fdfa;
}

/* ========== 左侧历史面板 ========== */
.tp-history-panel {
    width: 210px;
    background: white;
    border-right: 1px solid #ccfbf1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.tp-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;
}

.tp-history-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.tp-history-count-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0d9488;
    margin-left: 2px;
}

.tp-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;
}

.tp-history-clear-btn:hover {
    background: #fde8e8;
}

.tp-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.tp-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 12px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.tp-history-empty span:first-child {
    font-size: 24px;
    opacity: 0.7;
}

.tp-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: tpFadeIn 0.2s ease;
}

@keyframes tpFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tp-history-item:hover {
    background: #f0fdfa;
    border-color: #99f6e4;
    transform: translateX(2px);
}

.tp-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);
}

.tp-history-item:focus {
    outline: 2px solid #2dd4bf;
    outline-offset: 1px;
}

.tp-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;
}

.tp-history-item:hover .tp-history-item-delete {
    opacity: 1;
}

.tp-history-item-delete:hover {
    background: #ef4444;
    color: white;
}

.tp-history-item-preview {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
    padding-right: 20px;
}

.tp-history-item-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tp-history-time {
    color: #b0bec5;
    font-size: 11px;
}

.tp-history-mode-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    background: #ccfbf1;
    color: #0d9488;
    white-space: nowrap;
}

.tp-history-score-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 5px;
    border-radius: 4px;
    background: #dcfce7;
    color: #16a34a;
    white-space: nowrap;
}

/* ========== 中间输入面板 ========== */
.tp-input-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
    min-width: 300px;
    border-right: 1px solid #ccfbf1;
}

.tp-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;
}

.tp-input-panel-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.tp-input-hint {
    font-size: 11px;
    color: #94a3b8;
}

.tp-input-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.tp-input-text-wrapper textarea {
    flex: 1;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.75;
    border: none;
    outline: none;
    resize: none;
    background: #fafafa;
    color: #374151;
    transition: background 0.2s;
    min-height: 0;
}

.tp-input-text-wrapper textarea:focus {
    background: #ffffff;
    box-shadow: inset 2px 0 0 rgba(13, 148, 136, 0.5);
}

.tp-input-text-wrapper textarea.is-error {
    background: #fff5f5;
    border-left: 3px solid #ef4444;
}

.tp-input-text-wrapper textarea::placeholder {
    color: #9ca3af;
    line-height: 1.8;
}

.tp-char-count {
    padding: 6px 20px;
    font-size: 11px;
    color: #9ca3af;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    flex-shrink: 0;
}

.tp-char-count.warn {
    color: #f59e0b;
    font-weight: 500;
}

.tp-char-count.critical {
    color: #ef4444;
    font-weight: 600;
}

/* ========== 模式 & 力度配置区 ========== */
.tp-mode-config {
    flex-shrink: 0;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fdfc 100%);
    border-top: 1px solid #e2faf5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-config-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.tp-config-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    padding-top: 5px;
    min-width: 52px;
}

.tp-mode-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.tp-mode-btn {
    padding: 5px 9px;
    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;
}

.tp-mode-btn:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0d6b61;
    transform: translateY(-1px);
}

.tp-mode-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);
}

.tp-intensity-btn-group {
    display: flex;
    gap: 5px;
}

.tp-intensity-btn {
    padding: 5px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 500;
}

.tp-intensity-btn:hover {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0d6b61;
    transform: translateY(-1px);
}

.tp-intensity-btn.active {
    background: #0d9488;
    border-color: #0d9488;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.tp-intensity-hint {
    font-size: 11px;
    color: #94a3b8;
    align-self: center;
    font-style: italic;
    flex: 1;
    min-width: 0;
}

/* 主润色按钮 */
.tp-polish-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 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;
}

.tp-polish-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.5);
    filter: brightness(1.05);
}

.tp-polish-btn:active:not(:disabled) {
    transform: translateY(0);
}

.tp-polish-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========== 右侧结果面板 ========== */
.tp-result-panel {
    width: 44%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

.tp-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;
}

.tp-result-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.tp-result-mode-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
    color: #0d9488;
    border: 1px solid #99f6e4;
}

.tp-result-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 28px 16px;
    display: flex;
    flex-direction: column;
}

/* ========== 空状态 ========== */
.tp-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;
}

.tp-empty-icon {
    font-size: 52px;
    opacity: 0.6;
}

.tp-empty-sub {
    font-size: 12px;
    color: #cbd5e1;
}

/* ========== Loading 状态 ========== */
.tp-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    min-height: 300px;
}

.tp-loading-spin {
    width: 44px;
    height: 44px;
    border: 3.5px solid #e2e8f0;
    border-top-color: #0d9488;
    border-right-color: #2dd4bf;
    border-radius: 50%;
    animation: tpSpin 0.7s linear infinite;
}

@keyframes tpSpin {
    to { transform: rotate(360deg); }
}

.tp-loading-text {
    font-size: 14px;
    color: #64748b;
}

.tp-loading-bar {
    width: 140px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.tp-loading-bar-inner {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #0d9488, #2dd4bf);
    border-radius: 2px;
    animation: tpLoadingSlide 1.4s ease-in-out infinite;
}

@keyframes tpLoadingSlide {
    0%   { transform: translateX(-150%); }
    100% { transform: translateX(450%); }
}

/* ========== 错误状态 ========== */
.tp-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;
}

.tp-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;
}

.tp-retry-btn:hover {
    background: #ef4444;
    color: white;
}

/* ========== 评分展示区 ========== */
.tp-score-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    border: 1px solid #99f6e4;
    border-left: 4px solid #0d9488;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.08);
}

.tp-score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.tp-score-label {
    font-size: 11px;
    color: #64748b;
}

.tp-score-value {
    font-size: 22px;
    font-weight: 700;
    color: #0d9488;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 2.5px solid #0d9488;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.18);
    animation: tpScoreIn 0.35s ease;
}

.tp-score-value.before {
    color: #94a3b8;
    border-color: #e2e8f0;
    box-shadow: none;
    animation: none;
}

@keyframes tpScoreIn {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.tp-score-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.tp-score-arrow {
    font-size: 18px;
    color: #0d9488;
    font-weight: 700;
}

.tp-score-delta {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 1px 7px;
    white-space: nowrap;
}

.tp-score-summary {
    font-size: 12px;
    color: #475569;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

/* ========== 结果渲染区 ========== */
.tp-polish-result {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: tpFadeIn 0.3s ease;
}

/* 润色后文本块 */
.tp-polished-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #0d9488;
    padding-left: 12px;
}

.tp-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.tp-block-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.tp-block-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-char-compare {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.tp-copy-inline-btn {
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 11px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tp-copy-inline-btn:hover {
    background: #0d9488;
    border-color: #0d9488;
    color: white;
}

.tp-polished-text-box {
    background: linear-gradient(to bottom, #f0fdfa 0%, #ecfdf5 100%);
    border: 1px solid #99f6e4;
    border-top: 3px solid #0d9488;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.85;
    color: #134e4a;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.07);
}

/* 改动说明块 */
.tp-changes-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #f59e0b;
    padding-left: 12px;
}

.tp-count-tag {
    font-size: 11px;
    color: #94a3b8;
}

.tp-changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tp-changes-list li {
    font-size: 12px;
    color: #374151;
    line-height: 1.6;
    padding: 8px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tp-changes-list li::before {
    content: "✦";
    color: #f59e0b;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 润色亮点块 */
.tp-highlights-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #a855f7;
    padding-left: 12px;
}

.tp-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tp-highlights-list li {
    font-size: 12px;
    color: #374151;
    line-height: 1.6;
    padding: 7px 12px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tp-highlights-list li::before {
    content: "★";
    color: #a855f7;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 写作建议块 */
.tp-tips-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #10b981;
    padding-left: 12px;
    margin-bottom: 0;
}

.tp-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tp-tips-list li {
    font-size: 12px;
    color: #374151;
    line-height: 1.6;
    padding: 7px 12px;
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.tp-tips-list li::before {
    content: "💡";
    flex-shrink: 0;
    font-size: 12px;
}

/* ========== 弹窗 ========== */
.tp-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);
}

.tp-modal.show {
    display: flex;
}

@keyframes tpModalIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tp-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 780px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    animation: tpModalIn 0.2s ease-out;
}

.tp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
    color: white;
    flex-shrink: 0;
}

.tp-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.tp-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.tp-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.tp-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.tp-example-card {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.tp-example-card:hover {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 3px 12px rgba(13, 148, 136, 0.14);
    transform: translateY(-3px);
}

.tp-example-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tp-example-mode-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
    background: #ccfbf1;
    color: #0d9488;
}

.tp-example-intensity-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
    background: #dcfce7;
    color: #15803d;
}

.tp-example-card-preview {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== Toast 提示 ========== */
.tp-copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(13, 148, 136, 0.92);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999999;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
}

.tp-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tp-history-intensity-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

/* ========== 原文对比区域 ========== */
.tp-original-section {
    margin-top: 8px;
    border-top: 1px dashed #ccfbf1;
    padding-top: 8px;
}

.tp-original-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    margin-bottom: 6px;
}

.tp-original-toggle-btn:hover {
    background: #f0fdfa;
    border-color: #5eead4;
    color: #0d9488;
}

.tp-original-toggle-btn .tp-toggle-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}

.tp-original-toggle-btn.expanded .tp-toggle-arrow {
    transform: rotate(90deg);
}

.tp-original-text-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.75;
    color: #64748b;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: hidden;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    animation: tpFadeIn 0.2s ease;
}

/* ========== 历史记录功能标签 ========== */
.tp-history-list::-webkit-scrollbar,
.tp-result-content::-webkit-scrollbar,
.tp-polished-text-box::-webkit-scrollbar,
.tp-original-text-box::-webkit-scrollbar,
.tp-modal-body::-webkit-scrollbar,
.tp-input-text-wrapper textarea::-webkit-scrollbar {
    width: 4px;
}

.tp-history-list::-webkit-scrollbar-thumb,
.tp-result-content::-webkit-scrollbar-thumb,
.tp-polished-text-box::-webkit-scrollbar-thumb,
.tp-original-text-box::-webkit-scrollbar-thumb,
.tp-modal-body::-webkit-scrollbar-thumb,
.tp-input-text-wrapper textarea::-webkit-scrollbar-thumb {
    background: #5eead4;
    border-radius: 2px;
}

.tp-history-list::-webkit-scrollbar-track,
.tp-result-content::-webkit-scrollbar-track,
.tp-polished-text-box::-webkit-scrollbar-track,
.tp-original-text-box::-webkit-scrollbar-track,
.tp-modal-body::-webkit-scrollbar-track,
.tp-input-text-wrapper textarea::-webkit-scrollbar-track {
    background: transparent;
}
