/* 静态内容页（模板详情 / 公开报告）共用样式，与工作台保持同一视觉语言 */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;
  --ink: #151b26;
  --text: #3d4655;
  --muted: #6b7585;
  --faint: #8b95a4;
  --line: #e6eaf1;
  --line-soft: #f0f2f7;
  --soft: #eef1f6;
  --bg: #f6f8fb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 28, 45, .04), 0 8px 28px rgba(18, 28, 45, .045);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #d9e6ff; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ---------- 顶栏 ---------- */
.p-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 68px; padding: 0 32px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.p-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.p-brand:hover { color: var(--ink); }
.p-logo {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .4px;
  box-shadow: 0 3px 8px rgba(37, 99, 235, .25);
}
.p-brand .p-sub {
  padding-left: 12px; border-left: 1px solid var(--line);
  font-size: 13px; font-weight: 400; color: var(--muted);
}
.p-nav { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--muted); }
.p-nav a { color: var(--muted); }
.p-nav a:hover { color: var(--brand); }
.p-nav .active { color: var(--ink); font-weight: 650; }

/* ---------- 页面结构 ---------- */
.p-wrap { max-width: 920px; margin: 0 auto; padding: 30px 28px 72px; }
.p-crumb { margin-bottom: 16px; font-size: 12px; color: var(--faint); }
.p-crumb a { color: var(--faint); }
.p-crumb a:hover { color: var(--brand); }
.p-crumb span { color: var(--muted); }

.p-hero {
  padding: 36px 40px 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow);
}
.p-eyebrow { margin: 0; font-size: 12px; font-weight: 650; letter-spacing: .6px; color: var(--brand); }
.p-hero h1 { margin: 10px 0 12px; font-size: 31px; line-height: 1.32; font-weight: 700; letter-spacing: -.7px; }
.p-lead { margin: 0; max-width: 660px; font-size: 14px; line-height: 1.85; color: var(--muted); }

.p-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.p-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 650;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .18);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.p-btn:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .24); transform: translateY(-1px); }
.p-meta { font-size: 12px; color: var(--faint); }
.p-link { font-size: 13px; font-weight: 600; }

.p-wsum { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.p-wsum-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 11px; font-size: 13px; font-weight: 650; color: var(--ink); }
.p-wsum-label span { font-weight: 400; color: var(--faint); }
.p-wstack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--soft); }
.p-wstack i { display: block; height: 100%; }
.p-wlegend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.p-wlegend span { display: inline-flex; align-items: center; gap: 6px; }
.p-wlegend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }

.p-section { margin-top: 34px; }
.p-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.p-section-title h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.p-section-title span { font-size: 12px; color: var(--faint); }

