/* 模拟法庭数据平台风格（猪肝红点缀 + 灰白后台面板）
   适配 HTML 中的 class：moot/topbar/panel/chatBox/btnPrimary 等
*/

:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;

  /* 猪肝红/酒红系点缀 */
  --accent: #7b1f2b;          /* 主色 */
  --accent-2: #9b2a3a;        /* hover */
  --accent-soft: #f7eef0;     /* 浅背景 */
  --accent-border: #efd7db;   /* 浅边框 */

  /* 深色顶栏 */
  --topbar: #111316;
  --topbar-2: #1b1f24;

  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --radius: 12px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }

body.moot{
  margin:0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* 顶部导航 */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, var(--topbar), var(--topbar-2));
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-inner{
  width: 1200px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  height: 68px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}

.brand-badge{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #b54a5b, var(--accent));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight: 900;
  letter-spacing: .5px;
  box-shadow: 0 10px 20px rgba(0,0,0,.25);
  user-select:none;
}

.brand-text{ line-height: 1.1; }
.brand-title{
  color:#fff;
  font-weight: 800;
  font-size: 15px;
}
.brand-sub{
  margin-top: 4px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
}

.topnav{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.topnav-item{
  color: rgba(255,255,255,.78);
  text-decoration:none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: .15s ease;
  border: 1px solid transparent;
}

.topnav-item:hover{
  color:#fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

.topnav-item.active{
  color:#fff;
  background: rgba(123,31,43,.35);
  border-color: rgba(123,31,43,.55);
}

.topbar-right{
  min-width: 280px;
  display:flex;
  justify-content: flex-end;
}

.pill{
  color:#fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  white-space: nowrap;
}

/* 内容壳 */
.shell{
  width: 1200px;
  max-width: calc(100vw - 48px);
  margin: 18px auto 60px;
}

.container{
  display:flex;
  flex-direction: column;
  gap: 16px;
}

/* 页头 */
.pagehead{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}

.crumbs{
  font-size: 12px;
  color: var(--muted);
}

.crumbs span{
  color: var(--accent);
  font-weight: 700;
}

.page-title{
  margin: 10px 0 6px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .2px;
}

.page-desc{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* 面板 */
.panel{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #fafafa);
}

.panel-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 900;
}

.panel-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(123,31,43,.14);
}

.panel-meta{
  font-size: 12px;
  color: var(--muted);
  display:flex;
  gap: 8px;
  align-items:center;
}

.meta-sep{ opacity: .6; }

.panel-body{
  padding: 16px;
}

/* 对话输出框 */
.chatBox{
  height: 520px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  overflow:auto;
}

/* 消息气泡（配合 app.js 中的 msg/badge/bubble） */
.msg{
  margin: 10px 0;
  display:flex;
  gap: 10px;
  line-height: 1.6;
  align-items:flex-start;
}

.badge{
  flex: 0 0 auto;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  height: 22px;
  background:#fff;
}

.bUser{
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.bAI{
  color: #1f7a3a;
  border-color: #d7f2df;
  background: #f3fff6;
}

.bubble{
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  color: #111827;
}

/* 输入行 */
.askRow{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  align-items:center;
}

.qInput{
  flex:1;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  transition: .15s ease;
  background: #fff;
}

.qInput:focus{
  border-color: rgba(123,31,43,.45);
  box-shadow: 0 0 0 4px rgba(123,31,43,.12);
}

.btnPrimary{
  height: 44px;
  min-width: 110px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: .15s ease;
  box-shadow: 0 10px 18px rgba(123,31,43,.18);
}

.btnPrimary:hover{ background: var(--accent-2); }
.btnPrimary:disabled{ opacity:.6; cursor:not-allowed; box-shadow:none; }

.helperLine{
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* 邮箱导出 */
.subTitle{
  font-weight: 900;
  margin-bottom: 10px;
}

.mailRow{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.mailInput{
  width: 420px;
  max-width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  outline:none;
  transition: .15s ease;
  background: #fff;
}

.mailInput:focus{
  border-color: rgba(123,31,43,.45);
  box-shadow: 0 0 0 4px rgba(123,31,43,.12);
}

.btnSecondary{
  height: 44px;
  min-width: 110px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #222;
  color:#fff;
  font-weight: 900;
  cursor:pointer;
  transition: .15s ease;
}

.btnSecondary:hover{ background:#111; border-color:#111; }
.btnSecondary:disabled{ opacity:.6; cursor:not-allowed; }

.hint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* 合规提醒框 */
.warnBox{
  margin-top: 14px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 12px 10px;
}

.warnTitle{
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 6px;
}

.warnList{
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
}

/* 页脚 */
.footer{
  display:flex;
  justify-content: space-between;
  align-items:center;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 2px;
}

/* 响应式 */
@media (max-width: 720px){
  .topbar-inner{
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }
  .topnav{ justify-content:flex-start; flex-wrap: wrap; }
  .topbar-right{ min-width: unset; width: 100%; justify-content:flex-start; }
  .chatBox{ height: 460px; }
}
/* 1:3 并排布局 */
.grid13{
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 16px;
  align-items: start;
}

/* 右侧对话框更高一点（视觉更像“主工作区”） */
.chatBoxTall{
  height: 560px; /* 你也可以调到 600 */
}

/* 左侧导出模块粘在视口里，像后台侧栏 */
.panelSticky{
  position: sticky;
  top: 86px; /* 顶栏高度68 + 间距，按你实际再微调 */
}

/* 小屏幕自动上下排列 */
@media (max-width: 980px){
  .grid13{ grid-template-columns: 1fr; }
  .panelSticky{ position: static; }
  .chatBoxTall{ height: 520px; }
}

 