:root {
  --blue-900: #092b66;
  --blue-700: #0b57d0;
  --blue-600: #1769e0;
  --blue-100: #e8f0fe;
  --ink: #172033;
  --muted: #647084;
  --line: #dfe5ee;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --success: #087a55;
  --success-bg: #e7f7f0;
  --warning: #9a5b00;
  --warning-bg: #fff5d9;
  --error: #b42318;
  --error-bg: #fff0ee;
  --radius: 18px;
  --shadow: 0 14px 35px rgba(22, 42, 75, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 105, 224, .11), transparent 28rem),
    var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }
a { color: inherit; }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; color: white; font-weight: 800; font-size: 21px;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-900));
  box-shadow: 0 8px 18px rgba(11,87,208,.23);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 1px; }

.topnav { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.topnav > a { padding: 8px 12px; text-decoration: none; border-radius: 9px; color: #4e5b70; }
.topnav > a.active { color: var(--blue-700); background: var(--blue-100); font-weight: 700; }
.topnav form { margin: 0; }
.operator { margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); }
.link-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 8px; }
.link-button:hover { color: var(--error); }

.main-content { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 60px; flex: 1; }
footer { text-align: center; color: #8290a4; font-size: 12px; padding: 24px; }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(26px, 4vw, 38px); line-height: 1.22; letter-spacing: -.03em; }
h2 { margin-bottom: 16px; font-size: 20px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--blue-700); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-bottom: 8px; }

.card { background: var(--surface); border: 1px solid rgba(209,218,232,.86); border-radius: var(--radius); box-shadow: var(--shadow); }
.compact-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 28px; }
.hero p, .page-heading p { color: var(--muted); margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(82px,1fr)); min-width: 410px; background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 14px; }
.stats div { padding: 12px 14px; text-align: center; position: relative; }
.stats div + div::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; border-left: 1px solid var(--line); }
.stats strong, .stats span { display: block; }
.stats strong { font-size: 21px; color: var(--blue-900); }
.stats span { color: var(--muted); font-size: 11px; }

.search-card { padding: 26px 28px; }
.search-form > label { display: block; font-weight: 700; margin-bottom: 9px; }
.search-row { display: flex; gap: 10px; }
input[type="text"], input[type="password"], input[name="operator"], input[name="phone"] {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid #bdc8d8; border-radius: 11px;
  color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s;
}
input:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(23,105,224,.12); }
.search-row input { font-size: 20px; letter-spacing: .07em; }
.field-hint { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }

.button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent;
  border-radius: 10px; padding: 0 20px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue-700); color: white; box-shadow: 0 7px 16px rgba(11,87,208,.2); }
