:root {
  --ink: #14233a;
  --muted: #637386;
  --line: #d6e0ea;
  --panel: #ffffff;
  --bg: #f3f6fa;
  --brand: #0c5f95;
  --brand-dark: #073b64;
  --accent: #a84724;
  --soft: #e8f1f8;
  --warn: #fff3d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(12,95,149,.08), transparent 260px),
    var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 12px 36px;
  color: white;
  background: linear-gradient(90deg, #083b66, #0c5f95 56%, #137b83);
  border-bottom: 4px solid #d6a25a;
  box-shadow: 0 8px 18px rgba(8, 43, 74, .14);
}
.brand { display: grid; gap: 2px; font-weight: 800; letter-spacing: 0; }
.brand strong { font-size: 20px; }
.brand span { font-size: 12px; font-weight: 500; opacity: .84; text-transform: uppercase; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,.86);
}
nav a[aria-current="page"], nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.page { width: min(1180px, calc(100% - 32px)); margin: 28px auto 48px; }
.page.narrow { width: min(900px, calc(100% - 32px)); }
.hero {
  min-height: 188px;
  padding: 34px 0 24px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}
.hero p { max-width: 760px; color: var(--muted); font-size: 17px; }
.hero.compact h1 { font-size: clamp(28px, 4vw, 44px); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent) !important;
  font-weight: 700;
}
.lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: center;
  min-height: 300px;
  padding: 34px 0 24px;
}
.lab-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: 0;
}
.lab-hero p { max-width: 760px; color: var(--muted); font-size: 17px; }
.hero-visual {
  position: relative;
  min-height: 210px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 30%, rgba(255,255,255,.92) 0 3px, transparent 4px),
    radial-gradient(circle at 58% 56%, rgba(255,255,255,.88) 0 2px, transparent 3px),
    linear-gradient(135deg, #083b66, #0c5f95 50%, #16867f);
  box-shadow: 0 18px 34px rgba(8, 43, 74, .2);
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -18px 42px -18px;
  height: 2px;
  background: rgba(255,255,255,.62);
  transform: rotate(-12deg);
}
.hero-visual::after {
  inset: 82px -28px auto -28px;
  transform: rotate(18deg);
}
.hero-visual span {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
}
.hero-visual span:nth-child(1) { left: 44px; top: 42px; }
.hero-visual span:nth-child(2) { right: 58px; top: 84px; }
.hero-visual span:nth-child(3) { left: 132px; bottom: 34px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(20, 36, 50, .05);
}
.login { max-width: 560px; margin: 80px auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid.single { grid-template-columns: 1fr; }
.wide { grid-column: 1 / -1; }
label { display: grid; gap: 7px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd6df;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15,109,106,.16);
  border-color: var(--brand);
}

button {
  border: 1px solid #bfd0d8;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { border-color: var(--brand); color: var(--brand-dark); }
button.primary {
  border-color: var(--brand);
  color: white;
  background: var(--brand);
}
button.danger { border-color: #d88f80; color: #9d2c1c; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.stat {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat strong { display: block; font-size: 30px; line-height: 1; }
.stat span { color: var(--muted); }

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 170px repeat(3, auto);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 22px; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { color: var(--muted); font-size: 13px; white-space: nowrap; }
td select { min-width: 118px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}
.pill.a { background: #dff3e9; color: #11643d; }
.pill.b { background: var(--warn); color: #8b5a00; }
.pill.c { background: #e9edf2; color: #56616c; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: 18px;
  margin-top: 18px;
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button[aria-selected="true"] {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}
.draft { min-height: 420px; }
.compact-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.leader-list { display: grid; gap: 18px; }
.leader-group h2 { margin: 8px 0 12px; }
.leader-card {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 16px;
  margin-bottom: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.leader-card h3 { margin: 0 0 8px; }
.meta { color: var(--muted); }
.reason { margin: 10px 0 0; }
.report-toolbar { grid-template-columns: minmax(260px, 1fr) 160px auto; }
.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.summary-item {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.summary-item strong { display: block; font-size: 30px; line-height: 1; color: var(--brand-dark); }
.summary-item span { color: var(--muted); }
.report-list { display: grid; gap: 14px; }
.report-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.report-date {
  color: var(--brand-dark);
  font-weight: 800;
  border-right: 1px solid var(--line);
}
.report-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}
.report-card dl {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 12px 0 0;
}
.report-image {
  display: block;
  width: min(520px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef3f7;
}
.report-card dt { color: var(--muted); }
.report-card dd { margin: 0; }
.empty-state {
  padding: 28px;
  background: #fff;
  border: 1px dashed #aab8c5;
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 16px; }
  .form-grid, .grid-two, .stats, .compact-fields, .lab-hero, .report-summary { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .leader-card { grid-template-columns: 1fr; }
  .report-card { grid-template-columns: 1fr; }
  .report-date { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
}
