/* 江苏招投标情报 — 组件库
 * 依赖: tokens.css + Bootstrap 5
 * 命名: yc-{component}-{variant}
 */

/* ═══════════════════════════════════════════════════════════
 *   全局
 * ═══════════════════════════════════════════════════════════ */
*       { scrollbar-width: thin; scrollbar-color: var(--yc-muted) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: var(--yc-border-strong); border-radius: var(--yc-radius-pill); }
*::-webkit-scrollbar-thumb:hover { background: var(--yc-muted); }

body {
    font-family: var(--yc-font-sans);
    font-size: var(--yc-text-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a:focus-visible, button:focus-visible, .btn:focus-visible,
.nav-link:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--yc-primary);
    outline-offset: 2px;
    border-radius: var(--yc-radius-sm);
}

.tabular-nums { font-variant-numeric: tabular-nums; font-family: var(--yc-font-num); }

/* ═══════════════════════════════════════════════════════════
 *   侧栏 + 主内容
 * ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--yc-sidebar-width); height: 100vh;
    background: var(--yc-sidebar-bg);
    border-right: 1px solid var(--yc-border);
    z-index: var(--yc-z-sidebar);
    display: flex; flex-direction: column;
    transition: transform var(--yc-dur-base) var(--yc-ease-standard);
}
.sidebar-brand {
    padding: 1.1rem 1rem;
    font-size: var(--yc-text-md);
    font-weight: 700;
    color: var(--yc-primary);
    border-bottom: 1px solid var(--yc-border);
    display: flex; align-items: center; gap: .5rem;
    letter-spacing: .01em;
}
.sidebar-brand i { font-size: 1.3rem; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .5rem 0; }

/* 折叠分组 — 使用 <details> 原生 a11y */
.sidebar-group { border-bottom: 1px solid transparent; margin: 0; }
.sidebar-group > summary {
    list-style: none;
    cursor: pointer;
    padding: .5rem 1rem .35rem;
    font-size: var(--yc-text-xxs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--yc-muted);
    font-weight: 600;
    display: flex; align-items: center; justify-content: space-between;
    user-select: none;
    transition: color var(--yc-dur-fast);
}
.sidebar-group > summary::-webkit-details-marker { display: none; }
.sidebar-group > summary:hover { color: var(--bs-body-color); }
.sidebar-group > summary::after {
    content: "\F282"; /* bi-chevron-down */
    font-family: "bootstrap-icons";
    font-size: .7rem;
    transition: transform var(--yc-dur-fast);
}
.sidebar-group[open] > summary::after { transform: rotate(180deg); }
.sidebar-group.primary > summary { color: var(--yc-primary); font-weight: 700; }

.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: .625rem;
    padding: .55rem 1rem;
    color: var(--bs-body-color);
    font-size: var(--yc-text-sm);
    border-radius: 0;
    transition: background var(--yc-dur-fast), color var(--yc-dur-fast);
    position: relative;
}
.sidebar-nav .nav-link:hover { background: var(--yc-hover); color: var(--yc-primary); }
.sidebar-nav .nav-link.active {
    background: rgba(var(--yc-primary-rgb), .12);
    color: var(--yc-primary);
    font-weight: 600;
}
.sidebar-nav .nav-link.active::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--yc-primary);
}
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; }
/* 独立工具项 (需求反馈): 与上方分组留一道淡分隔, 显得有意为之 */
.sidebar-nav .nav-link-standalone { margin-top: .35rem; border-top: 1px solid var(--yc-border); padding-top: .55rem; }
.sidebar-nav .nav-link .yc-kbd {
    margin-left: auto; font-size: var(--yc-text-xxs);
    color: var(--yc-muted); padding: 1px 5px;
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-sm);
    font-family: var(--yc-font-mono);
}
.sidebar-footer {
    border-top: 1px solid var(--yc-border);
    padding: .5rem 1rem;
    font-size: var(--yc-text-xxs);
    color: var(--yc-muted);
    line-height: 1.5;
}
/* 备案区: ICP + 公安 各占一行居中, 图标文字对齐, 低调但可读 */
.sidebar-footer .yc-beian {
    display: flex; flex-direction: column; align-items: center; gap: .18rem;
    text-align: center;
}
.sidebar-footer .yc-beian-link {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--yc-muted); text-decoration: none;
    transition: color var(--yc-dur-fast);
    line-height: 1.35;
}
.sidebar-footer .yc-beian-link:hover { color: var(--yc-text-secondary); }
.sidebar-footer .yc-beian-link img { display: block; flex-shrink: 0; }
/* 页脚快捷行: 客服·索引·数据 单词条目横排一行, 分隔符为不可点的 span */
.sidebar-footer .yc-beian-row { display: flex; align-items: center; gap: .5rem; }
/* 抽屉 (<992) 里的页脚快捷链接触控高度 ≥32px (原 24×16 太小, 2026-09-06 移动复审) */
@media (max-width: 991.98px) {
    .sidebar-footer .yc-beian-row { gap: .15rem; }
    .sidebar-footer .yc-beian-row .yc-beian-link { padding: .5rem .45rem; min-height: 32px; }
}
/* 抽屉工具行 (2026-09-06, 移动顶栏预算): 三等分, 图标 + 两字标签, 只在抽屉 (<992) 出现 */
.yc-drawer-tools {
    display: flex; gap: .4rem; margin: 0 0 .55rem;
}
.yc-drawer-tool {
    flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
    height: 36px; padding: 0 .2rem;
    font-size: .75rem; color: var(--yc-text-secondary);   /* 288px 抽屉里 "我的企业" 四字 + 图标要在 80px 内放下 */
    background: var(--yc-hover, rgba(0, 0, 0, .03)); border: 1px solid var(--yc-border); border-radius: var(--yc-radius-md);
    white-space: nowrap; overflow: hidden;
}
.yc-drawer-tool > span { overflow: hidden; text-overflow: ellipsis; }
.yc-drawer-tool .bi { font-size: .95rem; }
.yc-drawer-tool:hover { color: var(--bs-body-color); border-color: var(--yc-primary); }

/* 主内容区.
 * 纵向 flex 是为了让"整块画布"型页面 (.page-body--fill) 能直接占满顶栏与公告条之后
 * 剩下的高度, 而不必自己去算 100dvh 减掉什么 —— 那种减法漏一项就塌 (顶栏在窄屏换行、
 * 站点公告条出现时都会漏), 且漏了只在特定条件下现形.
 * 对其余页面无影响: main 作为 flex item 默认 flex:0 1 auto, 高度仍由内容决定. */
.main-content {
    margin-left: var(--yc-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--yc-dur-base) var(--yc-ease-standard);
}
.topbar {
    position: sticky; top: 0; z-index: var(--yc-z-topbar);
    height: var(--yc-topbar-height);
    padding: 0 var(--yc-page-pad-x);
    background: color-mix(in srgb, var(--yc-sidebar-bg) 88%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--yc-border);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar .page-title { font-size: var(--yc-text-base); font-weight: 600; margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }

/* 顶栏会员订阅 CTA: 收费要约的常驻高可见入口 (ICP 合规可见性 + 转化)。
 * 蓝→亮紫两段渐变跨满按钮 — 小尺寸胶囊上三色相/深紫中停实测显得沉且短促
 * (2026-08-27 用户反馈), 青色只保留在呼吸光晕里; 白字对比: 尾段 violet-600
 * ≈5.7:1、中段 ≈4.8:1, 配合 700 字重与文字投影兜底。 */
.yc-vip-cta {
    display: inline-flex; align-items: center; gap: .32rem;
    height: 31px; padding: 0 .85rem;
    border-radius: var(--yc-radius-pill);
    font-size: .8rem; font-weight: 700; letter-spacing: .01em;
    color: #fff; text-decoration: none; white-space: nowrap;
    text-shadow: 0 1px 2px rgb(0 0 0 / .22);
    background: linear-gradient(118deg, var(--yc-primary), #7c3aed);
    box-shadow: 0 2px 10px -2px rgb(124 58 237 / .45);
    animation: yc-vip-breathe 3.6s var(--yc-ease-standard) infinite;
    transition: transform var(--yc-dur-fast), filter var(--yc-dur-fast), box-shadow var(--yc-dur-base);
}
.yc-vip-cta:hover, .yc-vip-cta:focus-visible {
    color: #fff; transform: translateY(-1px); filter: brightness(1.08);
    box-shadow: 0 4px 16px -4px rgba(var(--yc-primary-rgb), .6);
}
.yc-vip-cta:focus-visible { outline: 2px solid rgba(var(--yc-primary-rgb), .5); outline-offset: 2px; }
.yc-vip-cta .bi { font-size: .85rem; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .2)); }
/* 992-1200 区间搜索框仍在而横向最紧 (未登录 SEO 长标题 + 数据徽章会被贴住),
 * 只在此区间收成图标胶囊; ≥1200 与 768-992 (搜索框已隐藏) 均放出完整文字 */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .yc-vip-cta > span { display: none !important; }
    .yc-vip-cta { padding: 0 .6rem; }
}
/* 呼吸光晕: 紫→青缓慢交替吸引视线; 全局 prefers-reduced-motion 规则会自动停掉 */
@keyframes yc-vip-breathe {
    0%, 100% { box-shadow: 0 2px 10px -2px rgb(124 58 237 / .45); }
    50%      { box-shadow: 0 2px 15px 0 rgba(var(--yc-accent-rgb), .5); }
}

/* 主内容区: 默认满屏 (Bloomberg/Datadog/Grafana 模式).
 * 横向 padding 使用 clamp() 在超宽屏上自适应增大, 维持信息密度与视觉透气感.
 * .page-body--narrow 修饰符用于少数阅读型页面 (登录/注册/反馈/错误页), 居中收窄到 720px. */
.page-body {
    padding: var(--yc-page-pad-y) clamp(var(--yc-page-pad-x), 2.4vw, 2.5rem);
    width: 100%;
}
.page-body--narrow {
    max-width: 720px;
    margin: 0 auto;
}
/* .page-body--fill 给"内容自己就是一整块画布"的页面 (目前只有 AI助手 的对话面板).
 *
 * 高度靠 flex 从父容器领剩余空间, 不自己算 —— 原先写 calc(100dvh - 顶栏高) 是把
 * "顶栏之上/之下还有什么"硬编码进了减法里: 顶栏在窄屏换行变高、站点公告条一出现,
 * 减法就漏项, 面板要么溢出视口底部 (输入框被 overflow 裁掉、永远够不着) 要么塌掉.
 * flex 让浏览器自己算剩下多少, 前面加几个条都不用改这里.
 *
 * min-height 是兜底而非布局手段: 万一父链的 flex 高度因某种原因没传下来 (被别的
 * 规则改了 display、或旧引擎), 面板至少还有 420px 能用 —— 塌成一条只能看见半行字
 * 的对话框, 比多出一截滚动条严重得多.
 *
 * padding 归零: 面板要贴边铺满, 外层再留白就会把它挤出视口底部. */
.page-body--fill {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* min-height:0 必须写: flex item 默认 min-height:auto, 内部滚动区会把自己
     * 撑到内容高度而不是被容器裁住, 于是"铺满"变成"越聊越长". */
    min-height: 0;
    overflow: hidden;
}
.page-body--fill > * {
    flex: 1 1 auto;
    min-height: 420px;
}

/* 命令面板触发器 */
.yc-cmdk-trigger {
    display: flex; align-items: center; gap: .5rem;
    padding: .35rem .75rem;
    background: var(--yc-card-bg);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-md);
    color: var(--yc-muted);
    font-size: var(--yc-text-sm);
    transition: border-color var(--yc-dur-fast);
    min-width: 200px;
}
.yc-cmdk-trigger:hover { border-color: var(--yc-primary); color: var(--bs-body-color); }
.yc-cmdk-trigger .yc-kbd { margin-left: auto; }
.yc-kbd {
    font-family: var(--yc-font-mono);
    font-size: var(--yc-text-xxs);
    padding: 1px 6px;
    border: 1px solid var(--yc-border);
    border-bottom-width: 2px;
    border-radius: var(--yc-radius-sm);
    color: var(--yc-text-secondary);
    background: var(--yc-card-bg);
}

/* ═══════════════════════════════════════════════════════════
 *   卡片
 * ═══════════════════════════════════════════════════════════ */
.yc-card {
    background: var(--yc-card-bg);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-lg);
    overflow: hidden;
    transition: border-color var(--yc-dur-fast), box-shadow var(--yc-dur-fast);
}
.yc-card.interactive:hover { border-color: var(--yc-border-strong); box-shadow: var(--yc-shadow-md); }
.yc-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--yc-border);
    padding: .65rem 1rem;
    font-weight: 600;
    font-size: var(--yc-text-sm);
    display: flex; align-items: center; gap: .5rem;
    min-height: 44px;
    /* 装不下就换行, 任何宽度都不许裁掉控件: 1440px 桌面实测公告列表的视图切换按钮、项目列表的
       排序下拉被卡片右缘切掉一半 (2026-09-04 截图实拍)。只在溢出时生效。 */
    flex-wrap: wrap; row-gap: .4rem;
    /* 不用 justify-content:space-between: 它把裸文本也当成一个 flex 项, 于是
       `<i class="bi"></i> 标题` 这种写法 (全站 28 处) 会把图标钉在左、标题推到最右
       (2026-09-04 实测 Go/No-Go、报价建议区间、中标项目 等卡片标题都靠右)。改为左对齐,
       只把**最后一个**元素子节点 (计数徽章 / 动作区) 推到右侧 —— 两子节点的常见形态
       (标题 + 徽章) 效果不变, 三子节点时徽章贴着标题而不是悬在中间。 */
    justify-content: flex-start;
}
.yc-card .card-header > :last-child:not(:first-child) { margin-left: auto; }
.yc-card .card-header .yc-card-actions {
    display: inline-flex; gap: .25rem; align-items: center;
    flex-wrap: wrap; justify-content: flex-end; min-width: 0;
}
/* 标题不可被 actions 压缩成竖排单字列 (2026-06-10 审计 P2: 移动端 /bid/); 窄屏整体换行 */
.yc-card .card-header > span:first-child,
.yc-card .card-header > h2:first-child { flex-shrink: 0; }
/* 卡片标题语义化: h2 视觉与原 span 完全一致 (SEO 体检 P0-3: 页面需要 h2 层级).
   原先只写在 detail.html 的 extra_css 里, 主体页也要用 —— 抄第二份的那一刻两份就
   开始各自漂移, 故收敛到此处 (与 .quick-table 同一次上移). */
.card-header h2 { font-size: inherit; font-weight: inherit; margin: 0; display: inline; line-height: inherit; }
@media (max-width: 576px) {
    .yc-card .card-header { flex-wrap: wrap; row-gap: .4rem; min-height: auto; }
    /* 标题簇 (标题 + 口径小字) 在窄屏允许收缩换行: flex-shrink:0 让 "今日推荐机会 Top 10 · 南京 · 看全国 · 共 472 个
       可投标机会" 整串溢出卡片被裁掉 (2026-09-06 360px 实拍)。动作区在 <576 已独占一行, 这里不会再被挤成竖排 */
    .yc-card .card-header > span:first-child { flex-shrink: 1; min-width: 0; }
    .yc-card .card-header .yc-card-actions { flex-wrap: wrap; width: 100%; gap: .3rem; }
    /* 筛选控件: 原 flex:1 + min-width:0 把 6 个控件硬挤进一行, 而 <select> 不做
       省略号、只会把字切一半 —— 390px 实测 "全部评标方式"→"全部评彬"、
       "搜索项目/采购方"→"搜索项E"。改为保底宽度 + 允许换行 (容器已 flex-wrap)。
       select 必须单独留右侧箭头位, 否则统一的 .3rem padding 让箭头压住文字。 */
    .yc-card .card-header .yc-card-actions .form-select-sm,
    .yc-card .card-header .yc-card-actions .form-control-sm {
        width: auto !important; flex: 1 1 7.5rem; min-width: 7.5rem;
        font-size: var(--yc-text-xs); padding: .2rem .35rem;
    }
    .yc-card .card-header .yc-card-actions .form-select-sm { padding-right: 1.4rem; }
}
.yc-card .card-body { padding: .9rem 1rem; }

