*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f4f7f6;
  color: #334155;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}
.page-shell {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page-top {
  flex-shrink: 0;
  padding: clamp(12px, 3vmin, 18px) clamp(14px, 4vw, 20px);
  background: linear-gradient(135deg, #8b0000 0%, #b71c1c 100%);
  color: #fff;
  border-bottom: 2px solid rgba(255,235,238,0.3);
}
.page-top a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-size: clamp(12px, 3vmin, 14px);
  font-weight: 600;
  margin-bottom: 10px;
}
.page-top h1 {
  font-size: clamp(16px, 4.2vmin, 20px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}
.page-top p.lead {
  margin-top: 8px;
  font-size: clamp(11px, 2.8vmin, 13px);
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}
.page-body {
  flex: 1;
  padding: clamp(14px, 3.5vmin, 22px) clamp(14px, 4vw, 20px) calc(18px + env(safe-area-inset-bottom, 0px));
}
.article {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: clamp(14px, 3.5vmin, 20px);
  box-shadow: 0 4px 18px rgba(183,28,28,0.05);
}
.article h2 {
  font-size: clamp(14px, 3.6vmin, 16px);
  color: #8b0000;
  font-weight: 800;
  margin: 18px 0 8px;
  padding-left: 10px;
  border-left: 3px solid #b71c1c;
}
.article h2:first-child { margin-top: 0; }
.article p, .article li {
  font-size: clamp(12px, 3.1vmin, 14px);
  color: #475569;
  margin-bottom: 10px;
}
.article ul, .article ol {
  padding-left: 1.25em;
  margin-bottom: 12px;
}
.article li { margin-bottom: 6px; }
.related-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: clamp(11px, 2.8vmin, 13px);
  line-height: 1.8;
}
.related-links a {
  color: #b71c1c;
  text-decoration: none;
  margin-right: 10px;
  font-weight: 600;
}
.related-links a:hover { text-decoration: underline; }
.article .note {
  margin-top: 16px;
  padding: 10px 12px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #fecaca;
  font-size: clamp(11px, 2.8vmin, 13px);
  color: #7f1d1d;
  line-height: 1.55;
}
.page-foot {
  flex-shrink: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.95);
}
