/* ============================================================
   列表页统一样式（list.css）
   适用：注册 IPO 企业一览等列表页（iposh 等）
   依赖 home.css 中定义的设计 token：
   --c-card / --c-line / --c-blue / --c-blue-dark / --c-blue-soft
   --c-text / --c-text-2 / --c-text-3 / --c-chip
   --radius / --shadow

   后续新增列表页时，直接引入本文件复用：
     - 搜索条 .search-container / .search-box（含 hero 暗色配色）
     - 面包屑 .location-bar
     - 统计卡 .stats / .stat-card
     - 筛选 Tab .tab-bar / .tab
     - 数据表 .data-card / .data-table（含 .ent-name / .mkt）
     - 状态彩色标签 .status.s-*
     - 分页 .pagination
   各页面若需局部覆盖样式，应再单独引入该页面的 CSS。
   ============================================================ */

/* ---- 广告位尺寸约束（AdSense 要求） ---- */
.ad-banner ins.adsbygoogle { display: block; width: 100%; height: 100px; }
.search-container {
    margin-bottom: 14px;
}
.search-box {
    max-width: 560px;
    display: flex;
    border: 2px solid var(--c-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-card);
    transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--c-blue); }
.search-input {
    flex: 1;
    height: 46px;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 15px;
    background: transparent;
}
.search-input::placeholder { color: var(--c-text-3); }
.search-btn {
    width: 96px;
    height: 46px;
    background: var(--c-blue);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.search-btn:hover { background: var(--c-blue-dark); }

/* 搜索条放在深色 hero 内时的暗色配色 */
.hero .search-container { margin: 0; }
.hero .search-box {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.18);
}
.hero .search-box:focus-within {
    border-color: var(--c-blue);
    background: rgba(255,255,255,.1);
}
.hero .search-input { background: transparent; color: #fff; }
.hero .search-input::placeholder { color: rgba(255,255,255,.5); }

/* ============ 当前位置（面包屑）— 与内容页一致：透明底 + 链接式 ============ */
.location-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(148,163,184,.7);
    padding: 8px 0;
    margin-bottom: 14px;
}
.location-bar .loc-label { color: rgba(148,163,184,.6); font-size: 12px; margin-right: 2px; }
.location-bar a { color: var(--c-text-2); transition: color .2s; word-break: break-all; }
.location-bar a:hover { color: var(--c-blue); text-decoration: underline; }
/* 面包屑放进深色 hero 时的适配（位于 H1 上方，与内容页 .loc-row 节奏一致） */
.hero .location-bar {
    color: rgba(255,255,255,.55);
    padding: 0;
    margin-bottom: 8px;
}
.hero .location-bar .loc-label { color: rgba(255,255,255,.45); }
.hero .location-bar a { color: rgba(255,255,255,.75); }
.hero .location-bar a:hover { color: #fff; text-decoration: underline; }
.hero .hero-title { margin-top: 0; }

/* ============ 统计卡 ============ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.stat-card {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-card .num { font-size: 24px; font-weight: 800; color: var(--c-blue); font-variant-numeric: tabular-nums; }
.stat-card .label { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }

/* ============ 状态筛选 Tab ============ */
.tab-bar {
    display: flex;
    gap: 6px;
    margin: 0;
    flex-wrap: wrap;
    padding: 10px;
}
.tab {
    padding: 7px 16px;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    background: var(--c-card);
    color: var(--c-text-2);
    transition: all .2s;
}
.tab:hover { border-color: var(--c-blue); color: var(--c-blue); }
.tab.active {
    background: var(--c-blue);
    color: #fff;
    border-color: var(--c-blue);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30,159,255,.35);
}

