/* Extracted from law.html on 2026-06-13. Original style blocks preserved in order. */

/* style block 1 attrs: */
body {
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.page-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}
.top-bar .title {
    font-size: 16px;
    font-weight: 600;
}
.top-bar .actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-bar .actions button {
    padding: 5px 12px;
    background: #334155;
    border: none;
    color: #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.top-bar .actions button:hover {
    background: #475569;
}
.module-model-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}
.module-model-selector select {
    padding: 4px 8px;
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
}
.spin {
    width: 30px;
    height: 30px;
    border: 3px solid #334155;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.markdown-body { font-size:13px; line-height:1.7; color:#e2e8f0; }
.markdown-body h1,.markdown-body h2,.markdown-body h3 { color:#f1f5f9; margin:16px 0 8px; }
.markdown-body h1 { font-size:18px; }
.markdown-body h2 { font-size:16px; }
.markdown-body h3 { font-size:14px; }
.markdown-body p { margin:8px 0; }
.markdown-body code { background:#334155; padding:2px 6px; border-radius:4px; font-size:12px; color:#fbbf24; }
.markdown-body pre { background:#0f172a; padding:12px; border-radius:6px; overflow-x:auto; margin:10px 0; }
.markdown-body pre code { background:none; padding:0; color:#e2e8f0; }
.markdown-body blockquote { border-left:3px solid #3b82f6; padding:8px 14px; color:#94a3b8; margin:10px 0; background:rgba(59,130,246,0.08); border-radius:0 6px 6px 0; }
.markdown-body ul,.markdown-body ol { padding-left:22px; margin:8px 0; }
.markdown-body table { border-collapse:collapse; width:100%; margin:10px 0; }
.markdown-body th,.markdown-body td { border:1px solid #475569; padding:6px 10px; }
.markdown-body th { background:#1e293b; color:#f1f5f9; }
.message { margin-bottom:10px; display:flex; }
.message.user { justify-content:flex-end; }
.message-bubble { padding:8px 12px; border-radius:10px; max-width:80%; font-size:13px; line-height:1.6; }
.message.assistant .message-bubble { background:#1e293b; color:#e2e8f0; }
.message.user .message-bubble { background:#3b82f6; color:#fff; }
.law-tab-active { background:#3b82f6 !important; color:#fff !important; }

/* 2026-06-12 AI页面可读性统一优化 */
body{font-size:14px}
button,input,select,textarea{font:inherit}
.card,.panel,.content-card,.workspace-card{border-radius:14px}
table{font-size:14px}
th{font-weight:900}
td{line-height:1.55}
.btn,button{transition:.18s}
.btn:hover,button:hover{filter:brightness(1.06)}


/* 2026-06-12 AI法务工作台视觉增强 */
.top-bar{box-shadow:0 8px 28px rgba(0,0,0,.18);background:linear-gradient(90deg,#1e293b,#0f172a)!important}
.card,.panel,.content-card,.result-card,.contract-card,.template-card{border-radius:18px!important;border:1px solid rgba(100,116,139,.35)!important;box-shadow:0 14px 34px rgba(0,0,0,.16)!important}
button,.btn{border-radius:12px!important;font-weight:800}
textarea,input,select{border-radius:12px!important}
.nav-tab,.tab-btn{border-radius:999px!important}
.nav-tab.active,.tab-btn.active{background:linear-gradient(135deg,#1f5aa6,#00a3ff)!important;color:#fff!important;box-shadow:0 10px 28px rgba(0,163,255,.2)!important}
.upload-area,.file-drop,.drop-zone{border-radius:18px!important;border:1.5px dashed #38bdf8!important;background:linear-gradient(135deg,rgba(14,165,233,.1),rgba(30,41,59,.58))!important}

/* style block 2 attrs:id="ai-generated-disclosure-style" */
.ai-generated-disclosure{position:fixed;left:50%;top:8px;transform:translateX(-50%);z-index:2147483000;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.18);letter-spacing:.2px}
.ai-generated-disclosure .sub{font-weight:500;opacity:.9;margin-left:6px}
.ai-generated-label{display:inline-flex;align-items:center;gap:4px;background:#f59e0b;color:#111827;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:900;margin:0 0 8px 0}
.ai-generated-note{font-size:12px;color:#fbbf24;margin-top:8px;line-height:1.5}
.message.ai .message-bubble:before{content:'AI生成';display:inline-flex;background:#f59e0b;color:#111827;border-radius:999px;padding:3px 8px;font-size:12px;font-weight:900;margin:0 0 8px 0}
