:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --brand: #4f46e5;
  --brand-soft: #eef2ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: var(--text);
  line-height: 1.65;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(980px, 92vw); margin: 0 auto; }
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}
.brand { font-weight: 800; color: var(--text); }
.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  background: var(--brand-soft);
  color: #3730a3;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero { padding: 2.5rem 0 1.2rem; }
.hero h1 {
  margin: .5rem 0 0;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.18;
}
.hero p { margin-top: 1rem; color: var(--muted); max-width: 70ch; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .9rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}
.card h3 { margin: .2rem 0 .5rem; font-size: 1rem; }
.section { padding: 1rem 0 1.7rem; }
main article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1rem, 2.2vw, 1.7rem);
}
article h2 {
  margin-top: 1.8rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
}
article h3 {
  margin-top: 1.2rem;
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
}
article p, article li { color: #1e293b; }
article ul, article ol { padding-left: 1.2rem; }
.meta-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: .9rem;
  color: #334155;
  font-size: .95rem;
}
.notice {
  margin-top: .9rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: .8rem;
  color: #9a3412;
  font-size: .95rem;
}
.related {
  margin-top: 1.5rem;
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}
.related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .45rem .9rem;
  list-style: none;
  padding-left: 0;
}
.footer {
  margin-top: 2.2rem;
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 2rem;
  color: #64748b;
  font-size: .9rem;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: .62rem .7rem;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
}
th { background: #f8fafc; font-weight: 700; }
.code-lite {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  padding: .1rem .35rem;
  font-size: .83rem;
}
@media (max-width: 680px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 1.5rem; }
}
