/* public/assets/css/text/text-steganography.css */
.tstg-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --p-text: #0f172a; width: 100%; max-width: 1200px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.tstg-header-main { font-size: 1.5rem; font-weight: 800; color: var(--p-text); margin-bottom: 8px; text-align: center; }
.tstg-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.tstg-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media(max-width: 850px) { .tstg-editor-grid { grid-template-columns: 1fr; } }
.tstg-panel { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; }
.tstg-panel-header { padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--p-border); font-weight: 700; color: #334155; }
.tstg-panel-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.tstg-panel-footer { padding: 16px 20px; background: #f8fafc; border-top: 1px solid var(--p-border); display: flex; gap: 12px; }

.tstg-label { font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 8px; }
.tstg-textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; font-size: 0.95rem; color: #1e293b; outline: none; resize: none; box-sizing: border-box; }
.tstg-textarea:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }
.tstg-small { height: 120px; }

.tstg-checkbox { width: 16px; height: 16px; accent-color: var(--p-primary); cursor: pointer; margin: 0; }
.tstg-label-inline { font-size: 0.85rem; color: #64748b; cursor: pointer; user-select: none; }

.tstg-btn-primary, .tstg-btn-success, .tstg-btn-warning { padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; display: flex; align-items: center; gap: 8px; transition: 0.2s; color: white; }
.tstg-btn-primary { background: var(--p-primary); } .tstg-btn-primary:hover { background: #7c3aed; }
.tstg-btn-success { background: #10b981; } .tstg-btn-success:hover:not(:disabled) { background: #059669; }
.tstg-btn-warning { background: #f59e0b; } .tstg-btn-warning:hover { background: #d97706; }
.tstg-btn-success:disabled { background: #cbd5e1; cursor: not-allowed; }

/* 【新增】自定义弹窗样式 */
.tstg-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); animation: fadeIn 0.2s ease-out; }
.tstg-modal { background: var(--p-bg); width: 90%; max-width: 500px; border-radius: 16px; border: 1px solid var(--p-border); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); overflow: hidden; transform: scale(1); animation: popIn 0.2s ease-out; }
.tstg-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--p-border); background: #f8fafc; }
.tstg-modal-title { font-size: 1.1rem; font-weight: 700; color: #10b981; display: flex; align-items: center; gap: 8px; }
.tstg-modal-title.error { color: #ef4444; }
.tstg-modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #64748b; transition: 0.2s; padding: 0; display: flex; align-items: center; }
.tstg-modal-close:hover { color: #ef4444; }
.tstg-modal-body { padding: 20px; }
.tstg-modal-footer { padding: 16px 20px; border-top: 1px solid var(--p-border); display: flex; justify-content: flex-end; background: #f8fafc; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 黑夜模式 */
[data-theme="dark"] .tstg-tool-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .tstg-header-main { color: #f8fafc; }
[data-theme="dark"] .tstg-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .tstg-panel-header, [data-theme="dark"] .tstg-panel-footer { background: #1e293b; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .tstg-label { color: #94a3b8; }
[data-theme="dark"] .tstg-label-inline { color: #94a3b8; }
[data-theme="dark"] .tstg-textarea { background: #020617; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .tstg-textarea:focus { border-color: var(--p-primary); }
[data-theme="dark"] .tstg-btn-success:disabled { background: #334155; color: #64748b; }

/* 黑夜模式弹窗 */
[data-theme="dark"] .tstg-modal-overlay { background: rgba(2, 6, 23, 0.8); }
[data-theme="dark"] .tstg-modal { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .tstg-modal-header, [data-theme="dark"] .tstg-modal-footer { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .tstg-modal-close:hover { color: #f87171; }