:root {
  --bg: #f6f7f5;
  --panel: #ffffff;
  --panel-soft: #eef2ef;
  --text: #17211c;
  --muted: #607068;
  --line: #d9e0dc;
  --brand: #1f4d3a;
  --brand-2: #2f6f53;
  --accent: #a16b2f;
  --shadow: 0 12px 28px rgba(28, 45, 36, 0.08);
  --shadow-hover: 0 18px 36px rgba(28, 45, 36, 0.12);
  --radius: 22px;
  --radius-sm: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 247, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--brand);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover { color: var(--brand); }

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero,
.page-hero {
  padding: clamp(42px, 8vw, 86px) 0 34px;
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 8px 0 12px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }

.lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 24px);
}

.hero-note,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.button.secondary {
  background: var(--panel);
  color: var(--brand);
}

.section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2,
.notice h2,
.panel h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.panel,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover,
.panel:hover,
.timeline-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #c6d2cb;
}

.card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
}

.card p,
.panel p,
.notice p,
.notice li,
.clean-list li {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.metric {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.metric span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfb;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.stage-card__files,
.file-preview {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8faf8;
  overflow: hidden;
  max-width: 100%;
}

.stage-file-list,
.file-preview ul {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
}

.stage-file-item,
.file-preview li,
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  min-width: 0;
}

.home-file-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.stage-file-name,
.home-file-name {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 220px);
}

.file-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.stage-meta,
.updated-text,
.last-updated-text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7b73;
  font-weight: 500;
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  position: static;
  display: block;
}

.stage-updated,
.updated-tag,
.updated-date,
.update-badge,
.updated-badge,
.last-updated,
.hero-date,
.stage-date,
.last-update {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  position: static !important;
  display: block !important;
  aspect-ratio: auto !important;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-public {
  background: #e5f3ea;
  color: #276042;
}

.status-redact {
  background: #fff0df;
  color: #8c531e;
}

.status-review {
  background: #eef2f6;
  color: #526070;
}

.status-internal {
  background: #ece8df;
  color: #665844;
}

.type-pill {
  background: #f1f4f2;
  color: #51615a;
  text-transform: uppercase;
}

.file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

.file-action.request {
  background: #f3eadf;
  color: #744f28;
}

.file-action.disabled {
  background: #e6e9e7;
  color: #7a8580;
  cursor: not-allowed;
}

.file-muted,
.file-more {
  color: var(--muted);
  font-size: 12px;
}

.button.compact {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.filter-button.active,
.filter-button:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.stage-list {
  display: grid;
  gap: 20px;
  padding-bottom: 28px;
}

.stage-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.stage-head {
  display: block;
  margin-bottom: 14px;
}

.stage-head h2 {
  margin: 6px 0 6px;
}

.stage-head p {
  margin: 0;
  color: var(--muted);
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-row h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.file-row p {
  margin: 0 0 8px;
  color: var(--muted);
}

.split,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  gap: 22px;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 16px 18px 16px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}

.timeline-item p { margin: 4px 0 0; color: var(--muted); }

.notice {
  background: #fffaf2;
  border-color: #ead8bd;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel-soft);
  color: var(--brand);
  font-size: 13px;
}

.clean-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.template {
  white-space: pre-wrap;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #f1f4f2;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 24px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

code {
  padding: 2px 5px;
  border-radius: 8px;
  background: #edf1ee;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .card-grid,
  .split,
  .two-column {
    grid-template-columns: 1fr;
  }

  .stage-head,
  .file-row,
  .stage-file-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-preview li {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage-file-name,
  .home-file-name {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }

  .card,
  .panel,
  .notice {
    padding: 16px;
    border-radius: var(--radius-sm);
  }
}



