/* 百工 BAIGONG OS · 客户进度页 */
/* 设计语言与官网同系（深空底、细描边、微光提亮），版式按客户汇报场景重新设计。 */

:root {
  --pg-bg: #06090f;
  --pg-bg-2: #0a1018;
  --pg-ink: #e8eef6;
  --pg-ink-2: #9fb0c3;
  --pg-ink-3: #647789;
  --pg-line: rgba(148, 178, 210, .16);
  --pg-line-soft: rgba(148, 178, 210, .09);
  --pg-card: rgba(16, 24, 36, .62);
  --pg-card-top: rgba(148, 178, 210, .22);
  --pg-ok: #3ddc97;
  --pg-ok-dim: rgba(61, 220, 151, .13);
  --pg-run: #57b8ff;
  --pg-run-dim: rgba(87, 184, 255, .13);
  --pg-plan: #a78bfa;
  --pg-plan-dim: rgba(167, 139, 250, .12);
  --pg-ext: #8d9db0;
  --pg-ext-dim: rgba(141, 157, 176, .12);
  --pg-gold: #e3c48f;
  --pg-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --pg-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --pg-r: 14px;
  --pg-max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pg-bg);
  color: var(--pg-ink);
  font-family: var(--pg-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景：细网格 + 双辉光，克制不喧宾 */
.pg-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(87, 184, 255, .075), transparent 62%),
    radial-gradient(900px 480px at 8% 4%, rgba(61, 220, 151, .05), transparent 60%),
    radial-gradient(760px 620px at 50% 118%, rgba(167, 139, 250, .05), transparent 64%),
    var(--pg-bg);
}
.pg-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 178, 210, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 210, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1200px 700px at 50% 0%, #000 0%, transparent 78%);
}

/* ── 顶栏 ─────────────────────────── */
.pg-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--pg-max); margin: 0 auto; padding: 22px 28px 0;
}
.pg-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--pg-ink); text-decoration: none;
}
.pg-logo { color: var(--pg-gold); }
.pg-brand-t { font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.pg-brand-t em { font-style: normal; font-family: var(--pg-mono); font-size: 12.5px; font-weight: 500; color: var(--pg-ink-2); margin-left: 4px; letter-spacing: .06em; }
.pg-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.pg-nav a { color: var(--pg-ink-2); text-decoration: none; transition: color .18s; }
.pg-nav a:hover { color: var(--pg-ink); }
.pg-nav-cur { color: var(--pg-ink); font-weight: 500; position: relative; padding-bottom: 3px; }
.pg-nav-cur::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, var(--pg-gold), transparent); }

/* ── 主体 ─────────────────────────── */
.pg-main { max-width: var(--pg-max); margin: 0 auto; padding: 0 28px 60px; }

/* 页头 */
.pg-hero { padding: 74px 0 10px; }
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--pg-mono); font-size: 12px; letter-spacing: .22em;
  color: var(--pg-gold); margin: 0 0 14px;
}
.pg-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--pg-gold); animation: pg-breathe 2.6s ease-in-out infinite; }
@keyframes pg-breathe { 0%,100% { opacity: .45; box-shadow: 0 0 0 0 rgba(227,196,143,.3); } 50% { opacity: 1; box-shadow: 0 0 0 5px rgba(227,196,143,0); } }
.pg-h1 {
  margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 700; letter-spacing: .01em; line-height: 1.15;
  background: linear-gradient(160deg, #f4f8fd 30%, #b8cbdf 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pg-sub { max-width: 620px; margin: 16px 0 0; color: var(--pg-ink-2); font-size: 16.5px; }
.pg-sub em { font-style: normal; color: var(--pg-ink); border-bottom: 1px solid rgba(227,196,143,.4); padding-bottom: 1px; }
.pg-sync { margin: 20px 0 0; font-family: var(--pg-mono); font-size: 12.5px; color: var(--pg-ink-3); display: inline-flex; align-items: center; gap: 8px; }
.pg-sync::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pg-ink-3); }
.pg-sync[data-live="1"] { color: var(--pg-ok); }
.pg-sync[data-live="1"]::before { background: var(--pg-ok); animation: pg-breathe 2.4s infinite; }
.pg-sync[data-stale="1"] { color: var(--pg-gold); }
.pg-sync[data-stale="1"]::before { background: var(--pg-gold); }

/* 总览 KPI */
.pg-overview {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 44px 0 0;
}
.pg-kpi {
  position: relative; padding: 22px 22px 18px;
  background: var(--pg-card);
  border: 1px solid var(--pg-line-soft);
  border-radius: var(--pg-r);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.pg-kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pg-card-top), transparent); }
