/* ===== Reset ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","微软雅黑",PingFang SC,sans-serif; background:#f5f5f5; color:#333; }

/* ===== Header ===== */
header { background:#fff; border-bottom:2px solid #1B4F8E; padding:8px 24px; text-align:center; display:flex; align-items:center; justify-content:center; gap:12px; }
header img { height:19px; width:auto; }
header h1 { font-size:19px; color:#1B4F8E; }

/* ===== Nav ===== */
/* 导航菜单已移除，保留.responsive中对应的删除 */

/* ===== Main ===== */
.main { max-width:1200px; margin:0 auto; padding:16px 24px 8px; min-height:calc(100vh - 110px); }

/* ===== Home ===== */
.home-table { max-width:960px; margin:0 auto 42px; background:#f0f7ff; border-left:4px solid #1B4F8E; border-radius:8px; padding:8px 16px 6px; text-align:left; }
.home-table table { width:100%; border-collapse:collapse; margin:6px 0 0; font-size:12.5px; }
.home-table th,.home-table td { border:1px solid #ddd; padding:6px 12px; }
.home-table th:nth-child(1),.home-table td:nth-child(1) { width:70px; white-space:nowrap; }
.home-table th:nth-child(2),.home-table td:nth-child(2) { width:100px; white-space:nowrap; }
.home-table th { background:#f0f7ff; color:#1B4F8E; }

/* ===== Model Cards ===== */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:16px; }
.card { background:#fff; border-radius:10px; padding:20px; cursor:pointer; border:1px solid #eee; transition:all 0.25s; }
.card:hover { border-color:#1B4F8E; box-shadow:0 4px 16px rgba(27,79,142,0.08); transform:translateY(-2px); }
.card-title { font-size:17px; color:#1B4F8E; font-weight:bold; margin-bottom:8px; }
.card-desc { font-size:13px; color:#999; line-height:1.6; }

/* ===== Model Detail ===== */
.back-btn { display:inline-block; padding:6px 16px; background:#f0f7ff; color:#1B4F8E; border-radius:6px; cursor:pointer; font-size:13px; margin-bottom:16px; transition:all 0.2s; border:none; }
.back-btn:hover { background:#2EAD5D; color:#fff; }
.model-title { font-size:28px; color:#1B4F8E; border-bottom:2px solid #1B4F8E; padding-bottom:12px; }
.model-content { font-size:15px; line-height:1.9; color:#444; }
.model-content h2 { font-size:18px; color:#1B4F8E; margin:24px 0 12px; padding-left:10px; border-left:3px solid #2EAD5D; }
.model-content h3 { font-size:16px; color:#2EAD5D; margin:16px 0 8px; }
.model-content p { margin-bottom:10px; }
.model-content ul,.model-content ol { padding-left:24px; margin-bottom:12px; }
.model-content li { margin-bottom:6px; }
.model-content table { width:100%; border-collapse:collapse; margin:16px 0; }
.model-content th,.model-content td { border:1px solid #ddd; padding:8px 12px; font-size:14px; }
.model-content th { background:#f0f7ff; color:#1B4F8E; text-align:left; }

/* ===== Footer ===== */
footer { background:#f0f0f0; border-top:1px solid #ddd; padding:10px 16px; text-align:center; font-size:12px; color:#888; line-height:1.8; }
footer a { color:#888; text-decoration:none; }
footer img { height:14px; vertical-align:middle; margin-right:3px; }

/* ===== Iceberg ===== */
.ice-page { max-width:900px; margin:0 auto; padding:6px 24px; }
.ice-header { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:6px; }
.ice-header .ice-btn { padding:3px 12px; font-size:11px; border:1px solid #1B4F8E; border-radius:5px; cursor:pointer; background:#fff; color:#1B4F8E; transition:all 0.2s; }
.ice-header .ice-btn:hover { background:#1B4F8E; color:#fff; }
.ice-intro { font-size:12px; color:#777; text-align:center; margin-bottom:6px; line-height:1.6; padding:0 12px; }
.ice-grid { display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.ice-card { background:#fff; border:1px solid #e0e0e0; border-radius:5px; padding:5px 10px; }
.ice-card .num { display:inline-block; width:18px; height:18px; line-height:18px; text-align:center; background:#1B4F8E; color:#fff; border-radius:50%; font-size:9px; font-weight:bold; margin-right:3px; }
.ice-card.done .num { background:#2EAD5D; }
.ice-card .name { font-size:12px; font-weight:bold; color:#333; }
.ice-card .desc { font-size:10px; color:#999; margin-left:4px; line-height:1.4; }
.ice-card .user-summary { font-size:13px; color:#444; margin-top:1px; padding-left:23px; line-height:1.4; }
.ice-card.you { background:#fefcf8; border-color:#e0c78a; cursor:pointer; }
.ice-card.you:hover { border-color:#d4a853; }
.ice-card.you .num { background:#d4a853; }
.ice-card.you .desc { color:#b8860b; }
.ice-report-btn.ready:hover { background:#2EAD5D; }
.ice-report-btn.disabled { background:#ccc; color:#fff; cursor:not-allowed; }

/* ===== Dialog (Iceberg Chat Panel) ===== */
.dialog-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:100; align-items:center; justify-content:center; }
.dialog-overlay.show { display:flex; }
.dialog-panel { background:#fff; border-radius:16px; width:90%; max-width:680px; max-height:85vh; display:flex; flex-direction:column; box-shadow:0 8px 40px rgba(0,0,0,0.15); }
.dialog-header { padding:16px 20px; border-bottom:1px solid #eee; display:flex; justify-content:space-between; align-items:center; }
.dialog-header h3 { font-size:16px; color:#1B4F8E; }
.dialog-close { width:32px; height:32px; border:none; background:#f0f0f0; border-radius:50%; cursor:pointer; font-size:18px; display:flex; align-items:center; justify-content:center; color:#999; transition:all 0.2s; }
.dialog-close:hover { background:#ffebee; color:#c62828; }
.dialog-body { flex:1; padding:16px 20px; overflow-y:auto; min-height:200px; max-height:70vh; }
.dialog-msg { margin-bottom:12px; }
.dialog-msg .bubble { display:inline-block; padding:8px 14px; border-radius:12px; max-width:85%; font-size:14px; line-height:1.6; text-align:left; white-space:pre-wrap; }
.dialog-msg.ai .bubble { background:#f5f5f5; color:#333; border:1px solid #eee; }
.dialog-msg.user .bubble { background:#1B4F8E; color:#fff; }
.dialog-input-row { display:flex; gap:8px; padding:12px 20px 8px; border-top:1px solid #eee; }
.dialog-input-row input { flex:1; padding:10px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; outline:none; }
.dialog-input-row input:focus { border-color:#1B4F8E; }
.dialog-input-row button { padding:10px 20px; background:#1B4F8E; color:#fff; border:none; border-radius:8px; cursor:pointer; font-size:14px; }
.dialog-input-row button:hover { background:#2EAD5D; }

/* ===== Note Panel（要素编辑 全屏） ===== */
.note-prompt { font-size:14px; color:#1B4F8E; background:#f0f7ff; padding:12px 16px; border-radius:8px; margin-bottom:12px; line-height:1.6; }
.edit-body { padding:16px 0; }
.edit-textarea { width:100%; min-height:calc(100vh - 240px); padding:12px 14px; border:1px solid #ddd; border-radius:8px; font-size:14px; line-height:1.7; resize:vertical; outline:none; font-family:inherit; box-sizing:border-box; }
.edit-textarea:focus { border-color:#1B4F8E; }

/* ===== Chat Body（夜聊 全屏） ===== */
.chat-body { padding:16px 0; min-height:calc(100vh - 160px); overflow-y:auto; }

/* ===== Raw Body（查看全文 全屏） ===== */
.raw-body { padding:8px 0; }

/* ===== Report ===== */
.report-page { max-width:800px; margin:0 auto; padding:16px 24px; font-size:14px; line-height:1.8; color:#333; }
.report-header { display:flex; align-items:baseline; justify-content:center; gap:10px; margin-bottom:6px; padding-bottom:10px; border-bottom:1px solid #ddd; }
.report-header h2 { font-size:14px; color:#333; margin:0; font-weight:normal; line-height:1.6; }
.report-header .back-btn { padding:4px 14px; font-size:11px; line-height:1; border:none; border-radius:5px; cursor:pointer; background:#1B4F8E; color:#fff; }
.report-header .back-btn + .back-btn { margin-left:8px; }
.report-header .back-btn:hover { background:#2EAD5D; }
.report-date { text-align:center; font-size:12px; color:#999; margin-bottom:14px; }
.report-loading { text-align:center; padding:60px 20px; font-size:14px; color:#999; }
.report-ai-content { padding:0 4px; font-size:14px; color:#333; }
.report-ai-content h2 { font-size:14px; color:#1B4F8E; margin:10px 0 3px; font-weight:normal; }
.report-ai-content h3 { font-size:14px; color:#333; margin:8px 0 2px; font-weight:bold; }
.report-ai-content p { margin:0 0 4px; line-height:1.7; }
.report-ai-content ul, .report-ai-content ol { margin:2px 0 6px; padding-left:20px; }
.report-ai-content li { margin-bottom:1px; line-height:1.6; }
.report-ai-content strong { color:#1B4F8E; }
.report-ai-content blockquote { margin:4px 0; padding:5px 12px; border-left:3px solid #d0d8e8; background:#f8faff; color:#555; border-radius:0 4px 4px 0; }
.report-intro { padding:10px 16px; background:#fff3e0; border-left:4px solid #e65100; border-radius:4px; margin-bottom:14px; font-size:13px; color:#bf360c; }
.report-element { margin-bottom:10px; padding:10px 16px; border-bottom:1px solid #eee; }
.report-element:last-child { border-bottom:none; margin-bottom:0; }
.report-element .el-header { display:flex; align-items:baseline; gap:8px; margin-bottom:4px; }
.report-element .el-num { display:inline-block; width:20px; height:20px; line-height:20px; text-align:center; background:#1B4F8E; color:#fff; border-radius:50%; font-size:10px; font-weight:bold; }
.report-element .el-name { font-size:15px; font-weight:bold; color:#1B4F8E; }
.report-element .el-desc { font-size:11px; color:#aaa; font-weight:normal; margin-left:4px; }
.report-element .el-content { font-size:13px; color:#444; line-height:1.7; white-space:pre-wrap; padding-left:28px; }

/* ===== Project Manager ===== */
.pm-panel { max-width:360px; }
.pm-panel .dialog-header h3 { font-size:16px; }
.pm-list { margin:4px 0; }
.pm-list > div { display:flex; align-items:center; padding:8px 12px; border-radius:6px; cursor:pointer; margin-bottom:4px; border:1px solid #eee; transition:all 0.15s; }
.pm-list > div:hover { border-color:#1B4F8E; background:#f5faff; }
.pm-list > div.pm-item-active { background:#f0f7ff; border-color:#1B4F8E; }
.pm-name { flex:0 0 auto; font-size:14px; color:#333; margin-right:6px; }
.pm-check { color:#2EAD5D; font-size:14px; font-weight:bold; margin-right:6px; }
.pm-del { width:22px; height:22px; line-height:22px; text-align:center; border-radius:50%; background:#f0f0f0; color:#999; font-size:14px; cursor:pointer; transition:all 0.15s; }
.pm-del:hover { background:#ffebee; color:#c62828; }

/* ===== Raw Dialog ===== */
.raw-panel { max-width:700px; width:95%; }
.raw-item { margin-bottom:10px; padding:8px 0; border-bottom:1px solid #eee; }
.raw-item:last-child { border-bottom:none; }
.raw-header { display:flex; align-items:center; gap:8px; margin-bottom:3px; }
.raw-num { display:inline-block; width:20px; height:20px; line-height:20px; text-align:center; background:#1B4F8E; color:#fff; border-radius:50%; font-size:10px; font-weight:bold; }
.raw-name { font-size:14px; font-weight:bold; color:#1B4F8E; }
.raw-text { font-size:13px; color:#444; line-height:1.6; padding-left:28px; white-space:pre-wrap; }
.raw-item-click { cursor:pointer; transition:all 0.15s; }
.raw-item-click:hover { background:#f0f7ff; border-radius:4px; }
.raw-compare-item.raw-item-click:hover { background:#f0f7ff; }

/* ===== Raw Compare（展开对比） ===== */
.raw-compare { display:table; width:100%; border-collapse:collapse; font-size:13px; }
.raw-compare-header { display:table-row; background:#f5f7fa; font-weight:bold; color:#333; }
.raw-compare-hl, .raw-compare-hr { display:table-cell; padding:8px 10px; border-bottom:2px solid #1B4F8E; }
.raw-compare-hl { width:40%; }
.raw-compare-item { display:table-row; }
.raw-compare-num { color:#1B4F8E; font-weight:bold; }
.raw-compare-q { display:table-cell; width:35%; padding:6px 8px; color:#666; line-height:1.5; border-bottom:1px solid #eee; vertical-align:top; }
.raw-compare-qtxt { margin-top:3px; font-size:12px; color:#999; }
.raw-compare-a { display:table-cell; padding:6px 8px; color:#333; line-height:1.5; border-bottom:1px solid #eee; vertical-align:top; white-space:pre-wrap; }

/* ===== Raw Prompts（说明-全屏问题展示） ===== */
.raw-prompt-item { padding:12px 0; border-bottom:1px solid #eee; }
.raw-prompt-item:last-child { border-bottom:none; }
.raw-prompt-label { margin-bottom:4px; }
.raw-prompt-num { font-size:14px; font-weight:bold; color:#1B4F8E; }
.raw-prompt-qtxt { font-size:13px; color:#555; line-height:1.7; padding-left:0; }
.raw-prompt-body { padding:12px 0; }
.raw-prompt-intro { font-size:12px; color:#888; line-height:1.7; margin-bottom:8px; padding:0 0 10px; border-bottom:1px solid #eee; }

/* ===== Raw Fill（填写选择） ===== */
.raw-fill-item { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid #e0e0e0; border-radius:6px; margin-bottom:6px; cursor:pointer; transition:all 0.15s; }
.raw-fill-item:hover { border-color:#1B4F8E; background:#f0f7ff; }
.raw-fill-num { font-size:13px; font-weight:bold; color:#1B4F8E; white-space:nowrap; }
.raw-fill-q { font-size:12px; color:#666; line-height:1.4; }
.raw-fill-header { margin-bottom:4px; }
.raw-fill-editor .edit-body { padding:0; }
/* ===== Responsive ===== */
@media (max-width:640px) {
  header { padding:6px 16px; }
  header img, header h1 { display:none; }
  .card-grid { grid-template-columns:1fr; }
  .main { padding:16px; }
  .home-table th:nth-child(1),.home-table td:nth-child(1) { width:auto; min-width:48px; padding:6px 6px; }
  .home-table th:nth-child(2),.home-table td:nth-child(2) { width:auto; min-width:72px; padding:6px 6px; }
  .home-table th:nth-child(3),.home-table td:nth-child(3) { padding:6px 8px; }
  .home-table th,.home-table td { font-size:12px; }
  .ice-grid { grid-template-columns:1fr; }
}