/* ---------- 维度与评分锚点 ---------- */
.p-dim {
  margin-top: 12px; padding: 20px 24px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(18, 28, 45, .03);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.p-dim:hover { border-color: #d5e0f5; box-shadow: 0 6px 20px rgba(18, 28, 45, .05); }
.p-dim-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.p-dim-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.p-dim-head .p-tag {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  border-radius: 5px; background: #fff3e3; color: #a85d12;
  font-size: 10px; font-weight: 600; vertical-align: 2px;
}
.p-weight { flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.p-measure { margin: 12px 0 0; padding: 9px 12px; border-radius: 9px; background: #f7f9fd; font-size: 12px; line-height: 1.75; color: var(--muted); }
.p-measure b { display: inline-block; margin-right: 9px; padding: 0 8px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 650; }
.p-anchors { margin-top: 12px; }
.p-anchor {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
  padding: 9px 0; border-top: 1px dashed var(--line);
  font-size: 13px; line-height: 1.75; color: var(--text);
}
.p-anchor:first-child { border-top: 0; }
.p-anchor p { margin: 0; }
.p-lv {
  display: grid; place-items: center;
  min-width: 34px; height: 23px; padding: 0 5px;
  border-radius: 6px; background: var(--soft); color: var(--text);
  font-size: 11px; font-variant-numeric: tabular-nums;
}
.p-anchor:last-child .p-lv { background: var(--brand-soft); color: var(--brand); font-weight: 650; }

/* ---------- 说明 / 链接卡片 ---------- */
.p-note {
  margin-top: 26px; padding: 17px 20px;
  border: 1px solid #dbe6ff; border-left: 3px solid var(--brand); border-radius: 11px;
  background: #f6f9ff; color: #3b5488;
  font-size: 13px; line-height: 1.9;
}
.p-note b { color: var(--brand); }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.p-tile {
  display: block; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.p-tile:hover { border-color: #c9d7f2; color: var(--ink); box-shadow: 0 6px 18px rgba(18, 28, 45, .06); transform: translateY(-1px); }
.p-tile b { display: block; font-size: 14px; font-weight: 650; }
.p-tile span { display: block; margin-top: 4px; font-size: 12px; color: var(--faint); }

.p-foot { max-width: 920px; margin: 0 auto; padding: 0 28px 56px; font-size: 12px; line-height: 1.9; color: var(--faint); }
.p-foot p { margin: 0; }

/* ---------- 公开报告页 ---------- */
.p-report-meta { margin: 12px 0 0; font-size: 12px; color: var(--faint); }
.p-demo { margin: 16px 0 0; padding: 10px 13px; border: 1px solid #f3e0c4; border-left: 3px solid #d99a3c; border-radius: 9px; background: #fffbf3; color: #8a5a1c; font-size: 12px; line-height: 1.75; }
.p-disclosure { margin: 12px 0 0; padding: 10px 13px; border: 1px solid #dbe6ff; border-left: 3px solid var(--brand); border-radius: 9px; background: #f6f9ff; color: #3b5488; font-size: 12px; line-height: 1.75; }
.p-notes { margin: 0; }
.p-note-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.p-note-row:first-child { padding-top: 0; border-top: 0; }
.p-note-row:last-child { padding-bottom: 0; }
.p-note-row dt { font-size: 12px; font-weight: 650; color: var(--text); }
.p-note-row dd { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }
.p-verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.p-verdict { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.p-verdict h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.p-verdict h3 span { color: var(--brand); font-variant-numeric: tabular-nums; }
.p-verdict p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--muted); }
.p-card { padding: 20px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.p-rank-row {
  display: grid; grid-template-columns: 20px minmax(80px, 1.1fr) 2.4fr 58px;
  align-items: center; gap: 12px; padding: 8px 0;
  font-size: 13px; color: var(--text);
}
.p-rank-row .p-rk { color: var(--faint); font-variant-numeric: tabular-nums; }
.p-rank-row.top .p-rk { color: var(--brand); font-weight: 700; }
.p-rank-row .p-rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-rank-row .p-rb { position: relative; height: 10px; border-radius: 5px; background: var(--soft); }
.p-rank-row .p-rb > i { display: block; height: 100%; border-radius: 5px; background: #a8c1f2; }
.p-rank-row.top .p-rb > i { background: var(--brand); }
.p-rank-row .p-ci { position: absolute; top: 4px; height: 2px; border-radius: 1px; background: rgba(21, 27, 38, .48); pointer-events: none; }
.p-rank-row .p-ci::before, .p-rank-row .p-ci::after { content: ''; position: absolute; top: -2px; width: 1px; height: 6px; background: rgba(21, 27, 38, .48); }
.p-rank-row .p-ci::before { left: 0; }
.p-rank-row .p-ci::after { right: 0; }
.p-rank-row .p-rv { text-align: right; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

.p-robust { margin-top: 14px; padding: 11px 14px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 9px; background: #fafbfd; color: var(--muted); font-size: 12px; line-height: 1.85; }
.p-robust p { margin: 0; }
.p-robust p + p { margin-top: 5px; }
.p-robust b { font-weight: 650; color: var(--text); }
.p-robust.warn { border-color: #f3e0c4; border-left-color: #d99a3c; background: #fffbf3; color: #8a5a1c; }
.p-robust.warn b { color: #8a5a1c; }

.p-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.p-table { width: 100%; min-width: 540px; border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.p-table th { padding: 7px 9px; font-weight: 400; color: var(--muted); text-align: left; white-space: nowrap; }
.p-table thead th { text-align: center; font-size: 11px; }
.p-table tbody th { position: sticky; left: 0; z-index: 1; max-width: 110px; background: #fff; overflow: hidden; text-overflow: ellipsis; }
.p-table td { padding: 8px 4px; border-radius: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.p-table td.p-total { background: var(--brand-soft) !important; color: var(--brand-dark); font-weight: 650; }

.p-method-list { margin: 0; padding-left: 19px; font-size: 13px; line-height: 1.95; color: var(--muted); }
.p-method-list li + li { margin-top: 6px; }
.p-method-list b { color: var(--ink); font-weight: 650; }
.p-mobile-only { display: none; }

@media (max-width: 760px) {
  .p-topbar { height: 60px; padding: 0 16px; }
  .p-brand .p-sub { display: none; }
  .p-nav { gap: 14px; }
  .p-nav .p-nav-all { display: none; }
  .p-wrap { padding: 20px 16px 48px; }
  .p-hero { padding: 24px 20px 22px; }
  .p-hero h1 { font-size: 23px; }
  .p-lead { font-size: 13px; }
  .p-section { margin-top: 28px; }
  .p-dim { padding: 17px 17px 19px; }
  .p-dim-head { align-items: flex-start; }
  .p-grid { grid-template-columns: 1fr 1fr; }
  .p-foot { padding: 0 16px 40px; }
  .p-card { padding: 16px 17px 18px; }
  .p-rank-row { grid-template-columns: 18px minmax(56px, 1fr) 1.6fr 48px; gap: 8px; font-size: 12px; }
  .p-report-meta { line-height: 1.75; }
  .p-mobile-only { display: inline; }
  .p-note-row { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 480px) {
  .p-grid { grid-template-columns: 1fr; }
  .p-hero h1 { font-size: 21px; }
  .p-btn { width: 100%; }
  .p-section-title { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
