:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9de;
  --line-strong: #c7c7cc;
  --accent: #0071e3;
  --accent-strong: #005bbf;
  --accent-soft: #eaf3ff;
  --coral: #d70015;
  --coral-soft: #fff1f2;
  --gold: #a66a00;
  --gold-soft: #fff7e6;
  --green: #248a3d;
  --green-soft: #e8f6ed;
  --ink: #1d1d1f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #fbfbfc 0%, #f5f5f7 48%, #eef2f6 100%);
  color: var(--text);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Source Han Sans SC",
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "Noto Sans SC",
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img,
video {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
}

.section-band {
  border-bottom: 1px solid var(--line);
}

.section-band.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(251, 251, 253, 0.92));
}

.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 42px 0;
}

.hero-band {
  background:
    radial-gradient(circle at top right, rgba(224, 232, 242, 0.72), rgba(224, 232, 242, 0) 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.project-mark {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.mark-block {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 100%);
  color: var(--text);
  font-weight: 800;
}

.project-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.report-period {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.meta-pill,
.status-pill,
.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 0.75fr);
  gap: 24px;
  align-items: end;
}

.hero-copy h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-summary {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.summary-value {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.nav-band {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 249, 252, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.report-side-menu {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.side-menu-head {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 16px 0 8px;
}

.side-menu-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.side-menu-head p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.week-list {
  display: flex;
  gap: 10px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  overflow-x: auto;
  padding: 0 0 16px;
}

.week-item {
  display: grid;
  flex: 0 0 min(270px, 78vw);
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(24, 32, 29, 0.02);
}

.week-item strong {
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.2;
}

.week-item span {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.week-item:hover,
.week-item:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.week-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (min-width: 1220px) {
  body.has-report-menu .page-shell {
    padding-left: 248px;
  }

  .report-side-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 248px;
    padding: 22px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: rgba(247, 248, 251, 0.96);
    backdrop-filter: blur(12px);
  }

  .side-menu-head {
    width: 100%;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
  }

  .week-list {
    display: grid;
    width: 100%;
    gap: 8px;
    margin-top: 14px;
    padding: 0;
    overflow: visible;
  }

  .week-item {
    flex-basis: auto;
  }
}

.nav-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  overflow-x: auto;
}

.report-nav {
  display: flex;
  gap: 6px;
  min-height: 50px;
  align-items: center;
}

.report-nav a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: #4a4d57;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.report-nav a:hover,
.report-nav a:focus-visible {
  background: var(--surface);
  color: var(--accent);
  outline: none;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-note {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  min-height: 116px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(24, 32, 29, 0.02);
}

.kpi-card strong {
  display: block;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.kpi-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.kpi-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.decision-list,
.plain-list,
.timeline-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-item,
.plain-item,
.timeline-item {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.decision-item {
  border-left: 4px solid var(--line-strong);
}

.decision-title,
.plain-title,
.timeline-title {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.decision-detail,
.plain-detail,
.timeline-detail {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.owner-line {
  margin: 10px 0 0;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(24, 32, 29, 0.02);
}

.highlight-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.highlight-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.media-card,
.delivery-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(24, 32, 29, 0.02);
}

.media-card.text-only,
.delivery-card.text-only {
  display: block;
}

.media-card.full-width,
.delivery-card.full-width {
  grid-column: 1 / -1;
}

.delivery-card.full-width {
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
}

.media-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #dce5e2;
  overflow: hidden;
}

.media-shell img,
.media-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-shell button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 22px;
  color: #595f6d;
  text-align: center;
}

.placeholder-mark {
  display: block;
  margin: 0 auto 10px;
  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.placeholder-text {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.type-pill {
  flex: 0 0 auto;
  border-color: var(--line);
  color: var(--accent);
  background: var(--accent-soft);
}

.type-pill.video {
  color: var(--coral);
  background: var(--coral-soft);
}

.type-pill.text {
  color: var(--gold);
  background: var(--gold-soft);
}

.card-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 14px;
  color: #3b4642;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.gallery-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.04);
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.clip-tile {
  min-width: 0;
}

.clip-tile video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121417;
  object-fit: cover;
  overflow: hidden;
}

.clip-title {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.path-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.path-line code {
  max-width: 100%;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.evidence-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.evidence-title {
  margin: 0 0 8px;
  color: #4b5753;
  font-size: 12px;
  font-weight: 900;
}

.evidence-list,
.evidence-files {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-item {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.evidence-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.evidence-label {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.evidence-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.evidence-meta code,
.evidence-files code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.evidence-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.evidence-files {
  margin-top: 8px;
}

.evidence-files li {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.delivery-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.delivery-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.delivery-table th,
.delivery-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.delivery-table th {
  color: #4b5753;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 900;
}

.delivery-table tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.done,
.status-pill.good {
  color: var(--green);
  background: var(--green-soft);
}

.status-badge.risk,
.status-pill.risk {
  color: var(--coral);
  background: var(--coral-soft);
}

.status-badge.waiting,
.status-pill.waiting {
  color: var(--gold);
  background: var(--gold-soft);
}

.status-pill {
  border-color: transparent;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.delivery-card .media-shell {
  min-height: 100%;
  aspect-ratio: auto;
}

.detail-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.detail-row strong {
  color: #4b5753;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.remaining-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.remaining-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.remaining-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.32;
}

.remaining-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.remaining-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remaining-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.risk-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.risk-card.high {
  border-left-color: var(--coral);
}

.risk-card.low {
  border-left-color: var(--green);
}

.risk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.risk-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.footer-band {
  background: #eef0f5;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-band .section-inner {
  padding: 24px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 52px 24px 24px;
  background: rgba(15, 21, 19, 0.9);
}

.lightbox.open {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  place-items: center;
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 78vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox p {
  margin: 0;
  color: rgba(247, 251, 249, 0.84);
  font-size: 13px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 980px) {
  .hero-grid,
  .overview-grid,
  .delivery-card {
    grid-template-columns: 1fr;
  }

  .delivery-card.full-width {
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .highlight-grid,
  .clip-grid,
  .category-grid,
  .risk-grid,
  .remaining-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-card .media-shell {
    aspect-ratio: 16 / 9;
  }

}

@media (max-width: 680px) {
  .section-inner,
  .hero-inner,
  .side-menu-head,
  .week-list,
  .nav-inner {
    width: min(100% - 24px, var(--max));
  }

  .section-inner {
    padding: 30px 0;
  }

  .hero-inner {
    padding: 24px 0;
  }

  .hero-topline,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-meta {
    justify-content: flex-start;
  }

  .section-note {
    text-align: left;
  }

  .summary-row,
  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .kpi-grid,
  .highlight-grid,
  .clip-grid,
  .category-grid,
  .risk-grid,
  .remaining-grid {
    grid-template-columns: 1fr;
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .nav-band,
  .lightbox {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .section-inner,
  .hero-inner {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }
}
