:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --card:#0e1930;
  --text:#e7eefc;
  --muted:#a8b3c7;
  --brand:#7c5cff;
  --brand2:#22c55e;
  --border:rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius:16px;
  --max:1100px;
  --max-narrow: 820px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:
    radial-gradient(1100px 600px at 20% -10%, rgba(124,92,255,.35), transparent 55%),
    radial-gradient(900px 520px at 95% 10%, rgba(34,197,94,.25), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 20px;}
.container-narrow{max-width:var(--max-narrow); margin:0 auto;}
.section{padding:34px 0;}
.muted{color:var(--muted)}
code, pre{font-family:var(--mono)}
hr.divider{border:0; border-top:1px solid var(--border); margin:26px 0;}

.skip-link{
  position:absolute; left:-999px; top:12px;
  background:#111c33; border:1px solid var(--border);
  padding:10px 12px; border-radius:10px;
}
.skip-link:focus{left:12px; z-index:9999}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,18,32,.65);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}

.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(124,92,255,1), rgba(34,197,94,1));
  color:#071021;
  font-weight:800;
  box-shadow: var(--shadow);
}
.brand-name{font-weight:750; letter-spacing:.2px}

.nav{display:flex; gap:10px; align-items:center;}
.nav-link{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.nav-link:hover{color:var(--text); border-color:var(--border); background:rgba(255,255,255,.04);}
.nav-link.active{color:var(--text); border-color:rgba(124,92,255,.35); background:rgba(124,92,255,.10);}

.hero{padding:32px 0 10px;}
.hero-inner{
  display:grid;
  grid-template-columns: 1.4fr .8fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr;}
}

.hero-title{
  font-size: clamp(26px, 3vw, 40px);
  line-height:1.2;
  margin:6px 0 10px;
  letter-spacing:-.2px;
}
.hero-subtitle{margin:0 0 14px; color:var(--muted); max-width: 70ch;}
.hero-tags{display:flex; flex-wrap:wrap; gap:10px;}
.tag{
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:16px 16px 14px;
}
.card-title{margin:0 0 10px; font-size:16px}
.card-list{margin:0; padding-left:18px; color:var(--muted)}
.card-note{margin:12px 0 0; color:var(--muted); font-size:13px}

.section-head{display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:14px;}
.section-head h2{margin:0}
.section-head p{margin:0; max-width: 80ch}

.articles-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 1000px){
  .articles-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 650px){
  .articles-grid{grid-template-columns:1fr;}
}

.article-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.03);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  overflow:hidden;
}
.article-card:hover{
  transform: translateY(-2px);
  border-color: rgba(124,92,255,.35);
  background: rgba(255,255,255,.045);
}
.article-link{
  display:block;
  text-decoration:none;
  padding:16px;
}
.article-link h3{margin:0 0 8px; font-size:16px; line-height:1.35;}
.article-link p{margin:0 0 12px;}
.meta{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px;}
.dot{opacity:.7}
.meta-tags{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

.page-header h1{margin:0 0 6px;}
.page-header p{margin:0}

.breadcrumbs{margin: 6px 0 16px; color:var(--muted); font-size:13px;}
.breadcrumbs a{color:var(--muted); text-decoration:none;}
.breadcrumbs a:hover{color:var(--text); text-decoration:underline;}
.breadcrumbs .sep{margin:0 6px; opacity:.7}

.article-header h1{margin:0 0 8px; line-height:1.2;}
.article-header p{margin:0 0 10px;}

.prose{
  max-width:var(--max-narrow);
}
.prose h2,.prose h3{margin-top:22px; margin-bottom:10px; line-height:1.25;}
.prose p{margin: 10px 0;}
.prose ul,.prose ol{margin:10px 0; padding-left: 20px;}
.prose a{color:#b8a7ff; text-decoration: underline;}
.prose blockquote{
  margin:14px 0;
  padding:10px 14px;
  border-left:3px solid rgba(124,92,255,.55);
  background: rgba(124,92,255,.08);
  border-radius: 10px;
  color: var(--text);
}
.prose pre{
  background: rgba(0,0,0,.35);
  border:1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  overflow:auto;
}
.prose :not(pre) > code{
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Markdown 表格（深色主题，匹配现有变量） */
.prose table{
  width:100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden; /* 让圆角生效 */
  background: rgba(255,255,255,.02);
}

.prose th,
.prose td{
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose thead th{
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 700;
}

.prose tbody tr:nth-child(even){
  background: rgba(255,255,255,.03);
}

/* 可选：hover 提示 */
.prose tbody tr:hover{
  background: rgba(124,92,255,.08);
}



.faq{display:grid; gap:10px; max-width:var(--max-narrow);}
.faq-item{
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
}
.faq-item > summary{cursor:pointer; font-weight:650;}
.faq-body{margin-top:8px; color:var(--muted);}

.related{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
  max-width:var(--max-narrow);
}
@media (max-width: 700px){
  .related{grid-template-columns:1fr;}
}
.related a{
  display:block;
  text-decoration:none;
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.03);
}
.related a:hover{border-color: rgba(124,92,255,.35); background: rgba(255,255,255,.045);}

.site-footer{
  border-top:1px solid var(--border);
  background: rgba(0,0,0,.18);
  padding: 26px 0 18px;
}
.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 900px){
  .footer-inner{grid-template-columns:1fr;}
}
.footer-title{font-weight:750; margin-bottom:10px;}
.links{list-style:none; padding:0; margin:0; display:grid; gap:8px;}
.links a{color:var(--muted); text-decoration:none;}
.links a:hover{color:var(--text); text-decoration:underline;}
.footer-bottom{margin-top:16px; padding-top:14px; border-top:1px solid var(--border); color:var(--muted);}

.visually-hidden{
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}


