/* ================= 文档中心（/doc.html） =================
   复用 home-2.css 的 .sec / .wrap / .cta-band / .btn-white，
   这里只补文档页专属组件。 */

/* ---- Hero ---- */
.doc-hero{position:relative;overflow:hidden;padding:64px 0 74px;
  background:linear-gradient(180deg,#f5f9ff 0%,#fbfdff 62%,#fff 100%);
  border-bottom:1px solid #eef3fa;}
.doc-hero::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(680px 300px at 78% 0%,rgba(79,141,255,.16),transparent 62%),
             radial-gradient(520px 280px at 10% 8%,rgba(124,92,255,.10),transparent 62%);}
.doc-hero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(79,141,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(79,141,255,.05) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.7),transparent 78%);mask-image:linear-gradient(180deg,rgba(0,0,0,.7),transparent 78%);}
.doc-hero .wrap{position:relative;z-index:1;}
.doc-hero-in{max-width:760px;margin:0 auto;text-align:center;}
.doc-badge{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 14px;border-radius:999px;
  background:rgba(255,255,255,.86);border:1px solid #dfeafb;box-shadow:0 6px 18px rgba(24,52,104,.07);
  font-size:12.5px;font-weight:600;color:#4a5a78;}
.doc-badge .dot{width:7px;height:7px;border-radius:50%;background:#0f9d58;box-shadow:0 0 0 3px rgba(15,157,88,.14);}
.doc-hero h1{margin:18px 0 12px;font-size:42px;line-height:1.16;letter-spacing:-1px;color:#16233a;}
.doc-hero p{margin:0 auto;max-width:640px;font-size:15px;line-height:1.8;color:#68758c;}
.doc-hero p b{color:#0b5bff;}

.doc-search{position:relative;display:flex;align-items:center;gap:10px;max-width:660px;margin:26px auto 0;
  padding:7px 7px 7px 18px;background:#fff;border:1px solid #dfe9f8;border-radius:16px;
  box-shadow:0 18px 42px rgba(24,52,104,.10);transition:border-color .2s ease,box-shadow .2s ease;}
.doc-search:focus-within{border-color:#9fc0ff;box-shadow:0 22px 48px rgba(47,123,255,.18);}
.doc-search > .i{width:19px;height:19px;flex:0 0 19px;stroke:#8ea0ba;fill:none;stroke-width:1.8;stroke-linecap:round;}
.doc-search input{flex:1;height:44px;border:0;outline:none;background:transparent;font-size:14.5px;color:#16233a;}
.doc-search input::placeholder{color:#9aa7bb;}
.doc-search button{flex:0 0 auto;height:44px;padding:0 26px;border:0;border-radius:11px;cursor:pointer;
  font-size:14.5px;font-weight:700;color:#fff;letter-spacing:.3px;
  background:linear-gradient(135deg,#2f7bff,#0b5bff);box-shadow:0 10px 22px rgba(47,123,255,.28);
  transition:transform .16s ease,box-shadow .2s ease;}
.doc-search button:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(47,123,255,.34);}

.doc-hot{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:16px;font-size:12.5px;}
.doc-hot .doc-hot-lb{color:#93a0b4;font-weight:600;}
.doc-hot a{color:#4a5a78;background:#fff;border:1px solid #e6eef9;padding:4px 11px;border-radius:999px;transition:all .18s ease;}
.doc-hot a:hover{color:#0b5bff;border-color:#bcd4ff;box-shadow:0 6px 14px rgba(47,123,255,.10);}

/* ---- 统计条 ---- */
.doc-body{padding:38px 0 64px;}
.doc-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;}
.doc-stat{display:flex;align-items:baseline;gap:9px;font-size:13px;color:#7a8699;}
.doc-stat b{font-size:22px;font-weight:800;letter-spacing:-.4px;color:#0b5bff;font-variant-numeric:tabular-nums;}
.doc-more{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#2f6fe4;}
.doc-more .i{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.doc-more:hover{color:#0b5bff;}

/* ---- 分类卡片 ---- */
.doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.doc-card{background:#fff;border:1px solid #e9eff8;border-radius:18px;padding:20px 20px 12px;
  box-shadow:0 10px 24px rgba(24,52,104,.04);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;}
.doc-card:hover{transform:translateY(-3px);border-color:#cfe0ff;box-shadow:0 20px 40px rgba(24,52,104,.10);}
.doc-cat{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px dashed #eef2f8;}
.doc-ic{width:40px;height:40px;flex:0 0 40px;border-radius:12px;display:flex;align-items:center;justify-content:center;}
.doc-ic .i{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.doc-ic.v1{background:rgba(79,141,255,.12);color:#2f6fe4;}
.doc-ic.v2{background:rgba(124,92,255,.12);color:#6a4fe0;}
.doc-ic.v3{background:rgba(15,157,88,.12);color:#0f9d58;}
.doc-ic.v4{background:rgba(255,159,67,.14);color:#d97706;}
.doc-ic.v5{background:rgba(6,182,212,.12);color:#0891b2;}
.doc-ic.v6{background:rgba(239,68,68,.12);color:#dc2626;}
.doc-cat h3{font-size:15px;font-weight:800;color:#16233a;letter-spacing:-.2px;margin-bottom:2px;}
.doc-cat em{font-style:normal;font-size:11.5px;font-weight:600;color:#93a0b4;}

.doc-list{list-style:none;}
.doc-list li + li{border-top:1px solid #f3f6fb;}
.doc-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 4px;font-size:13px;color:#54627b;border-radius:8px;transition:color .16s ease,background .16s ease,padding .16s ease;}
.doc-list a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.doc-list a .i{width:14px;height:14px;flex:0 0 14px;stroke:#c2cee0;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .16s ease,transform .16s ease;}
.doc-list a:hover{color:#0b5bff;background:#f6faff;padding-left:9px;padding-right:8px;}
.doc-list a:hover .i{stroke:#2f7bff;transform:translateX(2px);}

/* ---- 空态 / 加载 ---- */
.doc-empty{text-align:center;padding:56px 0 32px;}
.doc-empty .de-ic{width:64px;height:64px;margin:0 auto 16px;border-radius:20px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(79,141,255,.12),rgba(124,92,255,.10));color:#5a7fd6;}
.doc-empty .de-ic .i{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.doc-empty h3{font-size:17px;color:#16233a;margin-bottom:6px;}
.doc-empty p{font-size:13px;color:#7a8699;}
.doc-load{text-align:center;padding:48px 0;font-size:13px;color:#93a0b4;}

/* ---- 底部 CTA ---- */
.doc-cta h2{font-size:26px;}
.doc-cta .i{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

/* ---- 响应式 ---- */
@media (max-width:1120px){
  .doc-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:760px){
  .doc-hero{padding:44px 0 52px;}
  .doc-hero h1{font-size:32px;}
  .doc-grid{grid-template-columns:1fr;}
  .doc-search{flex-wrap:wrap;padding:10px;}
  .doc-search button{width:100%;}
}
