:root {
  --ink: #102d34;
  --muted: #688087;
  --paper: #ffffff;
  --surface: #edf3f4;
  --surface-deep: #dfe9eb;
  --teal: #0d718a;
  --teal-bright: #139bb8;
  --mint: #c9f5f4;
  --line: #d5e1e3;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color-scheme: light;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -180px, rgba(201, 245, 244, 0.8), transparent 420px),
    var(--surface);
  color: var(--ink);
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(13, 113, 138, 0.13);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px rgba(20, 65, 74, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(145deg, var(--teal-bright), var(--teal));
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(13, 113, 138, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.privacy-badge,
.page-count {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfb;
  color: #4f6c73;
  font-size: 12px;
  white-space: nowrap;
}

.privacy-badge span {
  color: #31a37c;
  font-size: 8px;
}

.secondary-action,
.primary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.secondary-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.primary-action {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 8px 18px rgba(13, 113, 138, 0.18);
}

.secondary-action:hover,
.primary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: #095f75;
  box-shadow: 0 10px 22px rgba(13, 113, 138, 0.24);
}

.secondary-action:focus-visible,
.primary-action:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(19, 155, 184, 0.28);
  outline-offset: 3px;
}

.report-area {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.report-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 4px 18px;
}

.report-heading h1 {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.report-heading > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.viewer-card {
  overflow: hidden;
  border: 1px solid rgba(13, 113, 138, 0.15);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 64px rgba(35, 73, 81, 0.13);
}

.viewer-topline {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfd;
  color: #7b9095;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.viewer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #71878d;
  letter-spacing: 0;
}

.viewer-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2aa4f;
  box-shadow: 0 0 0 4px rgba(210, 170, 79, 0.12);
}

.viewer-status em {
  font-style: normal;
}

.viewer-status.is-ready > span {
  background: #2fa179;
  box-shadow: 0 0 0 4px rgba(47, 161, 121, 0.12);
}

.report-stage {
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    var(--surface-deep);
}

.report-scaler {
  position: relative;
  flex: 0 0 auto;
}

.report-frame {
  display: block;
  border: 0;
  background: var(--surface);
  transform-origin: top left;
}

.mobile-report-gallery {
  display: none;
}

.mobile-page-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--surface-deep);
}

.mobile-page-list figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 113, 138, 0.14);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(35, 73, 81, 0.12);
}

.mobile-page-list img {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-page-list figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 45, 52, 0.82);
  color: white;
  font-size: 10px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

@media (max-width: 1000px) {
  .privacy-badge {
    display: none;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 56px) 28px;
  color: #7a9095;
  font-size: 11px;
}

@media (max-width: 780px) {
  .site-header {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    padding: 12px 14px 14px;
  }

  .brand-copy small,
  .page-count,
  .privacy-badge {
    display: none;
  }

  .header-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
  }

  .secondary-action,
  .primary-action {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    font-size: 14px;
  }

  .open-report-action {
    display: none;
  }

  .report-area {
    width: 100%;
    padding: 24px 0 32px;
  }

  .report-heading {
    align-items: flex-start;
    padding: 0 18px 16px;
  }

  .report-heading > p {
    display: none;
  }

  .viewer-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .viewer-topline {
    display: none;
  }

  .report-stage {
    display: none;
  }

  .mobile-report-gallery {
    display: block;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 0 18px 24px;
  }
}

@media (max-width: 440px) {
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px 10px 10px 3px;
    font-size: 21px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .report-heading h1 {
    font-size: 25px;
  }

  .mobile-page-list {
    gap: 10px;
    padding: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .secondary-action,
  .primary-action {
    transition: none;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .report-heading,
  .viewer-topline,
  .site-footer {
    display: none;
  }

  .report-area {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .viewer-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .report-stage {
    padding: 0;
    background: white;
  }
}
