/* ==========================================================================
   运营层：页脚、合作推广位、打赏、关于页
   只在有内容时出现，空配置不会留下空壳。
   ========================================================================== */

.page-narrow { max-width: 880px; }
.stack-lg > * + * { margin-top: 18px; }
.stack-lg .card + .card { margin-top: 18px; }

/* ---------- 页脚 ---------- */
.sitefoot {
  max-width: var(--page-max);
  margin: 8px auto 0;
  padding: 26px 28px 34px;
  color: var(--ink-2);
  font-size: 13px;
}
.sitefoot-inner {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.foot-cols {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(120px, 1fr));
  gap: 24px;
}
.foot-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.foot-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: fit-content;
}
.foot-link:hover { color: var(--brand); }
.foot-link svg { color: var(--faint); }
.foot-brandline { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.foot-blurb { margin: 2px 0 0; color: var(--muted); line-height: 1.6; }
.foot-key {
  margin: 8px 0 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}
.foot-key svg { flex: none; margin-top: 2px; color: var(--ok); }
.foot-bottom {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-dash);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12.5px;
}
.foot-meta { display: inline-flex; gap: 14px; align-items: center; }
.foot-icp { color: var(--muted); text-decoration: none; }
.foot-icp:hover { color: var(--brand); }
.foot-disclaimer {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- 合作推广位 ---------- */
.promo { margin-bottom: 26px; }
.promo-head { margin-bottom: 10px; }
.promo-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.promo-flag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--faint);
  letter-spacing: .04em;
}
.promo-note {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.7;
  max-width: 76ch;
}
.promo-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.promo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.promo-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.promo-card.is-empty { border-style: dashed; background: var(--surface-2); }
.promo-card-head { display: flex; align-items: center; gap: 8px; }
.promo-name { font-weight: 650; color: var(--ink); font-size: 13.5px; }
.promo-badge {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--warn-soft, rgba(194, 113, 12, .18));
  color: var(--warn);
  font-weight: 600;
}
.promo-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-tagchip {
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}
.promo-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- 打赏二维码 ---------- */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.qr-item {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: center;
}
.qr-item img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: #fff;
  padding: 6px;
}
.qr-item figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.qr-item figcaption span { color: var(--faint); font-size: 11.5px; }
.qr-fallback {
  display: none;
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px;
  word-break: break-all;
}
.qr-item.is-missing img { visibility: hidden; }
.qr-item.is-missing .qr-fallback { display: flex; }
.tip-list { margin: 4px 0 0; padding-left: 18px; line-height: 1.9; }
.kv-list { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 关于页 ---------- */
.prose { margin: 0; line-height: 1.85; color: var(--ink-2); }
.principle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.principle-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.75;
  color: var(--ink-2);
  font-size: 13px;
}
.principle-list svg { flex: none; margin-top: 3px; color: var(--ok); }
.cost-list { margin: 0 0 6px; padding-left: 18px; line-height: 1.95; color: var(--ink-2); font-size: 13px; }
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-dash);
}
.legal-row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.legal-row strong { color: var(--ink); font-size: 12.5px; }
.legal-row p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.log-entry + .log-entry { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-dash); }
.log-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.log-entry ul { margin: 0; padding-left: 18px; line-height: 1.9; color: var(--muted); }

/* ---------- 分享报告落地页 ---------- */
.share-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line-dash);
}
.share-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.share-score span { font-size: 13px; font-weight: 500; color: var(--muted); }
.share-score.s-ok { color: var(--ok); }
.share-score.s-mid { color: var(--warn); }
.share-score.s-bad { color: var(--danger); }
.share-meta { min-width: 0; }
.share-title { font-size: 15px; font-weight: 650; color: var(--ink); }
.share-sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.share-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- 免责声明 / 公告弹窗 ---------- */
.notice-body { display: flex; flex-direction: column; gap: 16px; }
.notice-section + .notice-section { border-top: 1px dashed var(--line-dash); padding-top: 14px; }
.notice-h {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.005em;
}
.notice-p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.notice-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.notice-list li { font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.notice-list li::marker { color: var(--brand); }
.notice-foot {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line-dash);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .sitefoot { padding: 20px 16px 28px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .promo-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .qr-item img { width: 100%; height: auto; max-width: 200px; }
  .legal-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