.button-primary:hover { background: var(--blue-600); }
.button-success { background: var(--success); color: white; box-shadow: 0 7px 16px rgba(8,122,85,.18); }
.button-warning { background: #e58b00; color: white; }
.button-danger { background: var(--error); color: white; box-shadow: 0 7px 16px rgba(180,35,24,.18); }
.button-danger:hover { background: #991f16; }
.button-outline { color: var(--blue-700); border-color: #b8c9e7; background: white; }
.button-large { min-height: 50px; }
.button-wide { width: 100%; }

.result-area { margin-top: 24px; }
.status-card { display: flex; gap: 20px; padding: 28px; border: 1px solid; border-radius: var(--radius); box-shadow: var(--shadow); }
.status-icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; font-size: 24px; }
.status-main { flex: 1; min-width: 0; }
.status-card h2 { margin-bottom: 8px; font-size: 28px; letter-spacing: .05em; }
.status-card p { color: #566275; }
.status-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; margin-bottom: 5px; }
.status-success { background: #fbfffd; border-color: #a8dcc8; }
.status-success .status-icon { color: var(--success); background: var(--success-bg); }
.status-success .status-label { color: var(--success); }
.status-warning { background: #fffdfa; border-color: #efd28b; }
.status-warning .status-icon { color: var(--warning); background: var(--warning-bg); }
.status-warning .status-label { color: var(--warning); }
.status-error { background: #fffdfd; border-color: #efc0bb; }
.status-error .status-icon { color: var(--error); background: var(--error-bg); }
.status-error .status-label { color: var(--error); }
.status-neutral { background: #fff; border-color: #cfd7e4; }
.status-neutral .status-icon { color: #526176; background: #edf1f6; }
.status-neutral .status-label { color: #526176; }

.action-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #d8e8e1; }
.action-panel > .action-status { display: flex; align-items: center; gap: 10px; }
.action-panel em { font-style: normal; }
.claim-form { display: flex; align-items: end; gap: 12px; width: min(620px, 100%); }
.claim-form label { flex: 1; min-width: 220px; }
.claim-form label > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.claim-form label > small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.claim-form input { width: 100%; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-neutral { background: #edf1f6; color: #526176; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.audit-note { margin: 13px 0 0 !important; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(160px,1fr)); gap: 14px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.detail-grid div { display: flex; gap: 10px; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; font-weight: 700; }

.empty-guide { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; color: var(--muted); }
.guide-step { text-align: center; min-width: 130px; }
.guide-step span { display: grid; place-items: center; margin: 0 auto 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 800; }
.guide-step strong, .guide-step small { display: block; }
.guide-step strong { color: #3d4a5f; }
.guide-step small { margin-top: 2px; }
.guide-arrow { color: #a6b1c1; font-size: 24px; }

.flash-stack { position: fixed; right: 24px; top: 90px; z-index: 20; width: min(420px, calc(100vw - 32px)); }
.flash { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 10px; padding: 13px 15px; border-radius: 11px; color: white; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.flash-success { background: #087a55; }.flash-error { background: #b42318; }.flash-info { background: #32629c; }
.flash button { border: 0; background: transparent; color: white; font-size: 20px; cursor: pointer; }

.login-main { display: grid; place-items: center; }
.login-card { width: min(440px, 100%); padding: 36px; }
.login-card h1 { font-size: 30px; }
.stack-form { display: grid; gap: 18px; margin-top: 24px; }
.stack-form label > span, .file-field > span { display: block; font-weight: 700; margin-bottom: 7px; }
.role-switch { display: block; margin-top: 22px; text-align: center; color: var(--blue-700); font-size: 13px; text-decoration: none; }
.role-switch:hover { text-decoration: underline; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.two-column { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 22px; }
.import-card, .summary-card, .history-card { padding: 26px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 9px; }
.radio-card { display: flex !important; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 9px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--blue-600); background: #f4f8ff; box-shadow: 0 0 0 2px rgba(23,105,224,.08); }
.radio-card input { width: 18px; height: 18px; accent-color: var(--blue-700); }
.radio-card span { margin: 0 !important; }
.radio-card b, .radio-card small { display: block; }
.radio-card small, .file-field small { color: var(--muted); font-weight: 400; }
.file-field input { width: 100%; border: 1px dashed #aebbd0; border-radius: 11px; padding: 16px; background: #fafcff; }
.file-field small { display: block; margin-top: 6px; }
.summary-list { margin: 0; }
.summary-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 800; font-size: 18px; color: var(--blue-900); }
.notice { margin-top: 22px; padding: 14px; border-radius: 10px; background: #f0f5fd; color: #40516c; font-size: 13px; }
.notice p { margin: 4px 0 0; }
.history-card { margin-top: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; background: #f8fafc; }

.correction-card { padding: 28px; }
.correction-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.correction-summary h2 { margin: 3px 0 0; font-size: 28px; letter-spacing: .05em; }
.correction-details { margin-bottom: 0; }
.danger-zone { margin-top: 24px; padding: 20px; border: 1px solid #efc0bb; border-radius: 13px; background: var(--error-bg); }
.danger-zone h3 { margin: 0 0 5px; color: #8f1d15; font-size: 17px; }
.danger-zone p { margin-bottom: 16px; color: #6f3b37; font-size: 13px; }
.correction-form { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; align-items: end; }
.correction-form label { grid-column: 1 / -1; font-weight: 700; }
.correction-form textarea {
  width: 100%; min-height: 82px; resize: vertical; padding: 12px 14px; border: 1px solid #d6aaa6;
  border-radius: 10px; color: var(--ink); background: white; outline: none;
}
.correction-form .button { min-height: 82px; }
.correction-notice { margin-top: 24px; }
td.detail-cell { min-width: 360px; white-space: normal; }

@media (max-width: 800px) {
  .topbar { align-items: center; gap: 8px; padding: 10px 16px; }
  .brand small, .operator { display: none; }
  .topnav { gap: 2px; }
  .topnav > a { padding: 7px; font-size: 12px; }
  .main-content { width: min(100% - 28px, 1120px); padding-top: 28px; }
  .compact-hero { display: block; }
  .stats { min-width: 0; margin-top: 22px; }
  .two-column { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand { gap: 7px; }
  .brand strong { font-size: 12px; white-space: nowrap; }
  .brand-mark { width: 36px; height: 36px; }
  .topnav > a { padding: 7px 5px; font-size: 11px; white-space: nowrap; }
  .link-button { padding: 7px 4px; font-size: 11px; }
  .stats strong { font-size: 17px; }
  .stats div { padding: 10px 4px; }
  .search-card, .status-card, .import-card, .summary-card, .history-card { padding: 20px; }
  .search-row, .action-panel, .page-heading { display: block; }
  .search-row .button, .action-panel .button { width: 100%; margin-top: 10px; }
  .claim-form { display: block; width: 100%; margin-top: 16px; }
  .claim-form label { display: block; min-width: 0; }
  .status-card { gap: 13px; }
  .status-icon { flex-basis: 38px; height: 38px; font-size: 19px; }
  .status-card h2 { font-size: 22px; }
  .detail-grid { grid-template-columns: 1fr; }
  .empty-guide { gap: 5px; }
  .guide-step { min-width: 0; flex: 1; }
  .guide-arrow { font-size: 17px; }
  .verify-actions { display: grid; }
  .login-card { padding: 26px 22px; }
  .correction-card { padding: 20px; }
  .correction-form { grid-template-columns: 1fr; }
  .correction-form .button { min-height: 46px; width: 100%; }
}
