/* =========================================================================
   SLai · 文档页样式
   -------------------------------------------------------------------------
   用于 manual / docs / plugins-doc / license / terms / risk / privacy
   设计原则：长文要好读 —— 大行高、清晰层级、表格可扫读、代码块不刺眼
   ========================================================================= */

.doc-wrap{
  width:min(1080px, calc(100% - 80px));
  margin-inline:auto;
  padding-top:56px;
  padding-bottom:96px;
}
@media(max-width:900px){
  .doc-wrap{width:calc(100% - 40px);padding-top:32px}
}

/* ---------- 文档头 ---------- */
.doc-hero{
  display:grid;
  grid-template-columns:1fr auto;
  gap:40px;
  align-items:end;
  padding-bottom:32px;
  border-bottom:1px solid rgba(168,85,247,.16);
  margin-bottom:40px;
}
@media(max-width:900px){
  .doc-hero{grid-template-columns:1fr;gap:24px}
}
.doc-hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:6px 13px 6px 9px;
  border:1px solid rgba(168,85,247,.28);
  border-radius:999px;
  background:rgba(168,85,247,.07);
  margin-bottom:18px;
}
.doc-hero .eyebrow .bar{
  width:12px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,#C084FC,#67E8F9);
}
.doc-hero .eyebrow span:last-child{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.2em;
  color:rgba(246,243,252,.6);
}
.doc-hero h1{
  font-size:clamp(30px,4.2vw,46px);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:1.1;
  color:#FFFFFF;
  margin:0;
  text-shadow:0 0 40px rgba(168,85,247,.28);
}
.doc-hero .lead{
  margin-top:14px;
  font-size:14.5px;
  line-height:1.8;
  color:rgba(246,243,252,.62);
  max-width:52ch;
}
.doc-meta-card{
  display:grid;
  grid-template-columns:repeat(2,minmax(88px,1fr));
  gap:1px;
  border:1px solid rgba(168,85,247,.2);
  border-radius:12px;
  overflow:hidden;
  background:rgba(168,85,247,.1);
}
.doc-meta-card > div{
  padding:14px 16px;
  background:rgba(14,9,25,.94);
}
.doc-meta-card span{
  display:block;
  font-family:var(--mono);
  font-size:9px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(246,243,252,.36);
  margin-bottom:6px;
}
.doc-meta-card b{
  font-size:13px;
  font-weight:600;
  color:#F6F3FC;
}

/* ---------- 目录 ---------- */
.doc-toc{
  padding:24px 26px;
  border:1px solid rgba(168,85,247,.18);
  border-radius:14px;
  background:linear-gradient(160deg,rgba(30,22,52,.6),rgba(10,6,20,.6));
  margin-bottom:56px;
}
.doc-toc h2{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(192,132,252,.85);
  margin:0 0 14px;
  padding:0;
  border:0;
}
.doc-toc ol{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:toc;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:2px 28px;
}
.doc-toc li{
  counter-increment:toc;
  margin:0;
}
.doc-toc li a{
  display:flex;
  align-items:baseline;
  gap:10px;
  padding:7px 0;
  font-size:13.5px;
  color:rgba(246,243,252,.7);
  text-decoration:none;
  transition:color .18s ease, padding-left .18s ease;
}
.doc-toc li a::before{
  content:counter(toc,decimal-leading-zero);
  font-family:var(--mono);
  font-size:10.5px;
  color:rgba(192,132,252,.6);
  flex:0 0 auto;
}
.doc-toc li a:hover{
  color:#D8B4FE;
  padding-left:4px;
}

