:root {
  color-scheme: light;
  --page: #dfe6ef;
  --paper: #fbfaf4;
  --paper-soft: #f2f0e6;
  --ink: #1f2730;
  --muted: #66707d;
  --line: #8ea0b2;
  --line-dark: #4f6174;
  --blue: #0645ad;
  --blue-hover: #002e78;
  --cream: #fffdf0;
  --shadow: 8px 8px 0 rgba(53, 69, 88, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    var(--page);
  background-size: 16px 16px;
  font-family: "SimSun", "Songti SC", "NSimSun", serif;
  font-size: 14px;
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.45;
  content: "";
}

a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--blue-hover);
  background: #fff6a8;
}

.page-shell {
  position: relative;
  width: min(980px, calc(100% - 28px));
  margin: 22px auto;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(232, 238, 245, 0.92)),
    var(--paper-soft);
}

.site-kicker,
.panel-title span,
.notice-mark,
.serial {
  margin: 0;
  color: #5f6c78;
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-title h1 {
  margin: 4px 0 6px;
  font-family: "SimSun", "Songti SC", serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.site-title p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.top-nav {
  display: flex;
  align-content: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 240px;
}

.top-nav a,
.station-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: #eef3f8;
  color: var(--blue);
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
}

.top-nav a:hover,
.station-links a:hover {
  border-color: var(--line-dark);
  background: #fff6a8;
}

.notice-box {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  margin: 18px 24px;
  padding: 12px;
  border: 1px dashed var(--line-dark);
  background: var(--cream);
}

.notice-box p {
  margin: 0;
  color: #37424d;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 24px 20px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.section-card {
  display: grid;
  align-content: start;
  min-height: 210px;
  padding: 16px;
  background: #f8f7ee;
}

.section-card:hover {
  outline: 2px solid #fff6a8;
  outline-offset: -5px;
}

.section-card:nth-child(even) {
  background: #eef3f8;
}

.section-card h2 {
  margin: 7px 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

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

.section-card a {
  align-self: end;
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
}

.panel {
  margin: 20px 24px;
  border: 1px solid var(--line-dark);
  background: #ffffff;
}

.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #e9eff7, #d8e2ee);
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
}

.post-list {
  display: grid;
}

.post-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 58px;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid #d6dde6;
  background: #fffef8;
}

.post-row:nth-child(even) {
  background: #f4f7fb;
}

.post-row:last-child {
  border-bottom: 0;
}

.post-row time,
.tag {
  color: #596979;
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.post-row h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.post-row p {
  margin: 0;
  color: var(--muted);
}

.tag {
  justify-self: end;
  padding: 0 6px;
  border: 1px solid #bcc8d6;
  background: #edf3fa;
}

.compact-panel {
  background: #fffef8;
}

.station-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 24px 18px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f7f6ee;
}

.subpage-hero {
  margin: 18px 24px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(238, 243, 248, 0.78)),
    #f9f8ef;
}

.subpage-hero h2 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.subpage-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.archive-table th,
.archive-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #d6dde6;
  text-align: left;
  vertical-align: top;
}

.archive-table th {
  background: #e9eff7;
  color: #36485c;
  font-family: "Courier New", Consolas, monospace;
  font-size: 12px;
}

.archive-table tr:nth-child(even) td {
  background: #f7f9fc;
}

.empty-note {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  background: #fffdf0;
  color: var(--muted);
}

.site-filing-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 14px 18px;
  border-top: 1px solid var(--line-dark);
  background: #e5ebf2;
  color: #566473;
  font-size: 12px;
}

.site-filing-footer .filing-link {
  color: #334c6b;
}

.site-filing-footer .filing-police {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-filing-footer .filing-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.filing-sep {
  color: #8594a4;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .top-nav {
    justify-content: flex-start;
    min-width: 0;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 13px;
  }

  .page-shell {
    width: min(100% - 16px, 980px);
    margin: 8px auto;
    box-shadow: 4px 4px 0 rgba(53, 69, 88, 0.16);
  }

  .site-header,
  .notice-box,
  .panel {
    margin-left: 12px;
    margin-right: 12px;
  }

  .site-header {
    padding: 18px 12px 14px;
  }

  .notice-box {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
    margin-left: 12px;
    margin-right: 12px;
  }

  .subpage-nav,
  .subpage-hero {
    margin-left: 12px;
    margin-right: 12px;
  }

  .post-row {
    grid-template-columns: 1fr;
  }

  .tag {
    justify-self: start;
  }
}
