:root {
  --text: #222;
  --muted: #666;
  --line: #c8c8c8;
  --paper: #fff;
  --page: #e7e7e7;
  --link: #0645ad;
  font-family: "Microsoft YaHei", SimSun, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  font-size: 14px;
  line-height: 1.7;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #9b1b16;
}

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

button,
.button-link {
  border: 1px solid #777;
  border-radius: 2px;
  background: #ececec;
  color: #222;
  padding: 5px 14px;
  cursor: pointer;
}

button:hover,
button:focus,
.button-link:hover,
.button-link:focus {
  background: #fff;
  outline: 2px solid #345b86;
  outline-offset: 1px;
}

.secondary-button {
  background: #f8f8f8;
  color: #444;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  border: 2px solid #111;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

.site-frame {
  width: 960px;
  max-width: calc(100% - 20px);
  margin: 10px auto 24px;
  background: var(--paper);
  border: 1px solid #aaa;
}

.content-grid {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.main-content {
  min-width: 0;
}

.breadcrumb {
  margin: 0 0 10px;
  padding: 5px 8px;
  border: 1px solid #d2d2d2;
  background: #f5f5f5;
  color: #555;
  font-size: 12px;
}

.page-title {
  margin: 0 0 12px;
  padding: 7px 10px;
  border-bottom: 2px solid #777;
  font-size: 22px;
  line-height: 1.35;
}

.section-title {
  margin: 18px 0 9px;
  padding: 4px 8px;
  border-left: 5px solid #777;
  background: #f1f1f1;
  font-size: 17px;
  line-height: 1.45;
}

.sub-title {
  margin: 14px 0 6px;
  font-size: 15px;
}

.lead {
  margin-top: 0;
  font-size: 15px;
}

.meta-line,
.small-note {
  color: var(--muted);
  font-size: 12px;
}

.notice-box,
.info-box {
  margin: 12px 0;
  padding: 9px 11px;
  border: 1px solid #bbb;
  background: #fafafa;
}

.warning-box {
  border-color: #c6a36b;
  background: #fffbe8;
}

.plain-list,
.date-list,
.link-list {
  margin: 6px 0 14px;
  padding-left: 22px;
}

.date-list {
  padding-left: 0;
  list-style: none;
}

.date-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  gap: 10px;
  padding: 5px 3px;
  border-bottom: 1px dotted #aaa;
}

.date-list time {
  color: #666;
  text-align: right;
  white-space: nowrap;
}

.data-table {
  width: 100%;
  margin: 10px 0 16px;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 7px 8px;
  border: 1px solid #aaa;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.data-table th {
  background: #ececec;
  text-align: left;
}

.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.record-card {
  border: 1px solid #bbb;
  padding: 9px 10px;
  background: #fafafa;
}

.record-card h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.record-card p {
  margin: 4px 0;
}

.form-panel {
  max-width: 620px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #aaa;
  background: #f7f7f7;
}

.form-row {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 9px 0;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #888;
  background: #fff;
  padding: 5px 6px;
}

.form-row textarea {
  min-height: 90px;
  resize: vertical;
}

.status-line {
  min-height: 1.7em;
  color: #5e3511;
}

.site-footer {
  clear: both;
  padding: 12px;
  border-top: 1px solid #aaa;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.footer-actions {
  margin-top: 5px;
}

.text-button {
  border: 0;
  background: transparent;
  color: #0645ad;
  padding: 1px 4px;
  text-decoration: underline;
}

.text-button:hover,
.text-button:focus {
  background: #fff;
}

.notice-page {
  min-height: 100vh;
  padding: 38px 14px;
  background: #d8d8d8;
}

.notice-sheet {
  width: 720px;
  max-width: 100%;
  margin: 0 auto;
  padding: 28px 34px 24px;
  border: 1px solid #777;
  background: #fff;
}

.public-preview-notice {
  width: calc(100% - 28px);
  max-width: 760px;
  margin: 60px auto;
}

.notice-sheet h1 {
  margin: 0 0 18px;
  padding-bottom: 9px;
  border-bottom: 2px solid #444;
  font-family: SimSun, serif;
  font-size: 24px;
  text-align: center;
}

.notice-kicker {
  margin: 0 0 5px;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.case-notebook-link {
  position: fixed;
  right: 0;
  bottom: 30px;
  z-index: 50;
  padding: 8px 11px 8px 13px;
  border: 1px solid #5d5548;
  border-right: 0;
  background: #f1ead9;
  box-shadow: -2px 2px 7px rgba(0, 0, 0, .18);
  color: #3f392f;
  font-size: 12px;
  letter-spacing: 1px;
  text-decoration: none;
}

.case-notebook-link:hover,
.case-notebook-link:focus {
  background: #fffaf0;
  color: #8b322a;
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-frame {
    max-width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .content-grid,
  .two-column-list {
    grid-template-columns: 1fr;
  }

  .date-list li {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .date-list time {
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .notice-page {
    padding: 0;
  }

  .notice-sheet {
    min-height: 100vh;
    border: 0;
    padding: 22px 20px;
  }

  .public-preview-notice {
    min-height: 0;
    margin: 14px auto;
    border: 1px solid #777;
  }

  .case-notebook-link {
    bottom: 12px;
    padding: 6px 8px 6px 10px;
    font-size: 11px;
  }
}
