/* 禁渔政策文件: 目录卡片 + 阅读页(1A)。
 * 移动端优先: 长标题可换行不挤掉操作; 长表格在自己的容器里横向滚动;
 * PDF 内嵌高度按视口; 错误/占位态用同一套 notice 样式。 */

.pd-page { padding: 24px 24px 56px; max-width: 960px; }
.pd-breadcrumb { font-size: 14px; color: var(--fb-gray-text, #64748b); margin: 0 0 16px; }
.pd-breadcrumb a { color: inherit; text-decoration: none; }
.pd-breadcrumb a:hover { text-decoration: underline; }

/* ---- 阅读页头部 ---- */
.pd-header { border-bottom: 1px solid var(--fb-gray-200, #e2e8f0); padding-bottom: 20px; margin-bottom: 24px; }
.pd-kicker { margin: 0 0 8px; font-size: 13px; color: var(--fb-gray-text, #64748b); }
.pd-title { margin: 0 0 14px; font-size: 26px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; word-break: break-word; }
.pd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 20px; margin: 0 0 14px; }
.pd-meta > div { display: flex; flex-direction: column; min-width: 0; }
.pd-meta dt { font-size: 12px; color: var(--fb-gray-text, #64748b); }
.pd-meta dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.pd-state { display: inline-block; margin: 0 0 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #334155; }
.pd-state-ready_text, .pd-state-ready_pdf { background: #ecfdf5; color: #047857; }
.pd-state-pending, .pd-state-held, .pd-state-saved_update_failed { background: #fff7ed; color: #9a3412; }
.pd-state-hidden { background: #f1f5f9; color: #64748b; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.pd-btn { display: inline-block; padding: 9px 14px; border: 1px solid var(--fb-gray-200, #cbd5e1); border-radius: 9px; color: var(--fb-blue, #1d4ed8); font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap; }
.pd-btn:hover { border-color: var(--fb-blue, #1d4ed8); }
.pd-btn-primary { background: var(--fb-blue, #1d4ed8); border-color: var(--fb-blue, #1d4ed8); color: #fff; }
.pd-btn-primary:hover { opacity: 0.92; }
.pd-btn-link { border-color: transparent; padding-left: 4px; padding-right: 4px; }
.pd-notice { margin: 8px 0 0; padding: 10px 14px; border-left: 3px solid #f59e0b; background: #fffbeb; color: #92400e; border-radius: 6px; font-size: 14px; line-height: 1.7; }

/* ---- 已收录要点 ---- */
.pd-points { margin: 0 0 32px; padding: 18px 20px; border: 1px solid var(--fb-gray-200, #e2e8f0); border-radius: 12px; background: #f8fafc; }
.pd-points h2 { margin: 0 0 6px; font-size: 20px; }
.pd-points-caption { margin: 0 0 14px; color: var(--fb-gray-text, #64748b); font-size: 14px; line-height: 1.7; }
.pd-point-list { display: grid; gap: 10px; }
.pd-point { padding: 12px 14px; background: #fff; border: 1px solid var(--fb-gray-200, #e2e8f0); border-radius: 10px; }
.pd-point-title { margin: 0 0 8px; font-size: 16px; overflow-wrap: anywhere; }
.pd-point-type { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--fb-gray-text, #64748b); }
.pd-point-fields { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.pd-point-fields dt { color: var(--fb-gray-text, #64748b); }
.pd-point-fields dd { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.pd-point-hint { color: var(--fb-gray-text, #64748b); font-size: 12px; }
.pd-points-more summary { cursor: pointer; padding: 8px 0; color: var(--fb-blue, #1d4ed8); font-weight: 700; }
.pd-points-updating p { margin: 0; color: #92400e; }

/* ---- 正文块 ---- */
.pd-body h2 { font-size: 20px; margin: 0 0 14px; }
.pd-p { margin: 0 0 14px; line-height: 1.9; font-size: 16px; overflow-wrap: anywhere; }
.pd-h { margin: 22px 0 10px; line-height: 1.4; }
.pd-list { margin: 0 0 14px; padding-left: 1.4em; line-height: 1.9; }
.pd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 18px; max-width: 100%; }
.pd-table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.pd-table caption { text-align: left; padding: 6px 0; color: var(--fb-gray-text, #64748b); }
.pd-table th, .pd-table td { border: 1px solid var(--fb-gray-200, #cbd5e1); padding: 6px 10px; vertical-align: top; white-space: nowrap; }
.pd-table th { background: #f1f5f9; font-weight: 700; }
.pd-pdf-block { margin: 0 0 18px; }
.pd-pdf-label { margin: 0 0 8px; font-size: 14px; color: var(--fb-gray-text, #64748b); }
.pd-pdf-frame { display: block; width: 100%; height: 70vh; min-height: 360px; border: 1px solid var(--fb-gray-200, #e2e8f0); border-radius: 8px; }
.pd-figure { margin: 0 0 18px; }
.pd-figure img { max-width: 100%; height: auto; border-radius: 6px; }
.pd-figure figcaption { font-size: 13px; color: var(--fb-gray-text, #64748b); }

/* ---- 原件 / 来源 ---- */
.pd-assets, .pd-sources { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--fb-gray-200, #e2e8f0); }
.pd-assets h2, .pd-sources h2 { font-size: 18px; margin: 0 0 10px; }
.pd-assets ul, .pd-source-list { padding-left: 1.2em; line-height: 2; }
.pd-footer-note { font-size: 13px; color: var(--fb-gray-text, #64748b); line-height: 1.8; }
.pd-back-links { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; margin-top: 10px; }
.pd-back-links a { color: var(--fb-blue, #1d4ed8); text-decoration: none; }

/* ---- 目录卡片 ---- */
.pd-card-list { display: grid; gap: 12px; margin: 14px 0 0; }
.pd-card { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--fb-gray-200, #e2e8f0); border-radius: 12px; background: #fff; }
.pd-card-own { border-left: 4px solid var(--fb-blue, #1d4ed8); }
.pd-card-main { min-width: 0; flex: 1 1 auto; }
.pd-card-title { margin: 0 0 6px; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.pd-card-title a { color: inherit; text-decoration: none; }
.pd-card-title a:hover { text-decoration: underline; }
.pd-card-meta, .pd-card-sub { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--fb-gray-text, #64748b); }
.pd-card-issuer { color: #334155; font-weight: 600; }
.pd-tag { padding: 1px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; font-size: 12px; }
.pd-tag-period { background: #eff6ff; color: #1d4ed8; }
.pd-card-warning { margin: 6px 0 0; color: #9a3412; font-size: 13px; }
.pd-card-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; align-items: flex-end; }
.pd-section-title { margin: 28px 0 4px; font-size: 20px; }
.pd-section-note { margin: 0; color: var(--fb-gray-text, #64748b); font-size: 14px; }
.pd-directory-notice { margin: 24px 0 0; padding: 12px 14px; background: var(--fb-gray-100, #f1f5f9); border-radius: 10px; font-size: 13px; color: #475569; line-height: 1.7; }
.pd-empty { padding: 24px; background: var(--fb-gray-100, #f1f5f9); border-radius: 10px; }

/* ---- 首页找省 ---- */
/* 过滤靴带在 hidden 属性上; .ps-chip 自己是 display:flex, 会盖掉浏览器对 [hidden] 的默认隐藏,
 * 这里显式压回去(限定在目录板/最近选择/空态, 不影响别处)。 */
[data-province-finder-board] [hidden], .pd-recent[hidden], .pd-finder-empty[hidden] { display: none !important; }
.pd-finder { margin: 0 0 14px; }
.pd-finder-form { display: flex; gap: 8px; max-width: 520px; }
.pd-finder-form input { flex: 1 1 auto; min-width: 0; padding: 11px 14px; border: 1px solid var(--fb-gray-200, #cbd5e1); border-radius: 9px; font-size: 15px; }
.pd-finder-form button { padding: 11px 16px; border: none; border-radius: 9px; background: var(--fb-blue, #1d4ed8); color: #fff; font-weight: 700; cursor: pointer; }
.pd-finder-hint { margin: 6px 0 0; font-size: 13px; color: var(--fb-gray-text, #64748b); }
.pd-recent { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 8px 0 0; font-size: 14px; }
.pd-recent-label { color: var(--fb-gray-text, #64748b); }
.pd-recent-link { padding: 3px 10px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; }
.pd-finder-empty { margin: 12px 0 0; color: #92400e; }

@media (max-width: 768px) {
    .pd-page { padding: 16px 16px 48px; }
    .pd-title { font-size: 22px; }
    .pd-card { flex-direction: column; }
    .pd-card-actions { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; }
    .pd-point-fields { grid-template-columns: 1fr; gap: 2px; }
    .pd-point-fields dt { margin-top: 6px; }
    .pd-pdf-frame { height: 60vh; }
    .pd-finder-form { flex-direction: column; }
}