.pg-kpi-num { display: block; font-family: var(--pg-mono); font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.pg-kpi-lab { display: block; margin-top: 8px; font-size: 13px; color: var(--pg-ink-2); line-height: 1.45; }
.pg-kpi-ok .pg-kpi-num { color: var(--pg-ok); }
.pg-kpi-run .pg-kpi-num { color: var(--pg-run); }
.pg-kpi-plan .pg-kpi-num { color: var(--pg-plan); }
.pg-kpi-ext .pg-kpi-num { color: var(--pg-ext); }
.pg-kpi-ok { background: linear-gradient(170deg, var(--pg-ok-dim), var(--pg-card) 55%); }
.pg-kpi-run { background: linear-gradient(170deg, var(--pg-run-dim), var(--pg-card) 55%); }
.pg-kpi-plan { background: linear-gradient(170deg, var(--pg-plan-dim), var(--pg-card) 55%); }
.pg-kpi-ext { background: linear-gradient(170deg, var(--pg-ext-dim), var(--pg-card) 55%); }

/* 区块 */
.pg-block { margin-top: 60px; }
.pg-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--pg-line-soft); }
.pg-h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.pg-block-note { margin: 0; font-size: 13px; color: var(--pg-ink-3); max-width: 460px; }
.pg-h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }

/* 模块卡片网格 */
.pg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pg-mod {
  position: relative; padding: 20px 22px 18px;
  background: var(--pg-card);
  border: 1px solid var(--pg-line-soft);
  border-radius: var(--pg-r);
  transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.3,1), background .2s;
}
.pg-mod:hover { border-color: var(--pg-line); transform: translateY(-2px); }
.pg-mod::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pg-card-top), transparent); border-radius: var(--pg-r) var(--pg-r) 0 0; }

.pg-mod-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-mod-name { font-size: 15.5px; font-weight: 600; letter-spacing: .01em; }
.pg-mod-scope { margin: 6px 0 0; font-size: 12.5px; color: var(--pg-ink-3); line-height: 1.5; min-height: 37px; }

/* 状态徽标 */
.pg-badge {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 100px;
  border: 1px solid transparent; white-space: nowrap;
}
.pg-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pg-badge[data-st="verified"] { color: var(--pg-ok); background: var(--pg-ok-dim); border-color: rgba(61,220,151,.3); }
.pg-badge[data-st="needs_verification"], .pg-badge[data-st="partial"], .pg-badge[data-st="checking"] { color: var(--pg-run); background: var(--pg-run-dim); border-color: rgba(87,184,255,.3); }
.pg-badge[data-st="needs_attention"] { color: var(--pg-gold); background: rgba(227,196,143,.12); border-color: rgba(227,196,143,.3); }
.pg-badge[data-st="planned"] { color: var(--pg-plan); background: var(--pg-plan-dim); border-color: rgba(167,139,250,.3); }
.pg-badge[data-st="external"] { color: var(--pg-ext); background: var(--pg-ext-dim); border-color: rgba(141,157,176,.3); }

/* 进度条 */
.pg-bar { margin-top: 16px; height: 4px; border-radius: 4px; background: rgba(148,178,210,.1); overflow: hidden; }
.pg-bar-fill {
  height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--pg-run), var(--pg-ok));
  transition: width 1s cubic-bezier(.2,.7,.3,1);
}
.pg-mod[data-full="1"] .pg-bar-fill { background: linear-gradient(90deg, var(--pg-ok), var(--pg-ok)); }
.pg-mod-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.pg-mod-ratio { font-family: var(--pg-mono); font-size: 12px; color: var(--pg-ink-2); }
.pg-mod-date { font-size: 11.5px; color: var(--pg-ink-3); }

/* 规划中 / 生态列表 */
.pg-plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pg-plan li {
  padding: 16px 18px;
  background: var(--pg-card);
  border: 1px solid var(--pg-line-soft);
  border-radius: var(--pg-r);
}
.pg-plan-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.pg-plan-scope { margin: 6px 0 0; font-size: 12.5px; color: var(--pg-ink-3); line-height: 1.5; }
.pg-plan li::before { content: none; }
.pg-plan-ico { width: 6px; height: 6px; border-radius: 2px; background: var(--pg-plan); transform: rotate(45deg); flex: none; }
.pg-plan-ext .pg-plan-ico { background: var(--pg-ext); }

/* 口径说明 */
.pg-note {
  margin-top: 64px; padding: 28px 30px;
  background: linear-gradient(170deg, rgba(148,178,210,.05), var(--pg-card) 60%);
  border: 1px solid var(--pg-line-soft); border-radius: var(--pg-r);
}
.pg-note ul { margin: 0; padding-left: 18px; color: var(--pg-ink-2); font-size: 14px; }
.pg-note li { margin: 7px 0; }
.pg-note strong { color: var(--pg-ink); font-weight: 600; }
.pg-note-foot { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--pg-line); font-size: 12.5px; color: var(--pg-ink-3); }

