/* ============================================================
   前台 · 查询页 & 文档页专用样式 (pages.css)
   前缀 pg- ，与首页 lp- / 后台样式完全隔离
   ============================================================ */

/* ---------- 通用页头 ---------- */
.pg-hero{
  position:relative;overflow:hidden;text-align:center;
  padding:72px 40px 56px;color:#fff;
  background:
    radial-gradient(760px 380px at 50% -20%,rgba(99,102,241,.26),transparent 64%),
    linear-gradient(180deg,#0b1120,#0d1526);
  border-bottom:1px solid var(--lp-line);
}
.pg-hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(148,163,184,.06) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(148,163,184,.06) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:radial-gradient(ellipse 72% 70% at 50% 30%,#000 30%,transparent 74%);
  -webkit-mask-image:radial-gradient(ellipse 72% 70% at 50% 30%,#000 30%,transparent 74%);
}
.pg-hero-in{position:relative;z-index:2;max-width:760px;margin:0 auto}
.pg-hero .pg-eyebrow{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:16px;
  padding:6px 14px;border-radius:999px;font-size:12.5px;font-weight:600;color:#c7d2fe;
  background:rgba(99,102,241,.12);border:1px solid rgba(99,102,241,.3);
}
.pg-hero h1{font-size:40px;font-weight:800;letter-spacing:-.03em;line-height:1.18;margin-bottom:14px}
.pg-hero p{font-size:16.5px;color:#a9b6cc;line-height:1.7;max-width:600px;margin:0 auto}

/* ---------- 查询页 ---------- */
.pg-wrap{max-width:920px;margin:0 auto;padding:0 40px 90px}
.pg-search{
  position:relative;z-index:5;margin-top:-32px;
  background:linear-gradient(180deg,rgba(30,41,59,.94),rgba(23,32,50,.94));
  border:1px solid var(--lp-line);border-radius:18px;padding:22px;
  backdrop-filter:blur(14px);
  box-shadow:0 24px 60px rgba(2,6,23,.5);
}
.pg-search form{display:flex;gap:12px}
.pg-search .field{
  flex:1;display:flex;align-items:center;gap:10px;
  background:rgba(11,17,32,.72);border:1px solid var(--lp-line);
  border-radius:12px;padding:0 16px;height:52px;
  transition:border-color .2s,box-shadow .2s;
}
.pg-search .field:focus-within{border-color:rgba(99,102,241,.6);box-shadow:0 0 0 4px rgba(99,102,241,.14)}
.pg-search .field svg{width:19px;height:19px;stroke:#64748b;flex:0 0 auto;fill:none;stroke-width:2}
.pg-search input{
  flex:1;background:transparent;border:0;outline:none;color:#e2e8f0;
  font-size:15.5px;font-family:inherit;height:100%;
}
.pg-search input::placeholder{color:#64748b}
.pg-search button{
  height:52px;padding:0 30px;border:0;border-radius:12px;cursor:pointer;
  font-size:15px;font-weight:700;color:#fff;white-space:nowrap;
  background:linear-gradient(135deg,var(--lp-primary),var(--lp-primary-2));
  box-shadow:0 8px 24px rgba(99,102,241,.38);
  transition:transform .18s,box-shadow .18s;
}
.pg-search button:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(99,102,241,.5)}
.pg-search .hint{margin-top:12px;font-size:12.5px;color:#64748b;display:flex;gap:16px;flex-wrap:wrap}
.pg-search .hint code{
  background:rgba(148,163,184,.12);padding:2px 7px;border-radius:5px;
  color:#94a3b8;font-size:12px;
}

/* 结果区 */
.pg-result{margin-top:28px}
.pg-empty{
  text-align:center;padding:52px 24px;border-radius:18px;
  border:1px dashed rgba(148,163,184,.24);background:rgba(30,41,59,.32);
}
.pg-empty svg{width:44px;height:44px;stroke:#475569;fill:none;stroke-width:1.6;margin-bottom:16px}
.pg-empty b{display:block;color:#e2e8f0;font-size:16px;margin-bottom:8px}
.pg-empty span{color:#64748b;font-size:14px}

.pg-card{
  border:1px solid var(--lp-line);border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg,rgba(30,41,59,.6),rgba(20,28,45,.6));
}
.pg-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:22px 26px;border-bottom:1px solid var(--lp-line);flex-wrap:wrap;
  background:rgba(11,17,32,.34);
}
.pg-card-head .dom{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;color:#fff}
.pg-card-head .dom .ico{
  width:40px;height:40px;border-radius:11px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,rgba(99,102,241,.24),rgba(34,211,238,.16));
  border:1px solid rgba(99,102,241,.28);
}
.pg-card-head .dom .ico svg{width:20px;height:20px;stroke:#a5b4fc;fill:none;stroke-width:1.9}
.pg-badge{
  display:inline-flex;align-items:center;gap:7px;padding:7px 15px;border-radius:999px;
  font-size:13px;font-weight:700;
}
.pg-badge.good{background:rgba(22,163,74,.16);color:#4ade80;border:1px solid rgba(74,222,128,.3)}
.pg-badge.warn{background:rgba(217,119,6,.16);color:#fbbf24;border:1px solid rgba(251,191,36,.3)}
.pg-badge.bad{background:rgba(220,38,38,.16);color:#f87171;border:1px solid rgba(248,113,113,.3)}
.pg-badge .dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}

/* 有效期进度 */
.pg-valid{padding:22px 26px;border-bottom:1px solid var(--lp-line)}
.pg-valid .row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:11px}
.pg-valid .row b{font-size:14.5px;color:#e2e8f0}
.pg-valid .row .left{font-size:13px;color:#94a3b8}
.pg-valid .row .left em{font-style:normal;font-weight:800;color:#4ade80;font-size:15px}
.pg-valid .row .left em.warn{color:#fbbf24}
.pg-valid .row .left em.bad{color:#f87171}
.pg-bar{height:9px;border-radius:999px;background:rgba(148,163,184,.16);overflow:hidden}
.pg-bar i{
  display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,#4ade80,#22d3ee);
  transition:width .9s cubic-bezier(.4,0,.2,1);
}
.pg-bar i.warn{background:linear-gradient(90deg,#fbbf24,#f59e0b)}
.pg-bar i.bad{background:linear-gradient(90deg,#f87171,#dc2626)}
.pg-valid .scale{display:flex;justify-content:space-between;font-size:12px;color:#64748b;margin-top:9px}

/* 详情字段 */
.pg-fields{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--lp-line)}
.pg-field{padding:18px 26px;background:rgba(20,28,45,.5)}
.pg-field .k{
  font-size:12px;color:#64748b;text-transform:uppercase;letter-spacing:.07em;
  margin-bottom:7px;display:flex;align-items:center;gap:6px;
}
.pg-field .v{font-size:14.5px;color:#e2e8f0;font-weight:500;word-break:break-all}
.pg-field .v.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;color:#a5b4fc}

/* 该域名多证书 */
.pg-multi{margin-top:20px}
.pg-multi h3{font-size:15px;color:#e2e8f0;margin-bottom:12px;font-weight:700}
.pg-multi .item{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:15px 20px;border:1px solid var(--lp-line);border-radius:12px;
  background:rgba(30,41,59,.4);margin-bottom:9px;flex-wrap:wrap;
}
.pg-multi .item .l{display:flex;align-items:center;gap:11px;font-size:13.5px;color:#cbd5e1}
.pg-multi .item .l svg{width:16px;height:16px;stroke:#818cf8;fill:none;stroke-width:1.9}

/* 说明脚注 */
.pg-note{
  margin-top:22px;padding:16px 20px;border-radius:12px;font-size:13px;line-height:1.75;
  background:rgba(99,102,241,.07);border:1px solid rgba(99,102,241,.2);color:#94a3b8;
}
.pg-note b{color:#c7d2fe}

/* ---------- 文档页 ---------- */
.pg-docs{max-width:1200px;margin:0 auto;padding:44px 40px 100px;display:grid;grid-template-columns:236px 1fr;gap:44px;align-items:start}

/* 左侧目录 */
.pg-toc{position:sticky;top:86px}
.pg-toc .t{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#64748b;margin-bottom:14px;padding-left:12px}
.pg-toc a{
  display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;
  font-size:13.5px;color:#94a3b8;margin-bottom:2px;
  border-left:2px solid transparent;transition:color .18s,background .18s,border-color .18s;
}
.pg-toc a:hover{color:#e2e8f0;background:rgba(255,255,255,.04)}
.pg-toc a.on{color:#a5b4fc;background:rgba(99,102,241,.1);border-left-color:#6366f1;font-weight:600}
.pg-toc .num{
  font-size:11px;font-weight:700;color:#475569;flex:0 0 auto;
  min-width:18px;
}

/* 文档主体 */
.pg-body{min-width:0}
.pg-sec{margin-bottom:56px;scroll-margin-top:90px}
.pg-sec > h2{
  font-size:25px;font-weight:800;color:#fff;letter-spacing:-.02em;
  margin-bottom:8px;display:flex;align-items:center;gap:12px;
}
.pg-sec > h2 .n{
  width:30px;height:30px;border-radius:9px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;
  background:linear-gradient(135deg,var(--lp-primary),var(--lp-primary-2));
  color:#fff;box-shadow:0 6px 16px rgba(99,102,241,.34);
}
.pg-sec > .lead{font-size:14.5px;color:#94a3b8;line-height:1.75;margin-bottom:24px}
.pg-sec h3{
  font-size:16.5px;font-weight:700;color:#e2e8f0;margin:30px 0 12px;
  padding-left:13px;border-left:3px solid #6366f1;
}
.pg-sec h4{font-size:14.5px;font-weight:700;color:#cbd5e1;margin:20px 0 8px}
.pg-sec p{font-size:14.2px;color:#94a3b8;line-height:1.85;margin-bottom:12px}
.pg-sec p b, .pg-sec li b{color:#e2e8f0;font-weight:600}
.pg-sec ul,.pg-sec ol{margin:0 0 14px 0;padding-left:22px}
.pg-sec li{font-size:14.2px;color:#94a3b8;line-height:1.85;margin-bottom:6px}
.pg-sec li::marker{color:#6366f1}
.pg-sec a{color:#818cf8;text-decoration:underline;text-decoration-color:rgba(129,140,248,.35);text-underline-offset:3px}
.pg-sec a:hover{color:#a5b4fc}

/* 行内代码 */
.pg-sec code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.8px;
  background:rgba(99,102,241,.12);color:#a5b4fc;
  padding:2px 7px;border-radius:6px;border:1px solid rgba(99,102,241,.16);
}
/* 代码块 */
.pg-code{
  position:relative;margin:14px 0 20px;border-radius:13px;overflow:hidden;
  background:#080d18;border:1px solid var(--lp-line);
}
.pg-code .bar{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 15px;background:rgba(30,41,59,.6);border-bottom:1px solid var(--lp-line);
}
.pg-code .bar .lang{font-size:11.5px;font-weight:700;color:#818cf8;letter-spacing:.06em;text-transform:uppercase}
.pg-code .bar .dots{display:flex;gap:6px}
.pg-code .bar .dots i{width:9px;height:9px;border-radius:50%;background:#334155}
.pg-code .bar .dots i:nth-child(1){background:#f87171}
.pg-code .bar .dots i:nth-child(2){background:#fbbf24}
.pg-code .bar .dots i:nth-child(3){background:#4ade80}
.pg-code pre{
  margin:0;padding:17px 18px;overflow-x:auto;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12.9px;line-height:1.72;color:#cbd5e1;
}
.pg-code pre code{background:none;border:0;padding:0;color:inherit;font-size:inherit}
.pg-code .copy{
  background:rgba(148,163,184,.12);border:1px solid var(--lp-line);color:#94a3b8;
  font-size:11.5px;padding:3px 10px;border-radius:6px;cursor:pointer;transition:all .18s;
}
.pg-code .copy:hover{background:rgba(99,102,241,.2);color:#c7d2fe;border-color:rgba(99,102,241,.34)}

/* 提示框 */
.pg-tip{
  display:flex;gap:13px;padding:15px 18px;border-radius:12px;margin:16px 0;
  font-size:13.6px;line-height:1.75;
}
.pg-tip svg{width:19px;height:19px;flex:0 0 auto;margin-top:2px;fill:none;stroke-width:2}
.pg-tip.info{background:rgba(59,130,246,.09);border:1px solid rgba(59,130,246,.26);color:#93c5fd}
.pg-tip.info svg{stroke:#60a5fa}
.pg-tip.warn{background:rgba(217,119,6,.09);border:1px solid rgba(217,119,6,.26);color:#fcd34d}
.pg-tip.warn svg{stroke:#fbbf24}
.pg-tip.ok{background:rgba(22,163,74,.09);border:1px solid rgba(22,163,74,.26);color:#86efac}
.pg-tip.ok svg{stroke:#4ade80}
.pg-tip b{color:#fff}
.pg-tip .txt{flex:1;min-width:0}

/* 表格 */
.pg-table{width:100%;border-collapse:collapse;margin:14px 0 20px;font-size:13.5px;
  border:1px solid var(--lp-line);border-radius:13px;overflow:hidden}
.pg-table th{
  text-align:left;padding:12px 16px;background:rgba(99,102,241,.1);
  color:#c7d2fe;font-weight:700;font-size:12.5px;letter-spacing:.03em;
  border-bottom:1px solid var(--lp-line);
}
.pg-table td{padding:12px 16px;color:#94a3b8;border-bottom:1px solid rgba(148,163,184,.1);vertical-align:top}
.pg-table tr:last-child td{border-bottom:0}
.pg-table td b{color:#e2e8f0;font-weight:600}
.pg-table td code{font-size:12.3px}
.pg-table-wrap{overflow-x:auto}

/* 步骤 */
.pg-steps{counter-reset:ps;margin:16px 0 22px}
.pg-steps .s{
  position:relative;padding:0 0 26px 46px;border-left:2px solid rgba(99,102,241,.22);
  margin-left:14px;
}
.pg-steps .s:last-child{border-left-color:transparent;padding-bottom:0}
.pg-steps .s::before{
  counter-increment:ps;content:counter(ps);
  position:absolute;left:-15px;top:-2px;
  width:28px;height:28px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:12.5px;font-weight:800;color:#fff;
  background:linear-gradient(135deg,var(--lp-primary),var(--lp-primary-2));
  box-shadow:0 0 0 4px #0b1120;
}
.pg-steps .s b{display:block;font-size:14.8px;color:#e2e8f0;margin-bottom:7px;font-weight:700}
.pg-steps .s p{margin-bottom:8px}

/* 卡片网格（文档内） */
.pg-quick{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0 26px}
.pg-quick a{
  display:block;padding:18px 20px;border-radius:14px;
  border:1px solid var(--lp-line);background:rgba(30,41,59,.42);
  transition:border-color .22s,transform .22s,background .22s;
}
.pg-quick a:hover{border-color:rgba(99,102,241,.42);transform:translateY(-3px);background:rgba(30,41,59,.62)}
.pg-quick b{display:flex;align-items:center;gap:9px;font-size:14.5px;color:#fff;margin-bottom:6px;font-weight:700}
.pg-quick b svg{width:17px;height:17px;stroke:#818cf8;fill:none;stroke-width:1.9}
.pg-quick span{font-size:13px;color:#94a3b8;line-height:1.65}

/* 响应式 */
@media(max-width:980px){
  .pg-docs{grid-template-columns:1fr;gap:30px;padding:30px 22px 70px}
  .pg-toc{position:static;display:flex;gap:6px;overflow-x:auto;padding-bottom:8px}
  .pg-toc .t{display:none}
  .pg-toc a{white-space:nowrap;border-left:0;border-bottom:2px solid transparent;border-radius:8px}
  .pg-toc a.on{border-left:0;border-bottom-color:#6366f1}
  .pg-fields{grid-template-columns:1fr}
  .pg-quick{grid-template-columns:1fr}
}
@media(max-width:860px){
  .pg-hero{padding:52px 22px 44px}
  .pg-hero h1{font-size:29px}
  .pg-hero p{font-size:15px}
  .pg-wrap{padding:0 22px 70px}
  .pg-search{padding:16px;margin-top:-24px}
  .pg-search form{flex-direction:column}
  .pg-search button{width:100%}
  .pg-card-head{padding:18px 20px}
  .pg-valid,.pg-field{padding:18px 20px}
  .pg-sec > h2{font-size:21px}
  .pg-code pre{font-size:12.2px}
}

/* ============================================================
   服务状态页 (前缀 st-)
   ============================================================ */
.st-wrap{max-width:980px;margin:0 auto;padding:44px 40px 90px}
.st-h{
  font-size:16px;font-weight:700;color:#e2e8f0;margin:38px 0 16px;
  padding-left:13px;border-left:3px solid #6366f1;
}
.st-h:first-of-type{margin-top:0}

/* 总览卡 */
.st-overview{
  display:flex;align-items:center;gap:34px;flex-wrap:wrap;
  padding:30px 34px;border-radius:20px;
  background:linear-gradient(180deg,rgba(30,41,59,.6),rgba(20,28,45,.6));
  border:1px solid var(--lp-line);
  box-shadow:0 20px 50px rgba(2,6,23,.4);
}
.st-ring{position:relative;width:132px;height:132px;flex:0 0 auto}
.st-ring svg{width:100%;height:100%;display:block}
.st-ring-txt{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
}
.st-ring-txt b{font-size:30px;font-weight:800;letter-spacing:-.03em;line-height:1}
.st-ring-txt b span{font-size:15px;font-weight:700;margin-left:1px}
.st-ring-txt em{font-style:normal;font-size:12px;color:#64748b;margin-top:5px;letter-spacing:.05em}
.st-overview-info{flex:1;min-width:260px}
.st-ovhead{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.st-ovhead b{font-size:18px;color:#fff;font-weight:700}
.st-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 0 4px rgba(74,222,128,.14);
  animation:st-pulse 2.2s ease-in-out infinite}
@keyframes st-pulse{0%,100%{opacity:1}50%{opacity:.45}}
.st-overview-info > p{font-size:14px;color:#94a3b8;line-height:1.75;margin-bottom:16px}
.st-overview-info > p b{color:#e2e8f0;font-weight:600}
.st-ovmeta{display:flex;gap:22px;flex-wrap:wrap;font-size:12.5px;color:#64748b}
.st-ovmeta b{color:#a5b4fc;font-weight:600}

/* 指标卡 */
.st-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.st-metric{
  position:relative;padding:22px 20px;border-radius:16px;overflow:hidden;
  background:linear-gradient(180deg,rgba(30,41,59,.5),rgba(20,28,45,.5));
  border:1px solid var(--lp-line);
  transition:transform .25s,border-color .25s;
}
.st-metric:hover{transform:translateY(-3px)}
.st-metric::after{
  content:"";position:absolute;left:0;top:0;width:3px;height:100%;
  background:#6366f1;opacity:.7;
}
.st-metric.ok::after{background:#4ade80}
.st-metric.warn::after{background:#fbbf24}
.st-metric.bad::after{background:#f87171}
.st-metric .k{font-size:12.5px;color:#64748b;margin-bottom:9px}
.st-metric .v{
  font-size:30px;font-weight:800;letter-spacing:-.03em;line-height:1;color:#e2e8f0;
  font-variant-numeric:tabular-nums;
}
.st-metric.ok .v{color:#4ade80}
.st-metric.warn .v{color:#fbbf24}
.st-metric.bad .v{color:#f87171}
.st-metric .sub{font-size:11.5px;color:#475569;margin-top:7px}

/* 检查明细 */
.st-checks{
  border:1px solid var(--lp-line);border-radius:16px;overflow:hidden;
  background:linear-gradient(180deg,rgba(30,41,59,.42),rgba(20,28,45,.42));
}
.st-check{
  display:flex;align-items:center;gap:15px;padding:15px 22px;
  border-bottom:1px solid rgba(148,163,184,.1);
  transition:background .2s;
}
.st-check:last-child{border-bottom:0}
.st-check:hover{background:rgba(99,102,241,.05)}
.st-check .ico{
  width:32px;height:32px;border-radius:9px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
}
.st-check .ico svg{width:16px;height:16px;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.st-check.ok .ico{background:rgba(22,163,74,.16);border:1px solid rgba(74,222,128,.26)}
.st-check.ok .ico svg{stroke:#4ade80}
.st-check.bad .ico{background:rgba(217,119,6,.16);border:1px solid rgba(251,191,36,.3)}
.st-check.bad .ico svg{stroke:#fbbf24}
.st-check .txt{flex:1;min-width:0}
.st-check .txt b{display:block;font-size:14.2px;color:#e2e8f0;font-weight:600;margin-bottom:2px}
.st-check .txt span{font-size:12.5px;color:#64748b}
.st-check .val{
  font-size:12.5px;font-weight:600;padding:5px 12px;border-radius:8px;white-space:nowrap;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
.st-check.ok .val{color:#4ade80;background:rgba(22,163,74,.12)}
.st-check.bad .val{color:#fbbf24;background:rgba(217,119,6,.12)}

@media(max-width:980px){
  .st-metrics{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:860px){
  .st-wrap{padding:30px 22px 70px}
  .st-overview{padding:24px;gap:24px}
  .st-ring{width:108px;height:108px}
  .st-ring-txt b{font-size:25px}
  .st-check{flex-wrap:wrap;gap:10px}
  .st-check .val{margin-left:47px}
}
