* { box-sizing: border-box; }
body { font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; color: #1f2937; }
header { background: #0f4c81; color: #fff; padding: 14px 24px; display: flex; align-items: baseline; gap: 24px; }
header h1 { font-size: 18px; margin: 0; }
nav a { color: #cbd5e1; margin-right: 12px; text-decoration: none; }
nav a.active { color: #fff; font-weight: 600; }
main { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px; }
button { padding: 6px 14px; background: #0f4c81; color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }
th { color: #6b7280; font-weight: 500; }
a { color: #0f4c81; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 140px); }
#log { flex: 1; overflow-y: auto; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 10px; margin: 8px 0; white-space: pre-wrap; line-height: 1.6; }
.msg.user { background: #0f4c81; color: #fff; margin-left: auto; }
.msg.assistant { background: #f3f4f6; }
form { display: flex; gap: 8px; margin-top: 12px; }
form input { flex: 1; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px; }
