:root {
  --primary: #c99933;
  --primary-dark: #b18121;
  --bg-color: #f5f7fb;
  --panel-bg: #ffffff;
  --text-main: #2c3e50;
  --text-sub: #64748b;
  --border-color: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

.app-container { min-height: 100vh; display: flex; flex-direction: column; }
.main-layout { display: flex; flex-direction: row; gap: 24px; padding: 24px; max-width: 1440px; margin: 0 auto; width: 100%; height: calc(100vh - 65px); }
.app-sidebar { width: 340px; flex-shrink: 0; overflow-y: auto; }
.results-panel { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; }
.config-panel, .results-panel { background: var(--panel-bg); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border-color); }
.panel-header { padding: 16px 24px; border-bottom: 1px solid var(--border-color); background: #fff; position: sticky; top: 0; z-index: 10; border-radius: 12px 12px 0 0; }
.panel-header h2 { font-size: 16px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px;}

/* 表单样式 */
.config-form { padding: 24px; }
.form-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 calc(50% - 16px); min-width: 130px; display: flex; flex-direction: column; }
.field.full-width { flex: 1 1 100%; }
.field label { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #475569; }
.field input, .field select { height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; width: 100%; outline: none; transition: all 0.3s; color: #333; }
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201, 153, 51, 0.1); }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.btn { flex: 1; height: 46px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; transition: all 0.2s;}
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--success); }
.btn-secondary:hover { background: #0ea5e9; }

/* 审计面板样式 */
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .main-layout { flex-direction: column; height: auto; } .app-sidebar { width: 100%; } .analysis-grid { grid-template-columns: 1fr; } }

.analysis-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; transition: all 0.3s;}
.analysis-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.03); border-color: #cbd5e1;}
.analysis-card h3 { font-size: 14px; color: #64748b; margin-bottom: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;}

.code-block {
  background: transparent; color: #334155; 
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; 
  font-size: 13px; line-height: 1.7; 
  max-height: 220px; overflow-y: auto; margin: 0;
  white-space: pre-wrap; word-wrap: break-word;
  padding-left: 12px; border-left: 3px solid var(--primary);
}

/* 优雅的自定义滚动条 */
.code-block::-webkit-scrollbar { width: 6px; }
.code-block::-webkit-scrollbar-track { background: transparent; }
.code-block::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }
.code-block::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 表格样式优化 */
.table-wrap { overflow-x: auto; width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; font-size: 14px; color: #334155;}
th { background: #f8fafc; color: #64748b; font-weight: 600; position: sticky; top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;}
tr:hover { background-color: #fefce8; } 
.hidden { display: none !important; }