/* ═══════════════════════════════════════════════════════════
 *   指标卡 (Stat)
 * ═══════════════════════════════════════════════════════════ */
.stat-card {
    background: var(--yc-card-bg);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-lg);
    padding: 1rem 1.1rem;
    display: flex; align-items: flex-start; gap: .9rem;
    transition: border-color var(--yc-dur-fast);
}
.stat-card:hover { border-color: var(--yc-border-strong); }
.stat-card .stat-icon {
    width: 40px; height: 40px; border-radius: var(--yc-radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; flex-shrink: 0;
}
.stat-card .stat-body { min-width: 0; flex: 1; }
.stat-card .stat-value {
    font-size: var(--yc-text-xl); font-weight: 700; line-height: 1.15;
    font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.stat-card .stat-label {
    font-size: var(--yc-text-xs);
    color: var(--yc-muted);
    margin-top: .15rem;
    display: flex; align-items: center; gap: .25rem;
}
/* 紧凑顶栏指标 */
.yc-stat-strip { display: flex; gap: .25rem; flex-wrap: wrap; }
.yc-stat-strip .stat-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .75rem;
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-pill);
    background: var(--yc-card-bg);
    font-size: var(--yc-text-xs);
    color: var(--yc-text-secondary);
}
.yc-stat-strip .stat-pill b { color: var(--bs-body-color); font-variant-numeric: tabular-nums; }

/* 提示型标签下划线 —— 只给有悬停的设备: 触屏没有 hover, 虚线只会像坏掉的样式
   (2026-09-06 360px 实拍: KPI 标签、卡片标题下面一排虚线) */
@media (hover: hover) {
    [data-bs-toggle="tooltip"][title]:not(.btn):not(.nav-link),
    .stat-label[data-bs-toggle="tooltip"],
    .card-header [data-bs-toggle="tooltip"],
    th[data-bs-toggle="tooltip"] {
        border-bottom: 1px dashed currentColor;
        text-decoration: none;
        cursor: help;
    }
}

/* ═══════════════════════════════════════════════════════════
 *   表格
 * ═══════════════════════════════════════════════════════════ */
.table {
    --bs-table-bg: transparent;
    font-size: var(--yc-text-sm);
    margin-bottom: 0;
}
.table thead th {
    font-weight: 600;
    font-size: var(--yc-text-xs);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--yc-muted);
    border-bottom: 1px solid var(--yc-border);
    padding: .55rem .65rem;
    white-space: nowrap;
}
.table thead.sticky-top th { background: var(--yc-card-bg); z-index: 2; }
.table td {
    border-color: var(--yc-border);
    vertical-align: middle;
    padding: .55rem .65rem;
}
/* 2026-04-22 (v2): 表格列宽策略 — 修正用户反馈的"城市区域浪费 + 采购方被限死".
 *
 * 第一性原理: HTML table 的列宽分配规则 —
 *   - 带 width/max-width 的列: 不超过该值
 *   - 只有 min-width 或无约束的列: **贪婪占用剩余空间**
 *
 * 上一版 bug: col-org 有 max-width:220, col-city/area 只有 min-width → 浏览器把
 * 剩余空间全给了 city/area (贪婪), 采购方反而被卡在 220px. 完全相反.
 *
 * SOTA 策略 (参考 Jira/Linear/GitHub issue list):
 *   - 已知短的列 (城市/区域/日期/金额/计数): **width + max-width 三管齐下**, 严格锁死
 *   - 内容可变的列 (项目名/采购方/中标方): **只设 min-width, 无 max-width**,
 *     自然吸收剩余空间, 长则单行显示完整, 极长则折行
 */

/* 城市: "盐城市 / 南京市 / 宿迁市" 3-4 字, 74px 足够 */
.table .col-city {
    white-space: nowrap;
    width: 74px;
    min-width: 66px;
    max-width: 74px;
}
/* 区域: "盐城市大丰区 / 云龙区" 2-6 字, 88px 足够 */
.table .col-area {
    white-space: nowrap;
    width: 88px;
    min-width: 72px;
    max-width: 88px;
}
/* 锁死宽度 + nowrap 却不裁剪 = 文字画到邻列上面去。
 * 上面两条的宽度是按江苏时期的"盐城市/南京市"3-4 字定的。开全国 31 省后进来一批
 * 7-8 字的名字 —— 甘孜藏族自治州(需 101px, 只有 74)、新疆维吾尔自治区(需 114px)、
 * 马边彝族自治县、昌吉回族自治州。既不换行(nowrap)又不裁剪(overflow 默认 visible),
 * 于是超出的字直接压在右邻列的文字上, 两列糊成一片乱码。
 * 实测 /search/ /list/ /bid/ 三张表都在发生, 全是民族自治州/自治县/自治区。
 * 加宽这两列不可行: 决策中心 13 列的表已横向溢出 263px (同见下方 col-1line 那段),
 * 只能等量置换。故与同文件对稠密表次要列的既定策略一致 —— 单行省略号。 */
