:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
  color: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

.page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  gap: 14px;
}

.hero,
.claim-panel,
.citation-panel,
.page-proof {
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.hero div {
  display: grid;
  gap: 8px;
}

.hero span,
.panel-title span,
.citation-head span,
.section-title span {
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
}

.hero h1,
.panel-title h2,
.citation-panel h2,
.section-title h2 {
  margin: 0;
  line-height: 1.25;
}

.hero h1 {
  font-size: 30px;
}

.hero p,
.panel-title p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.hero strong {
  align-self: start;
  flex: 0 0 auto;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
}

.doc-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.doc-tabs button,
.claim-list button {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.doc-tabs button {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
}

.doc-tabs button.active,
.doc-tabs button:hover,
.claim-list button.active,
.claim-list button:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.doc-tabs strong {
  font-size: 13px;
}

.doc-tabs span,
.claim-list small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.evidence-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.3fr);
  gap: 14px;
}

.claim-panel,
.citation-panel,
.page-proof {
  padding: 16px;
}

.panel-title {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.panel-title h2,
.section-title h2 {
  font-size: 20px;
}

.claim-list {
  display: grid;
  gap: 8px;
}

.claim-list button {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.claim-list strong {
  font-size: 14px;
  line-height: 1.45;
}

.citation-panel {
  display: grid;
  gap: 12px;
}

.citation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.citation-head b {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
}

.citation-panel h2 {
  font-size: 24px;
}

.value-card {
  display: grid;
  gap: 5px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  background: #f0fdf4;
}

.value-card span {
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.value-card strong {
  color: #14532d;
  font-size: 28px;
  line-height: 1.15;
}

.citation-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.citation-panel dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.citation-panel dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.citation-panel dd {
  margin: 0;
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.55;
  word-break: break-word;
}

.citation-panel img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fafc;
}

.section-title {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.pdf-stage {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.pdf-stage > img {
  display: block;
  width: 100%;
  height: auto;
}

.evidence-box {
  position: absolute;
  border: 3px solid #f59e0b;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.18);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.22);
  pointer-events: none;
}

.evidence-box span {
  position: absolute;
  left: 6px;
  top: 6px;
  border-radius: 6px;
  padding: 3px 6px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 24px, 1280px);
    padding-top: 12px;
  }

  .hero,
  .evidence-workspace {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 24px;
  }

  .citation-panel h2 {
    font-size: 20px;
  }

  .citation-panel dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