/* ---------- 章节 ---------- */
.doc-sec{
  margin-bottom:64px;
  scroll-margin-top:90px;
}
.doc-sec > h2{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:clamp(20px,2.4vw,26px);
  font-weight:700;
  letter-spacing:-.02em;
  color:#FFFFFF;
  margin:0 0 24px;
  padding:0 0 16px;
  border-bottom:1px solid rgba(168,85,247,.16);
  position:relative;
}
.doc-sec > h2::after{
  content:"";
  position:absolute;
  left:0;bottom:-1px;
  width:56px;height:1px;
  background:linear-gradient(90deg,#C084FC,#67E8F9);
  box-shadow:0 0 12px rgba(192,132,252,.8);
}
.doc-sec > h2 .num{
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.14em;
  color:rgba(192,132,252,.85);
  padding:4px 9px;
  border:1px solid rgba(168,85,247,.3);
  border-radius:6px;
  background:rgba(168,85,247,.08);
  flex:0 0 auto;
}

.doc-sec h3{
  font-size:15.5px;
  font-weight:650;
  color:#E9D5FF;
  margin:32px 0 12px;
  letter-spacing:-.005em;
}
.doc-sec h3:first-of-type{margin-top:8px}

/* ---------- 正文 ---------- */
.doc-sec p{
  font-size:14px;
  line-height:1.9;
  color:rgba(246,243,252,.68);
  margin:12px 0;
}
.doc-sec p b,
.doc-sec li b,
.doc-sec td b{
  color:#F6F3FC;
  font-weight:600;
}
.doc-sec a{
  color:#C084FC;
  text-decoration:none;
  border-bottom:1px solid rgba(192,132,252,.3);
  transition:color .18s ease, border-color .18s ease;
}
.doc-sec a:hover{
  color:#E9D5FF;
  border-bottom-color:rgba(233,213,255,.7);
}

/* 列表 */
.doc-list{
  margin:12px 0;
  padding-left:0;
  list-style:none;
}
.doc-list li{
  position:relative;
  padding-left:20px;
  margin:8px 0;
  font-size:13.5px;
  line-height:1.85;
  color:rgba(246,243,252,.66);
}
.doc-list li::before{
  content:"";
  position:absolute;
  left:2px;
  top:.72em;
  width:5px;height:5px;
  border-radius:50%;
  background:rgba(192,132,252,.7);
  box-shadow:0 0 8px rgba(192,132,252,.6);
}

/* 有序步骤 */
.doc-steps{
  margin:16px 0;
  padding-left:0;
  list-style:none;
  counter-reset:step;
}
.doc-steps > li{
  counter-increment:step;
  position:relative;
  padding:0 0 20px 44px;
  margin:0;
  border-left:1px solid rgba(168,85,247,.14);
  margin-left:14px;
  padding-left:32px;
}
.doc-steps > li:last-child{
  border-left-color:transparent;
  padding-bottom:0;
}
.doc-steps > li::before{
  content:counter(step);
  position:absolute;
  left:-14px;
  top:-2px;
  width:28px;height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(168,85,247,.34);
  background:rgba(14,9,25,.98);
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  color:#C084FC;
  box-shadow:0 0 14px -4px rgba(168,85,247,.8);
}
.doc-steps > li > b{
  display:block;
  font-size:14px;
  color:#F6F3FC;
  margin-bottom:5px;
  font-weight:600;
}
.doc-steps > li > p{
  margin:0;
  font-size:13.5px;
  line-height:1.8;
  color:rgba(246,243,252,.62);
}

/* ---------- 表格 ---------- */
.doc-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:18px 0;
  font-size:13px;
  border:1px solid rgba(168,85,247,.18);
  border-radius:12px;
  overflow:hidden;
}
.doc-table thead th{
  background:rgba(168,85,247,.12);
  font-family:var(--mono);
  font-size:10.5px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(246,243,252,.62);
  text-align:left;
  padding:11px 16px;
  border-bottom:1px solid rgba(168,85,247,.18);
  white-space:nowrap;
}
.doc-table tbody td{
  padding:11px 16px;
  border-bottom:1px solid rgba(168,85,247,.08);
  color:rgba(246,243,252,.68);
  vertical-align:top;
  line-height:1.7;
}
.doc-table tbody tr:last-child td{border-bottom:0}
.doc-table tbody tr:hover{background:rgba(168,85,247,.05)}

/* ---------- 代码 ---------- */
.doc-sec code{
  font-family:var(--mono);
  font-size:12.2px;
  padding:2px 6px;
  border-radius:5px;
  background:rgba(168,85,247,.13);
  border:1px solid rgba(168,85,247,.22);
  color:#E9D5FF;
  word-break:break-word;
}
.doc-sec pre{
  margin:16px 0;
  padding:16px 18px;
  border-radius:10px;
  border:1px solid rgba(168,85,247,.18);
  background:rgba(4,2,10,.82);
  overflow-x:auto;
  line-height:1.7;
}
.doc-sec pre code{
  padding:0;
  border:0;
  background:none;
  color:rgba(246,243,252,.78);
  font-size:12.2px;
}