.table .col-city,
.table .col-area {
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 区域单元格可点即筛。默认不加下划线, 只在 hover 时露出虚线 —— 每行都带下划线会
   让表格看起来满是链接, 反而盖过标题这个真正的主信息。 */
.yc-area-cell {
    cursor: pointer;
    border-bottom: 1px dashed transparent;
    transition: border-color .12s, color .12s;
}
.yc-area-cell:hover {
    color: var(--yc-primary, #0d6efd);
    border-bottom-color: currentColor;
}

/* 核心识别字段: 项目名 / 公告标题 — 主信息, 完全自适应吸收剩余空间.
 * 数据驱动 (26 万项目实测): P95=45 字, P99=61 字, avg=24.7 字.
 * 无 max-width 让项目名独占剩余空间 (业务主信息), 极长名 (>40 字) 折行兜底. */
.table .col-name {
    min-width: 220px;
    /* 无 max-width: 项目名是主信息, 吸收剩余空间 */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
    font-size: var(--yc-text-sm);
}
/* 组织名: 采购方 / 中标方 / 代理 — 辅助信息, 自适应但**不过宽**.
 * 数据驱动 (20 万实体实测): P95=19 字, P99=25 字, avg=12.5 字.
 * max-width 300px ≈ 20 字单行, 覆盖 95% 场景单行显示, 多余空间流向 col-name (项目名).
 * 极长名 (P99, 约 1% 场景) 折行兜底, 仍能完整阅读不截断. */
.table .col-org {
    min-width: 160px;
    max-width: 300px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
    font-size: var(--yc-text-sm);
}
/* 上面"极长名才折行"的兜底分支, 在列数多到装不下的表里会对几乎每一行生效 ——
 * 决策中心 13 列实测: 容器 1289px / 表格 1387px (1600px 桌面已横向溢出 98px),
 * 于是 col-org 恒被压到 min-width 160px ≈ 11 字, 而名称 p50=12 字, 按字断行把
 * 末字甩成孤字 ("如皋市交通事业发展中" / "心"), 行高 43~118px 参差。
 *
 * 这类稠密表的次要识别列改单行省略号 —— 与本节开头引为基准的 Jira/Linear/GitHub
 * 一致 (它们对次要列truncate、只让主列换行)。实测被省略的几乎都是"有限公司/
 * 管理中心"等通用后缀, 前缀(地区+职能)足以识别, 完整名在 title 里。
 *
 * 变更前须验证: 宽度不得低于 200px —— 实测 200px 截断率 48%, 退回 160px 则跳到
 * 72%(连 11 字的典型名都被切)。加宽同样不可: 表格已溢出, 只能与同表其他列等量
 * 置换 (本次由「发布日」省去冗余年份让出 ~38px)。 */
.table .col-org.col-1line,
.table .col-org.col-1line-fit {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 宽度锁死 — 只给已横向溢出、必须逐像素配平的表 (决策中心 13 列溢出 263px). */
.table .col-org.col-1line {
    min-width: 200px;
    max-width: 200px;
}
/* 项目列表的宽度预算 —— 与上面锁死 200px 的差别是刻意的.
 *
 * RELOAD-CRITICAL 级坑: nowrap 单元格的 min-content = 整串文本宽度, 而表格
 * 自动布局**不遵守** .col-org 的 max-width:300px 作为分配上限 (2560px 实测涨到
 * 355px)。所以只加 nowrap 不钉宽, 该列的 min-content 会直接顶到 300px, 把表格
 * 最小宽从 1137 撑到 1267 —— 1440px 实测凭空多出 130px 横向滚动。
 * 结论: 本变体必须同时钉 min-width 与 max-width, 二者缺一即溢出。
 *
 * 取值依据 (容器宽 ≈ 视口 - 310px 侧边栏/留白, 表格最小宽 = 977 + 本列宽):
 *   <1536px: 160px —— 1440px 容器 1137 恰好等于表格最小宽, 零余量, 不能再宽
 *            (同表可回收余量实测仅 ~15px: 操作 8/状态 6/评标 3, 凑不出 30px;
 *             从项目名列匀更不可取, 会推高"两行看起来同名"的碰撞率)
 *   ≥1536px: 220px —— 容器 1228 ≥ 表格最小宽 1197, 仍余 31px
 * 截断率实测: 160px→66.8%, 180→46.3%, 200→35.2%, 220→19.8%。
 * 不钉宽而让它随余量疯长的另一面是: 1920px 下项目名会独吞到 645px (2 行只需
 * 约 300px), 采购方却仍饿在 160px —— 分配失衡, 故这里按断点显式配平。 */
.table .col-org.col-1line-fit {
    min-width: 160px;
    max-width: 160px;
}
@media (min-width: 1536px) {
    .table .col-org.col-1line-fit {
        min-width: 220px;
        max-width: 220px;
    }
}
/* 紧凑字段 (数值/日期/标签): 只 nowrap, 不设 width 让 HTML 按内容自然宽度 */
.table .col-num, .table .col-date, .table .col-tag {
    white-space: nowrap;
}

/* 关键信息表 (可引用摘要块的事实层, 见《SEO-GEO 通用技术标准》§1.3): 紧凑两列.
   消费方: /detail/ 公告页与 /entity/ 主体页 —— 同一形态服务同一目的 (人能扫读、
   AI 能原样摘抄), 所以只应有一份定义. */
.quick-table { font-size: .85rem; margin: 0; }
.quick-table th { width: 112px; font-weight: 500; color: var(--yc-muted); white-space: nowrap; }
.quick-table td, .quick-table th { padding: .32rem .5rem; border-color: var(--yc-border); }

/* 主列表视口自适应容器 — 替代 inline "max-height:Npx;overflow-y:auto".
 * 数据驱动预算: yc-nav(56) + 页标题(40) + 过滤卡(140) + 列表头(48) + 呼吸(30) ≈ 314 → 取 320.
 * 100dvh (dynamic viewport) 在 iOS Safari / Chrome 稳定覆盖 100vh.
 * min-height 320 保证超小屏 (≥720 高, 减掉 315 ≈ 405 列表区域) 仍能看 5 行以上. */
.yc-table-viewport {
    max-height: calc(100dvh - 320px);
    min-height: 320px;
    overflow-y: auto;
}
/* 含 Tab bar 的页面 (如 bid_decision): 额外预留 48px (tab-bar) + 16px margin */
.yc-table-viewport-tabbed {
    max-height: calc(100dvh - 380px);
    min-height: 320px;
    overflow-y: auto;
}
/* 手机上不做"页内滚动框": 780px 高的屏留给框子只有 ~400px, 卡片化后一条就 170px, 滚动框里再滚一层是双重滚动;
   让页面自然滚 (2026-09-06 360px 实拍决策中心) */
@media (max-width: 767.98px) {
    .yc-table-viewport, .yc-table-viewport-tabbed { max-height: none; min-height: 0; overflow-y: visible; }
}
/* 兼容老浏览器无 dvh 的回退 (用 vh) */
@supports not (height: 100dvh) {
    .yc-table-viewport { max-height: calc(100vh - 320px); }
    .yc-table-viewport-tabbed { max-height: calc(100vh - 380px); }
}

.table tbody tr { transition: background var(--yc-dur-fast); }
.table tbody tr:hover { background: var(--yc-hover); }

.table tbody tr.is-selected { background: rgba(var(--yc-primary-rgb), .08); }
/* 金额/计数是原子语义单元: 禁止 "790.00 / 万" 这类断行 (CJK 断行规则会在数字-汉字边界断开) */
.table .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.sortable {
    cursor: pointer; user-select: none; white-space: nowrap;
    background: none; border: 0; color: inherit;
    padding: 0; font: inherit;
}
.sortable:hover { color: var(--bs-body-color); }
.sortable .sort-icon { opacity: .3; font-size: .65rem; margin-left: 2px; transition: opacity var(--yc-dur-fast); }
.sortable.asc .sort-icon, .sortable.desc .sort-icon { opacity: 1; color: var(--yc-primary); }

/* ═══════════════════════════════════════════════════════════
 *   类型 / 状态 徽章
 * ═══════════════════════════════════════════════════════════ */
.badge-type {
    font-size: var(--yc-text-xxs);
    padding: .2rem .55rem;
    border-radius: var(--yc-radius-pill);
    font-weight: 500;
    background: rgb(100 116 139 / .15);
    color: var(--yc-text-secondary);
    line-height: 1.4;
    letter-spacing: .01em;
    display: inline-flex; align-items: center; gap: .25rem;
}
.badge-招标计划       { background: rgb(99 102 241 / .15); color: #818cf8; }
.badge-招标公告       { background: rgb(6 182 212 / .15);  color: #22d3ee; }
.badge-招标资审公告   { background: rgb(6 182 212 / .15);  color: #22d3ee; }
.badge-采购公告       { background: rgb(139 92 246 / .15); color: #a78bfa; }
.badge-政府采购       { background: rgb(139 92 246 / .15); color: #a78bfa; }
.badge-中标候选人公示 { background: rgb(245 158 11 / .15); color: #fbbf24; }
.badge-中标结果公告   { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-中标公告       { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-中标公示       { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-中标结果       { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-结果公示       { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-结果公告       { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-成交公告       { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-成交公示       { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-成交结果       { background: rgb(16 185 129 / .15); color: #34d399; }
[class*="badge-中标（"]  { background: rgb(16 185 129 / .15); color: #34d399; }
[class*="badge-中标(成交)"] { background: rgb(16 185 129 / .15); color: #34d399; }
.badge-更正公告       { background: rgb(239 68 68 / .15);  color: #f87171; }
.badge-招标失败公示   { background: rgb(239 68 68 / .15);  color: #f87171; }
.badge-招标异常       { background: rgb(239 68 68 / .15);  color: #f87171; }
.badge-最高限价公示   { background: rgb(249 115 22 / .9);  color: #fff; }
.badge-交易公告       { background: rgb(168 85 247 / .15); color: #c084fc; }
.badge-挂牌公告       { background: rgb(168 85 247 / .15); color: #c084fc; }
.badge-挂牌披露       { background: rgb(168 85 247 / .15); color: #c084fc; }
.badge-出让公告       { background: rgb(168 85 247 / .15); color: #c084fc; }
.badge-合同订立       { background: rgb(14 165 233 / .15); color: #38bdf8; }
.badge-合同公示       { background: rgb(14 165 233 / .15); color: #38bdf8; }
.badge-合同公告       { background: rgb(14 165 233 / .15); color: #38bdf8; }
.badge-合同履行及变更 { background: rgb(14 165 233 / .15); color: #38bdf8; }
.badge-中标合同       { background: rgb(14 165 233 / .15); color: #38bdf8; }
.badge-履约信息       { background: rgb(20 184 166 / .15); color: #2dd4bf; }
.badge-工程建设, .badge-建设工程, .badge-交通工程,
.badge-水利工程, .badge-工程货物, .badge-施工, .badge-勘察设计 { background: rgb(245 158 11 / .15); color: #fbbf24; }
.badge-土地矿产, .badge-土地使用权出让公告 { background: rgb(217 119 6 / .15); color: #fb923c; }
.badge-国有产权 { background: rgb(236 72 153 / .15); color: #f472b6; }
.badge-综合交易, .badge-其他交易, .badge-其他, .badge-服务 { background: rgb(100 116 139 / .15); color: var(--yc-text-secondary); }

/* 状态点 */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.status-dot.planning   { background: var(--yc-status-planning); }
.status-dot.bidding    { background: var(--yc-status-bidding); }
.status-dot.listing    { background: var(--yc-status-listing); }
.status-dot.evaluating { background: var(--yc-status-evaluating); }
.status-dot.awarded    { background: var(--yc-status-awarded); }
.status-dot.contracted { background: var(--yc-status-contracted); }
.status-dot.executing  { background: var(--yc-status-executing); }
.status-dot.correction { background: var(--yc-status-correction); }
.status-dot.terminated { background: var(--yc-status-terminated); }
.status-dot.unknown    { background: var(--yc-status-unknown); }

/* Chip */
.yc-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .6rem;
    background: var(--yc-chip-bg);
    color: var(--yc-chip-color);
    border-radius: var(--yc-radius-pill);
    font-size: var(--yc-text-xs);
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transition: background var(--yc-dur-fast);
}
.yc-chip:hover { background: rgba(var(--yc-primary-rgb), .22); }
.yc-chip.active { background: var(--yc-primary); color: #fff; }
.yc-chip .yc-chip-close { opacity: .6; }
.yc-chip .yc-chip-close:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
 *   分页
 * ═══════════════════════════════════════════════════════════ */
.pagination .page-link {
    background: var(--yc-card-bg);
    border-color: var(--yc-border);
    color: var(--bs-body-color);
    font-size: var(--yc-text-sm);
}
.pagination .page-link:hover { background: var(--yc-hover); color: var(--yc-primary); }
.pagination .page-item.active .page-link {
    background: var(--yc-primary);
    border-color: var(--yc-primary);
    color: #fff;
}
.pagination .page-item.disabled .page-link { background: var(--yc-card-bg); color: var(--yc-muted); }

/* ═══════════════════════════════════════════════════════════
 *   筛选条
 * ═══════════════════════════════════════════════════════════ */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: .5rem;
    align-items: center; padding: .65rem 0;
}
.filter-bar .form-select,
.filter-bar .form-control {
    font-size: var(--yc-text-sm);
    max-width: 200px;
    background: var(--yc-card-bg);
    border-color: var(--yc-border);
    color: var(--bs-body-color);
}
.filter-bar .form-select:focus,
.filter-bar .form-control:focus {
    border-color: var(--yc-primary);
    box-shadow: var(--yc-shadow-glow);
}
.filter-bar label {
    font-size: var(--yc-text-xs);
    color: var(--yc-muted);
    margin-bottom: .15rem;
}

.yc-active-filters {
    display: flex; flex-wrap: wrap; gap: .35rem;
    margin: .25rem 0 .5rem;
}

/* ═══════════════════════════════════════════════════════════
 *   Tabs
 * ═══════════════════════════════════════════════════════════ */
.yc-tabs {
    display: flex; gap: .15rem; padding: 0;
    border-bottom: 1px solid var(--yc-border);
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.yc-tabs::-webkit-scrollbar { display: none; }
.yc-tabs .yc-tab {
    background: none; border: 0;
    padding: .65rem 1rem;
    color: var(--yc-text-secondary);
    font-size: var(--yc-text-sm);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color var(--yc-dur-fast), border-color var(--yc-dur-fast);
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: .35rem;
}
.yc-tabs .yc-tab:hover { color: var(--bs-body-color); }
.yc-tabs .yc-tab.active { color: var(--yc-primary); border-bottom-color: var(--yc-primary); }
.yc-tabs .yc-tab .badge {
    background: var(--yc-hover); color: var(--yc-text-secondary);
    font-size: var(--yc-text-xxs); padding: 1px 6px;
    border-radius: var(--yc-radius-pill); font-weight: 500;
}
.yc-tabs.sticky { position: sticky; top: var(--yc-topbar-height); background: var(--bs-body-bg); z-index: var(--yc-z-sticky); }
/* 带锁的标签 (非会员的主体页): 标签照常可见 —— 首访者要看得见"深度是存在的";
 * 锁是小号的、低对比的, 是提示不是警告; 点击就地弹登录 (见 entity_detail.html)。 */
.yc-tabs .yc-tab-locked .yc-tab-lock { font-size: .68em; opacity: .55; margin-left: -.15rem; }
.yc-tabs .yc-tab-locked:hover .yc-tab-lock { opacity: .9; color: var(--yc-primary); }

/* 登录解锁卡 (主体页非会员): 措辞与形态都不是"付费墙" —— 图标 + 四行"里面有什么" +
 * 一个按钮 + 一行成本说明。窄屏图标换到标题上方, 列表单列。 */
.entity-locked {
    border-color: rgba(var(--yc-primary-rgb), .28);
    background: linear-gradient(135deg, rgba(var(--yc-primary-rgb), .06), rgba(var(--yc-accent-rgb), .04));
}
.entity-locked-row { display: flex; gap: 1rem; align-items: flex-start; }
.entity-locked-icon {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--yc-radius-md);
    display: grid; place-items: center; font-size: 1.35rem; color: var(--yc-primary);
    background: rgba(var(--yc-primary-rgb), .12);
}
.entity-locked-main { flex: 1 1 auto; min-width: 0; }
.entity-locked-title { font-size: var(--yc-text-md); font-weight: 600; margin: .15rem 0 .6rem; line-height: 1.4; }
.entity-locked-list {
    list-style: none; margin: 0 0 .75rem; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem 1.25rem;
    font-size: var(--yc-text-sm); color: var(--yc-text-secondary);
}
.entity-locked-list li { display: flex; align-items: flex-start; gap: .5rem; min-width: 0; }
.entity-locked-list li .bi { color: var(--yc-primary); flex: 0 0 auto; margin-top: .1rem; }
.entity-locked-list li b { color: var(--bs-body-color); font-weight: 600; }
.entity-locked-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; font-size: var(--yc-text-xs); }
@media (max-width: 767.98px) {
    .entity-locked-list { grid-template-columns: 1fr; }
    .entity-locked-icon { width: 38px; height: 38px; font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════════════════════
 *   Sticky 操作条 (详情页头部)
 * ═══════════════════════════════════════════════════════════ */
.yc-action-bar {
    position: sticky; top: var(--yc-topbar-height); z-index: calc(var(--yc-z-sticky) - 1);
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .75rem;
    background: color-mix(in srgb, var(--yc-card-bg) 92%, transparent);
    backdrop-filter: blur(12px);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-lg);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.yc-action-bar .yc-action-meta { flex: 1; min-width: 0; font-size: var(--yc-text-sm); color: var(--yc-text-secondary); }
.yc-action-bar .btn { font-size: var(--yc-text-sm); }

/* ═══════════════════════════════════════════════════════════
 *   骨架屏
 * ═══════════════════════════════════════════════════════════ */
.yc-skel {
    background: var(--yc-skel-bg);
    background-size: 200% 100%;
    border-radius: var(--yc-radius-sm);
    animation: yc-skel-pulse 1.4s ease-in-out infinite;
    display: inline-block;
    color: transparent;
    user-select: none;
}
@keyframes yc-skel-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.yc-skel-line { height: 12px; margin: .35rem 0; border-radius: var(--yc-radius-sm); }
.yc-skel-block { height: 100px; border-radius: var(--yc-radius-md); }
.yc-skel-text-sm { width: 60%; }
.yc-skel-text-md { width: 80%; }
.yc-skel-text-lg { width: 95%; }

/* 加载/空/错状态 */
.loading-spinner {
    display: flex; align-items: center; justify-content: center;
    min-height: 200px; color: var(--yc-muted);
    flex-direction: column; gap: .5rem;
}
.yc-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2.5rem 1rem; color: var(--yc-muted);
    text-align: center; gap: .5rem;
}
.yc-empty i { font-size: 2.25rem; opacity: .35; }
.yc-empty .yc-empty-title { font-size: var(--yc-text-md); color: var(--yc-text-secondary); }
.yc-empty .yc-empty-hint { font-size: var(--yc-text-xs); }
/* 小卡片里的空态 (首页右栏 / 侧栏卡): 2.5rem 上下内边距 + 36px 图标在 300px 宽的卡里是 200px 高的空白
   (2026-09-06 所有者: "我的收藏没有内容就是一片大的空白") */
.yc-empty.yc-empty-compact { padding: 1rem .9rem 1.1rem; gap: .3rem; }
.yc-empty.yc-empty-compact i { font-size: 1.35rem; opacity: .45; }
.yc-empty.yc-empty-compact .yc-empty-title { font-size: var(--yc-text-sm); font-weight: 600; }
.yc-empty.yc-empty-compact .yc-empty-hint { line-height: 1.55; max-width: 26em; }
.yc-empty.yc-empty-compact .yc-empty-actions { margin-top: .35rem; }
/* 提示句里夹的图标 ("点 [书签图标] 保存") 是行内字, 不能继承空态大图标的 2.25rem */
.yc-empty .yc-empty-hint i { font-size: inherit; opacity: 1; }

/* ═══════════════════════════════════════════════════════════
 *   Toast (替代 alert)
 * ═══════════════════════════════════════════════════════════ */
#yc-toast-host {
    position: fixed; top: calc(var(--yc-topbar-height) + 12px); right: 16px;
    display: flex; flex-direction: column; gap: .5rem;
    z-index: var(--yc-z-toast); pointer-events: none;
}
.yc-toast {
    pointer-events: auto;
    min-width: 240px; max-width: 360px;
    padding: .65rem .9rem .65rem .8rem;
    background: var(--yc-card-bg-elev);
    border: 1px solid var(--yc-border);
    border-left: 3px solid var(--yc-primary);
    border-radius: var(--yc-radius-md);
    box-shadow: var(--yc-shadow-lg);
    font-size: var(--yc-text-sm);
    color: var(--bs-body-color);
    display: flex; align-items: flex-start; gap: .55rem;
    animation: yc-toast-in var(--yc-dur-base) var(--yc-ease-decel);
}
.yc-toast.success { border-left-color: var(--yc-success); }
.yc-toast.warning { border-left-color: var(--yc-warning); }
.yc-toast.error   { border-left-color: var(--yc-danger); }
.yc-toast.info    { border-left-color: var(--yc-accent); }
.yc-toast i { font-size: 1.05rem; line-height: 1; margin-top: 1px; flex-shrink: 0; }
.yc-toast.success i { color: var(--yc-success); }
.yc-toast.warning i { color: var(--yc-warning); }
.yc-toast.error i   { color: var(--yc-danger); }
.yc-toast.info i    { color: var(--yc-accent); }
.yc-toast .yc-toast-body { flex: 1; min-width: 0; word-break: break-word; }
.yc-toast .yc-toast-close { background: none; border: 0; color: var(--yc-muted); padding: 0 0 0 .25rem; }
.yc-toast.fade-out { animation: yc-toast-out var(--yc-dur-base) var(--yc-ease-accel) forwards; }
@keyframes yc-toast-in {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* 新用户订阅引导卡 (base.html 注入): 桌面右下角浮卡; 手机全宽贴底 (右下角 320px 的卡在
   390px 屏上盖住列表右半, 见 2026-09-04 实拍)。 */
.yc-onboard-card {
    position: fixed; right: 16px; bottom: 16px; z-index: 1060; max-width: 320px;
    background: var(--yc-card-bg-elev, var(--yc-card-bg, #fff)); border: 1px solid var(--yc-border, #e2e8f0);
    border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    padding: 14px 16px; font-size: .85rem;
}
@media (max-width: 575.98px) {
    #yc-toast-host { left: 12px; right: 12px; align-items: stretch; }
    .yc-toast { min-width: 0; max-width: none; }
    .yc-onboard-card { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 12px 14px; }
}
@keyframes yc-toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(20px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
 *   可撤销删除 (底部居中胶囊 + 倒计时条)
 *   与上面的 toast 分开: toast 是"已经发生了什么"的通报, 右上角、可无视;
 *   这个是"即将发生什么"的最后一道拦截, 必须落在视线中轴且带时间压力。
 * ═══════════════════════════════════════════════════════════ */
#yc-undo-toast {
    position: fixed; left: 50%; bottom: 26px; z-index: var(--yc-z-toast);
    transform: translateX(-50%) translateY(8px);
    display: flex; align-items: center; gap: .8rem;
    background: #111827f2; color: #e2e8f0;
    padding: .62rem 1.05rem; border-radius: 999px;
    box-shadow: 0 12px 32px -8px rgb(0 0 0/.5);
    font-size: .84rem; opacity: 0; pointer-events: none;
    transition: opacity var(--yc-dur-base) ease, transform var(--yc-dur-base) ease;
    backdrop-filter: blur(6px);
}
#yc-undo-toast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
#yc-undo-toast button {
    background: none; border: none; color: #60a5fa;
    font-weight: 700; font-size: .84rem; cursor: pointer; padding: 0;
}
#yc-undo-toast button:hover { color: #93c5fd; }
.yc-undo-bar {
    position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    border-radius: 2px; background: rgb(96 165 250/.85);
    transform-origin: left; animation: yc-undo-shrink 5s linear forwards;
}
@keyframes yc-undo-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* 倒计时条是"还剩多久自动提交"的唯一提示; 关掉动画后它会停在满格, 反而误导 —— 索性藏掉 */
@media (prefers-reduced-motion: reduce) {
    .yc-undo-bar { display: none; }
    #yc-undo-toast { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
 *   命令面板 (Cmd+K)
 * ═══════════════════════════════════════════════════════════ */
.yc-cmdk-overlay {
    position: fixed; inset: 0;
    background: var(--yc-overlay);
    backdrop-filter: blur(4px);
    z-index: var(--yc-z-overlay);
    display: none;
    align-items: flex-start; justify-content: center;
    padding-top: 12vh;
    animation: yc-fade-in var(--yc-dur-fast);
}
.yc-cmdk-overlay.open { display: flex; }
.yc-cmdk-panel {
    width: min(640px, 92vw);
    background: var(--yc-card-bg-elev);
    border: 1px solid var(--yc-border-strong);
    border-radius: var(--yc-radius-lg);
    box-shadow: var(--yc-shadow-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    max-height: 70vh;
}
.yc-cmdk-input {
    width: 100%; border: 0;
    padding: .9rem 1rem;
    background: transparent;
    color: var(--bs-body-color);
    font-size: var(--yc-text-md);
    border-bottom: 1px solid var(--yc-border);
    outline: none;
}
.yc-cmdk-input::placeholder { color: var(--yc-muted); }
.yc-cmdk-results {
    overflow-y: auto;
    flex: 1;
    padding: .25rem 0;
}
.yc-cmdk-section {
    padding: .35rem 1rem .2rem;
    font-size: var(--yc-text-xxs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--yc-muted);
    font-weight: 600;
}
.yc-cmdk-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .5rem 1rem;
    cursor: pointer;
    color: var(--bs-body-color);
    font-size: var(--yc-text-sm);
    transition: background var(--yc-dur-fast);
}
.yc-cmdk-item i { color: var(--yc-text-secondary); font-size: 1rem; width: 18px; text-align: center; }
.yc-cmdk-item:hover, .yc-cmdk-item.active { background: rgba(var(--yc-primary-rgb), .12); }
.yc-cmdk-item.active i { color: var(--yc-primary); }
.yc-cmdk-item .yc-cmdk-hint { margin-left: auto; font-size: var(--yc-text-xxs); color: var(--yc-muted); }
.yc-cmdk-empty { padding: 2rem 1rem; text-align: center; color: var(--yc-muted); font-size: var(--yc-text-sm); }
.yc-cmdk-footer {
    border-top: 1px solid var(--yc-border);
    padding: .35rem 1rem;
    font-size: var(--yc-text-xxs);
    color: var(--yc-muted);
    display: flex; justify-content: space-between; gap: 1rem;
}
@keyframes yc-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════════════════════════════════
 *   抽屉 (Drawer)
 * ═══════════════════════════════════════════════════════════ */
.yc-drawer-overlay {
    position: fixed; inset: 0;
    background: var(--yc-overlay);
    z-index: var(--yc-z-modal);
    display: none;
    animation: yc-fade-in var(--yc-dur-base);
}
.yc-drawer-overlay.open { display: block; }
.yc-drawer {
    position: fixed; top: 0; right: 0;
    width: min(540px, 92vw); height: 100vh;
    background: var(--yc-card-bg-elev);
    border-left: 1px solid var(--yc-border);
    z-index: calc(var(--yc-z-modal) + 1);
    transform: translateX(100%);
    transition: transform var(--yc-dur-slow) var(--yc-ease-decel);
    display: flex; flex-direction: column;
    box-shadow: var(--yc-shadow-lg);
}
.yc-drawer.open { transform: translateX(0); }
.yc-drawer-header {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--yc-border);
    display: flex; align-items: center; justify-content: space-between;
}
.yc-drawer-header h3 { margin: 0; font-size: var(--yc-text-md); font-weight: 600; }
.yc-drawer-body { padding: 1rem; overflow-y: auto; flex: 1; }

/* ═══════════════════════════════════════════════════════════
 *   数据新鲜度元信息条
 * ═══════════════════════════════════════════════════════════ */
.yc-data-meta {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .15rem .55rem;
    background: var(--yc-hover);
    border-radius: var(--yc-radius-pill);
    font-size: var(--yc-text-xxs);
    color: var(--yc-muted);
    /* 窄屏顶栏 flex 挤压时保持整体, 让旁边的标题 text-truncate; 折成两行的 pill 不可读 */
    white-space: nowrap; flex-shrink: 0;
}
.yc-data-meta.stale { background: rgb(var(--yc-warning) / .15); color: var(--yc-warning); }
.yc-data-meta i { font-size: .8rem; }
/* <992px 隐藏 (2026-08-31 实测): 上面的 flex-shrink:0 只考虑了"标题让位", 标题缩到
   0 后左容器溢出可见, 胶囊从右侧动作区底下穿过 —— 320px 未登录即侵入 54px,
   390/768px 未登录仅剩 15/16px 余量而登录态右侧多约 100px (铃铛/头像/微信) 必撞。
   缩短文字只省十几像素治标不治本; 移动端顶栏空间让给导航与转化, 新鲜度信任信号
   保留在桌面。选择器带 .topbar 前缀: setDataMeta 会覆写 host 的 className,
   响应式必须落在 CSS, 且不误伤未来可能出现的页内新鲜度徽标。 */
@media (max-width: 991.98px) {
    .topbar .yc-data-meta { display: none; }
}

/* ═══════════════════════════════════════════════════════════
 *   图表容器
 * ═══════════════════════════════════════════════════════════ */
.chart-container { position: relative; width: 100%; min-height: 280px; }
.chart-container.tall { min-height: 380px; }
.chart-container.short { min-height: 200px; }
/* 图表骨架 (2026-08-25 感知工程): 数据到达前图表区不再是空白定高块。
   :not(:has(canvas)) — ECharts init 插入 canvas 的瞬间骨架自动消失, 零 JS、
   零逐页模板改动, 对容器内空白文本节点免疫 (:empty 做不到)。
   词云等非 ECharts 渲染器同样产出 canvas, 判据通用。 */
.chart-container:not(:has(canvas)) {
    background: var(--yc-skel-bg);
    background-size: 200% 100%;
    border-radius: var(--yc-radius-md);
    animation: yc-skel-pulse 1.4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
 *   响应式
 * ═══════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); width: 80vw; max-width: 320px; }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar { padding: 0 .75rem; }
    .page-body { padding: .75rem; }
    .yc-cmdk-trigger { display: none; }
    .topbar .page-title { font-size: var(--yc-text-sm); }
    .topbar-actions { gap: .3rem; }
    .topbar-actions .btn { padding: .25rem .4rem; font-size: .75rem; }
    .topbar-actions { flex-shrink: 0; }
    .yc-vip-cta { height: 29px; padding: 0 .6rem; font-size: .75rem; }
}
/* ── 移动顶栏预算 (2026-09-06) ──
   手机顶栏只回答四件事: 打开导航 / 我在看哪里 (地区芯片) / 我的账号 / 一个商业 CTA。右侧对会员曾有 6~7 个
   按钮 (≈245~280px), 左簇只剩 <100px, 芯片被左容器的 overflow:hidden 裁掉右半圆 (390px 实测)。<576 把
   yc-tb-secondary (我的企业 / 客服 / 主题 / 对比) 收进抽屉工具行, 右侧 ≤3 项; 标题先缩先隐, 芯片不可收缩。 */
@media (max-width: 575.98px) {
    .topbar-actions > .yc-tb-secondary { display: none !important; }
    .topbar-actions { gap: .35rem; }
}
/* 左簇预算 (2026-09-06 午后, 所有者 360px 安卓实拍「公告列…」): 栏目名只有 4 个字也被截, 因为 gap-3 (16px) 在
   汉堡 / 芯片 / 标题 / 新鲜度占位 之间用了三次, 而新鲜度 host 在 JS 到达前是个空 span 也占一格 gap。
   规则: 标题保底 4.6em (4 字栏目名 + 余量), 芯片先缩 (省略号, title 有全名), 空 host 不占位, 簇内 gap .6rem。
   上午那版 (标题 min-width:0 先缩、芯片 flex:none) 反了: 芯片是上下文, 标题才是"我在哪一页"。 */
#yc-data-meta-host:empty { display: none; }
@media (max-width: 991.98px) {
    .topbar-lead { gap: .6rem; }
    .topbar .page-title { flex: 1 1 auto; min-width: 4.6em; }
    .yc-region-mount-topbar { flex: 0 1 auto; min-width: 2.6em; max-width: 7.2em; }
    .yc-region-mount-topbar .yc-rp-btn { max-width: 100%; width: 100%; }
}
@media (max-width: 767.98px) {
    /* ── 筛选栏网格化 (2026-08-25 全站视觉审计) ──
       card-header 动作区里的筛选控件带桌面排布用的 inline width, 窄屏 flex
       折行后同行控件宽度参差、行尾留白 (实测 /list/ "北京市 110px" 与
       "招标公告 130px" 同行错位)。窄屏统一为两列网格、控件拉满格宽:
       对齐一致 + 触控目标更大。:has 条件化 —— 只网格化含表单控件的动作区,
       详情页的纯按钮动作区 (收藏/跟踪/分享) 保持原 flex 排布不受影响。 */
    .yc-card .card-header:has(.yc-card-actions .form-select) { flex-wrap: wrap; }
    .yc-card-actions:has(.form-select, .form-control) {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 6px; width: 100%; margin-left: 0;
    }
    .yc-card-actions:has(.form-select, .form-control) > * {
        width: 100% !important; min-width: 0; margin: 0 !important;
    }
    /* 文本搜索框信息密度最高, 独占整行 */
    .yc-card-actions:has(.form-select, .form-control) > input.form-control {
        grid-column: 1 / -1;
    }
    /* region_picker 复合组件: 外层 div 与内部按钮都拉满格宽 (hidden select
       是取值载体不占格) */
    .yc-card-actions:has(.form-select, .form-control) .yc-rp,
    .yc-card-actions:has(.form-select, .form-control) .yc-rp-btn { width: 100%; min-width: 0; }

    /* card-body 里的独立筛选条 (price_db) 同一套网格待遇: 它与 card-header 动作区
       是同一种东西 (8 个控件的筛选栏), 只是挂的容器不同, 不该有两套窄屏行为。
       按钮也拉满格宽 —— 触控目标更大。 */
    .filter-bar {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .filter-bar > * {
        width: 100% !important; max-width: none !important;
        min-width: 0; margin: 0 !important;
    }
    /* 只有文本搜索框独占整行; 数字输入 (预算 ≥/≤) 是成对的区间, 并排才可读 */
    .filter-bar > input.form-control:not([type="number"]) { grid-column: 1 / -1; }
    .filter-bar .yc-rp, .filter-bar .yc-rp-btn { width: 100%; min-width: 0; max-width: none; }
    /* 七个分析页的筛选栏 = 说明文字 + 地区 + 分享 (2026-09-06 360px 实拍): 说明文字被塞进半格折成三行,
       分享按钮独占一行居中。手机上: 说明整行居首 (副标题), 地区整行, "城市:" 标签与分享按钮不显示 */
    .filter-bar:not(.yc-collapsible) > small { grid-column: 1 / -1; order: -1; margin: 0 !important; }
    .filter-bar:not(.yc-collapsible) > label { display: none; }
    .filter-bar:not(.yc-collapsible) > .yc-rp { grid-column: 1 / -1; }
    .filter-bar:not(.yc-collapsible) > .yc-btn-compact[onclick*="copyShareLink"] { display: none; }
    /* 次要的图标按钮 (分享链接, .yc-btn-compact) 拉满半行会变成一个空荡的宽按钮 (2026-09-06 七个分析页实拍):
       保持本来的尺寸, 靠右站在自己的格里。用显式类而不是 :has(> i:only-child) —— 后者也会命中
       "图标 + 文字" 的保存 / 订阅 / 导出按钮, 把它们从整格缩成小按钮 */
    .filter-bar > .yc-btn-compact,
    .yc-card-actions:has(.form-select, .form-control) > .yc-btn-compact {
        width: auto !important; justify-self: end; padding-inline: .75rem;
    }
}

/* ── 顶部细进度条 .yc-progress (2026-09-05, YC.progressStart/Done) ──
   贴在顶栏下沿的 2px 主色条: 列表切换筛选时的取数反馈, 替代"整表换骨架"的闪动。 */
.yc-progress {
    position: fixed; top: var(--yc-topbar-height); left: 0; height: 2px; width: 0;
    background: var(--yc-primary); z-index: 1041; opacity: 0; pointer-events: none;
    transition: width .35s ease-out, opacity .2s;
}
.yc-progress.active { opacity: 1; }
.yc-progress.done { opacity: 0; transition: opacity .25s, width 0s .25s; }

/* ── 窄屏表格卡片化 .yc-tbl-cards (2026-09-04 全站移动端截图评审) ──
   给 .table-responsive 加这个类, <768px 时表格变成一列卡片: 表头隐藏, 每行一张卡,
   标题列占满一行, 其余单元格按原顺序排成一行元信息 (类型徽章 · 城市 · 区域 · 日期)。
   纯 CSS —— 服务端与 JS 渲染出的 <tr> 一个字不用改, 也不需要第二套卡片渲染器。

   为什么不是横滑: 390px 实测全文搜索 6 列表宽 611px、项目列表 12 列 1035px, 要滑
   两三屏才看得到日期/金额; 而标题列被压成 2-3 行、别的列只剩缩写 —— 用户描述为
   "标题都是竖着的字符串"。卡片让标题一眼读完、元信息一行排完, 也不再有横向滚动条。

   约定 (可选类, 加在 td 上):
     .yc-c-title  标题列不是首列时 (主体列表首列是复选框) 显式指定
     .yc-c-hide   窄屏不值得占位的列 (复选框 / 操作 / 次要计数)
     .yc-c-end    推到行尾右对齐 (日期 / 金额)
     data-label   表头隐藏后仍需标签的数值列 (预算 / 中标价), ::before 补出 */
@media (max-width: 767.98px) {
    .yc-tbl-cards { overflow-x: visible; }
    .yc-tbl-cards > .table { display: block; width: 100%; margin: 0; }
    .yc-tbl-cards > .table > thead { display: none; }
    .yc-tbl-cards > .table > tbody { display: block; }
    .yc-tbl-cards > .table > tbody > tr {
        display: flex; flex-wrap: wrap; align-items: center;
        gap: .2rem .6rem;
        padding: .65rem .75rem;
        border-bottom: 1px solid var(--yc-border);
    }
    .yc-tbl-cards > .table > tbody > tr:last-child { border-bottom: 0; }
    .yc-tbl-cards > .table > tbody > tr > td {
        display: block;
        border: 0 !important; padding: 0 !important;
        background: transparent !important; box-shadow: none !important;
        width: auto !important; min-width: 0 !important; max-width: 100% !important;
        font-size: var(--yc-text-xs); color: var(--yc-text-secondary);
        white-space: nowrap; text-align: left !important;
        overflow: hidden; text-overflow: ellipsis;
    }
    .yc-tbl-cards > .table > tbody > tr > td:first-child,
    .yc-tbl-cards > .table > tbody > tr > td.yc-c-title {
        flex: 1 1 100%;
        order: -1;                 /* 标题不在首列时 (主体列表: 复选框、名次在前) 也排到卡片第一行 */
        white-space: normal; overflow: visible;
        font-size: var(--yc-text-sm); line-height: 1.45;
        color: var(--bs-body-color);
        overflow-wrap: anywhere;
    }
    .yc-tbl-cards > .table > tbody > tr > td:empty,
    .yc-tbl-cards > .table > tbody > tr > td.yc-c-hide { display: none !important; }
    .yc-tbl-cards > .table > tbody > tr > td.yc-c-end { margin-left: auto; }
    .yc-tbl-cards > .table > tbody > tr > td[data-label]::before {
        content: attr(data-label) " ";
        color: var(--yc-muted); font-size: var(--yc-text-xxs);
    }
    /* 卡片化把所有单元格统一成次要色, 金额 / 中标价的语义色要保住 (上一条选择器特异性 0,4,3 压过 .yc-amt) */
    .yc-tbl-cards > .table > tbody > tr > td.yc-amt { color: var(--yc-amount); font-weight: 600; }
    .yc-tbl-cards > .table > tbody > tr > td.yc-amt-won,
    .yc-tbl-cards > .table > tbody > tr > td.text-success { color: var(--yc-success); font-weight: 600; }
    /* 骨架行 / 空态行 (colspan 单格) 与"加载中…"占满整行 */
    .yc-tbl-cards > .table > tbody > tr > td[colspan] { flex: 1 1 100%; white-space: normal; overflow: visible; }
    /* 首列里的收藏星与标题同排 */
    .yc-tbl-cards > .table > tbody > tr > td:first-child .yc-fav-star { margin-right: .3rem; }
}

@media (max-width: 575.98px) {
    /* ── 基础布局 ── */
    .page-body { padding: .5rem; }
    .row.g-3, .row.g-4 { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
    h5, .h5 { font-size: 1rem; }

    /* ── 卡片 ── */
    .yc-card { border-radius: var(--yc-radius-md); }
    .yc-card .card-body { padding: .6rem .7rem; }
    .yc-card .card-header { padding: .55rem .7rem; font-size: var(--yc-text-sm); min-height: auto; }

    /* ── 统计条 ── */
    .stat-card { padding: .55rem; gap: .35rem; min-width: 0; }
    .stat-card .stat-icon { width: 26px; height: 26px; font-size: .75rem; }
    .stat-card .stat-value { font-size: var(--yc-text-sm); }
    .stat-card .stat-label { font-size: var(--yc-text-xxs); }
    .yc-stat-strip .stat-pill { padding: .25rem .5rem; font-size: var(--yc-text-xxs); gap: .3rem; }

    /* ── 操作条：名字占满整行(省略号)，按钮在下一行均分 ── */
    .yc-action-bar { padding: .4rem .5rem; gap: .35rem; border-radius: var(--yc-radius-md); flex-wrap: wrap; }
    .yc-action-bar .yc-action-meta {
        flex: 1 0 100%; min-width: 0;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        display: flex; align-items: center;
    }
    .yc-action-bar .yc-action-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .yc-action-bar .btn { flex: 1; font-size: var(--yc-text-xs); padding: .3rem .35rem; white-space: nowrap; }
    /* <576 (2026-09-06): 标题是详情页最重要的一行字, 单行省略在 390px 上只剩 ~15 个字 (顶栏 h1 同样省略),
       用户读不到自己点开的是什么。操作条改为不吸顶 (吸顶条不能长高), 徽章一行 + 标题最多 3 行完整可读,
       按钮仍在下一行均分。桌面与 576~767 保持单行吸顶不变。 */
    @media (max-width: 575.98px) {
        .yc-action-bar { position: static; }
        .yc-action-bar .yc-action-meta { display: block; white-space: normal; overflow: visible; text-overflow: clip; }
        .yc-action-bar .yc-action-meta > span { overflow: visible; }
        .yc-action-bar .yc-action-meta > .yc-action-title {   /* 特异性要压过上面的 > span nowrap */
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
            overflow: hidden; white-space: normal; margin: .3rem 0 0 !important;
            font-size: var(--yc-text-base); line-height: 1.4; color: var(--bs-body-color);
        }
    }
    .yc-action-bar .dropdown { flex: 0 0 auto; }
    .yc-action-bar .dropdown .btn { flex: none; }
    /* 只剩图标的按钮 (收藏) 不参与拉伸: 兄弟按钮缺席时它会撑满整行, 变成一条只有一个小图标的
       空按钮 (2026-09-03 移动端详情页截图实拍)。图标按钮定宽, 文字按钮才均分余量。 */
    .yc-action-bar .btn-icon-only { flex: 0 0 auto; min-width: 2.4rem; }

    /* ── Tab ── */
    .yc-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .yc-tabs::-webkit-scrollbar { display: none; }
    .yc-tabs .yc-tab { padding: .4rem .5rem; font-size: var(--yc-text-xxs); white-space: nowrap; flex-shrink: 0; }
    /* 右缘渐隐 = "还有更多标签可滑": 决策中心 7 个标签在 390px 只露 4 个半, 没有滚动条时
       用户不知道右边还有"胜率预测/机会矩阵" (2026-09-04 登录态巡检)。.has-more 由
       yc-core initTabHints 按"能滑且未滑到底"实时挂/摘, 标签装得下时不渐隐。 */
    .yc-tabs.has-more {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    }

    /* ── 表格 ── */
    .table { font-size: var(--yc-text-xs); }
    .table th, .table td { padding: .3rem .35rem; }
    .table-responsive { -webkit-overflow-scrolling: touch; }
    /* 横滑提示 (YC.initScrollHints 仅在实际溢出时插入, 用户一滑即移除) */
    .yc-scroll-hint {
        padding: .3rem .5rem; text-align: center;
        font-size: var(--yc-text-xxs); color: var(--yc-muted);
    }
    .yc-scroll-hint i { margin-right: .2rem; }

    /* ── 筛选栏（所有页面的 flex 筛选行）── */
    .d-flex.gap-2.mb-3.flex-wrap .form-select-sm,
    .d-flex.gap-2.mb-3.flex-wrap .form-control-sm { font-size: var(--yc-text-xs); padding: .2rem .35rem; min-width: 0; }
    .d-flex.gap-3.align-items-end.flex-wrap > div { min-width: 0; }
    .form-select-sm, .form-control-sm { font-size: var(--yc-text-xs); }

    /* ── 图表通用 ── */
    [id$="-chart"], [id^="chart-"] { min-height: 160px !important; max-height: 220px !important; }

}

/* 打印 */
@media print {
    .sidebar, .topbar, .yc-action-bar, #yc-toast-host, .yc-cmdk-trigger { display: none !important; }
    .main-content { margin-left: 0; }
    .page-body { padding: 0; }
    .yc-card { border: 1px solid #ccc; box-shadow: none; }
    a { color: #000; text-decoration: underline; }
}

/* ═══════════════════════════════════════════════════════════
 *   视觉升级 v2 (2026-06): 品牌渐变 · 立体层次 · 微交互
 *   第一性原理: 高级质感 = 光(渐变/高光) + 影(层次阴影) + 动(过渡).
 *   全部令牌驱动并集中于此, 通过共享组件级联到全站 (奥卡姆剃刀).
 * ═══════════════════════════════════════════════════════════ */

/* — 新增令牌: 靛蓝→紫 签名渐变 + 分主题层次阴影/辉光 (覆盖 base 内联令牌) — */
:root{
    /* 权威蓝品牌主色 (中老年信任锚点: 政务/银行/支付宝皆蓝); 全站链接/激活/焦点统一 */
    --yc-primary: #2563eb; --yc-primary-rgb: 37,99,235;
    /* 根治"双主色 bug": Bootstrap 主色/链接色映射到品牌蓝, 全站 text/bg/border-primary 一致 */
    --bs-primary: #2563eb; --bs-primary-rgb: 37,99,235;
    --bs-link-color: #2563eb; --bs-link-color-rgb: 37,99,235;
    --bs-link-hover-color: #1d4ed8; --bs-link-hover-color-rgb: 29,78,216;
    /* 克制的深蓝→蓝→青渐变 (有质感但不浮夸, 去掉偏年轻的紫/品红) */
    --yc-gradient-brand: linear-gradient(135deg,#1d4ed8 0%,#2563eb 45%,#0ea5e9 100%);
    --yc-gradient-brand-soft: linear-gradient(135deg,rgb(37 99 235/.12) 0%,rgb(14 165 233/.10) 100%);
    /* ── 长辈友好字号阶梯 (老花眼可读性优先, 整体上调 ~12%) ── */
    --yc-text-xxs: .72rem;   /* 11.5px (原 10.4) */
    --yc-text-xs:  .8rem;    /* 12.8px (原 11.5) */
    --yc-text-sm:  .9rem;    /* 14.4px (原 13.2) */
    --yc-text-base: 1rem;    /* 16px   (原 14.4) — 正文基准 */
    --yc-text-md:  1.0625rem;/* 17px */
    --yc-text-lg:  1.25rem;  /* 20px */
    --yc-text-xl:  1.5rem;   /* 24px */
    --yc-text-2xl: 2rem;     /* 32px */
    --yc-text-3xl: 2.5rem;   /* 40px */
}
[data-bs-theme=dark]{
    --yc-shadow-sm: 0 1px 2px rgb(0 0 0/.45);
    --yc-shadow-md: 0 6px 18px -4px rgb(0 0 0/.55), 0 2px 6px -2px rgb(0 0 0/.4);
    --yc-shadow-lg: 0 20px 48px -12px rgb(0 0 0/.65), 0 8px 18px -8px rgb(0 0 0/.45);
    --yc-glow: 0 0 28px -6px rgba(var(--yc-primary-rgb), .55);
    /* 暗色链接用更亮的蓝保证对比 */
    --bs-link-color: #60a5fa; --bs-link-color-rgb: 96,165,250;
    --bs-link-hover-color: #93c5fd; --bs-link-hover-color-rgb: 147,197,253;
    /* 长辈友好: 提升次要/弱化文字对比 (老花眼) */
    --yc-muted: #8b9bb4;
    --yc-text-secondary: #b6c2d6;
}
[data-bs-theme=light]{
    --yc-shadow-sm: 0 1px 2px rgb(15 23 42/.06);
    --yc-shadow-md: 0 6px 20px -6px rgb(15 23 42/.12), 0 2px 6px -3px rgb(15 23 42/.07);
    --yc-shadow-lg: 0 24px 54px -14px rgb(15 23 42/.18), 0 10px 24px -10px rgb(15 23 42/.1);
    --yc-glow: 0 0 0 3px rgba(var(--yc-primary-rgb), .14);
    /* 链接用醒目的品牌蓝(原 #1d4ed8 偏深不够显眼 → 调亮); hover 加深 */
    --bs-link-color: #2563eb; --bs-link-color-rgb: 37,99,235;
    --bs-link-hover-color: #1d4ed8; --bs-link-hover-color-rgb: 29,78,216;
    /* 长辈友好: 亮色正文加深到近黑(老花高可读) + 次要文字加深 */
    --bs-body-color: #0f172a;
    --yc-muted: #5b6b85;
    --yc-text-secondary: #334155;
}

/* — 品牌标识: 渐变字 logo — */
.sidebar-brand span{
    background: var(--yc-gradient-brand);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-weight: 800; letter-spacing: .02em;
}

/* — 侧栏激活态: 渐变高亮条 + 柔和渐变底 — */
.sidebar-nav .nav-link.active{ background: var(--yc-gradient-brand-soft); }
.sidebar-nav .nav-link.active::before{ width: 3px; background: var(--yc-gradient-brand); }

/* — 卡片: 默认轻阴影; interactive 悬浮抬升; 暗色加 1px 顶部高光 — */
.yc-card{ box-shadow: var(--yc-shadow-md); transition: border-color var(--yc-dur-base), box-shadow var(--yc-dur-base), transform var(--yc-dur-base); }
[data-bs-theme=dark] .yc-card{ box-shadow: var(--yc-shadow-md), inset 0 1px 0 rgb(255 255 255/.03); }
.yc-card.interactive{ cursor: pointer; }
.yc-card.interactive:hover{ transform: translateY(-2px); box-shadow: var(--yc-shadow-lg); border-color: var(--yc-border-strong); }

/* — 统计卡: 渐变图标徽 + 轻阴影 + 悬浮 — */
.stat-card{ box-shadow: var(--yc-shadow-sm); transition: border-color var(--yc-dur-base), box-shadow var(--yc-dur-base), transform var(--yc-dur-base); }
.stat-card:hover{ box-shadow: var(--yc-shadow-md); transform: translateY(-1px); }
.stat-card .stat-icon{
    background: var(--yc-gradient-brand); color: #fff;
    box-shadow: 0 4px 12px -3px rgba(var(--yc-primary-rgb), .5);
}

/* — 主按钮: 渐变 + 辉光微交互 — */
.btn-primary{
    background-image: var(--yc-gradient-brand);
    border-color: transparent;
    box-shadow: 0 2px 10px -3px rgba(var(--yc-primary-rgb), .55);
    transition: filter var(--yc-dur-base), box-shadow var(--yc-dur-base), transform var(--yc-dur-fast);
}
.btn-primary:hover, .btn-primary:focus-visible{
    filter: brightness(1.08) saturate(1.05);
    box-shadow: var(--yc-glow);
    transform: translateY(-1px);
}
.btn-primary:active{ transform: translateY(0); }

/* — 顶栏统计药丸: 轻微立体 — */
.yc-stat-strip .stat-pill{ box-shadow: var(--yc-shadow-sm); }

/* ── 长辈友好: 行高/控件尺寸 (老花眼 + 运动控制) ── */
body{ line-height: 1.6; }
/* 小号按钮/控件普遍偏小, 适度加大点击目标与字号 (不破坏密集布局) */
.btn-sm, .btn-group-sm > .btn{ padding: .34rem .7rem; font-size: var(--yc-text-sm); }
.form-select-sm, .form-control-sm{ padding: .34rem .6rem; font-size: var(--yc-text-sm); min-height: 2rem; }
/* 侧栏导航: 可点区域充足, 但字号比正文(16px)略小 → 导航为辅、内容为主, 层次清晰 */
.sidebar-nav .nav-link{ padding: .5rem 1rem; font-size: var(--yc-text-sm); }
.sidebar-nav .nav-link i{ font-size: 1.05rem; }
/* 品牌 Logo 标记 */
.sidebar-brand .sidebar-logo{ border-radius: 7px; flex-shrink: 0; }
/* 表格: 行更高更易读 (阅读密集页) */
.table td, .table th{ padding-top: .6rem; padding-bottom: .6rem; }

/* — 评分胶囊: 分档渐变 (高=翠绿青 / 中=琥珀橙 / 低=中性) — */
.yc-score{
    display: inline-block; min-width: 2.3em; padding: .12rem .5rem;
    border-radius: var(--yc-radius-pill); font-weight: 800; font-size: .8rem;
    line-height: 1.45; color: #fff; font-variant-numeric: tabular-nums; text-align: center;
}
.yc-score.high{ background: linear-gradient(135deg,#10b981 0%,#06b6d4 100%); box-shadow: 0 2px 8px -3px rgb(16 185 129/.6); }
.yc-score.mid{ background: linear-gradient(135deg,#f59e0b 0%,#f97316 100%); box-shadow: 0 2px 8px -3px rgb(245 158 11/.55); }
.yc-score.low{ background: var(--yc-hover); color: var(--yc-text-secondary); box-shadow: none; }

/* — 公告热度火焰 (排名制 1-3 级, 纯展示; 全站禁止暴露具体访问数字) —
   等级1 琥珀 → 2 橙 → 3 红+光晕+轻脉动 (2026 热度指示器共识: 分级层次 +
   语义色 + 仅最高级克制动画; 全局 prefers-reduced-motion 已兜底关闭动画) */
.yc-heat{ display: inline-flex; align-items: center; gap: 1px; font-size: .85rem; line-height: 1; cursor: default; }
.yc-heat-1{ color: #f59e0b; }
.yc-heat-2{ color: #f97316; }
.yc-heat-3{ color: #ef4444; filter: drop-shadow(0 0 3px rgb(239 68 68/.45)); animation: yc-heat-pulse 2.4s ease-in-out infinite; }
@keyframes yc-heat-pulse{ 0%,100%{ opacity: 1; } 50%{ opacity: .72; } }

/* — 「今日」时间徽章 (单一真源: 特效只改这里; JS YC.dateHtml 与 Jinja date_hot 共用此类名) —
   规则: 日期 >= 今天 → 日期高亮 + 渐变流光小徽章 (与 MP 端"今日新发"口径一致) */
.yc-today{
    display: inline-block; margin-left: .3rem; padding: .05rem .4rem;
    border-radius: var(--yc-radius-pill); font-size: .66rem; font-weight: 700; line-height: 1.5;
    color: #fff; vertical-align: .08em; letter-spacing: .5px;
    background: linear-gradient(120deg, #2563eb 0%, #06b6d4 40%, #2563eb 80%);
    background-size: 200% 100%; animation: yc-today-sheen 2.8s linear infinite;
    box-shadow: 0 1px 6px -2px rgb(37 99 235/.75);
}
@keyframes yc-today-sheen{ 0%{ background-position: 0 0; } 100%{ background-position: -200% 0; } }

/* — 投标截止剩余天数徽章 (单一真源: Jinja deadline_left + YC.deadlineHtml 共用) —
   只有"紧迫"与"今天"两档着色: 全部着色等于没有重点, 投标人扫列表时需要的是
   "哪几条快来不及了"一眼跳出来, 而不是一片彩虹。 */
.yc-dl{
    display: inline-block; padding: .05rem .34rem; border-radius: var(--yc-radius-sm);
    font-size: .7rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.yc-dl-ok{ color: var(--yc-text-secondary); font-weight: 400; }
.yc-dl-past{ color: var(--yc-muted); font-weight: 400; }
.yc-dl-urgent{ color: var(--yc-danger); font-weight: 700; }
.yc-dl-today{ color: #fff; background: var(--yc-danger); }

/* — 预设头像调色板 (个人中心可选; 单一真源: base.html 顶栏与 auth_profile 共用) — */
.yc-av{ color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.yc-av-p1{ background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.yc-av-p2{ background: linear-gradient(135deg,#6366f1,#4338ca); }
.yc-av-p3{ background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.yc-av-p4{ background: linear-gradient(135deg,#ec4899,#be185d); }
.yc-av-p5{ background: linear-gradient(135deg,#f43f5e,#be123c); }
.yc-av-p6{ background: linear-gradient(135deg,#f97316,#c2410c); }
.yc-av-p7{ background: linear-gradient(135deg,#f59e0b,#b45309); }
.yc-av-p8{ background: linear-gradient(135deg,#10b981,#047857); }
.yc-av-p9{ background: linear-gradient(135deg,#14b8a6,#0f766e); }
.yc-av-p10{ background: linear-gradient(135deg,#06b6d4,#0e7490); }
.yc-av-p11{ background: linear-gradient(135deg,#64748b,#334155); }
.yc-av-p12{ background: linear-gradient(135deg,#3b82f6 0%,#8b5cf6 50%,#06b6d4 100%); }

/* — 列表行首收藏星标 (灰=未收藏 金=已收藏; 常驻低透明度控噪) — */
.yc-fav-star{ cursor: pointer; color: var(--yc-muted); opacity: .4; margin-right: .35rem;
    transition: opacity var(--yc-dur-fast), color var(--yc-dur-fast), transform var(--yc-dur-fast); vertical-align: -.05em; }
.yc-fav-star:hover{ opacity: 1; color: #f59e0b; transform: scale(1.2); }
.yc-fav-star.on{ color: #f59e0b; opacity: 1; }
/* 触屏上的小目标 (2026-09-06): 星标 16px、芯片的 × 12px、取消按钮 15px 都远小于 44px 的手指命中区。
   用内边距 + 负外边距把点击区扩到 ≥40px, 视觉尺寸与排布不变 (Material 48dp / Apple 44pt 的常规做法) */
@media (pointer: coarse) {
    .yc-fav-star, .yc-chip .yc-chip-close, .mw-drop, .yc-rp-close {
        position: relative;
    }
    .yc-chip .yc-chip-close::after, .mw-drop::after, .yc-rp-close::after {
        content: ""; position: absolute; inset: 50% auto auto 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
    }
    /* 星标紧挨着标题链接, 命中区 32px (WCAG 2.5.8 的 24px 之上), 再大会盖住标题第一个字 */
    .yc-fav-star::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); }
    .yc-chip { min-height: 32px; }
}

/* — 功能入口 Hero (智能分析/图谱等"输入 X 开始"引导区) —
   设计语言: 品牌渐变底 + 双径向光斑 + 顶部渐变高光线 + 随顶渐隐的点阵纹理,
   与首页匿名 hero / 定价页 / 个人中心同一体系; 纯 CSS 零图片, 亮暗双主题成立 — */
.yc-hero-pane{ position:relative; text-align:center;
    padding:2.4rem 1.5rem 2.2rem; border-radius:var(--yc-radius-xl);
    border:1px solid var(--yc-border); box-shadow:var(--yc-shadow-md);
    /* 禁用 overflow:hidden — 会裁掉内部 absolute 定位的搜索下拉框;
       装饰全部为 background(随圆角自裁) 与 inset:0 伪元素, 无需裁切 */
    background:
        radial-gradient(ellipse 60% 85% at 80% -25%, rgba(59,130,246,.16), transparent 62%),
        radial-gradient(ellipse 50% 75% at 12% 120%, rgba(6,182,212,.11), transparent 62%),
        linear-gradient(160deg, rgba(59,130,246,.05), rgba(139,92,246,.03) 50%, rgba(6,182,212,.05)); }
.yc-hero-pane::before{ content:""; position:absolute; inset:0 0 auto 0; height:2px;
    background:linear-gradient(90deg, transparent, var(--yc-primary) 30%, var(--yc-accent) 65%, transparent);
    opacity:.6; }
.yc-hero-pane::after{ content:""; position:absolute; inset:0; pointer-events:none;
    border-radius:inherit;
    background-image:radial-gradient(rgba(148,163,184,.3) 1px, transparent 1px);
    background-size:22px 22px;
    -webkit-mask-image:radial-gradient(ellipse 70% 95% at 50% 0%, #000 15%, transparent 72%);
    mask-image:radial-gradient(ellipse 70% 95% at 50% 0%, #000 15%, transparent 72%);
    opacity:.3; }
.yc-hero-pane>*{ position:relative; z-index:1; }
.yc-hero-ico{ width:52px; height:52px; margin:0 auto .95rem; border-radius:14px;
    display:flex; align-items:center; justify-content:center; font-size:1.5rem; color:#fff;
    background:linear-gradient(135deg,#3b82f6,#2563eb 55%,#06b6d4);
    box-shadow:0 8px 22px -8px rgba(37,99,235,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.yc-hero-title{ font-weight:800; letter-spacing:-.015em;
    background:linear-gradient(120deg, var(--bs-body-color) 35%, var(--yc-primary));
    -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.yc-hero-sub{ color:var(--yc-text-secondary); font-size:.86rem; max-width:520px;
    margin:0 auto 1.25rem; line-height:1.75; }
.yc-hero-pane .input-group{ border-radius:12px; overflow:hidden;
    box-shadow:0 12px 34px -14px rgba(37,99,235,.4);
    transition:box-shadow var(--yc-dur-base) var(--yc-ease-standard); }
.yc-hero-pane .input-group:focus-within{
    box-shadow:0 0 0 3px rgba(59,130,246,.22), 0 12px 34px -12px rgba(37,99,235,.55); }

/* — 排行榜名次 (entity_list / market TOP100): 前三名奖牌, 其余 tabular 数字 —
   Jinja 侧 macros/rank.html rank_badge(), JS 侧 YC.rankBadge() 输出同一结构 — */
.yc-rank{ display:inline-flex; align-items:center; justify-content:center;
    min-width:24px; height:24px; padding:0 6px; border-radius:999px;
    font-size:.76rem; font-weight:700; font-variant-numeric:tabular-nums;
    color:var(--yc-muted); }
.yc-rank.m1{ background:linear-gradient(135deg,#fbbf24,#d97706); color:#fff;
    box-shadow:0 2px 6px -2px rgb(217 119 6/.55); }
.yc-rank.m2{ background:linear-gradient(135deg,#cbd5e1,#94a3b8); color:#fff; }
.yc-rank.m3{ background:linear-gradient(135deg,#f59e0b,#b45309); color:#fff; }

/* — 收藏雷达徽章: 截止倒计时 (mw-dl) / 后续动态 (mw-upd) —
   消费方: 我的商机(/my/) 与首页「我的收藏」卡片, 双端同一视觉语言。
   今天/明天截止允许轻脉冲 — 全站唯一持续动效, 紧迫感不靠堆特效 */
.mw-dl{ font-size:.72rem; font-weight:700; padding:2px 9px; border-radius:999px; white-space:nowrap; }
.mw-dl-urgent{ background:#ef444422; color:#ef4444; animation: mw-pulse 2.2s ease-in-out infinite; }
.mw-dl-soon{ background:#f59e0b22; color:#f59e0b; }
.mw-dl-ok{ background:#10b98122; color:#10b981; }
.mw-upd{ font-size:.7rem; font-weight:700; padding:2px 8px; border-radius:999px; text-decoration:none; white-space:nowrap; }
.mw-upd-result{ background:#10b98122; color:#059669; }
.mw-upd-result:hover{ background:#10b98133; color:#047857; }
.mw-upd-change{ background:#f59e0b22; color:#d97706; }
.mw-upd-change:hover{ background:#f59e0b33; color:#b45309; }
@keyframes mw-pulse{ 0%,100%{ box-shadow:0 0 0 0 rgb(239 68 68/.35); } 50%{ box-shadow:0 0 0 5px rgb(239 68 68/0); } }
@media (prefers-reduced-motion: reduce){ .mw-dl-urgent{ animation: none; } }
/* .mw-dl-soon 原用 #f59e0b 字色, 白底对比 2.2:1; 与金额同一暖色令牌 */
.mw-dl-soon{ color: var(--yc-amount); }
.mw-dl-past{ background: var(--yc-hover); color: var(--yc-muted); }

/* — 订阅命中行 .mw-hit (我的商机 / 首页会员右栏共用; 2026-09-06 从 my_workspace.html 上移) —
   星标 | 标题 + 元信息 (类型 / 截止 / 地区 / 发布) | 金额; 命中关键词 <mark> 高亮 */
.mw-count{font-size:.72rem;font-weight:600;padding:1px 9px;border-radius:999px;background:var(--yc-hover);color:var(--yc-text-secondary)}
.mw-hit{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.2rem .6rem;align-items:start;padding:.6rem .95rem;border-bottom:1px solid var(--yc-border)}
.mw-hit:last-child{border-bottom:none}
.mw-hit:hover{background:var(--yc-hover)}
.mw-hit .yc-fav-star{grid-row:1 / span 2;margin-top:.15rem}
.mw-hit-title{font-size:.9rem;line-height:1.45;color:var(--bs-body-color);text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mw-hit-title:hover{color:var(--yc-primary)}
.mw-hit-title mark{background:rgba(var(--yc-primary-rgb),.14);color:inherit;padding:0 .1em;border-radius:2px}
.mw-hit-meta{grid-column:2;display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .6rem;font-size:.74rem;color:var(--yc-muted)}
.mw-hit-meta .badge-type{font-size:.66rem;padding:.2em .5em}
.mw-hit-amt{margin-left:auto;font-size:.84rem}
.mw-hit .yc-dl{font-size:.7rem;padding:1px 7px;border-radius:999px;font-weight:700;white-space:nowrap}
.mw-hit .yc-dl-ok{background:#10b98122;color:#059669}
.mw-hit .yc-dl-soon{background:#f59e0b22;color:var(--yc-amount)}
.mw-hit .yc-dl-urgent{background:#ef444422;color:#dc2626}
.mw-hit .yc-dl-past{background:var(--yc-hover);color:var(--yc-muted)}
@media (max-width: 767.98px){ .mw-hit .yc-fav-star{grid-row:1} }
/* 首页命中卡: 桌面右栏窄 (≈300px) 标题一行省略; 手机整宽给两行 —— 公告标题前半多是代理机构名, 一行只剩机构名 */
/* 标题固定行数 (min-height = 行数 × 行高): 短标题的行与长标题的行同高, 骨架行 (同结构) 与真实行同高, 数据到达不位移 */
.home-hit-title{ -webkit-line-clamp:1; font-size:var(--yc-text-sm); min-height:1.45em; }
@media (max-width: 575.98px){ .home-hit-title{ -webkit-line-clamp:2; min-height:2.9em; } }

/* — 金额: 全站同一暖色令牌 + 等宽数字 (列表 / 首页 / 我的商机 / 订阅命中), 不再各页各写 text-warning — */
.yc-amt{ color: var(--yc-amount); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yc-amt-won{ color: var(--yc-success); }

/* — 详情页截止条 (2026-09-06): 标签 + 倒计时 + 时间 + 「提醒我」在同一条里, 色档随剩余天数 (JS 加 yc-dl-*) —
   <576 按钮整行, 不再与徽章互相挤 */
.yc-deadline{ display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .9rem; padding:.6rem .9rem; margin-bottom:.85rem;
    border:1px solid var(--yc-border); border-radius: var(--yc-radius-md); background: var(--yc-hover); --dl: var(--yc-primary); }
.yc-dl-main{ display:flex; align-items:baseline; flex-wrap:wrap; gap:.15rem .5rem; flex:1 1 auto; min-width:0; font-size: var(--yc-text-sm); }
.yc-dl-ico{ align-self:center; font-size:1rem; color: var(--dl); }
.yc-dl-label{ color: var(--yc-text-secondary); }
.yc-dl-days{ font-size:1.05rem; font-weight:700; font-variant-numeric: tabular-nums; color: var(--dl); }
.yc-dl-days:empty{ display:none; }
.yc-dl-when{ color: var(--yc-muted); font-size: var(--yc-text-xs); font-variant-numeric: tabular-nums; }
.yc-dl-remind{ white-space:nowrap; flex-shrink:0; }
/* 事实条里的 金额 / 采购人 两格: 与倒计时同排, 用竖分隔线分组; 采购人可省略 (全名在 title) */
.yc-dl-facts{ display:flex; align-items:center; gap:1rem; min-width:0; flex:1 1 auto; padding-left:1rem; border-left:1px solid rgba(100,116,139,.25); }
.yc-deadline:has(.yc-dl-facts) .yc-dl-main{ flex:0 1 auto; }  /* 三件事实靠拢成一组, 提醒按钮独占右侧 */
.yc-dl-fact{ display:flex; flex-direction:column; gap:.05rem; min-width:0; font-size: var(--yc-text-sm); }
.yc-dl-fact-l{ font-size: var(--yc-text-xs); color: var(--yc-muted); }
.yc-dl-fact b{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:18em; font-weight:600; }
.yc-dl-fact-buyer b{ font-weight:600; color: var(--bs-body-color); }
.yc-deadline.yc-dl-ok{ --dl:#059669; border-color: rgb(16 185 129/.35); background: rgb(16 185 129/.07); }
.yc-deadline.yc-dl-soon{ --dl:#b45309; border-color: rgb(245 158 11/.4); background: rgb(245 158 11/.08); }
.yc-deadline.yc-dl-urgent{ --dl:#dc2626; border-color: rgb(239 68 68/.4); background: rgb(239 68 68/.07); }
.yc-deadline.yc-dl-past{ --dl: var(--yc-muted); }
[data-bs-theme=dark] .yc-deadline.yc-dl-ok{ --dl:#34d399; }
[data-bs-theme=dark] .yc-deadline.yc-dl-soon{ --dl:#fbbf24; }
[data-bs-theme=dark] .yc-deadline.yc-dl-urgent{ --dl:#f87171; }
@media (max-width: 575.98px){ .yc-dl-remind{ flex-basis:100%; } }

/* — 表头点击排序 (th[data-sort="num|text|date"], 排序逻辑在 yc-core;
     选择器限定三类型值, 避免命中 lifecycle 等页自有的 data-sort="字段名" 协议) — */
th[data-sort="num"],th[data-sort="text"],th[data-sort="date"]{
    cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort="num"]::after,th[data-sort="text"]::after,th[data-sort="date"]::after{
    content: '⇅'; margin-left: 4px; font-size: .72em; color: var(--yc-muted); opacity: .45; }
th[data-sort="num"]:hover::after,th[data-sort="text"]:hover::after,th[data-sort="date"]:hover::after{
    opacity: 1; }
th[data-sort][data-dir="asc"]::after{ content: '↑'; color: var(--yc-primary); opacity: 1; }
th[data-sort][data-dir="desc"]::after{ content: '↓'; color: var(--yc-primary); opacity: 1; }

/* — 导航红点徽章 (我的商机: 7 天内截止的收藏数) — */
.yc-nav-badge{ display: inline-flex; align-items: center; justify-content: center;
    min-width: 16px; height: 16px; padding: 0 4px; margin-left: 6px;
    font-size: .62rem; font-weight: 700; line-height: 1; border-radius: 999px;
    background: #ef4444; color: #fff; vertical-align: 1px; }
/* 免费开放徽标变体: 红色是截止警示语义, 状态类徽标用品牌渐变
   (与 AI 气泡的 primary→青 同一视觉语言, 见 yc-ai-facade.js) */
.yc-nav-badge--free{ background: linear-gradient(135deg, var(--yc-primary), #06b6d4); }

/* ═══════════════════════════════════════════════════════════
   区域级联选择器 (省 / 市 / 区县)
   ═══════════════════════════════════════════════════════════ */
.yc-rp { position: relative; display: inline-block; }
/* 按钮长得和同排的 form-select 一样, 否则筛选栏里一个异形控件很跳。宽度给足三级
   路径 ("盐城市 · 建湖县"), 再长的靠省略号 —— 换行会把整排筛选器挤高一行。 */
.yc-rp-btn {
    display: flex; align-items: center; gap: .35rem;
    min-width: 132px; max-width: 210px; height: 31px;
    padding: .25rem .5rem;
    font-size: .8125rem; text-align: left;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
}
.yc-rp-btn:hover { border-color: var(--yc-primary, #0d6efd); }
.yc-rp.is-open .yc-rp-btn {
    border-color: var(--yc-primary, #0d6efd);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}
.yc-rp-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 窄屏筛选栏里的地区按钮不显示省份前缀 (yc-core.rpPaint 把 "江苏省 · " 包进 .yc-rp-prov): 格子只有 ~105px */
@media (max-width: 767.98px) { .yc-rp-text .yc-rp-prov { display: none; } }
.yc-rp-caret { font-size: .7rem; opacity: .55; transition: transform .15s; }
.yc-rp.is-open .yc-rp-caret { transform: rotate(180deg); }

/* fixed 而不是 absolute: 筛选栏都待在 .yc-card 里, 那个类是 overflow:hidden, 绝对
   定位的面板会被整个裁掉 (实测只露出贴着卡片头的那几像素)。改 absolute 为可见就得
   去掉卡片的 overflow, 那会牵动全站卡片的圆角裁剪。fixed 脱离所有祖先的裁剪与层叠
   上下文, 位置由 JS 按按钮的 rect 算 —— 代价是要跟着滚动重定位, 见 rpPlace。 */
.yc-rp-panel {
    position: fixed; z-index: 1080;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
    overflow: hidden;
}
.yc-rp-search {
    display: flex; align-items: center; gap: .4rem;
    padding: .4rem .6rem; border-bottom: 1px solid var(--bs-border-color-translucent);
}
.yc-rp-search i { opacity: .5; font-size: .8rem; }
.yc-rp-search input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: .8125rem; color: inherit;
}
.yc-rp-cols { display: flex; }
/* 每列独立滚动: 江苏 13 市对上南京 11 个区, 让整个面板一起滚会把已选的市滚出视野 */
.yc-rp-col, .yc-rp-results {
    list-style: none; margin: 0; padding: .25rem 0;
    max-height: 268px; overflow-y: auto;
}
/* 列宽按常见地名定, 不按最长的定。全国最长是"双江拉祜族佤族布朗族傣族自治县"(15 字),
   三列都照它留宽要 520px 以上, 而 99% 的路径是"江苏省 / 南京市 / 玄武区"这种 3 字名 ——
   为极少数自治州/自治县把每次使用都撑胖是错的取舍。128px 容得下 6~7 字 (含"内蒙古
   自治区"这类), 更长的交给省略号 + title 悬停看全称。 */
.yc-rp-col { width: 128px; border-right: 1px solid var(--bs-border-color-translucent); }
.yc-rp-col:last-child { border-right: 0; }
.yc-rp-results { width: 100%; min-width: 250px; max-width: 340px; }
.yc-rp-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: .3rem; padding: .3rem .6rem;
    font-size: .8125rem; cursor: pointer; white-space: nowrap;
}
/* 名字过长时省略而不是硬裁: 硬裁会把下钻箭头挤出可视区, 用户看不出这一项还有下级 */
.yc-rp-item > span { overflow: hidden; text-overflow: ellipsis; }
.yc-rp-item > .bi { flex: none; }
.yc-rp-item:hover { background: var(--bs-tertiary-bg, rgba(0, 0, 0, .05)); }
.yc-rp-item.is-active { color: var(--yc-primary, #0d6efd); font-weight: 500; }
.yc-rp-item .bi { font-size: .65rem; opacity: .4; }
.yc-rp-empty {
    padding: .5rem .6rem; font-size: .75rem; color: var(--bs-secondary-color);
    white-space: normal;
}
/* 关闭按钮。选了市但不想再选区县时, 面板按设计要继续开着等下一级 —— 于是没有任何
   可点的收起入口, 用户只能点面板外或按 Esc, 而这两条都不是看得见的出口 (用户反馈)。 */
.yc-rp-close {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; margin: -2px -4px -2px 0;
    padding: 0; border: 0; border-radius: .25rem;
    background: transparent; color: var(--bs-secondary-color);
    font-size: .8rem; line-height: 1; cursor: pointer;
}
.yc-rp-close:hover {
    background: var(--bs-tertiary-bg, rgba(0, 0, 0, .06));
    color: var(--bs-body-color);
}
.yc-rp-foot {
    padding: .35rem .6rem; font-size: .75rem;
    border-top: 1px solid var(--bs-border-color-translucent);
}
.yc-rp-foot a { text-decoration: none; }
/* 窄屏把面板铆在左边并收窄各列, 否则三列 118px 会顶出屏幕右缘 */
@media (max-width: 576px) {
    .yc-rp-panel { position: fixed; left: 8px; right: 8px; width: auto; }
    .yc-rp-cols { width: 100%; }
    .yc-rp-col { flex: 1; width: auto; }
}

/* ═══════════════════════════════════════════════════════════
   地区上下文芯片 (2026-09-05) — 全站地区记忆的常驻呈现
   桌面: 侧栏品牌正下方一枚胶囊; 移动: 顶栏左槽一枚更小的。两枚是 region_picker 的紧凑变体
   (data-yc-rp-compact), 面板/记忆/恢复全部复用, 这里只管长相。
   ═══════════════════════════════════════════════════════════ */
.yc-region-mount-sidebar {
    padding: .6rem 1rem .55rem;
    border-bottom: 1px solid var(--yc-border);
}
.yc-region-mount-sidebar .yc-rp, .yc-region-mount-sidebar .yc-rp-btn { width: 100%; }
.yc-rp-chip .yc-rp-btn {
    min-width: 0; max-width: 100%; height: 30px;
    padding: 0 .55rem 0 .6rem; gap: .35rem;
    font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
    color: var(--yc-primary);
    background: var(--yc-gradient-brand-soft);
    border: 1px solid transparent;
    border-radius: var(--yc-radius-pill);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.yc-rp-chip .yc-rp-btn:hover { border-color: color-mix(in srgb, var(--yc-primary) 45%, transparent); }
.yc-rp-chip.is-open .yc-rp-btn { border-color: var(--yc-primary); box-shadow: 0 0 0 .2rem rgba(59, 130, 246, .15); }
.yc-rp-chip .yc-rp-pin { flex: none; font-size: .8rem; line-height: 1; }
/* 服务端出的壳文案为空, 顶栏那枚按内容定宽: 给空文案留两个字的宽, 文案填入时标题不挪 */
.yc-rp-chip .yc-rp-text:empty { display: inline-block; min-width: 2em; }
.yc-rp-chip .yc-rp-caret { flex: none; opacity: .6; }
/* 空态 ("选择地区"/"全国") 用次要色 + 细虚边: 它是行动召唤, 不是已选状态; 有值后走上面的品牌底 */
.yc-rp-chip.is-empty .yc-rp-btn {
    color: var(--yc-text-secondary);
    background: transparent;
    border: 1px dashed var(--yc-border-strong, var(--yc-border));
    font-weight: 500;
}
.yc-rp-chip.is-empty .yc-rp-pin { color: var(--yc-primary); }
[data-bs-theme=dark] .yc-rp-chip .yc-rp-btn { color: #93c5fd; }
[data-bs-theme=dark] .yc-rp-chip.is-empty .yc-rp-btn { color: var(--yc-text-secondary); }
/* 顶栏那一枚: 更矮更窄, 最多约 6 个汉字, 长的靠省略号 (title 有全路径) */
.yc-region-mount-topbar { flex: none; display: flex; align-items: center; }
.yc-region-mount-topbar .yc-rp-btn { height: 28px; max-width: 7.2em; padding: 0 .45rem 0 .5rem; font-size: .75rem; gap: .25rem; }
.yc-region-mount-topbar .yc-rp-caret { display: none; }

/* 首访建议行: 挂在芯片下方的小气泡 "为您定位到 南京 · 切换 / 忽略"。只出现一次, 接受/忽略即消失。 */
.yc-region-suggest {
    position: fixed; z-index: 1075;
    display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
    width: 232px; padding: .6rem .75rem .65rem;
    font-size: .8125rem; line-height: 1.4; color: var(--bs-body-color);
    background: var(--bs-body-bg);
    border: 1px solid var(--yc-border);
    border-radius: var(--yc-radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
    animation: yc-suggest-in .22s var(--yc-ease-standard, ease-out);
}
.yc-region-suggest::before {   /* 指向芯片的小三角 */
    content: ""; position: absolute; top: -6px; left: 18px; width: 10px; height: 10px;
    background: inherit; border-left: 1px solid var(--yc-border); border-top: 1px solid var(--yc-border);
    transform: rotate(45deg);
}
.yc-region-suggest b { color: var(--yc-primary); font-weight: 700; }
.yc-region-suggest .yc-rs-actions { display: flex; justify-content: flex-end; gap: .4rem; }
.yc-region-suggest .btn { padding: .2rem .7rem; font-size: .75rem; line-height: 1.4; border-radius: var(--yc-radius-pill); white-space: nowrap; }
@keyframes yc-suggest-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 991.98px) {
    .yc-region-mount-sidebar { padding: .5rem 1rem .45rem; }
}
@media (max-width: 575.98px) {
    .yc-region-suggest { left: 8px !important; right: 8px; width: auto; }
    .yc-region-suggest::before { display: none; }
}

/* ── 窄屏筛选栏折叠 .yc-collapsible (2026-09-05 列表页; 2026-09-06 泛化为全站机制, JS 见 yc-core.initCollapsibleFilters) ──
   主行只留 地区选择器 (.yc-rp) / data-yc-primary (时间档) / 「筛选(n)」(按钮由 yc-core 注入), data-yc-secondary 的控件收进
   折叠区 (is-expanded 展开)。桌面: 按钮隐藏, 一切照旧。适用于 card-header 里的 .yc-card-actions 与 card-body 里的
   .filter-bar (搜索页)。特异性要压过 .yc-card .card-header .yc-card-actions (0,3,0) —— 2026-08-25 那条 :has 网格规则
   正是输在这一点上 (0,2,0), 从未在 card-header 里生效过; 这里自己把网格立起来。 */
.yc-filter-more { display: none; }
/* 折叠区面板 .yc-filter-panel 只在 <768 存在 (yc-core 按媒体查询把 data-yc-secondary 的控件搬进来 / 搬回去) */
.yc-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .5rem; margin-top: .6rem; }
.yc-empty-actions a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .7rem; font-size: var(--yc-text-xs); text-decoration: none;
    border: 1px solid var(--yc-border); border-radius: var(--yc-radius-pill); color: var(--yc-primary);
}
.yc-empty-actions a:hover { background: var(--yc-gradient-brand-soft); border-color: transparent; }
.yc-empty .yc-empty-actions i { font-size: .85rem; margin: 0; opacity: 1; display: inline; }
@media (max-width: 767.98px) {
    /* 主行三格: 地区 : 时间 : 「筛选」(按内容宽), 展开与否都不变 —— 展开只是多出下方面板 */
    .yc-card .card-header .yc-card-actions.yc-collapsible,
    .filter-bar.yc-collapsible {
        display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
        gap: 6px; width: 100%; margin-left: 0; justify-content: stretch;
    }
    .yc-card .card-header .yc-card-actions.yc-collapsible > *,
    .filter-bar.yc-collapsible > * { width: 100% !important; max-width: none !important; min-width: 0; margin: 0 !important; }
    .yc-card .card-header .yc-card-actions.yc-collapsible > .yc-rp,
    .filter-bar.yc-collapsible > .yc-rp { order: -3; }
    /* min-width:0 必须显式: 基础样式给了 132px 下限, 360px 安卓上主行的地区格只有 ~105px, 按钮溢出格子
       盖住旁边时间档的 "近 " (2026-09-06 所有者实拍: "上海市 ⌄30 天") */
    .yc-card .card-header .yc-card-actions.yc-collapsible > .yc-rp .yc-rp-btn,
    .filter-bar.yc-collapsible > .yc-rp .yc-rp-btn { width: 100%; max-width: none; min-width: 0; }
    .yc-card .card-header .yc-card-actions.yc-collapsible > [data-yc-primary],
    .filter-bar.yc-collapsible > [data-yc-primary] { order: -2; }
    .yc-card .card-header .yc-card-actions.yc-collapsible > .yc-filter-more,
    .filter-bar.yc-collapsible > .yc-filter-more {
        order: -1; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; width: auto !important;
        padding-left: .6rem; padding-right: .6rem;
    }
    .yc-filter-more .yc-filter-more-n {
        font-size: .62rem; min-width: 1.15rem; padding: .15rem .3rem; border-radius: var(--yc-radius-pill);
        background: var(--yc-primary); color: #fff; line-height: 1;
    }
    /* 展开态连 :hover 一起定义: 手机点按后 :hover 会粘住 (iOS/Android 直到下一次触摸), Bootstrap 的
       outline-secondary:hover 是灰底白字, 与这里的蓝字叠成蓝字灰底 (2026-09-06 复核实拍, 对比不足) */
    .yc-collapsible.is-expanded > .yc-filter-more,
    .yc-collapsible.is-expanded > .yc-filter-more:hover {
        border-color: var(--yc-primary); color: var(--yc-primary); background-color: rgba(var(--yc-primary-rgb), .12);
    }
    /* 折叠区面板: 整行、带底色的 6 列网格, 按控件文字长度分配跨列: 下拉默认 2 列, 文本框整行, 按钮默认 3 列;
       data-yc-span 可覆写。收起时整个面板不显示。 */
    .yc-collapsible > .yc-filter-panel {
        order: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
        padding: .6rem; border-radius: var(--yc-radius-md); background: var(--yc-hover);
    }
    .yc-collapsible:not(.is-expanded) > .yc-filter-panel { display: none; }
    /* JS 搬进面板之前 (首屏解析期) 次要控件还是直接子项: 同样先藏, 否则它们先渲染一屏再被搬走 (CLS 0.18 实测) */
    .yc-collapsible:not(.is-expanded) > [data-yc-secondary] { display: none !important; }
    .yc-filter-panel > * { width: 100% !important; max-width: none !important; min-width: 0; margin: 0 !important; }
    /* 压过 ≤576 那条给 flex-wrap 排布写的 "select 保底 7.5rem、width:auto" (0,4,0): 面板是网格, 格宽由跨列数决定,
       7.5rem 下限会让第三个下拉伸出面板右缘 (360px 实测 f-sort 右边界 354 > 面板 340) */
    .yc-card .card-header .yc-card-actions .yc-filter-panel > .form-select-sm,
    .yc-card .card-header .yc-card-actions .yc-filter-panel > .form-control-sm {
        width: 100% !important; min-width: 0; flex: none; font-size: var(--yc-text-sm); padding: .3rem .5rem;
    }
    .yc-card .card-header .yc-card-actions .yc-filter-panel > .form-select-sm { padding-right: 1.5rem; background-position: right .4rem center; }
    .yc-filter-panel > input[data-yc-secondary] { grid-column: 1 / -1; }
    .yc-filter-panel > select[data-yc-secondary] { grid-column: span 2; }
    .yc-filter-panel > .btn[data-yc-secondary] { grid-column: span 3; }
    .yc-filter-panel > .btn-group[data-yc-secondary] { grid-column: span 2; display: flex; }
    .yc-filter-panel > .btn-group[data-yc-secondary] > .btn { flex: 1; }
    .yc-filter-panel > [data-yc-secondary][data-yc-span="1"] { grid-column: span 1; }
    .yc-filter-panel > [data-yc-secondary][data-yc-span="2"] { grid-column: span 2; }
    .yc-filter-panel > [data-yc-secondary][data-yc-span="3"] { grid-column: span 3; }
    .yc-filter-panel > [data-yc-secondary][data-yc-span="5"] { grid-column: span 5; }
    .yc-filter-panel > [data-yc-secondary][data-yc-span="6"] { grid-column: 1 / -1; }
    /* 手机上没意义的控件: 表格/卡片视图切换 (窄屏恒为卡片) 与复制链接 */
    .yc-filter-panel > [data-yc-mobile-hide] { display: none !important; }
    /* 面板里的开关按钮: 未选中时中性描边, 选中才上色 —— 此前绿 / 蓝两色空心按钮并排, 一屏三种强调色 */
    .yc-filter-panel > .btn.btn-outline-success:not(.active),
    .yc-filter-panel > .btn.btn-outline-primary:not(.active):not(.js-subscribe-filter) {
        color: var(--bs-body-color); border-color: var(--yc-border-strong); background: var(--yc-card-bg);
    }
}
/* 320 级小屏 (iPhone SE 一代 / 低端安卓): 6 列网格里 span 2 的下拉只剩 ~86px, "全部类别" 被切成半个字。
   下拉改两个一行 (span 3), 第 3n 个独占一行; 主行「筛选」只留图标 + 角标, 地区 / 时间平分 */
@media (max-width: 359.98px) {
    .yc-filter-panel > select[data-yc-secondary] { grid-column: span 3; }
    .yc-filter-panel > select[data-yc-secondary]:nth-of-type(3n) { grid-column: 1 / -1; }
    .yc-card .card-header .yc-card-actions.yc-collapsible,
    .filter-bar.yc-collapsible { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
    .yc-filter-more .yc-filter-more-t { display: none; }
}

/* 密集图表的窄屏横滑容器 .yc-chart-scroll (2026-09-06): 图在 --yc-chart-min 宽的画布上画, 手机左右滑;
   YC.initScrollHints 在实际溢出时插入「左右滑动查看」提示。桌面无效果 (容器比画布宽) */
@media (max-width: 767.98px) {
    .yc-chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .yc-chart-scroll > [data-yc-min-width] { min-width: var(--yc-chart-min, 720px); }
}

/* 有 AI 浮动气泡的页面 (yc-ai-facade 加 body.yc-has-fab): 手机页底多留 88px, 最后一段正文 / FAQ 不被气泡永久压住 */
@media (max-width: 767.98px) { body.yc-has-fab .page-body { padding-bottom: 88px; } }

/* 说明型 <details> (yc-core.initMobileDetails 在 <576 去掉 open): 摘要行像一行标题, 右侧箭头随展开旋转 */
details.yc-details-mobile-collapsed > .yc-details-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .25rem; }
details.yc-details-mobile-collapsed > .yc-details-summary::-webkit-details-marker { display: none; }
details.yc-details-mobile-collapsed > .yc-details-summary::after {
    content: ""; margin-left: auto; width: .5em; height: .5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); opacity: .6; transition: transform var(--yc-dur-base) var(--yc-ease-standard);
}
details.yc-details-mobile-collapsed[open] > .yc-details-summary::after { transform: rotate(-135deg); }
@media (min-width: 576px) { details.yc-details-mobile-collapsed > .yc-details-summary::after { display: none; } details.yc-details-mobile-collapsed > .yc-details-summary { cursor: default; } }

/* 手机上默认收起的分析卡 (yc-core.initMobileCollapse): 卡头右侧一枚箭头, 收起时不显示卡体 */
.yc-mc-chevron { display: none; }
@media (max-width: 575.98px) {
    .yc-card[data-yc-mobile-collapse] > .card-header { cursor: pointer; }
    .yc-card[data-yc-mobile-collapse] > .card-header > .yc-mc-chevron {
        display: inline-block; margin-left: .5rem; color: var(--yc-muted); transition: transform var(--yc-dur-base) var(--yc-ease-standard);
    }
    /* 卡头里原本靠右的那一项 (计数 / 说明) 仍靠右, 箭头紧跟其后 */
    .yc-card[data-yc-mobile-collapse] > .card-header > :nth-last-child(2):not(:first-child) { margin-left: auto; }
    .yc-card[data-yc-mobile-collapse].is-collapsed > .card-header > .yc-mc-chevron { transform: rotate(-90deg); }
    .yc-card[data-yc-mobile-collapse].is-collapsed > .card-header { border-bottom: 0; }
    .yc-card[data-yc-mobile-collapse].is-collapsed > .card-body { display: none; }
}

/* 页内 nav-pills 的窄屏形态 .yc-pills-seg: 三等分分段控件, 文字缩短到 "TOP 100" 不换行 */
@media (max-width: 575.98px) {
    .yc-pills-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; }
    .yc-pills-seg .nav-item { display: contents; }
    .yc-pills-seg .nav-link { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .4rem .3rem; font-size: var(--yc-text-sm); }
}

/* 项目列表评标堆叠条 (2026-09-06): <576 窄段 (<12%, .eval-thin) 不显内部百分比 —— 30px 高的条里
   "10.6%" 与 "3.6%7.0%" 互相压字; 图例行本就带数字, 条只负责比例, title 仍可看 */
#eval-bar > div { overflow: hidden; white-space: nowrap; }
@media (max-width: 575.98px) { #eval-bar > .eval-thin { font-size: 0; } }

/* 详情页「看 {市} 最新公告」(2026-09-05): 相关公告之下的一行回本地入口 */
.yc-region-home-link {
    display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
    margin: .75rem 0; padding: .55rem .9rem;
    font-size: var(--yc-text-sm); color: var(--yc-text-secondary);
    background: var(--yc-gradient-brand-soft); border-radius: var(--yc-radius-md);
}
.yc-region-home-link a { font-weight: 600; text-decoration: none; }

/* 首页「{市} · 最新公告」块 (2026-09-05): 5 行紧凑列表 —— 标题 | 日期 在第一行, 元信息第二行
   (2026-09-06: 日期原挂在元信息行尾 ms-auto, 手机上元信息折行后日期独占第三行, 五行参差) */
.yc-region-latest { list-style: none; margin: 0; padding: 0; }
.yc-rl-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .12rem .6rem; align-items: baseline;
    padding: .5rem 1rem; border-bottom: 1px solid var(--yc-border);
}
.yc-rl-item:last-child { border-bottom: 0; }
.yc-rl-item:hover { background: var(--bs-tertiary-bg, rgba(0, 0, 0, .025)); }
.yc-rl-title {
    font-size: var(--yc-text-sm); font-weight: 500; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.yc-rl-date { font-size: var(--yc-text-xs); color: var(--yc-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.yc-rl-meta { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .4rem; font-size: var(--yc-text-xs); color: var(--yc-muted); min-width: 0; }
.yc-rl-meta .yc-amt { font-size: var(--yc-text-xs); }
@media (max-width: 575.98px) {
    /* 手机上标题两行完整可读 (单行省略只剩十来个字) */
    .yc-rl-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
}
.yc-rl-m { white-space: nowrap; }
/* 分隔点挂在前一项尾部 (:has 前瞻): 折行时下一行不会以孤零零的 "·" 开头 */
.yc-rl-m:has(+ .yc-rl-m)::after { content: "·"; margin-left: .4rem; opacity: .6; }
.yc-rl-deadline { color: var(--yc-amount); }
.yc-rl-deadline.urgent { color: #dc2626; font-weight: 600; }
/* 骨架行与真实行同一结构 (标题 / 日期 / 元信息三格), 标题定行数 → 每行等高, 数据到达只换内容不改高 */
.yc-rl-title { min-height: 1.4em; }
@media (max-width: 575.98px) { .yc-rl-title { min-height: 2.8em; } }   /* 两行 (line-clamp:2 × line-height 1.4) */
/* 骨架用透明文字占位 (与真实行同字号、同行高、同基线 —— 空盒子在 align-items:baseline 的网格里会多出几像素) */
.yc-rl-skel .yc-rl-title { display: block; }
.yc-rl-skel .yc-rl-title .yc-skel { display: inline; }
@media (max-width: 575.98px) { .yc-rl-skel .yc-rl-title .yc-skel { display: block; -webkit-line-clamp: inherit; } }
.yc-rl-empty { display: flex; flex-wrap: wrap; gap: .25rem .9rem; padding: .85rem 1rem; font-size: var(--yc-text-sm); }
.yc-rl-empty a { text-decoration: none; }

/* ── 「整理中」标记 (2026-08-05) ──
 * 列表的金额/投标截止在关键信息就绪前两列都是 — , 与"中标结果公告本就
 * 没有投标截止"无从区分。这个标记只回答一个问题: 这条的空白是稍后会有, 还是本就没有。
 * 用虚线下划线而非颜色区分: 它不是警告也不是状态错误, 只是"悬停可看解释"的既有惯例;
 * 着色会让 10% 的行在扫视时抢走注意力, 而它们恰恰是最不值得先看的那批。 */
.yc-parsing {
    color: var(--yc-muted);
    border-bottom: 1px dotted var(--yc-border-strong);
    cursor: help;
}

/* ═══ 页内会员墙 .yc-gate (2026-09-07): 代替整页白块墙 —— 真实内容在上面, 这一条说清锁了什么与出路 ═══ */
.yc-gate { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: var(--yc-radius-md);
    background: linear-gradient(135deg, rgba(var(--yc-primary-rgb), .08), rgba(139, 92, 246, .06)); border: 1px dashed rgba(var(--yc-primary-rgb), .35); }
.yc-gate-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(var(--yc-primary-rgb), .14); color: var(--yc-primary); font-size: 1rem; }
.yc-gate-body { flex: 1; min-width: 0; }
.yc-gate-t { font-size: var(--yc-text-sm); }
.yc-gate-m { font-size: var(--yc-text-xs); color: var(--yc-text-secondary); margin-top: .15rem; }
.yc-gate-acts { display: flex; gap: .4rem; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.yc-gate-compact { padding: .55rem .8rem; gap: .6rem; }
.yc-gate-compact .yc-gate-ico { width: 28px; height: 28px; font-size: .85rem; }
/* 被遮蔽的单元格 / 名单项 */
.yc-masked { color: var(--yc-muted); font-style: normal; letter-spacing: .02em; display: inline-flex; align-items: center; gap: .25rem; }
.yc-masked::before { content: "\F47B"; font-family: "bootstrap-icons"; font-size: .8em; }
@media (max-width: 575.98px) { .yc-gate { flex-wrap: wrap; } .yc-gate-acts { width: 100%; justify-content: flex-start; padding-left: 2.6rem; } }


/* ═══ 报价带 .pb-* (templates/_price_bands.html, 2026-09-07): 报价库与预算成交页共用 ═══ */
/* 报价带 (2026-09-07): 首屏先给答案 —— 本市各预算档的中标价水位 + 拟报价定位; 明细表是证据, 在下面 */
.pb-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}
.pb-head h2{font-size:1.05rem;font-weight:700;margin:0}
.pb-head .pb-sub{font-size:var(--yc-text-xs);color:var(--yc-muted)}
.pb-chips{display:flex;flex-wrap:wrap;gap:.35rem}
.pb-chips .yc-chip.active{background:var(--yc-primary);color:#fff}
.pb-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:1rem;align-items:start}
/* 分位表 .yc-qtbl + 区间条 .yc-range (报价带 / 生命周期「招标→结果」共用): 列序固定为 名称 | 样本 | P25 | 中位 | P75 | 区间条,
   同一张表内所有区间条共用一根轴 (轴的两端写在区间条列的表头 .yc-qtbl-axis); 中位列橙色加粗 = 这一行的答案 */
.yc-qtbl{width:100%;border-collapse:collapse}
.yc-qtbl th{font-size:var(--yc-text-xs);color:var(--yc-muted);font-weight:600;text-align:left;padding:.35rem .5rem;border-bottom:1px solid var(--yc-border);white-space:nowrap}
.yc-qtbl td{padding:.5rem .5rem;border-bottom:1px solid var(--yc-border);font-size:var(--yc-text-sm);vertical-align:middle;white-space:nowrap}
.yc-qtbl tr:last-child td{border-bottom:0}
.yc-qtbl td.num{font-variant-numeric:tabular-nums;text-align:right}
.yc-qtbl td.p50{font-weight:700;color:var(--yc-amount)}
.yc-qtbl td.dim{color:var(--yc-muted)}
.yc-qtbl th:first-child{width:1%}   /* 名称列收到内容宽 (nowrap), 余下宽度归区间条 */
.yc-qtbl tr.total td{font-weight:600;background:rgba(var(--yc-primary-rgb),.05)}
.yc-qtbl tr.total .yc-range .iq{background:rgba(var(--yc-primary-rgb),.6)}
.yc-qtbl-axis{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;font-variant-numeric:tabular-nums}
.yc-qtbl-axis .lab{font-weight:400;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis}
.yc-range{position:relative;height:10px;background:var(--yc-hover);border-radius:5px;min-width:140px}
.yc-range .iq{position:absolute;top:0;bottom:0;background:rgba(var(--yc-primary-rgb),.35);border-radius:5px}
.yc-range .wide{position:absolute;top:3px;bottom:3px;background:rgba(var(--yc-primary-rgb),.15);border-radius:4px}
.yc-range .med{position:absolute;top:-3px;bottom:-3px;width:3px;background:var(--yc-amount);border-radius:2px}
.yc-range .me{position:absolute;top:-7px;bottom:-7px;width:0;border-left:3px dashed #dc2626}
.pb-axis{display:flex;justify-content:space-between;font-size:var(--yc-text-xxs);color:var(--yc-muted);padding:.15rem .5rem 0}
.pb-loc{background:linear-gradient(135deg,rgba(var(--yc-primary-rgb),.08),rgba(139,92,246,.06));border:1px solid rgba(var(--yc-primary-rgb),.18);border-radius:var(--yc-radius-md);padding:.9rem 1rem}
.pb-loc h3{font-size:var(--yc-text-base);font-weight:700;margin:0 0 .5rem}
.pb-loc .row-in{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.pb-loc label{font-size:var(--yc-text-xs);color:var(--yc-muted);display:block;margin-bottom:.15rem}
.pb-verdict{margin-top:.75rem;font-size:var(--yc-text-sm);line-height:1.65}
.pb-verdict b{font-variant-numeric:tabular-nums}
.pb-verdict .tag{display:inline-block;padding:0 .5rem;border-radius:999px;font-size:var(--yc-text-xs);font-weight:600;margin-right:.3rem}
.pb-verdict .tag.low{background:rgba(16,185,129,.14);color:#059669}
.pb-verdict .tag.mid{background:rgba(59,130,246,.14);color:#2563eb}
.pb-verdict .tag.high{background:rgba(245,158,11,.16);color:#b45309}
.pb-verdict .tag.out{background:rgba(239,68,68,.12);color:#dc2626}
.pb-note{font-size:var(--yc-text-xs);color:var(--yc-muted);margin-top:.6rem;line-height:1.6}
.pb-grid>div{min-width:0}
.yc-qtbl-wrap{overflow-x:auto}
@media (max-width:991.98px){.pb-grid{grid-template-columns:1fr}}
/* 手机: 分位表只留 名称 / 中位 / 区间条 三列 (P25/P75 进区间条的 title), 表不横滑 */
@media (max-width:575.98px){
  .yc-qtbl th:nth-child(2),.yc-qtbl td:nth-child(2),.yc-qtbl th:nth-child(3),.yc-qtbl td:nth-child(3),.yc-qtbl th:nth-child(5),.yc-qtbl td:nth-child(5){display:none}
  .yc-qtbl td,.yc-qtbl th{padding:.45rem .3rem}.yc-range{min-width:90px}
  .yc-qtbl-axis .lab{display:none}
  .pb-head h2{font-size:.95rem}
}

/* 卡片内的一句结论 (答案层): 表/图之前先说人话 */
.yc-lead { font-size: var(--yc-text-sm); line-height: 1.7; color: var(--yc-text); }
.yc-lead b { font-variant-numeric: tabular-nums; }

/* ═══ 判定徽标 .yc-verdict (决策中心机会表 / 公告详情答案层共用) ═══ */
.yc-verdict { display: inline-block; font-weight: 700; font-size: .8rem; padding: .1rem .55rem; border-radius: 1rem; line-height: 1.5; }
.yc-verdict-go { background: rgba(16, 185, 129, .16); color: #059669; }
.yc-verdict-watch { background: rgba(245, 158, 11, .16); color: #b45309; }
.yc-verdict-drop { background: rgba(148, 163, 184, .18); color: var(--yc-text-secondary); }
[data-bs-theme="dark"] .yc-verdict-go { color: #34d399; }
[data-bs-theme="dark"] .yc-verdict-watch { color: #fbbf24; }

/* ═══ 公告详情答案层 .yc-ans (templates/_detail_answers.html, 2026-09-07) ═══ */
.yc-ans-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto; gap: .35rem .9rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--yc-border); }
.yc-ans-row:last-child { border-bottom: 0; }
.yc-ans-k { font-size: var(--yc-text-xs); color: var(--yc-muted); font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.yc-ans-k i { color: var(--yc-primary); }
.yc-ans-v { font-size: var(--yc-text-sm); line-height: 1.6; min-width: 0; }
.yc-ans-v b { font-variant-numeric: tabular-nums; }
.yc-ans-a { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.yc-ans-a .btn { white-space: nowrap; }
@media (max-width: 767.98px) {
    .yc-ans-row { grid-template-columns: 1fr; gap: .3rem; }
    .yc-ans-a { justify-content: flex-start; }
}

/* ═══ 表格空格 (2026-09-07, 所有者: 很多空白项): 单元格里什么都没有 = 没记录, 用淡色 "—" 说出来, 不留一个看不出是
   "没数据"还是"没加载"的空位。只对真正的空元素生效 (:empty), 有内容的一律不动; 各页各列若有更准的说法
   ("未披露" / "尚未定标") 自己写, 这里是兜底。 ═══ */
.table > tbody > tr > td:empty::before,
.table > tbody > tr > td > small:only-child:empty::before { content: "\2014"; color: var(--yc-muted); }
@media (max-width: 767.98px) {
    /* 卡片化后空格连破折号也不占位 (桌面表格里不能隐藏, 会错列) */
    .yc-tbl-cards > .table > tbody > tr > td:empty { display: none; }
}
