:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #26313d;
  background: #f6f7f9;
  line-height: 1.7;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #285c99; text-underline-offset: .2em; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, .button {
  display: inline-block;
  padding: .6rem 1rem;
  border: 1px solid #c2ccd8;
  border-radius: 6px;
  background: white;
  color: #26313d;
  text-decoration: none;
}
button:hover, .button:hover { background: #edf2f8; }
:focus-visible { outline: 3px solid #2865a9; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 5; padding: .5rem; background: white; }
.skip-link:focus { top: .5rem; }
.site-header { background: white; border-bottom: 1px solid #dce1e7; }
.header-inner, main, .site-footer { width: min(100% - 2rem, 900px); margin-inline: auto; }
.header-inner { padding-block: 1rem; }
.site-name { font-weight: 700; font-size: 1.2rem; color: inherit; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
nav a { padding: .45rem .7rem; border-radius: 5px; text-decoration: none; }
nav a[aria-current="page"] { background: #e7edf5; color: #1d466e; font-weight: 700; }
main { padding-block: 1.5rem 2rem; min-height: 60vh; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.35; margin: .4rem 0 1rem; }
h2 { font-size: 1.15rem; line-height: 1.45; margin: 0 0 .5rem; }
p { margin: .5rem 0 1rem; }
.muted, time, .meta { color: #586575; }
.notice { border-left: 3px solid #91a7bf; background: #edf1f6; padding: .8rem 1rem; margin-bottom: 1.25rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; padding: 1.2rem; background: white; border: 1px solid #dce1e7; border-radius: 8px; }
.card p:last-child { margin-bottom: 0; }
.list { display: grid; gap: 1rem; padding: 0; list-style: none; }
.list li { min-width: 0; }
.article { max-width: 700px; margin-inline: auto; }
.article-body { margin-top: 1.5rem; }
.article-body p { margin-bottom: 1.3rem; }
.gallery-button { display: block; width: 100%; padding: 0; border: 0; background: none; }
.gallery-button img { display: block; width: 100%; height: auto; border-radius: 5px; }
.gallery-button:hover { background: none; }
.gallery-button:focus-visible { outline-offset: 5px; }
.site-footer { border-top: 1px solid #dce1e7; padding-block: 1rem 1.5rem; font-size: .9rem; color: #586575; }
dialog { width: min(900px, calc(100% - 1.5rem)); max-height: 90dvh; padding: 1rem; border: 1px solid #c2ccd8; border-radius: 8px; overflow: auto; }
dialog::backdrop { background: rgb(0 0 0 / 60%); }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.viewer-header h2 { margin: 0; }
#close-viewer { font-size: 1.5rem; line-height: 1; width: 44px; min-height: 44px; padding: .3rem; flex-shrink: 0; }
#viewer-image { display: block; width: 100%; height: auto; }
body.viewer-open { overflow: hidden; }
.comments-panel { --waline-theme-color: #285c99; --waline-active-color: #1d466e; --waline-font-size: 1rem; }
.comments-panel [hidden] { display: none; }
#waline { min-width: 0; }
#waline .wl-input, #waline .wl-editor { font-size: 16px; }
#waline .wl-comment { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 1rem; }
  nav a { padding: .5rem .6rem; }
  #waline .wl-action,
  #waline .wl-btn,
  #waline .wl-close,
  #waline .wl-logout-btn,
  #waline .wl-reply,
  #waline .wl-like,
  #waline .wl-edit,
  #waline .wl-delete { min-width: 44px; min-height: 44px; }
}