/* ---------- 提示块 ---------- */
.doc-warn,
.doc-callout,
.doc-tip{
  margin:18px 0;
  padding:16px 18px 16px 20px;
  border-radius:10px;
  border-left:2px solid;
  font-size:13.5px;
  line-height:1.8;
}
.doc-warn{
  border-color:rgba(255,107,107,.7);
  background:rgba(255,107,107,.07);
  color:rgba(255,220,220,.8);
}
.doc-warn b{color:#FF9A9E}
.doc-callout{
  border-color:rgba(192,132,252,.7);
  background:rgba(168,85,247,.08);
  color:rgba(246,243,252,.72);
}
.doc-callout b{color:#E9D5FF}
.doc-tip{
  border-color:rgba(77,227,154,.6);
  background:rgba(77,227,154,.06);
  color:rgba(220,255,240,.75);
}
.doc-tip b{color:#4DE39A}
.doc-warn p,
.doc-callout p,
.doc-tip p{margin:6px 0}
.doc-warn ul,
.doc-callout ul{margin:8px 0}

/* ---------- FAQ ---------- */
.doc-faq{
  display:grid;
  gap:8px;
  margin:18px 0;
}
.doc-faq details{
  border:1px solid rgba(168,85,247,.16);
  border-radius:10px;
  background:rgba(30,22,52,.4);
  overflow:hidden;
  transition:border-color .2s ease, background .2s ease;
}
.doc-faq details[open]{
  border-color:rgba(192,132,252,.4);
  background:rgba(30,22,52,.6);
}
.doc-faq summary{
  padding:14px 18px;
  cursor:pointer;
  font-size:13.5px;
  font-weight:600;
  color:rgba(246,243,252,.86);
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  transition:color .18s ease;
}
.doc-faq summary::-webkit-details-marker{display:none}
.doc-faq summary::after{
  content:"+";
  font-family:var(--mono);
  font-size:16px;
  font-weight:400;
  color:rgba(192,132,252,.8);
  flex:0 0 auto;
  transition:transform .2s ease;
}
.doc-faq details[open] summary::after{
  content:"−";
  transform:rotate(180deg);
}
.doc-faq summary:hover{color:#FFFFFF}
.doc-faq details > *:not(summary){
  padding:0 18px;
}
.doc-faq details > p{
  padding-bottom:14px;
  margin:0;
  font-size:13.5px;
  line-height:1.85;
  color:rgba(246,243,252,.66);
}
.doc-faq details > ul,
.doc-faq details > ol{
  padding-bottom:14px;
}
.doc-faq details > p:first-of-type{padding-top:2px}

/* ---------- 联系方式卡 ---------- */
.doc-contact{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:10px;
  margin:20px 0;
}
.doc-contact-item{
  padding:16px 18px;
  border:1px solid rgba(168,85,247,.2);
  border-radius:12px;
  background:linear-gradient(160deg,rgba(30,22,52,.6),rgba(10,6,20,.6));
}
.doc-contact-item span{
  display:block;
  font-family:var(--mono);
  font-size:9.5px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(246,243,252,.36);
  margin-bottom:8px;
}
.doc-contact-item b,
.doc-contact-item a{
  font-size:15px;
  font-weight:600;
  color:#F6F3FC;
  border:0;
  letter-spacing:.01em;
}
.doc-contact-item a{
  font-family:var(--mono);
  color:#D8B4FE;
  transition:color .18s ease;
}
.doc-contact-item a:hover{color:#FFFFFF}

/* ---------- 页内锚点偏移 ---------- */
.doc-sec[id]{scroll-margin-top:88px}

/* ---------- 窄屏 ---------- */
@media(max-width:640px){
  .doc-sec > h2{font-size:19px;gap:10px}
  .doc-table{font-size:12.2px}
  .doc-table thead th,
  .doc-table tbody td{padding:9px 11px}
  .doc-steps > li{padding-left:26px}
  .doc-hero h1{font-size:28px}
  .doc-meta-card{grid-template-columns:repeat(2,1fr)}
}
