/* ============================================
   律所详情页（新版）· firm detail page
   复用 styles.css 的设计令牌（navy/gold/cream）
   组件前缀 fp-（firm page），与 lf-（列表页）互不干扰
   ============================================ */

/* ---------- 0. 内联 SVG 尺寸兜底（最要紧）
   内联 <svg> 无 width/height 属性时默认撑满容器 —— 漏约束一处就会出现
   「巨型图标占半屏」。此处统一兜底，下方各组件再按需覆盖。 ---------- */
.fp-notice svg,
.fp-hero svg,
.fp-sec svg,
.fp-claim svg,
.fp-share svg,
.fp-footnote svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- 1. 非官网声明条（页面最显著位置）---------- */
.fp-notice {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid #e8d9a8;
  border-left: 4px solid var(--gold-500, #d4af57);
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(180deg, #fdf9ec 0%, #faf4e2 100%);
  color: #5a4a18;
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.fp-notice-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold-600, #c9a24a);
}
.fp-notice b { color: #3d3110; }
.fp-notice a { color: #8a6d1c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fp-notice--claimed {
  border-color: #b7ddc4;
  border-left-color: #2f9e5e;
  background: linear-gradient(180deg, #f0faf3 0%, #e6f6ec 100%);
  color: #1f5c37;
}
.fp-notice--claimed b { color: #14472a; }
.fp-notice--claimed a { color: #1a7a45; }

/* ---------- 2. Hero 品牌区 ---------- */
.fp-hero {
  position: relative;
  margin-bottom: 34px;
  padding: 32px 30px 26px;
  border: 1px solid var(--gray-100, #e8e5dc);
  border-radius: var(--radius-lg, 12px);
  background:
    radial-gradient(1200px 200px at 100% 0%, rgba(212, 175, 87, 0.10) 0%, rgba(212, 175, 87, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fcfaf4 100%);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(10, 22, 40, 0.08));
  overflow: hidden;
}
.fp-hero-top {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.fp-logo {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-600, #c9a24a);
  background: linear-gradient(160deg, #0f1f38 0%, #1d3660 100%);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(10, 22, 40, 0.18));
  position: relative;
}
.fp-logo::after {
  content: 'Logo 待上传';
  position: absolute;
  inset: auto 0 -18px 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  color: #8a8578;
}
.fp-hero-id { flex: 1 1 320px; min-width: 0; }
.fp-hero-name {
  margin: 0 0 8px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.25;
  color: var(--navy-800, #0f1f38);
  letter-spacing: 0.5px;
}
.fp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--gray-600, #5a5548);
  font-size: 14px;
}
.fp-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.fp-hero-meta svg { width: 14px; height: 14px; opacity: 0.6; }
.fp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.fp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;          /* 徽章文案不折行，否则会被挤成圆形 */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--gray-100, #e8e5dc);
  background: #fff;
  color: var(--gray-600, #5a5548);
}
.fp-tag svg { width: 13px; height: 13px; }
.fp-tag--warn { border-color: #e8d9a8; background: var(--gold-50, #fdf8e8); color: #7a6220; }
.fp-tag--ok { border-color: #b7ddc4; background: #f0faf3; color: #1f5c37; }
.fp-hero-actions { display: flex; flex-direction: column; gap: 9px; min-width: 190px; }

/* ---------- 3. 关键指标条 ---------- */
.fp-metrics {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-100, #e8e5dc);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fp-metric-label { font-size: 12.5px; color: var(--gray-400, #8a8578); letter-spacing: 0.4px; }
.fp-metric-value {
  margin-top: 3px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 19px;
  color: var(--navy-700, #152847);
  word-break: break-all;
}
.fp-metric-value small { font-size: 13px; color: var(--gray-600, #5a5548); }

/* ---------- 4. 按钮 ---------- */
.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: var(--radius-md, 8px);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.fp-btn:active { transform: translateY(1px); }
.fp-btn svg { width: 16px; height: 16px; flex: none; }
.fp-btn--primary {
  background: linear-gradient(180deg, var(--navy-700, #152847) 0%, var(--navy-800, #0f1f38) 100%);
  color: #f3e6bf;
  box-shadow: var(--shadow-md, 0 4px 16px rgba(10, 22, 40, 0.18));
}
.fp-btn--primary:hover { box-shadow: var(--shadow-gold, 0 4px 20px rgba(212, 175, 87, 0.25)); }
.fp-btn--gold {
  background: linear-gradient(180deg, #e0bf6e 0%, #c9a24a 100%);
  color: #3d3110;
  box-shadow: var(--shadow-md, 0 4px 16px rgba(10, 22, 40, 0.12));
}
.fp-btn--gold:hover { filter: brightness(1.04); }
.fp-btn--ghost {
  background: #fff;
  border-color: var(--gray-100, #e8e5dc);
  color: var(--navy-700, #152847);
}
.fp-btn--ghost:hover { border-color: var(--gray-200, #cfcabc); }
.fp-btn--sm { padding: 8px 13px; font-size: 13.5px; }
.fp-btn--block { width: 100%; }

/* ---------- 5. 区块与卡片 ---------- */
.fp-sec {
  margin: 0 0 20px;
  padding: 26px 28px 28px;
  border: 1px solid var(--gray-100, #e8e5dc);
  border-radius: var(--radius-lg, 12px);
  background: #fff;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(10, 22, 40, 0.06));
}
.fp-sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.fp-sec-title {
  margin: 0;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 20px;
  color: var(--navy-800, #0f1f38);
  display: flex;
  align-items: center;
  gap: 9px;
}
.fp-sec-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-400, #e0bf6e), var(--gold-600, #c9a24a));
}
.fp-sec-sub { font-size: 13px; color: var(--gray-400, #8a8578); }
.fp-sec-desc {
  margin: 10px 0 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--gray-600, #5a5548);
}

/* ---------- 6. 公开登记信息 ---------- */
.fp-reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.fp-reg-item {
  padding: 13px 15px;
  border: 1px solid var(--gray-100, #e8e5dc);
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(180deg, #fdfdfc 0%, #faf9f5 100%);
}
.fp-reg-k { font-size: 12.5px; color: var(--gray-400, #8a8578); }
.fp-reg-v {
  margin-top: 4px;
  font-size: 15px;
  color: var(--navy-700, #152847);
  font-weight: 600;
  word-break: break-all;
}
.fp-reg-v--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; font-weight: 500; }
.fp-reg-item--wide { grid-column: 1 / -1; }

.fp-timeline {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--gray-100, #e8e5dc);
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}
.fp-tl-node { position: relative; padding: 0 26px 0 18px; }
.fp-tl-node::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold-500, #d4af57);
}
.fp-tl-node::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-300, #ebd089), rgba(235, 208, 137, 0));
}
.fp-tl-node:last-child::after { display: none; }
.fp-tl-date { font-size: 13px; color: var(--gold-600, #c9a24a); font-weight: 600; }
.fp-tl-label { font-size: 13.5px; color: var(--gray-600, #5a5548); margin-top: 2px; }

/* ---------- 7. 优雅待填槽（优雅待填样式）---------- */
.fp-slot {
  position: relative;
  border: 1px dashed var(--gray-200, #cfcabc);
  border-radius: var(--radius-md, 8px);
  background:
    repeating-linear-gradient(135deg, rgba(250, 247, 239, 0.9) 0 10px, rgba(245, 239, 224, 0.9) 10px 20px);
  padding: 18px 18px 18px 20px;
  color: var(--gray-400, #8a8578);
}
.fp-slot-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #7a6220;
  margin-bottom: 8px;
}
.fp-slot-hint svg { width: 15px; height: 15px; flex: none; }
.fp-slot-lines { display: grid; gap: 9px; }
.fp-slot-line {
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(207, 202, 188, 0.75) 0%, rgba(207, 202, 188, 0.28) 100%);
}
.fp-slot-line--60 { width: 62%; }
.fp-slot-line--80 { width: 82%; }
.fp-slot-line--40 { width: 42%; }
.fp-slot-tip { margin-top: 11px; font-size: 12.5px; line-height: 1.7; color: #8a8578; }

/* 执业领域：常见门类勾选框架 */
.fp-pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-pick {
  padding: 7px 13px;
  border: 1px dashed var(--gray-200, #cfcabc);
  border-radius: 999px;
  font-size: 13.5px;
  color: #7a6220;
  background: rgba(255, 255, 255, 0.72);
}
.fp-pick::before { content: '＋ '; opacity: 0.65; }

/* 律师团队占位 */
.fp-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fp-team-card {
  border: 1px dashed var(--gray-200, #cfcabc);
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
  text-align: center;
}
.fp-team-avatar {
  width: 62px;
  height: 62px;
  margin: 0 auto 11px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #8a8578;
  border: 1px dashed var(--gray-200, #cfcabc);
  background: linear-gradient(160deg, #faf7ef, #f1ecdd);
}
.fp-team-name { font-size: 14.5px; color: var(--gray-600, #5a5548); font-weight: 600; }
.fp-team-role { font-size: 12.5px; color: #8a8578; margin-top: 3px; }

/* 荣誉 + 环境 两栏 */
.fp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fp-honors { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-honor {
  min-width: 108px;
  padding: 14px 12px;
  border: 1px dashed var(--gray-200, #cfcabc);
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(160deg, #fdf8e8, #f7efd7);
  text-align: center;
  font-size: 12.5px;
  color: #7a6220;
}
.fp-env {
  border: 1px dashed var(--gray-200, #cfcabc);
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(150deg, #f3efe4, #e9e3d2);
  min-height: 132px;
  display: grid;
  place-items: center;
  color: #8a8578;
  font-size: 12.5px;
  text-align: center;
}
.fp-env svg { width: 26px; height: 26px; opacity: 0.5; margin-bottom: 6px; }

/* ---------- 8. 认领引导区 ---------- */
.fp-claim {
  margin: 0 0 20px;
  padding: 30px 28px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid #e8d9a8;
  background:
    radial-gradient(600px 160px at 0% 0%, rgba(212, 175, 87, 0.14) 0%, rgba(212, 175, 87, 0) 65%),
    linear-gradient(180deg, #fdfaf0 0%, #fbf6e8 100%);
}
.fp-claim-title {
  margin: 0 0 6px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 22px;
  color: #3d3110;
  display: flex;
  align-items: center;
  gap: 9px;
}
.fp-claim-title svg { width: 20px; height: 20px; color: var(--gold-600, #c9a24a); }
.fp-claim-sub { margin: 0 0 20px; font-size: 14px; color: #6b5722; line-height: 1.7; }
.fp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.fp-step {
  padding: 16px 16px 17px;
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #efe3bf;
}
.fp-step-no {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(160deg, #e0bf6e, #c9a24a);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 9px;
}
.fp-step-t { font-size: 14.5px; font-weight: 600; color: #4a3c14; }
.fp-step-d { margin-top: 5px; font-size: 13px; line-height: 1.7; color: #7a6220; }
.fp-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; margin-bottom: 20px; }
.fp-perk { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #5a4a18; line-height: 1.6; }
.fp-perk svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold-600, #c9a24a); }
.fp-claim-actions { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }

/* ---------- 9. 分享条 ---------- */
.fp-share {
  margin: 0 0 20px;
  padding: 20px 24px;
  border: 1px solid var(--gray-100, #e8e5dc);
  border-radius: var(--radius-lg, 12px);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.fp-share-label { font-size: 14px; color: var(--navy-700, #152847); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.fp-share-label svg { width: 16px; height: 16px; color: var(--gold-600, #c9a24a); }
.fp-share-btns { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.fp-share-btn {
  width: 36px;
  height: 36px;
  flex: none;              /* 不参与压缩，否则带文字的胶囊会被挤到折行 */
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-100, #e8e5dc);
  background: #fff;
  color: var(--gray-600, #5a5548);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fp-share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.fp-share-btn svg { width: 17px; height: 17px; }
.fp-share-btn[data-net="weibo"] { color: #e6162d; border-color: #ffd6d9; background: #fff7f8; }
.fp-share-btn[data-net="zhihu"] { color: #0066ff; border-color: #d3e3ff; background: #f6f9ff; }
.fp-share-btn[data-net="tieba"] { color: #2b7cff; border-color: #d6e6ff; background: #f5f9ff; }
.fp-share-btn[data-net="wechat"] { color: #07c160; border-color: #c9ecd9; background: #f4fbf7; }
/* 复制链接是带文字的胶囊：必须用 flex 横排。
   ⚠ 不能沿用 .fp-share-btn 的 display:grid —— grid 自动布局会把「图标」和「文字」
   放进两个隐式行（上下堆叠），看起来像圆形按钮下方挂一行竖排字。 */
.fp-share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 36px;
  padding: 0 16px;
  gap: 7px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--navy-700, #152847);
  white-space: nowrap;
}
.fp-share-copy svg { width: 15px; height: 15px; }
.fp-share-copy span { white-space: nowrap; }
.fp-share-poster {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px dashed var(--gray-200, #cfcabc);
  border-radius: 999px;
  font-size: 13px;
  color: #8a8578;
  background: rgba(250, 247, 239, 0.7);
}
.fp-share-poster svg { width: 15px; height: 15px; opacity: 0.6; }
.fp-share-msg { font-size: 12.5px; color: #2f9e5e; }

/* ---------- 10. 底部声明 ---------- */
.fp-footnote {
  margin: 24px 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--gray-100, #e8e5dc);
  border-radius: var(--radius-md, 8px);
  background: var(--gray-50, #f8f7f4);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--gray-600, #5a5548);
}
.fp-footnote b { color: var(--navy-700, #152847); }

/* ---------- 11. 暗色模式 ---------- */
html[data-theme="dark"] .fp-notice {
  border-color: #4a3f1c;
  border-left-color: var(--gold-500, #d4af57);
  background: linear-gradient(180deg, #241f10 0%, #1d1a0e 100%);
  color: #d8c89a;
}
html[data-theme="dark"] .fp-notice b { color: #f0e2b8; }
html[data-theme="dark"] .fp-notice a { color: #e0bf6e; }
html[data-theme="dark"] .fp-notice--claimed {
  border-color: #1f4a30;
  background: linear-gradient(180deg, #14241b 0%, #101c15 100%);
  color: #a9d9bd;
}
html[data-theme="dark"] .fp-notice--claimed b { color: #cdebd9; }
html[data-theme="dark"] .fp-hero {
  border-color: #24303f;
  background:
    radial-gradient(1200px 200px at 100% 0%, rgba(212, 175, 87, 0.13) 0%, rgba(212, 175, 87, 0) 60%),
    linear-gradient(180deg, #131a24 0%, #10161f 100%);
}
html[data-theme="dark"] .fp-hero-name { color: #e8eef7; }
html[data-theme="dark"] .fp-hero-meta { color: #93a1b3; }
html[data-theme="dark"] .fp-tag { background: #161d27; border-color: #26303c; color: #93a1b3; }
html[data-theme="dark"] .fp-tag--warn { background: #241f10; border-color: #4a3f1c; color: #d8c89a; }
html[data-theme="dark"] .fp-tag--ok { background: #14241b; border-color: #1f4a30; color: #a9d9bd; }
html[data-theme="dark"] .fp-metrics { border-top-color: #24303f; }
html[data-theme="dark"] .fp-metric-value { color: #cfd9e6; }
html[data-theme="dark"] .fp-metric-value small { color: #93a1b3; }
html[data-theme="dark"] .fp-btn--ghost { background: #161d27; border-color: #26303c; color: #cfd9e6; }
html[data-theme="dark"] .fp-btn--ghost:hover { border-color: #33404f; }
html[data-theme="dark"] .fp-sec { background: #131a24; border-color: #24303f; }
html[data-theme="dark"] .fp-sec-title { color: #e8eef7; }
html[data-theme="dark"] .fp-sec-desc { color: #93a1b3; }
html[data-theme="dark"] .fp-reg-item { background: #161d27; border-color: #24303f; }
html[data-theme="dark"] .fp-reg-k { color: #7d8b9c; }
html[data-theme="dark"] .fp-reg-v { color: #cfd9e6; }
html[data-theme="dark"] .fp-timeline { border-top-color: #24303f; }
html[data-theme="dark"] .fp-tl-label { color: #93a1b3; }
html[data-theme="dark"] .fp-slot {
  border-color: #33404f;
  background: repeating-linear-gradient(135deg, rgba(22, 29, 39, 0.92) 0 10px, rgba(28, 36, 47, 0.92) 10px 20px);
  color: #7d8b9c;
}
html[data-theme="dark"] .fp-slot-hint { color: #d8c89a; }
html[data-theme="dark"] .fp-slot-line { background: linear-gradient(90deg, rgba(61, 73, 89, 0.8) 0%, rgba(61, 73, 89, 0.3) 100%); }
html[data-theme="dark"] .fp-pick { background: #161d27; border-color: #33404f; color: #d8c89a; }
html[data-theme="dark"] .fp-team-card { background: #161d27; border-color: #33404f; }
html[data-theme="dark"] .fp-team-avatar { background: linear-gradient(160deg, #1b232f, #151b24); border-color: #33404f; color: #7d8b9c; }
html[data-theme="dark"] .fp-team-name { color: #b8c4d2; }
html[data-theme="dark"] .fp-honor { background: linear-gradient(160deg, #241f10, #1c1810); border-color: #4a3f1c; color: #d8c89a; }
html[data-theme="dark"] .fp-env { background: linear-gradient(150deg, #1b232f, #141a22); border-color: #33404f; color: #7d8b9c; }
html[data-theme="dark"] .fp-claim {
  border-color: #4a3f1c;
  background:
    radial-gradient(600px 160px at 0% 0%, rgba(212, 175, 87, 0.12) 0%, rgba(212, 175, 87, 0) 65%),
    linear-gradient(180deg, #221d0f 0%, #1a170d 100%);
}
html[data-theme="dark"] .fp-claim-title { color: #f0e2b8; }
html[data-theme="dark"] .fp-claim-sub { color: #c4b184; }
html[data-theme="dark"] .fp-step { background: rgba(27, 35, 47, 0.9); border-color: #3a3524; }
html[data-theme="dark"] .fp-step-t { color: #e6d6a8; }
html[data-theme="dark"] .fp-step-d { color: #b3a179; }
html[data-theme="dark"] .fp-perk { color: #cbb98d; }
html[data-theme="dark"] .fp-share { background: #131a24; border-color: #24303f; }
html[data-theme="dark"] .fp-share-label { color: #cfd9e6; }
html[data-theme="dark"] .fp-share-btn { background: #161d27; border-color: #26303c; color: #93a1b3; }
html[data-theme="dark"] .fp-share-poster { background: #161d27; border-color: #33404f; color: #7d8b9c; }
html[data-theme="dark"] .fp-footnote { background: #131a24; border-color: #24303f; color: #93a1b3; }
html[data-theme="dark"] .fp-footnote b { color: #cfd9e6; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 900px) {
  .fp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-two-col { grid-template-columns: 1fr; }
  .fp-steps { grid-template-columns: 1fr; }
  .fp-hero-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
}
@media (max-width: 600px) {
  .fp-hero { padding: 22px 18px 20px; }
  .fp-logo { width: 62px; height: 62px; font-size: 26px; }
  .fp-sec, .fp-claim, .fp-share { padding: 20px 17px; }
  .fp-reg-grid { grid-template-columns: 1fr; }
  .fp-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fp-metric-value { font-size: 17px; }
  .fp-notice { font-size: 13px; padding: 12px 14px; }
}

/* ---------- 14. 分享海报弹层 ---------- */
.fp-poster-mask {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(3px);
}
.fp-poster-mask[hidden] { display: none; }
.fp-poster-modal {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg, 12px);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.fp-poster-stage {
  overflow: auto;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--gray-100, #e8e5dc);
  background: #faf7ef;
  max-width: min(750px, 82vw);
}
.fp-poster-stage canvas { display: block; width: 100%; height: auto; }
.fp-poster-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  color: #5a5548;
  background: rgba(255, 255, 255, 0.9);
}
.fp-poster-close:hover { background: #fff; color: #0f1f38; }
.fp-poster-tip { margin: 0; text-align: center; font-size: 13px; color: var(--gray-600, #5a5548); }
.fp-poster-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fp-poster-actions .fp-btn { flex: none; }

@media print {
  .fp-poster-mask { position: static; background: none; padding: 0; }
  .fp-poster-close, .fp-poster-actions, .fp-poster-tip { display: none; }
  .fp-poster-stage { border: 0; max-width: 100%; }
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 600px) {
  .fp-poster-modal { padding: 14px; }
  .fp-poster-stage { max-width: 92vw; }
}

/* ---------- 16. 打印（律所打印自己的档案用）---------- */
@media print {
  .fp-notice, .fp-claim, .fp-share, .fp-hero-actions, .fp-footnote .fp-no-print { display: none !important; }
  .fp-hero, .fp-sec { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}