/* 页脚 */
.pg-foot {
  max-width: var(--pg-max); margin: 0 auto; padding: 30px 28px 36px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--pg-ink-3);
}
.pg-foot a { color: var(--pg-ink-2); text-decoration: none; }
.pg-foot a:hover { color: var(--pg-ink); }
.pg-foot-dot { opacity: .4; }

/* 渲染入场 */
.pg-mod, .pg-kpi, .pg-plan li { opacity: 0; transform: translateY(10px); animation: pg-in .55s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes pg-in { to { opacity: 1; transform: none; } }
.pg-grid > *:nth-child(2) { animation-delay: .04s; }
.pg-grid > *:nth-child(3) { animation-delay: .08s; }
.pg-grid > *:nth-child(4) { animation-delay: .12s; }
.pg-grid > *:nth-child(5) { animation-delay: .16s; }
.pg-grid > *:nth-child(6) { animation-delay: .2s; }
.pg-grid > *:nth-child(7) { animation-delay: .24s; }
.pg-grid > *:nth-child(8) { animation-delay: .28s; }
.pg-grid > *:nth-child(9) { animation-delay: .32s; }
.pg-grid > *:nth-child(10) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, .pg-mod, .pg-kpi, .pg-plan li { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* 响应式 */
@media (max-width: 880px) {
  .pg-overview { grid-template-columns: repeat(2, 1fr); }
  .pg-grid { grid-template-columns: 1fr; }
  .pg-plan { grid-template-columns: 1fr; }
  .pg-hero { padding-top: 52px; }
  .pg-block { margin-top: 48px; }
}
@media (max-width: 560px) {
  .pg-top { padding: 16px 18px 0; }
  .pg-main { padding: 0 18px 44px; }
  .pg-nav { gap: 14px; font-size: 13px; }
  .pg-brand-t em { display: none; }
  .pg-kpi-num { font-size: 32px; }
  .pg-note { padding: 22px 20px; }
}

/* ── 功能全景扩展（v2） ─────────────── */

/* 状态分布条 */
.pg-dist { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: rgba(148,178,210,.1); margin: 4px 0 8px; }
.pg-dist-seg { height: 100%; width: 0%; transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.pg-dist-ok { background: linear-gradient(90deg, #2ec987, var(--pg-ok)); }
.pg-dist-plan { background: linear-gradient(90deg, #9077e8, var(--pg-plan)); }
.pg-dist-legend { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--pg-ink-2); }
.pg-lg { display: inline-flex; align-items: center; gap: 7px; }
.pg-lg b { font-family: var(--pg-mono); color: var(--pg-ink); font-weight: 600; }
.pg-lg-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pg-lg-total { margin-left: auto; color: var(--pg-ink-3); }

/* 类别筛选 chips */
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pg-chip {
  font-size: 12.5px; padding: 6px 13px; border-radius: 100px; cursor: pointer;
  background: rgba(148,178,210,.07); border: 1px solid var(--pg-line-soft);
  color: var(--pg-ink-2); transition: all .18s; user-select: none;
}
.pg-chip:hover { border-color: var(--pg-line); color: var(--pg-ink); }
.pg-chip[data-on="1"] { background: rgba(227,196,143,.12); border-color: rgba(227,196,143,.45); color: var(--pg-gold); }

/* 总控亮点 */
.pg-cp { }
.pg-cp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.pg-cp-card {
  padding: 18px 19px; background: var(--pg-card);
  border: 1px solid var(--pg-line-soft); border-radius: var(--pg-r);
  transition: border-color .2s, transform .22s;
}
.pg-cp-card:hover { border-color: rgba(227,196,143,.35); transform: translateY(-2px); }
.pg-cp-tag {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--pg-gold);
  padding: 3px 10px; border-radius: 100px; background: rgba(227,196,143,.1);
  border: 1px solid rgba(227,196,143,.25); margin-bottom: 10px;
}
.pg-cp-card p { margin: 0; font-size: 13px; color: var(--pg-ink-2); line-height: 1.6; }
.pg-cp-note { margin: 16px 0 0; font-size: 12.5px; color: var(--pg-ink-3); }

/* 领域网格 */
.pg-domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.pg-dom {
  position: relative; padding: 18px 19px 16px; cursor: pointer;
  background: var(--pg-card); border: 1px solid var(--pg-line-soft); border-radius: var(--pg-r);
  transition: border-color .2s, transform .24s cubic-bezier(.2,.7,.3,1), box-shadow .24s;
}
.pg-dom:hover { border-color: var(--pg-line); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.pg-dom[hidden] { display: none; }
.pg-dom::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pg-card-top), transparent); }
.pg-dom-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pg-dom-name { font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.35; }
.pg-dom-cat { font-size: 11px; color: var(--pg-ink-3); font-family: var(--pg-mono); white-space: nowrap; padding-top: 2px; }
.pg-dom-pos { margin: 8px 0 0; font-size: 12.5px; color: var(--pg-ink-3); line-height: 1.55; min-height: 58px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pg-dom-bar { margin-top: 13px; height: 3px; border-radius: 3px; background: rgba(148,178,210,.1); overflow: hidden; }
.pg-dom-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #2ec987, var(--pg-ok)); transition: width .9s cubic-bezier(.2,.7,.3,1); }
.pg-dom-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 11.5px; color: var(--pg-ink-3); }
.pg-dom-count { font-family: var(--pg-mono); }
.pg-dom-more { color: var(--pg-gold); opacity: 0; transition: opacity .18s; }
.pg-dom:hover .pg-dom-more { opacity: 1; }

/* 详情抽屉 */
.pg-drawer-mask { position: fixed; inset: 0; background: rgba(4,7,12,.6); backdrop-filter: blur(3px); z-index: 60; animation: pg-fade .2s; }
.pg-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); z-index: 61;
  background: #0b1119; border-left: 1px solid var(--pg-line);
  padding: 30px 30px 40px; overflow-y: auto;
  animation: pg-slide .32s cubic-bezier(.2,.7,.3,1);
  box-shadow: -24px 0 60px rgba(0,0,0,.4);
}
@keyframes pg-fade { from { opacity: 0; } }
@keyframes pg-slide { from { transform: translateX(40px); opacity: 0; } }
.pg-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.pg-drawer-cat { font-size: 11.5px; font-family: var(--pg-mono); letter-spacing: .08em; color: var(--pg-gold); }
.pg-drawer-title { margin: 6px 0 0; font-size: 24px; font-weight: 700; }
.pg-drawer-close {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: rgba(148,178,210,.08); border: 1px solid var(--pg-line-soft);
  color: var(--pg-ink-2); font-size: 20px; line-height: 1; cursor: pointer; transition: all .18s;
}
.pg-drawer-close:hover { color: var(--pg-ink); border-color: var(--pg-line); background: rgba(148,178,210,.14); }
.pg-drawer-pos { margin: 14px 0 0; font-size: 13.5px; color: var(--pg-ink-2); line-height: 1.65; }
.pg-drawer-stats { display: flex; gap: 14px; margin: 18px 0 20px; font-size: 12.5px; color: var(--pg-ink-3); }
.pg-drawer-stats b { font-family: var(--pg-mono); color: var(--pg-ink); margin-left: 4px; }

.pg-item-list { list-style: none; margin: 0; padding: 0; }
.pg-item-list li { padding: 13px 0; border-bottom: 1px solid var(--pg-line-soft); }
.pg-item-list li:last-child { border-bottom: none; }
.pg-item-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pg-item-name { font-size: 14px; font-weight: 500; }
.pg-item-desc { margin: 5px 0 0; font-size: 12.5px; color: var(--pg-ink-3); line-height: 1.55; }
.pg-item-st { flex: none; font-size: 10.5px; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.pg-item-st[data-s="已有基础"] { color: var(--pg-ok); background: var(--pg-ok-dim); }
.pg-item-st[data-s="待建设"] { color: var(--pg-plan); background: var(--pg-plan-dim); }
.pg-item-st[data-s="外部接入"] { color: var(--pg-ext); background: var(--pg-ext-dim); }
.pg-drawer-ext-t { margin: 24px 0 4px; font-size: 13px; font-weight: 600; color: var(--pg-ink-2); }

/* 双栏规划/生态 */
.pg-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.pg-dual .pg-h2 { margin-bottom: 16px; }
.pg-ext-note { margin: -8px 0 16px; font-size: 12.5px; color: var(--pg-ink-3); }
.pg-dual .pg-plan { grid-template-columns: 1fr; }

/* 响应式补充 */
@media (max-width: 980px) {
  .pg-domain-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-cp-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-dual { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .pg-domain-grid, .pg-cp-grid { grid-template-columns: 1fr; }
  .pg-dom-pos { min-height: 0; }
  .pg-drawer { padding: 22px 20px 34px; }
  .pg-lg-total { margin-left: 0; width: 100%; }
}

/* 单页版：品牌区不再是链接，导航位显示当前页名 */
.pg-brand { cursor: default; }
.pg-nav-single { font-size: 14px; color: var(--pg-ink); font-weight: 500; position: relative; padding-bottom: 3px; }
.pg-nav-single::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, var(--pg-gold), transparent); }
.pg-foot { justify-content: flex-start; }
