* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f7fb;
  color: #0f172a;
}
.container { max-width: 920px; margin: 0 auto; padding: 24px; }
.site-header { background: #ffffffcc; border-bottom: 1px solid #e5e7eb; }
.site-header.blue-header { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.site-header.blue-header .brand { color: #fff; }
.header-inner { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 16px 0; }
.brand { font-size: 20px; font-weight: 700; color: #1e3a8a; }
.lang-switch { margin-left: auto; display: flex; gap: 6px; }
.lang-btn {
  width: 40px;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.lang-btn.active { background: #fff; color: #1e3a8a; border-color: #fff; }
h1 { margin: 0 0 20px; text-align: center; color: #1e3a8a; }
.banner { width: 100%; overflow: hidden; margin: 8px 0 20px; border-radius: 10px; }
.banner img { width: 100%; height: auto; display: block; }
.query-entrance { margin-bottom: 16px; }
.query { display: flex; gap: 12px; margin-bottom: 16px; }
input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
}
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  resize: vertical;
}
button {
  padding: 14px 24px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
button:hover { background: #1d4ed8; }
.status { text-align: center; color: #475569; margin-bottom: 12px; font-size: 14px; }
.result { max-width: 760px; margin: 0 auto; }
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.alert {
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}
.alert.success { background: #ecfdf5; color: #065f46; border-color: #10b981; }
.alert.warn { background: #fff7ed; color: #7c2d12; border-color: #f59e0b; }
.alert.pending { background: #eff6ff; color: #1e3a8a; border-color: #3b82f6; }
.row { display: flex; gap: 12px; border-bottom: 1px dashed #e2e8f0; padding: 10px 0; }
.row:last-child { border-bottom: 0; }
.k { width: 130px; color: #64748b; }
.v { flex: 1; color: #0f172a; }
.contact { margin-top: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; font-size: 14px; text-align: center; color: #334155; }
.feedback-form h4 { margin-top: 0; margin-bottom: 12px; color: #1e3a8a; }
.feedback-form p { margin: 6px 0; color: #334155; }
.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.portal-item { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px; text-decoration: none; }
.portal-item:hover { border-color: #3b82f6; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18); }
.portal-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.portal-sub { font-size: 13px; color: #64748b; }
.site-footer { border-top: 1px solid #e5e7eb; margin-top: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: center; color: #64748b; padding: 16px 0; font-size: 13px; }
.feedback-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}
.feedback-modal.show { display: flex; }
.feedback-panel {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 16px;
}
.feedback-panel h3 { margin: 0 0 12px; color: #0f172a; }
.feedback-panel label { display: block; margin: 10px 0 6px; color: #334155; font-size: 14px; }
.feedback-msg { min-height: 22px; color: #1e40af; margin-top: 10px; font-size: 14px; }
.feedback-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.btn-ghost { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.btn-ghost:hover { background: #f8fafc; }

@media (max-width: 768px) {
  .container { padding: 16px; }
  .query { flex-direction: column; }
  button { width: 100%; }
  .row { flex-direction: column; gap: 4px; }
  .k { width: auto; }
  .portal-grid { grid-template-columns: 1fr; }
  .feedback-actions { flex-direction: column; }
}
