:root {
  --bg: #eef1ed;
  --surface: #ffffff;
  --ink: #1b1f1d;
  --muted: #717873;
  --line: #d8ddd8;
  --line-strong: #c5cbc6;
  --accent: #e9553d;
  --blue: #16758e;
  --green: #397a4d;
  --code: #171a19;
  --code-raised: #202422;
  --code-line: #303633;
  --code-text: #e7eae7;
  --shadow: 0 16px 42px rgb(27 34 29 / 9%);
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  --bg: #111412;
  --surface: #191d1b;
  --ink: #eef1ee;
  --muted: #98a09a;
  --line: #303632;
  --line-strong: #444c46;
  --shadow: 0 16px 44px rgb(0 0 0 / 24%);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--bg);
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.notice-topbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.notice-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.notice-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: #191c1b;
  background: #fff;
  font: 700 13px/1 Consolas, monospace;
}

html[data-theme="dark"] .notice-mark {
  color: #eef1ee;
  background: #101311;
}

.notice-brand > span:last-child {
  display: grid;
  gap: 1px;
}

.notice-brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.notice-brand small {
  color: var(--muted);
  font: 600 8px/1.2 Consolas, monospace;
  letter-spacing: 1.4px;
}

.notice-copyright {
  color: var(--muted);
  font: 12px/1 Consolas, monospace;
}

.notice-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.notice-actions button,
.back-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.notice-actions button:hover,
.back-link:hover {
  border-color: var(--line-strong);
  background: var(--bg);
}

.notice-main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 64px;
}

.notice-heading {
  max-width: 730px;
  margin-bottom: 34px;
}

.notice-heading > p:first-child {
  margin: 0 0 15px;
  color: var(--accent);
  font: 700 11px/1 Consolas, monospace;
}

.notice-heading h1 {
  margin: 0;
  max-width: 680px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.notice-intro {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.notice-code {
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: 8px;
  background: var(--code);
  box-shadow: var(--shadow);
}

.code-topbar {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  color: #8f9892;
  border-bottom: 1px solid var(--code-line);
  background: var(--code-raised);
  font: 11px/1 Consolas, monospace;
}

.code-topbar > span:last-child {
  justify-self: end;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #505753;
}

.window-dots i:first-child {
  background: var(--accent);
}

.window-dots i:nth-child(2) {
  background: #d9a735;
}

.window-dots i:last-child {
  background: #36916f;
}

.code-lines {
  margin: 0;
  padding: 18px 0 24px 62px;
  color: #68706b;
  overflow-x: auto;
  font: 13px/1.75 Consolas, "SFMono-Regular", monospace;
}

.code-lines li {
  min-width: 740px;
  padding: 0 22px 0 12px;
}

.code-lines li::marker {
  font-size: 10px;
}

.code-lines code {
  color: var(--code-text);
  white-space: pre;
}

.code-lines .code-space {
  min-height: 22px;
}

.syntax-keyword {
  color: #ff806b;
}

.syntax-string {
  color: #a9d6a7;
}

.syntax-boolean {
  color: #f1c56a;
}

.syntax-comment {
  color: #7f8983;
  font-style: italic;
}

.notice-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-summary > div {
  min-width: 0;
  padding: 28px 26px 30px 0;
}

.notice-summary > div + div {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.notice-summary span {
  color: var(--accent);
  font: 700 10px/1 Consolas, monospace;
}

.notice-summary h2 {
  margin: 12px 0 10px;
  font-size: 16px;
  letter-spacing: 0;
}

.notice-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.notice-footer {
  width: min(960px, calc(100% - 40px));
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font: 14px/1.5 Consolas, monospace;
}

@media (max-width: 720px) {
  .notice-topbar {
    grid-template-columns: auto 1fr;
  }

  .notice-copyright {
    display: none;
  }

  .notice-main {
    width: min(100% - 28px, 960px);
    padding-top: 52px;
  }

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

  .notice-summary > div,
  .notice-summary > div + div {
    padding: 24px 0;
    border-left: 0;
  }

  .notice-summary > div + div {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 470px) {
  .notice-brand > span:last-child,
  #notice-theme-label {
    display: none;
  }

  .notice-actions button {
    width: 36px;
    padding: 0;
  }

  .back-link {
    padding: 0 10px;
  }

  .notice-heading h1 {
    font-size: 38px;
  }

  .notice-footer {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
