:root {
  color-scheme: light;
  --bg: #eef4f8;
  --card: #ffffff;
  --text: #19202a;
  --muted: #7a8491;
  --line: #e7ebef;
  --blue: #0868c8;
  --blue-deep: #064c96;
  --green: #3caf25;
  --green-deep: #188c34;
  --danger: #f04f47;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  padding: 24px 16px 40px;
}

.phone-shell {
  max-width: 420px;
  margin: 0 auto;
}

.report-hero,
.report-card,
.contact-strip {
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.report-hero {
  padding: 20px;
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--blue-deep);
  font-weight: 700;
}

.report-hero h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.hero-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.pdf-bar {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 58%, var(--green));
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.pdf-title {
  font-size: 22px;
  font-weight: 700;
}

.pdf-sub {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.pdf-link,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-deep);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.report-card {
  margin-top: 16px;
  padding: 22px 18px 26px;
}

.report-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.report-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.report-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.info-grid {
  margin-top: 18px;
  padding: 18px 16px;
  background: #f8fafb;
  border-radius: 8px;
}

.info-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  font-size: 15px;
  line-height: 1.8;
}

.info-item + .info-item {
  margin-top: 4px;
}

.label {
  color: var(--muted);
}

.value {
  font-weight: 600;
}

.section-title {
  margin: 28px 0 14px;
  font-size: 20px;
}

.history-list,
.photo-list,
.video-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item,
.video-item {
  background: #f8fafb;
  border-radius: 8px;
  padding: 16px;
}

.history-item.current {
  background: #edf7ff;
  border-left: 4px solid var(--blue);
}

.history-code {
  font-size: 18px;
  font-weight: 700;
}

.history-time,
.history-tag,
.video-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 110px 80px 1fr;
  gap: 12px;
  padding: 14px 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.header {
  background: #f2f8ff;
  font-weight: 700;
}

.ok {
  color: var(--green);
  font-weight: 700;
}

.warn {
  color: var(--danger);
  font-weight: 700;
}

.photo-card {
  background: #f8fafb;
  border-radius: 8px;
  padding: 14px;
}

.photo-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.photo-box img {
  display: block;
  width: 100%;
  height: 156px;
  object-fit: cover;
}

.photo-placeholder {
  min-height: 156px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f0f3f6;
  color: var(--muted);
  font-size: 13px;
}

.photo-placeholder.clean {
  background: #eef9f0;
  color: var(--green-deep);
}

.photo-label {
  padding: 8px 10px 10px;
  font-size: 13px;
  color: var(--muted);
}

.video-title {
  font-size: 16px;
  font-weight: 700;
}

.report-video {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 12px;
  border-radius: 8px;
  background: #111;
}

.video-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.contact-strip {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-strip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.contact-strip strong,
.contact-strip span {
  display: block;
}

.contact-strip strong {
  font-size: 15px;
}

.contact-strip span {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.pdf-page {
  background: #dfe5ea;
  padding: 24px;
}

.pdf-shell {
  max-width: 960px;
  margin: 0 auto;
}

.pdf-sheet {
  background: #fff;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}

.pdf-cover {
  min-height: 420px;
  background: linear-gradient(135deg, #08131b, #123043);
}

.cover-mask {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}

.cover-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.cover-text h1 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.2;
}

.cover-meta {
  margin-top: 22px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.pdf-content {
  padding: 28px 36px 36px;
}

.pdf-actions {
  margin-top: 20px;
}

@media (max-width: 520px) {
  .page {
    padding: 12px 12px 32px;
  }

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

  .pdf-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-item {
    grid-template-columns: 82px 1fr;
    font-size: 14px;
  }

  .table-row {
    grid-template-columns: 90px 68px 1fr;
    font-size: 13px;
  }
}
