* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fb; color: #1f2937; }
header { background: #0f172a; color: #fff; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { font-size: 19px; font-weight: 700; }
.tag { background: #22c55e; font-size: 11px; padding: 2px 7px; border-radius: 6px; margin-left: 6px; }
.llm-badge { font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-left: 10px;
  background: #475569; color: #fff; vertical-align: middle; }
.llm-badge.ready { background: #16a34a; }
.llm-badge.down { background: #dc2626; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a { color: #cbd5e1; padding: 7px 13px; border-radius: 8px; cursor: pointer; font-size: 14px; }
nav a.active, nav a:hover { background: #1e293b; color: #fff; }
main { max-width: 860px; margin: 26px auto; padding: 0 16px; }
.panel { display: none; }
.panel.active { display: block; }
h1 { font-size: 21px; margin-bottom: 6px; }
.sub { color: #64748b; font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
textarea, input, select { width: 100%; padding: 11px 12px; margin-bottom: 12px;
  border: 1px solid #d1d5db; border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; }
.row { display: flex; gap: 10px; }
.row select { flex: 1; }
.q { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.q label { width: 86px; font-size: 13px; color: #475569; }
.q input, .q select { margin-bottom: 0; }
button { background: #2563eb; color: #fff; border: 0; padding: 11px 22px;
  border-radius: 9px; font-size: 14px; cursor: pointer; font-weight: 600; }
button:hover { background: #1d4ed8; }
button:disabled { background: #94a3b8; cursor: not-allowed; }
.out { margin-top: 18px; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 16px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.out h3 { font-size: 15px; margin: 14px 0 6px; color: #0f172a; }
.kv { display: flex; justify-content: space-between; padding: 5px 0;
  border-bottom: 1px dashed #eee; }
.kv b { color: #2563eb; }
.gate { display: inline-block; padding: 4px 12px; border-radius: 7px;
  font-weight: 700; font-size: 13px; }
.PASS { background: #dcfce7; color: #166534; }
.RISK { background: #fef9c3; color: #854d0e; }
.FAIL { background: #fee2e2; color: #991b1b; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; }
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card .price { font-size: 26px; font-weight: 800; color: #2563eb; margin: 8px 0; }
.card .desc { color: #64748b; font-size: 13px; line-height: 1.5; }
.card .pay { margin-top: 12px; font-size: 12px; color: #16a34a; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; }
.modal.hidden { display: none; }
.modal-box { background: #fff; padding: 26px; border-radius: 14px; max-width: 360px; text-align: center; }
.modal-box h2 { margin-bottom: 10px; }
.modal-box p { color: #64748b; font-size: 14px; margin-bottom: 16px; }
.used { font-size: 12px; color: #94a3b8; margin-top: 8px; }
.rec-strong { background: #ecfdf5; border-left: 3px solid #16a34a; padding: 6px 8px;
  border-radius: 6px; margin: 4px 0; }
.rec { background: #f0fdf4; border-left: 3px solid #22c55e; padding: 6px 8px;
  border-radius: 6px; margin: 4px 0; }
.rec-normal { padding: 4px 8px; margin: 3px 0; color: #475569; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.tbl th, .tbl td { border-bottom: 1px solid #e5e7eb; padding: 8px 6px; text-align: left; }
.tbl th { background: #f8fafc; color: #475569; font-weight: 600; }
.tbl td b { color: #2563eb; }

/* 联合登录结果提示条 */
.sso-banner { padding: 10px 18px; font-size: 13px; font-weight: 600; }
.sso-banner.ok { background: #ecfdf5; color: #15803d; border-bottom: 1px solid #bbf7d0; }
.sso-banner.failed { background: #fef2f2; color: #b91c1c; border-bottom: 1px solid #fecaca; }
.sso-banner.hidden { display: none; }
