.inow-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #10b981; --p-text: #0f172a; width: 100%; max-width: 1100px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); transition: 0.3s; }
.inow-header-main { font-size: 1.6rem; font-weight: 700; color: var(--p-text); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.inow-badge { background: #dcfce7; color: #16a34a; padding: 4px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; border: 1px solid #bbf7d0; }
.inow-subtitle { color: #64748b; font-size: 1rem; 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; }

.inow-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width: 850px) { .inow-layout { grid-template-columns: 1fr; } }

.inow-panel { background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.inow-panel-title { font-weight: 700; color: var(--p-text); font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--p-border); }
.inow-btn-icon { background: none; border: none; color: #64748b; cursor: pointer; font-size: 1.1rem; transition: 0.2s; }
.inow-btn-icon:hover { color: var(--p-primary); transform: scale(1.1); }

.inow-step-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.inow-step-title { font-weight: 800; color: var(--p-text); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.inow-step-desc { font-size: 0.85rem; color: #64748b; line-height: 1.5; margin-bottom: 16px; }

.inow-input-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #475569; margin-bottom: 6px; }
.inow-input { width: 100%; padding: 12px 14px; background: #f8fafc; border: 1px solid #cbd5e1; color: var(--p-text); border-radius: 8px; outline: none; font-size: 0.95rem; font-family: monospace; transition: 0.2s; }
.inow-input:focus { border-color: var(--p-primary); background: #ffffff; }

.inow-btn-secondary { background: #e2e8f0; color: #334155; border: none; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.inow-btn-secondary:hover { background: #cbd5e1; }

.inow-textarea { width: 100%; height: 200px; padding: 12px 14px; background: #f8fafc; border: 1px solid #cbd5e1; color: var(--p-text); border-radius: 8px; outline: none; resize: vertical; font-family: monospace; font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.inow-textarea:focus { border-color: var(--p-primary); background: #ffffff; }

.inow-btn-primary { width: 100%; background: var(--p-primary); color: white; border: none; padding: 14px; border-radius: 10px; font-weight: bold; font-size: 1.05rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.inow-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4); }
.inow-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

/* 日志框样式 (极客代码风) */
.inow-log-box { flex: 1; min-height: 480px; background: #0f172a; border-radius: 12px; padding: 16px; overflow-y: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.85rem; color: #e2e8f0; line-height: 1.6; border: 1px solid #1e293b; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); }
.inow-log-item { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed rgba(255,255,255,0.05); word-break: break-all; }
.inow-log-item:last-child { border-bottom: none; }
.inow-log-time { color: #64748b; margin-right: 8px; }
.inow-log-info { color: #38bdf8; }
.inow-log-succ { color: #4ade80; font-weight: bold; }
.inow-log-err { color: #f87171; font-weight: bold; }
.inow-log-warn { color: #fbbf24; }
.inow-log-welcome { color: #94a3b8; font-style: italic; }

/* 黑夜模式强力覆盖 */
[data-theme="dark"] .inow-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .inow-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .inow-panel-title { border-bottom-color: #475569; }
[data-theme="dark"] .inow-step-box { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .inow-step-title { color: #f8fafc; }
[data-theme="dark"] .inow-input-group label { color: #cbd5e1; }
[data-theme="dark"] .inow-input, [data-theme="dark"] .inow-textarea { background: #0f172a; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .inow-btn-secondary { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .inow-btn-secondary:hover { background: #475569; color: #f8fafc; }
[data-theme="dark"] .inow-log-box { background: #020617; border-color: #000; }