/**
 * biddingdtl_seo.css — 招投标详情页 SEO 版专属样式（View/Bidding/details_seo.html）
 * 依赖：seo_base.css（站点头/尾/基础），business.css（右栏旧登录卡与 .Pop-ups 弹窗的类）
 * 原则：公告正文统一在此渲染，正文 HTML 里的表现属性已由控制器 cleanSnapshot() 剥除
 */

/* ===================== 布局骨架（与项目详情页 SEO 版同构） ===================== */
.dtl-wrap { max-width: 1200px; margin: 16px auto 0; padding: 0 16px; display: flex; gap: 24px; align-items: flex-start; }
.dtl-main { flex: 1 1 720px; min-width: 0; }
.dtl-side { flex: 0 0 300px; width: 300px; }

/* ===================== 面包屑 ===================== */
.crumb { max-width: 1200px; margin: 12px auto 0; padding: 0 16px; }
.crumb__in { font-size: 13px; color: #999; line-height: 1.6; }
.crumb__in a { color: #666; text-decoration: none; }
.crumb__in a:hover { color: #ED282A; }
.crumb__in i { font-style: normal; margin: 0 6px; color: #ccc; }

/* ===================== 标题区 ===================== */
.dtl-hd { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px 24px 16px; }
.dtl-hd__title { font-size: 22px; line-height: 1.5; color: #222; font-weight: 600; margin: 0 0 10px; }
.dtl-hd__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: #666; }
.dtl-hd__meta em { font-style: normal; color: #999; margin-right: 4px; }
.dtl-tag { display: inline-block; padding: 0 8px; font-size: 12px; line-height: 22px; border: 1px solid #d9d9d9; border-radius: 4px; color: #1890ff; background: #e6f7ff; border-color: #91d5ff; white-space: nowrap; }
.dtl-tag--orange { color: #fa8c16; background: #fff7e6; border-color: #ffd591; }

/* 操作区（登录用户） */
.dtl-ops { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #eee; }
.dtl-ops__link, .dtl-ops__btn { display: inline-block; padding: 4px 14px; font-size: 13px; line-height: 20px; color: #128bed; background: #f2f9ff; border: 1px solid #b5dcff; border-radius: 4px; text-decoration: none; cursor: pointer; }
.dtl-ops__link:hover, .dtl-ops__btn:hover { background: #e6f4ff; }
.dtl-ops__btn { font-family: inherit; }

/* ===================== 通用卡片 ===================== */
.dtl-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 20px 24px; margin-top: 16px; }
.dtl-card__tt { font-size: 17px; font-weight: 600; color: #333; margin: 0 0 14px; padding-left: 10px; border-left: 3px solid #ED282A; line-height: 1.35; }

/* 基本信息键值表 */
.dtl-dl { margin: 0; font-size: 14px; line-height: 1.7; }
.dtl-dl > div { display: flex; padding: 6px 0; border-bottom: 1px dashed #f0f0f0; }
.dtl-dl > div:last-child { border-bottom: 0; }
.dtl-dl dt { flex: 0 0 96px; color: #999; }
.dtl-dl dd { flex: 1; margin: 0; color: #333; word-break: break-all; }

/* ===================== 参建单位卡 ===================== */
.dtl-cmp { display: flex; flex-wrap: wrap; gap: 12px; }
.dtl-cmp__box { flex: 1 1 220px; min-width: 200px; border: 1px solid #eaf3ff; background: #fafcff; border-radius: 6px; padding: 12px 14px; }
.dtl-cmp__tt { font-size: 13px; color: #999; font-weight: 400; margin: 0 0 6px; }
.dtl-cmp__name { margin: 0 0 10px; font-size: 14px; font-weight: 600; word-break: break-all; }
.dtl-cmp__name a { color: #128bed; text-decoration: none; }
.dtl-cmp__name a:hover { text-decoration: underline; }
.dtl-cmp__stats { list-style: none; margin: 0; padding: 0; display: flex; border-top: 1px solid #eef4fb; }
.dtl-cmp__stats li { flex: 1; text-align: center; padding: 8px 0 2px; cursor: pointer; }
.dtl-cmp__stats strong { display: block; color: #fa8c16; font-size: 20px; line-height: 1.3; }
.dtl-cmp__stats span { font-size: 12px; color: #999; }

/* ===================== 公告正文（清洗后的白名单标签统一在此渲染） ===================== */
#snapshot { font-size: 14px; line-height: 1.9; color: #333; word-break: break-word; overflow-wrap: break-word; }
#snapshot p { margin: 0 0 10px; }
#snapshot p:last-child { margin-bottom: 0; }
#snapshot h3, #snapshot h4, #snapshot h5 { font-size: 15px; font-weight: 600; color: #222; margin: 16px 0 8px; }
#snapshot ul, #snapshot ol { margin: 0 0 10px; padding-left: 22px; }
#snapshot li { margin-bottom: 4px; }
#snapshot a { color: #128bed; text-decoration: none; }
#snapshot a:hover { text-decoration: underline; }
#snapshot blockquote { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid #e0e0e0; color: #666; background: #fafafa; }
#snapshot img { max-width: 100%; height: auto; }
#snapshot hr { border: 0; border-top: 1px solid #eee; margin: 14px 0; }
/* 公告正文表格（招投标公告大量使用表格，统一新版样式） */
#snapshot table { width: 100%; border-collapse: collapse; margin: 0 0 12px; table-layout: auto; }
#snapshot th, #snapshot td { border: 1px solid #e5e5e5; padding: 8px 10px; font-size: 13px; line-height: 1.7; text-align: left; vertical-align: top; word-break: break-word; }
#snapshot th { background: #f7f8fa; font-weight: 600; color: #333; }
#snapshot tr:nth-child(even) td { background: #fbfbfc; }
.dtl-errmsg { color: #ff4d4f; font-size: 13px; margin: 10px 0 0; }

/* 掩码提示条（Layout:login_pop 输出的裸 span，包在正文卡内做样式收敛） */
.dtl-card--body > span { display: block; font-size: 13px; color: #666; background: #fff8e6; border: 1px solid #ffe1a8; border-radius: 4px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.8; }
.dtl-card--body > span span { color: #128bed; cursor: pointer; }

/* ===================== 登录引导 CTA ===================== */
.dtl-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(90deg, #fff7ef, #fff); border: 1px solid #ffe3c8; border-radius: 8px; padding: 16px 20px; margin-top: 16px; }
.dtl-cta__txt strong { display: block; font-size: 15px; color: #333; margin-bottom: 4px; }
.dtl-cta__txt span { font-size: 13px; color: #999; }
.dtl-cta__btn { flex: 0 0 auto; padding: 9px 22px; background: #ED282A; color: #fff; font-size: 14px; border-radius: 4px; text-decoration: none; }
.dtl-cta__btn:hover { background: #d41f22; }

/* ===================== 底部推荐 ===================== */
/* 你可能感兴趣的招标信息：外框 + 两列紧凑列表，行与行之间虚线分隔 */
.dtl-reco { max-width: 1200px; margin: 16px auto 24px; padding: 0 16px; }
.dtl-reco__hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dtl-reco__tt { font-size: 16px; font-weight: 600; color: #333; margin: 0; padding-left: 10px; border-left: 3px solid #ED282A; line-height: 1.3; }
.dtl-reco__more { flex: none; font-size: 13px; color: #9aa2ad; }
.dtl-reco__more:hover { color: #ED282A; }
.dtl-reco__box { background: #fff; border: 1px solid #ebeef3; border-radius: 8px; padding: 2px 20px; }
.dtl-reco__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.reco-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 0; border-top: 1px dashed #e6e9ef; }
.reco-item:nth-child(1), .reco-item:nth-child(2) { border-top: 0; }
.reco-item__tt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #333; text-decoration: none; }
.reco-item__tt:hover { color: #ED282A; }
.reco-item__type { flex: none; font-size: 12px; color: #ED282A; background: #fff2f0; border: 1px solid #ffd9d6; border-radius: 3px; padding: 0 6px; line-height: 18px; }
.reco-item__area { flex: none; font-size: 12px; color: #5b6472; background: #f4f6fa; border-radius: 3px; padding: 0 6px; line-height: 18px; }
.reco-item__area:hover { color: #fff; background: #ED282A; }
.reco-item__time { flex: none; font-size: 12px; color: #9aa2ad; }
/* ===================== 右侧栏 ===================== */
.side-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 16px 18px; margin-top: 16px; }
.side-card:first-child { margin-top: 0; }
.side-card__tt { font-size: 15px; font-weight: 600; color: #333; margin: 0 0 12px; padding-left: 9px; border-left: 3px solid #ED282A; line-height: 1.3; }
.side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-tags a { display: inline-block; padding: 3px 10px; font-size: 12px; color: #555; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 3px; text-decoration: none; }
.side-tags a:hover { border-color: #ED282A; color: #ED282A; background: #fff; }
/* 省级导航标签：两列等宽铺满（文案为"XX招标采购信息"） */
.side-tags--prov a { flex: 1 1 calc(50% - 4px); min-width: 0; padding-left: 5px; padding-right: 5px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 招标进度时间轴 */
.side-timeline { list-style: none; margin: 0; padding: 0; }
.side-timeline__item { position: relative; padding: 0 0 16px 18px; border-left: 2px solid #e8e8e8; margin-left: 4px; }
.side-timeline__item:last-child { padding-bottom: 2px; }
.side-timeline__item::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #c9d4e0; }
.side-timeline__item.is-cur { border-left-color: #f9535a; }
.side-timeline__item.is-cur::before { background: #f9535a; }
.side-timeline__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #999; margin-bottom: 4px; }
.side-timeline__type { color: #70b603; background: #ebffca; border-radius: 3px; padding: 0 6px; line-height: 18px; }
.side-timeline__cur { color: #fff; background: #f9535a; border-radius: 3px; padding: 0 6px; line-height: 18px; }
.side-timeline__item a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: #555; line-height: 1.6; text-decoration: none; }
.side-timeline__item a:hover { color: #1890ff; }

/* ===================== 弹窗（原 #business-modal 重写样式，id 保持 JS 依赖） ===================== */
.dtl-modal { position: fixed; inset: 0; z-index: 1000; }
.dtl-modal__mask { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.dtl-modal__body { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 380px; max-width: 90vw; background: #fff; border-radius: 8px; overflow: hidden; }
.dtl-modal__hd { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #f7f8fa; font-size: 14px; color: #333; }
.dtl-modal__close { font-style: normal; font-size: 18px; line-height: 1; color: #999; cursor: pointer; }
.dtl-modal__close:hover { color: #333; }
.dtl-modal__bd { padding: 20px 16px; font-size: 14px; color: #333; line-height: 1.8; }
.dtl-modal__bd strong { color: #ff4d4f; padding: 0 2px; }
.dtl-modal__ft { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #f0f0f0; }
.dtl-modal__btn { padding: 6px 18px; font-size: 13px; border-radius: 4px; border: 1px solid #d9d9d9; background: #fff; color: #333; cursor: pointer; font-family: inherit; }
.dtl-modal__btn--pri { background: #1890ff; border-color: #1890ff; color: #fff; }
.dtl-modal__btn--pri:hover { background: #40a9ff; }

/* listslogin 内"服务协议弹窗"的关闭图标不加载 layui.css，用字符兜底 */
.layui-icon-close::before { content: "\2715"; font-style: normal; }

/* "登录后查看"标记：蓝色高亮 + 下虚线（点击唤起注册/登录弹框，showRegister 见 seo_reglogin） */
.dtl-mask { color: #0a7cf5; border-bottom: 1px dashed #0a7cf5; cursor: pointer; padding: 0 1px; }
.dtl-mask:hover { color: #0968cf; border-bottom-color: #0968cf; }

/* ===================== 公告概要 ===================== */
.dtl-card--intro { background: #fffdf6; border-color: #f3e6c4; }
.dtl-intro { margin: 0; font-size: 14px; line-height: 1.9; color: #4e5969; }

/* ===================== 头部用户下拉（已登录，display:none 不入 SEO 正文） ===================== */
.sh-user__menu { position: relative; padding-bottom: 16px; margin-bottom: -16px; }
.sh-user__name { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 500; cursor: pointer; white-space: nowrap; }
.sh-user__avatar, .sh-user__card-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #eef4ff; }
.sh-user__caret { font-style: normal; font-size: 11px; color: #86909c; transition: transform .15s; }
.sh-user__panel { position: absolute; right: 0; top: 100%; width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,30,50,.12); padding: 8px; display: none; z-index: 950; }
/* 面板上方的全宽 hover 桥接层：鼠标从姓名斜向移动到面板内任意按钮都不丢 :hover */
.sh-user__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }
.sh-user__menu:hover .sh-user__panel, .sh-user__menu.is-open .sh-user__panel { display: block; }
.sh-user__menu:hover .sh-user__caret, .sh-user__menu.is-open .sh-user__caret { transform: rotate(180deg); }
.sh-user__card { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.sh-user__card-avatar { width: 44px; height: 44px; }
.sh-user__card-info strong { display: block; font-size: 15px; color: #1f2329; line-height: 1.5; }
.sh-user__badge { display: inline-block; margin-top: 2px; font-size: 12px; color: #0a7cf5; line-height: 1; }
.sh-user__badge i { font-style: normal; margin-right: 2px; }
.sh-user__row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; font-size: 13px; color: #333; cursor: pointer; }
.sh-user__row:hover { background: #f5f7fa; color: var(--brand); }
.sh-user__ico { font-style: normal; font-size: 14px; color: #86909c; }
.sh-user__row:hover .sh-user__ico { color: var(--brand); }
.sh-user__out { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
/* 客服卡（默认收起，点"我的专属客服"或悬浮展开） */
.sh-user__kf { display: none; margin: 4px 6px 8px; padding: 10px 12px; background: #f7faff; border: 1px solid #dce8ff; border-radius: 8px; font-size: 12px; color: #4e5969; line-height: 1.9; }
.sh-user__kf.is-open, .sh-user__menu:hover .sh-user__kf { display: block; }
.sh-user__kf-hd { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #1f2329; margin-bottom: 2px; }
.sh-user__tousu { color: #fff; background: #f54a45; font-size: 12px; line-height: 1; padding: 3px 8px; border-radius: 3px; }
.sh-user__tousu:hover { color: #fff; background: #d93631; }

/* 指派弹窗关闭钮（.clolse 全站旧样式缺失，此处兜底） */
.Pop-ups .clolse { position: absolute; top: 12px; right: 16px; width: 28px; height: 28px; line-height: 26px; text-align: center; font-size: 18px; color: #999; cursor: pointer; }
.Pop-ups .clolse:hover { color: #333; }

/* ===================== 响应式 ===================== */
/* 1100 以下侧栏收窄（保持两栏）；768 以下才折叠单栏。
   992 会把半屏窗口/125% 缩放的浏览器误判成移动端，导致"侧栏掉底、页面全单栏"。 */
@media (max-width: 1100px) {
  .dtl-side { flex: 0 0 260px; width: 260px; }
}
@media (max-width: 768px) {
  .dtl-wrap { flex-direction: column; }
  .dtl-side { width: 100%; flex: 1 1 auto; }
  .dtl-reco__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dtl-hd, .dtl-card { padding: 14px; }
  .dtl-hd__title { font-size: 18px; }
  .dtl-dl dt { flex-basis: 84px; }
}
