:root{
  --brand:#d6006f;
  --brand-dark:#9f0757;
  --brand-soft:#fff2f8;
  --brand-line:#ffd2e6;
  --accent:#2563eb;
  --accent-soft:#eff6ff;
  --safe:#047857;
  --safe-soft:#ecfdf5;
  --warn:#b45309;
  --warn-soft:#fffbeb;
  --danger:#b91c1c;
  --danger-soft:#fef2f2;
  --ink:#111827;
  --text:#374151;
  --sub:#6b7280;
  --muted:#9ca3af;
  --line:#e5e7eb;
  --soft:#f7f8fb;
  --card:#ffffff;
  --shadow:0 14px 32px rgba(17,24,39,.08);
  --radius:8px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:#fff;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
  line-height:1.72;
  letter-spacing:0;
}
a{color:inherit}
.skip-link{
  position:absolute;
  left:16px;
  top:-44px;
  z-index:80;
  padding:8px 12px;
  border-radius:var(--radius);
  background:var(--ink);
  color:#fff;
  text-decoration:none;
}
.skip-link:focus{top:12px}
.topbar{
  position:sticky;
  top:0;
  z-index:40;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(180%) blur(14px);
}
.topbar-inner{
  width:min(100%,1120px);
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
  color:var(--ink);
  text-decoration:none;
}
.brand img{
  width:36px;
  height:36px;
  object-fit:contain;
  flex:0 0 auto;
}
.brand-title{
  display:block;
  font-size:15px;
  font-weight:900;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-sub{
  display:block;
  margin-top:2px;
  font-size:11px;
  color:var(--sub);
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.nav-links a,
.pill-btn{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--sub);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}
.nav-links a:hover,
.pill-btn:hover{
  border-color:var(--brand-line);
  color:var(--brand);
}
.page{
  width:min(100%,1120px);
  margin:0 auto;
  padding:0 20px 56px;
}
.hero{
  padding:48px 0 30px;
  border-bottom:1px solid var(--line);
}
.kicker{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-size:12px;
  font-weight:900;
}
.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--brand);
  box-shadow:0 0 0 5px rgba(214,0,111,.1);
  flex:0 0 auto;
}
h1{
  max-width:850px;
  margin:16px 0 12px;
  color:var(--ink);
  font-size:clamp(32px,4.8vw,56px);
  line-height:1.06;
  letter-spacing:0;
}
.lead{
  max-width:760px;
  margin:0;
  color:var(--sub);
  font-size:16px;
}
.hero-actions{
  margin-top:22px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.primary-btn,
.secondary-btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:9px 14px;
  border-radius:var(--radius);
  font-size:13px;
  font-weight:900;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
}
.primary-btn{
  background:var(--brand);
  color:#fff;
  box-shadow:0 12px 24px rgba(214,0,111,.18);
}
.secondary-btn{
  background:#fff;
  color:var(--ink);
  border-color:var(--line);
}
.primary-btn:hover{background:var(--brand-dark)}
.secondary-btn:hover{border-color:var(--brand-line);color:var(--brand)}
.summary-grid,
.topic-grid,
.role-grid,
.contact-grid,
.link-grid{
  display:grid;
  gap:14px;
}
.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:22px}
.topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.role-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.contact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.metric,
.card,
.topic-card,
.contact-card,
.article-card,
.notice,
.tool-panel{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
}
.metric{
  padding:14px;
}
.metric .num{
  color:var(--ink);
  font-size:22px;
  font-weight:950;
  line-height:1.1;
}
.metric .label{
  margin-top:6px;
  color:var(--sub);
  font-size:12px;
  font-weight:800;
}
.section{
  padding:34px 0 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.section h2,
.article h2{
  margin:0;
  color:var(--ink);
  font-size:24px;
  line-height:1.2;
}
.section-desc{
  max-width:720px;
  margin:8px 0 0;
  color:var(--sub);
  font-size:14px;
}
.tool-panel{
  padding:16px;
  box-shadow:var(--shadow);
}
.search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.search-input{
  width:100%;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px 12px;
  color:var(--ink);
  font:inherit;
  outline:none;
}
.search-input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(214,0,111,.1);
}
.filter-row{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.filter-btn{
  min-height:34px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  padding:6px 10px;
  color:var(--sub);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.filter-btn.is-active{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}
.result-line{
  min-height:22px;
  margin-top:10px;
  color:var(--sub);
  font-size:12px;
}
.topic-card,
.card,
.contact-card,
.article-card{
  padding:18px;
  text-decoration:none;
}
.topic-card{
  display:flex;
  flex-direction:column;
  min-height:190px;
}
.topic-card:hover,
.card:hover,
.contact-card:hover{
  border-color:var(--brand-line);
  box-shadow:var(--shadow);
}
.topic-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.tag{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:4px 8px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:11px;
  font-weight:900;
}
.tag.warn{background:var(--warn-soft);color:var(--warn)}
.tag.safe{background:var(--safe-soft);color:var(--safe)}
.tag.danger{background:var(--danger-soft);color:var(--danger)}
.topic-card h3,
.card h3,
.contact-card h3{
  margin:12px 0 8px;
  color:var(--ink);
  font-size:18px;
  line-height:1.25;
}
.topic-card p,
.card p,
.contact-card p{
  margin:0;
  color:var(--sub);
  font-size:13px;
}
.topic-card ul,
.card ul{
  margin:14px 0 0;
  padding:0;
  list-style:none;
  color:var(--text);
  font-size:13px;
}
.topic-card li,
.card li{
  position:relative;
  padding-left:14px;
  margin-top:6px;
}
.topic-card li:before,
.card li:before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--brand);
}
.topic-link{
  margin-top:auto;
  padding-top:16px;
  color:var(--brand);
  font-size:13px;
  font-weight:900;
}
.notice{
  padding:16px;
  background:var(--warn-soft);
  border-color:#fde68a;
}
.notice.danger{
  background:var(--danger-soft);
  border-color:#fecaca;
}
.notice.safe{
  background:var(--safe-soft);
  border-color:#bbf7d0;
}
.notice-title{
  margin:0 0 8px;
  color:var(--ink);
  font-weight:950;
}
.notice p{
  margin:0;
  color:var(--text);
  font-size:13px;
}
.toc-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.side-nav{
  position:sticky;
  top:72px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:14px;
}
.side-nav-title{
  color:var(--ink);
  font-size:13px;
  font-weight:950;
}
.side-nav a{
  display:block;
  margin-top:8px;
  padding:7px 8px;
  border-radius:var(--radius);
  color:var(--sub);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.side-nav a:hover{
  background:var(--brand-soft);
  color:var(--brand-dark);
}
.article{
  min-width:0;
}
.article-card{
  margin-bottom:14px;
}
.article-card h2{
  margin-bottom:10px;
}
.article-card h3{
  margin:18px 0 8px;
  color:var(--ink);
  font-size:16px;
}
.article-card p{
  margin:8px 0 0;
}
.article-card ul,
.article-card ol{
  margin:10px 0 0;
  padding-left:22px;
}
.article-card li{
  margin-top:6px;
}
.step-list{
  counter-reset:step;
  margin:12px 0 0;
  padding:0;
  list-style:none;
}
.step-list li{
  counter-increment:step;
  position:relative;
  min-height:34px;
  margin-top:10px;
  padding-left:44px;
}
.step-list li:before{
  content:counter(step);
  position:absolute;
  left:0;
  top:0;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--brand);
  color:#fff;
  font-size:12px;
  font-weight:950;
}
.check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.check-box{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
  background:var(--soft);
}
.check-box strong{
  display:block;
  color:var(--ink);
  margin-bottom:6px;
}
.contact-strip{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--soft);
}
.contact-strip strong{
  color:var(--ink);
}
.site-footer{
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-inner{
  width:min(100%,1120px);
  margin:0 auto;
  padding:22px 20px 34px;
  color:var(--sub);
  font-size:12px;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  margin-bottom:10px;
}
.footer-links a{
  color:var(--text);
  font-weight:800;
  text-decoration:none;
}
.footer-links a:hover{color:var(--brand)}
.is-hidden{display:none!important}
.empty-state{
  padding:18px;
  border:1px dashed var(--line);
  border-radius:var(--radius);
  color:var(--sub);
  background:var(--soft);
  font-size:13px;
}
.compat-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:var(--soft);
}
.compat-card{
  width:min(100%,560px);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  padding:28px;
  box-shadow:var(--shadow);
}
.compat-card h1{
  margin-top:12px;
  font-size:32px;
}
.compat-card p{
  color:var(--sub);
}
@media (max-width:900px){
  .role-grid,
  .topic-grid,
  .contact-grid,
  .link-grid,
  .check-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .toc-layout{
    grid-template-columns:1fr;
  }
  .side-nav{
    position:relative;
    top:auto;
  }
}
@media (max-width:640px){
  .topbar-inner{
    padding:10px 14px;
    align-items:flex-start;
  }
  .nav-links a:not(.keep-mobile){
    display:none;
  }
  .page{
    padding-left:14px;
    padding-right:14px;
  }
  .hero{
    padding:34px 0 24px;
  }
  h1{
    font-size:34px;
  }
  .summary-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-top:18px;
  }
  .metric{
    min-width:0;
    min-height:78px;
    padding:10px 6px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
  }
  .metric .num{
    font-size:21px;
  }
  .metric .label{
    margin-top:5px;
    font-size:10px;
    line-height:1.25;
    overflow-wrap:anywhere;
  }
  .role-grid,
  .topic-grid,
  .contact-grid,
  .link-grid,
  .check-grid,
  .search-row{
    grid-template-columns:1fr;
  }
  .topic-card{
    min-height:auto;
  }
  .section-head{
    display:block;
  }
  .primary-btn,
  .secondary-btn,
  .pill-btn{
    width:100%;
  }
}
