:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --accent: #1976d2;
  --accent-dark: #0f4c81;
  --ok: #1f9d55;
  --warn: #c27803;
  --danger: #d92d20;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.08);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(25, 118, 210, 0.12), rgba(31, 157, 85, 0.08) 42%, transparent 72%),
    var(--bg);
  color: var(--text);
}

.topbar,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: stretch;
  padding: 44px;
  border: 1px solid rgba(25, 118, 210, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(238, 243, 248, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='320' viewBox='0 0 640 320'%3E%3Cpath fill='%231976d2' fill-opacity='.08' d='M0 224h640v96H0z'/%3E%3Cpath fill='%231f9d55' fill-opacity='.10' d='M406 48h170v38H406zm-94 75h264v38H312zm-74 75h338v38H238z'/%3E%3Ccircle cx='120' cy='112' r='58' fill='%23172033' fill-opacity='.06'/%3E%3C/svg%3E");
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.04;
}

.hero-copy p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: center;
}

.hero-panel > div {
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-panel span {
  display: block;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
}

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

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 26px 0 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}

.filter.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.layout {
  display: block;
}

.notice-list > div:first-child {
  display: grid;
  gap: 14px;
}

.notice-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 32px rgba(23, 32, 51, 0.05);
}

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

.notice-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.4;
}

.notice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.tag,
.date {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.82rem;
}

.tag.important {
  background: #fff0ed;
  color: var(--danger);
}

.tag.maintenance {
  background: #fff8e5;
  color: var(--warn);
}

.tag.update {
  background: #eaf4ff;
  color: var(--accent-dark);
}

.notice-card p {
  margin: 14px 0 0;
  color: #344054;
  line-height: 1.75;
}

.notice-level {
  flex: 0 0 auto;
  min-width: 68px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.notice-level.high {
  background: #fff0ed;
  color: var(--danger);
}

.empty-state {
  padding: 44px 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .topbar,
  .toolbar,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero {
    padding: 28px;
  }

}

@media (max-width: 520px) {
  .topbar,
  main,
  footer {
    width: min(100% - 20px, 1120px);
  }

  .hero {
    padding: 22px;
  }

  .notice-head {
    flex-direction: column;
  }

  .notice-level {
    min-width: 0;
  }
}