/* ============ 企业表格 ============ */
.data-card {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow);
    /* 卡片主体不裁剪；子组件（表格 / 时间线 / 图表）自带横向滚动区 */
}
.data-card > h2 {
    background: var(--c-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: -18px -18px 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
/* h2 与下方内容之间的间距：保证 .news-list / .tag-group 等不被压 */
.data-card > h2 + * {
    margin-top: 16px;
}
.data-card > h2 .dim {
    font-weight: 400;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin-left: auto;
}
.data-table { width: 100%; border-collapse: collapse; }

/* ---- 表格容器：横向滚动 ---- */
.table-wrap { overflow-x: auto; }

/* 表格通栏顶边（在 .data-card 内左右贴卡片边缘） */
.data-card .table-wrap {
    margin: 0 -18px;
}

/* ---- 区块紧贴：去掉顶部 padding ---- */
.block-flush { padding-top: 0; }

/* ---- 统计数字色变体 ---- */
.num-green   { color: #15803d; }
.num-amber   { color: #b45309; }
.num-blue    { color: #1d4ed8; }
.num-indigo  { color: #4338ca; }
.num-red     { color: #b91c1c; }

/* ---- 日期列：等宽数字对齐 ---- */
.data-table td.date { font-variant-numeric: tabular-nums; }

/* ---- 涨跌幅列：红涨绿跌 ---- */
.data-table td.chg-up   { font-variant-numeric: tabular-nums; color: #b91c1c; font-weight: 600; }
.data-table td.chg-down { font-variant-numeric: tabular-nums; color: #15803d; font-weight: 600; }

/* ---- 代码列：等宽数字 ---- */
.data-table td.code { font-variant-numeric: tabular-nums; font-family: Consolas, Monaco, monospace; }
/* ---- 首列（名称列）：加粗，强化视觉重心 ---- */
.data-table tbody td:first-child { font-weight: 700; }
.data-table tbody td:first-child a { font-weight: 700; }
/* ---- 首列（名称列）：加粗，强化视觉重心 ---- */
.data-table tbody td:first-child { font-weight: 700; }
.data-table tbody td:first-child a { font-weight: 700; }
.data-table th {
    background: var(--c-blue-soft);
    padding: 11px 12px;
    text-align: left;
    font-size: 13px;
    color: var(--c-text-2);
    font-weight: 600;
    border-bottom: 1px solid var(--c-line);
    white-space: nowrap;
}
.data-table td {
    padding: 13px 12px;
    font-size: 14px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-text-2);
    vertical-align: middle;
}
.data-table tr:hover { background: var(--c-blue-soft); }
.data-table tr.is-today { background: #fef3c7; }
.data-table tr.is-today:hover { background: #fde68a; }
.data-table tr:last-child td { border-bottom: none; }
.data-table .ent-name { font-weight: 700; color: var(--c-text); transition: color .2s; }
.data-table .ent-name a { color: inherit; text-decoration: none; }
.data-table .ent-name:hover a { color: var(--c-blue); text-decoration: underline; }
.data-table .ent-name:hover .ent-code { color: var(--c-blue); }
.data-table .ent-code {
    display: block;
    font-family: Consolas, Monaco, monospace;
    color: var(--c-text-3);
    font-size: 12px;
    margin-top: 3px;
    font-weight: 400;
}
/* 股票两行合并列（.td-cell-name）：名称在上，代码在下，垂直居中 */
.data-table td.td-cell-name { white-space: normal; }
.data-table td.td-cell-name .ent-name { display: block; }
/* ent-name 内联模式：名称在上、代码在下（代码为 <span class="ent-code"> 内嵌 a 中） */
.data-table td .ent-name { display: block; }
.data-table td .ent-name .ent-code { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; }
.data-table .mkt {
    display: inline-block;
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 4px;
    background: var(--c-chip);
    color: var(--c-text-2);
    font-weight: 500;
}
/* 市场类型色彩变体（stock.html / fdqy.html / etf_basic.html 等） */
.data-table .mkt.mkt-sh   { background: #dbeafe; color: #1d4ed8; }
.data-table .mkt.mkt-sz   { background: #d1fae5; color: #047857; }
.data-table .mkt.mkt-cyb  { background: #fef3c7; color: #b45309; }
.data-table .mkt.mkt-kc   { background: #f3e8ff; color: #7e22ce; }
.data-table .mkt.mkt-bj   { background: #e0e7ff; color: #4338ca; }
/* ETF 投资通道色彩变体（etf_basic.html） */
.data-table .mkt.mkt-hk   { background: #fff7ed; color: #c2410c; }
.data-table .mkt.mkt-gd   { background: #f5f3ff; color: #6d28d9; }

.data-table .detail-link { font-weight: 700; }

/* ---- 新股上会（xgsh）：申购日期列的「申购」快捷链接 ---- */
.data-table .apply-link {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-blue);
    background: var(--c-blue-soft);
    border-radius: 4px;
    text-decoration: none;
    transition: all .2s;
}
.data-table .apply-link:hover {
    background: var(--c-blue);
    color: #fff;
}

/* ---- 工具条：游资名录等快捷链接 ---- */
.hm-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 10px;
}
.hm-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-blue);
    text-decoration: none;
    padding: 6px 12px;
    background: var(--c-blue-soft);
    border-radius: 8px;
    transition: all .2s;
}
.hm-link:hover {
    background: var(--c-blue);
    color: #fff;
}

/* ============ 行业PE（industry）专用列 ============ */
/* PE 数值列：等宽数字对齐 */
.data-table td.pe {
    font-variant-numeric: tabular-nums;
    font-family: Consolas, Monaco, monospace;
    color: var(--c-text);
    font-weight: 600;
}
/* 盈利 / 亏损家数列：带颜色提示 */
.data-table td.count-pos {
    font-variant-numeric: tabular-nums;
    color: #b91c1c;
    font-weight: 600;
}
.data-table td.count-neg {
    font-variant-numeric: tabular-nums;
    color: #15803d;
    font-weight: 600;
}
/* 盈利率列：≥95% 蓝色高亮（rate-high），其余默认（rate-mid） */
.data-table td.rate-high {
    font-variant-numeric: tabular-nums;
    color: var(--c-blue);
    font-weight: 700;
}
.data-table td.rate-mid {
    font-variant-numeric: tabular-nums;
    color: var(--c-text-2);
    font-weight: 600;
}
/* PE最高 / PE最低 列：股票名 + 小PE标签 */
.data-table td.ent-stock { display: flex; align-items: center; gap: 6px; }
.data-table td.ent-stock a {
    color: var(--c-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}
.data-table td.ent-stock a:hover { text-decoration: underline; color: var(--c-blue-dark); }
/* 单行内联版：股票名 + PE标签水平排列，不换行 */
.data-table td.ent-stock-inline { white-space: nowrap; }
.data-table td.ent-stock-inline a {
    color: var(--c-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
    margin-right: 6px;
}
.data-table td.ent-stock-inline a:hover { text-decoration: underline; color: var(--c-blue-dark); }
.pe-tag {
    display: inline-block;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-family: Consolas, Monaco, monospace;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--c-chip);
    color: var(--c-text-3);
    font-weight: 500;
}

/* ============ 审核状态彩色标签 ============ */
.hs {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.hs-h { background: #dbeafe; color: #1d4ed8; }
.hs-s { background: #d1fae5; color: #047857; }
.hs-n { background: var(--c-chip); color: var(--c-text-3); }

.status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.status.s-new      { background: #dbeafe; color: #1d4ed8; }
.status.s-accepted { background: #d1fae5; color: #047857; }
.status.s-asked    { background: #fef3c7; color: #b45309; }
.status.s-withdraw { background: #fee2e2; color: #b91c1c; }
.status.s-halt     { background: #f3e8ff; color: #7e22ce; }
.status.s-pass     { background: #f0fdf4; color: #15803d; }
.status.s-submit   { background: #ccfbf1; color: #0f766e; }
.status.s-effective{ background: #fff7ed; color: #c2410c; }
.status.s-default  { background: var(--c-chip); color: var(--c-text-3); }
/* ---- 新股上会（xgsh）扩展状态 ---- */
.status.s-wait     { background: #e0e7ff; color: #4338ca; }
.status.s-cancel   { background: #fee2e2; color: #b91c1c; }
/* ---- 其他状态变体（内容页模板使用） ---- */
.status.s-ask      { background: #fef3c7; color: #b45309; }
.status.s-accept   { background: #ccfbf1; color: #0f766e; }
.status.s-pending  { background: #e0e7ff; color: #4338ca; }
.status.s-fail     { background: #fee2e2; color: #b91c1c; }
/* ---- 新股申购扩展状态 ---- */
.status.s-issued   { background: #d1fae5; color: #047857; }

/* ============ 分页 ============ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 32px;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 8px 14px;
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    font-size: 13px;
    color: var(--c-text-2);
    transition: all .2s;
}
.pagination a:hover {
    border-color: var(--c-blue);
    color: var(--c-blue);
    background: var(--c-blue-soft);
}
.pagination a.page-current {
    background: var(--c-blue);
    color: #fff;
    border-color: var(--c-blue);
    font-weight: 700;
}
.pagination a.page-disabled {
    color: var(--c-text-3);
    cursor: not-allowed;
    opacity: .55;
}
.pagination a.page-disabled:hover {
    background: var(--c-card);
    color: var(--c-text-3);
    border-color: var(--c-line);
}
.pagination .ellipsis {
    color: var(--c-text-3);
    font-size: 13px;
    padding: 0 4px;
}

/* ============ 文章列表（article）：卡片流 + 分类标签 ============ */
/* 卡片流容器：纵向堆叠，卡片之间留白 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
/* 单篇文章卡片：白卡 + 圆角 + 阴影，与 .data-card 同款 */
.article-card {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 18px 22px;
    transition: border-color .2s, box-shadow .2s;
}
.article-card:hover {
    border-color: var(--c-blue);
    box-shadow: 0 4px 16px rgba(30,159,255,.18);
}
/* 文章标题：15-16px，加粗，分类标签 + 标题链接同行排列 */
.article-card .article-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 8px;
    line-height: 1.5;
}
.article-card .article-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.article-card .article-title a:hover { color: var(--c-blue); text-decoration: underline; }
/* 分类标签：胶囊形，按 type 区分配色 */
.art-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 8px;
    vertical-align: middle;
    letter-spacing: .5px;
}
.art-tag.tag-new     { background: #dbeafe; color: #1d4ed8; }
.art-tag.tag-out     { background: #fee2e2; color: #b91c1c; }
.art-tag.tag-notice  { background: #fef3c7; color: #b45309; }
.art-tag.tag-know    { background: #d1fae5; color: #047857; }
.art-tag.tag-info    { background: var(--c-chip); color: var(--c-text-3); }
/* 摘要：14px，灰色，2 行截断 */
.article-card .article-excerpt {
    font-size: 14px;
    color: var(--c-text-2);
    line-height: 1.75;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 元信息：时间 + 浏览量，12px 灰字 */
.article-card .article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--c-text-3);
}
.article-card .article-meta .meta-item { display: inline-flex; align-items: center; gap: 4px; }

/* 内部包裹层 .article-content（模板使用 .article-card > .article-content > .article-title） */
.article-card .article-content { padding: 0; }
/* .article-content 内部选择器需重新指定 */
.article-card .article-content .article-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 8px;
    line-height: 1.5;
}
.article-card .article-content .article-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.article-card .article-content .article-title a:hover { color: var(--c-blue); text-decoration: underline; }
.article-card .article-content .article-excerpt {
    font-size: 14px;
    color: var(--c-text-2);
    line-height: 1.75;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .article-content .article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--c-text-3);
}
.article-card .article-content .article-meta .meta-item { display: inline-flex; align-items: center; gap: 4px; }

/* ============ 文章页两栏布局（article）：左最新列表 + 右热门/相关侧栏 ============ */
.article-layout {
    display: grid;
    /* 用 minmax(0,1fr) 而不是 1fr：1fr 的最小尺寸是 auto(min-content)，
       正文里的宽表格/代码块/广告 iframe 会把轨道顶宽，导致整块溢出 */
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}
.article-layout-main { min-width: 0; }
.article-layout-main .article-list { margin-bottom: 0; }
/* 右侧栏：纵向堆叠两张白卡 */
.article-layout-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.side-card {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
}
.side-card .section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--c-blue);
    letter-spacing: 1px;
}
/* 排行榜式条目：序号 + 标题，单行截断 */
.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rank;
}
.rank-item {
    counter-increment: rank;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    border-bottom: 1px dashed var(--c-line);
}
.rank-item:last-child { border-bottom: none; }
.rank-item::before {
    content: counter(rank);
    flex: 0 0 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--c-chip);
    color: var(--c-text-3);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
/* 前三名序号加色（与「红涨绿跌」的排行语义一致：1 红 2 橙 3 蓝） */
.rank-item:nth-child(1)::before { background: #b91c1c; color: #fff; }
.rank-item:nth-child(2)::before { background: #c2410c; color: #fff; }
.rank-item:nth-child(3)::before { background: #1d4ed8; color: #fff; }
.rank-item a {
    font-size: 13px;
    color: var(--c-text-2);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rank-item a:hover { color: var(--c-blue); text-decoration: underline; }
.rank-item:nth-child(1) a,
.rank-item:nth-child(2) a,
.rank-item:nth-child(3) a { font-weight: 700; color: var(--c-text); }

/* ============ 数据卡间距：卡片之间 18px ============ */
.data-card + .data-card { margin-top: 18px; }
.data-card + .cal-faq, .cal-tools + .cal-faq { margin-top: 24px; }

/* ============ 列表页 H1 标题：仅重置 margin，保留 home.css 的字号/字重 ============ */
.hero h1.hero-title { margin: 0; }

/* ============ 数据卡内 hint 提示文字（如牛散推荐卡下方的说明） ============ */
.data-card .dim.hint {
    margin-top: 12px;
    font-size: 13px;
}

/* ============ 首页表格容器（.data-col + .col-head + .col-body + .list-table） ============
   与 home.css 中定义的同名类完全一致；工具页仅引入 home.css，不受影响。
   放在 list.css 是为了让 index.html 不再直接依赖 home.css 中这部分表格样式。 */
.data-col {
    background: var(--c-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow .25s;
}
.data-col:hover { box-shadow: var(--shadow-hover); }
.data-col + .data-col { margin-top: 20px; }
.col-head {
    background: var(--c-navy);
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.col-head h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
}
.col-head a {
    color: var(--c-amber);
    font-size: 13px;
    font-weight: 500;
}
.col-head a:hover { text-decoration: underline; }
.col-body { padding: 0; }

.list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.list-table th {
    background: var(--c-chip);
    color: var(--c-text-2);
    font-weight: 600;
    text-align: left;
    padding: 10px 16px;
    border-bottom: 2px solid var(--c-line);
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.list-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-text-2);
    font-variant-numeric: tabular-nums;
}
.list-table tr:last-child td { border-bottom: none; }
.list-table tbody tr { transition: background .15s; }
.list-table tbody tr:hover { background: var(--c-blue-soft); }
.list-table .name {
    color: var(--c-text);
    font-weight: 600;
}
.list-table .name a { color: inherit; text-decoration: none; }
.list-table .name a:hover { color: var(--c-blue); text-decoration: underline; }
.list-table .code {
    display: block;
    font-family: Consolas, Monaco, monospace;
    color: var(--c-text-3);
    font-size: 12px;
    margin-top: 2px;
}
.mkt-badge {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--c-chip);
    color: var(--c-text-2);
}
.mkt-badge.上 { background: #d1fae5; color: #047857; }
.mkt-badge.创 { background: #fef3c7; color: #b45309; }
.mkt-badge.科 { background: #dbeafe; color: #1d4ed8; }
.mkt-badge.北 { background: #d1fae5; color: #047857; }

/* 移动端：list-table 横向滚动（与 home.css 中同名规则一致） */
@media (max-width: 768px) {
    .col-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .list-table { min-width: 480px; display: table; }
    .list-table thead { display: table-header-group; }
    .list-table th, .list-table td { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
    .list-table th { font-size: 12px; }
}

/* ============ 响应式（原有 list.css 响应式规则） ============ */
@media (max-width: 768px) {
    .search-box { max-width: 100%; }
    .data-card > h2 .dim { margin-left: 0; width: 100%; }

    /* 多列宽数据表：不再挤压列宽，固定最小宽度 + 横向滑动 */
    .data-card { padding: 14px 12px; }
    .data-card > h2 { margin: -14px -12px 12px; }
    .data-table { min-width: 560px; }
    .data-table th, .data-table td {
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 13px;
    }
    .data-table th { font-size: 12px; }

    /* 内容页 data-table：横向滑动模式，表格设最小宽度保证不挤压，
       超出部分左右滑动查看；.table-wrap 提供滚动容器 */
    .card .data-table, .list-section .data-table { min-width: 560px; }
    .card .data-table th, .card .data-table td,
    .list-section .data-table th, .list-section .data-table td {
        white-space: nowrap;
        font-size: 13px;
        padding: 10px 12px;
    }
    .card .data-table th, .list-section .data-table th { font-size: 12px; }
    .card .table-wrap, .list-section .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--c-line) transparent;
    }
    .data-card .table-wrap { margin: 0 -14px; }

    /* Tab 在窄屏可横向滚动，避免挤压换行过多 */
    .tab-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 6px;
    }
    .tab-bar::-webkit-scrollbar { display: none; }
    .tab {
        flex: 0 0 auto;       /* 不被压缩，保持固有宽度，横向滑动浏览 */
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
    }

    /* 文章列表：窄屏压缩内边距，摘要 3 行截断 */
    .article-card { padding: 14px 16px; }
    .article-card .article-title { font-size: 15px; }
    .article-card .article-excerpt {
        -webkit-line-clamp: 3;
    }

    /* 文章页两栏：窄屏收为单列（侧栏移到主列表下方） */
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-layout-side { order: 2; }
    .article-layout-main { order: 1; }
    .side-card { padding: 14px 16px; }
    .hot-box { width: 100%; }

    /* 分类 Tab：窄屏横向滑动（与全局 .tab-bar 响应式一致） */
    #articleTypeTabs { margin-bottom: 14px; }
}

/* ============ 推荐行业（按盈利率排序）============ */
.rec-industry-list { list-style: none; margin: 0; padding: 0; }
.rec-industry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--c-line);
    transition: background .15s;
}
.rec-industry-item:last-child { border-bottom: none; }
.rec-industry-item:hover { background: var(--c-blue-soft); }
.rec-rank {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c-blue-soft);
    color: var(--c-text-2);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.rec-industry-item:hover .rec-rank { background: var(--c-blue); color: #fff; }
.rec-industry-item:hover .rec-industry-name { color: var(--c-blue); }
.rec-industry-name {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rec-industry-code {
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    font-weight: 400;
    color: var(--c-text-3);
    margin-left: 4px;
}
.rec-industry-rate {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    color: var(--c-blue);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .rec-industry-item { padding: 10px 8px; gap: 8px; }
    .rec-industry-rate { font-size: 13px; }
}

/* ============ 热门阅读 / 相关标题侧栏卡片（与首页 hot-box / hot-list 风格一致） ============ */
.hot-box {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}
.hot-box:last-child { margin-bottom: 0; }
.hot-box h3 {
    background: var(--c-navy, #1e293b);
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}
.hot-box .hot-list {
    list-style: none;
    counter-reset: hot;
    margin: 0;
    padding: 0;
}
.hot-box .hot-list li {
    counter-increment: hot;
    position: relative;
    padding: 13px 20px 13px 44px;
    border-bottom: 1px solid var(--c-line);
    font-size: 13px;
    color: var(--c-text-2);
    line-height: 1.5;
    transition: background .15s;
}
.hot-box .hot-list li:last-child { border-bottom: none; }
.hot-box .hot-list li:hover { background: var(--c-blue-soft); }
.hot-box .hot-list li::before {
    content: counter(hot);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--c-chip);
    color: var(--c-text-3);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hot-box .hot-list li:nth-child(1)::before { background: var(--c-blue); color: #fff; }
.hot-box .hot-list li:nth-child(2)::before { background: var(--c-blue-dark); color: #fff; }
.hot-box .hot-list li:nth-child(3)::before { background: var(--c-amber, #d97706); color: #fff; }
.hot-box .hot-list li a {
    color: var(--c-text-2);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-box .hot-list li:hover a { color: var(--c-blue); }
