:root {
  color-scheme: light;
  --bg: #eef3f7;
  --panel: #ffffff;
  --panel-strong: #f8fbfd;
  --text: #17202a;
  --muted: #667085;
  --line: #d8e1e8;
  --navy: #17324d;
  --cyan: #00a7bd;
  --green: #1f9d72;
  --amber: #d88a1d;
  --red: #c94c4c;
  --ink-soft: #40566d;
  --shadow: 0 20px 60px rgba(23, 50, 77, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background:
    linear-gradient(135deg, rgba(0, 167, 189, 0.08), transparent 34%),
    linear-gradient(180deg, #f5f8fb 0%, var(--bg) 100%);
  color: var(--text);
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.loading {
  padding: 48px;
  color: var(--muted);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: #152b42;
  color: #f2f7fb;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 16px 0 40px rgba(23, 50, 77, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-logo-wrap {
  width: 76px;
  height: 48px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(228, 246, 250, 0.86));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title {
  font-weight: 750;
  line-height: 1.25;
}

.brand-subtitle {
  color: rgba(242, 247, 251, 0.68);
  font-size: 12px;
  margin-top: 3px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(242, 247, 251, 0.76);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cyan);
}

.nav-icon {
  width: 18px;
  text-align: center;
}

.side-panel {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.side-panel strong {
  display: block;
  margin-bottom: 8px;
}

.side-panel p {
  margin: 0;
  color: rgba(242, 247, 251, 0.72);
  font-size: 12px;
  line-height: 1.65;
}

.main {
  padding: 24px 28px 38px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 7px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--navy);
}

.subline {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  width: 280px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  outline: none;
}

.search:focus,
.field:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 167, 189, 0.68);
  box-shadow: 0 0 0 3px rgba(0, 167, 189, 0.12);
}

.button {
  height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.button.secondary {
  background: #e7eff5;
  color: var(--navy);
}

.button.warning {
  background: var(--amber);
}

.dashboard {
  display: grid;
  gap: 18px;
}

.hero {
  background:
    linear-gradient(120deg, rgba(23, 50, 77, 0.96), rgba(26, 78, 104, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 48px);
  color: #fff;
  border-radius: 8px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 9px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.74);
  max-width: 720px;
  line-height: 1.72;
  margin: 0 0 18px;
}

.progress-wrap {
  display: grid;
  gap: 9px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.progress {
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c1c3, #9be15d);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stat b {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.status-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.status-card,
.panel,
.department-card {
  background: var(--panel);
  border: 1px solid rgba(216, 225, 232, 0.9);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 50, 77, 0.07);
}

.status-card {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.status-card small {
  color: var(--muted);
}

.status-card b {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  color: var(--navy);
}

.status-dot {
  width: 13px;
  height: 42px;
  border-radius: 999px;
  background: var(--cyan);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.panel-title {
  margin: 0;
  font-size: 16px;
  color: var(--navy);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4f8;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.tab.active {
  background: var(--navy);
  color: #fff;
}

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

.department-card {
  padding: 14px;
  min-height: 150px;
  display: grid;
  gap: 12px;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.department-card:hover,
.department-card.active {
  transform: translateY(-2px);
  border-color: rgba(0, 167, 189, 0.52);
  box-shadow: 0 18px 42px rgba(23, 50, 77, 0.12);
}

.department-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.department-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--navy);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.pill[data-status="未通知"] {
  background: #eef2f6;
  color: #667085;
}

.pill[data-status="已通知"] {
  background: #e9f4ff;
  color: #2366a8;
}

.pill[data-status="已反馈"] {
  background: #e8f8f3;
  color: var(--green);
}

.pill[data-status="需补充"] {
  background: #fff3df;
  color: var(--amber);
}

.pill[data-status="已完成"] {
  background: #e7f6ee;
  color: #16704f;
}

.department-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.metric {
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 9px;
}

.metric b {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.updated {
  color: var(--muted);
  font-size: 12px;
}

.detail {
  position: sticky;
  top: 18px;
}

.detail-empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
}

.detail h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--navy);
}

.detail-meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group.full {
  grid-column: 1 / -1;
}

.field-group label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.field,
select {
  height: 38px;
  padding: 0 10px;
}

textarea {
  min-height: 76px;
  resize: vertical;
  padding: 10px;
  line-height: 1.55;
}

.section-title {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.requirements {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.requirement {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.requirement-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.requirement-title {
  font-weight: 750;
  color: var(--navy);
  font-size: 13px;
}

.requirement-content {
  margin: 7px 0 9px;
  color: #3f4c5a;
  font-size: 12px;
  line-height: 1.55;
}

.requirement-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mini-button {
  min-height: 28px;
  border-radius: 7px;
  padding: 0 9px;
  background: #eef4f7;
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
}

.mini-button.primary {
  background: var(--cyan);
  color: #fff;
}

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

.attachment {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eaf6f8;
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
}

.attachment-name {
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.preview {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 220px;
  background: #f8fbfd;
  overflow: hidden;
}

.preview img,
.preview iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  object-fit: contain;
  background: #fff;
}

.preview-placeholder {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

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

.activity-item {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  align-items: start;
}

.activity-mark {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.activity-item b {
  display: block;
  font-size: 12px;
  color: var(--navy);
}

.activity-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 2px;
}

.hidden-file {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1280px) {
  body {
    min-width: 1024px;
  }

  .department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
  }
}
