@charset "utf-8";
/* ==========================================================================
   正文通用表格样式（公用）
   用途：博达 VSB CMS 正文区 .v_news_content 内所有 table / 静态页手动调用的表格
   效果：① 表格线可见  ② 单元格有内边距  ③ 内容左对齐
   兼容：IE9+ / IE11 实测，不用 CSS 变量、不用 flex/gap、不用 HTML5 标签
   用法：
     1) CMS 文章页：整段复制到文章页 CSS 的【末尾】（必须排在原站 table 样式之后）
     2) 静态页：<table class="common-table"> 即可，不用加父容器
   备注：rem 换算（按 1rem = 16px）—— 14px=0.875rem, 8px=0.5rem, 12px=0.75rem
   ========================================================================== */

/* ---------- 1. 表格主体：单线边框 + 撑满正文 + 不撑破页面 ---------- */
.v_news_content table,
.common-table {
    width: 100%;
    max-width: 100%;
    margin: 12px auto !important;   /* 覆盖原站 margin:0 auto!important */
    border-collapse: collapse;      /* 关键：合并相邻边框，避免出现双线 */
    border-spacing: 0;
    table-layout: fixed;            /* 列宽平均分配，长文本换行不撑破页面 */
    word-break: break-all;          /* 超长英文/型号强制断行 */
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
    background: #ffffff;
}

/* ---------- 2. 单元格：线可见 + 内边距 + 左对齐 ----------
   !important 用于压制编辑器生成的内联样式（如 style="border:1px solid gray"）
   以及原站 .v_news_content td{padding:5px 10px} ------------------------- */
.v_news_content table th,
.v_news_content table td,
.common-table th,
.common-table td {
    padding: 8px 12px !important;           /* 内边距：上下8 左右12 */
    border: 1px solid #d6dbe0 !important;   /* 表格线：统一颜色，覆盖内联 gray */
    text-align: left !important;            /* 内容左对齐 */
    vertical-align: middle;
    text-indent: 0 !important;              /* 清掉正文首行缩进 */
}

/* ---------- 3. 表头：浅底色 + 加粗（想让表头居中，把下面这行改成 center） ---------- */
.v_news_content table th,
.common-table th {
    background: #f4f6f8;
    font-weight: bold;
    color: #1f2d3d;
    white-space: normal;
}

/* ---------- 4. 压制原站"单元格内文字强制居中"的规则 ----------
   原站：.v_news_content table tr td p, ... span{text-align:center!important}
   这里用同优先级 + !important + 后加载 来反制，必须放在原站样式之后 ------- */
.v_news_content table tr td p,
.v_news_content table tr td span,
.v_news_content table tr td div,
.v_news_content table tr td li,
.v_news_content table tr th p,
.v_news_content table tr th span,
.common-table tr td p,
.common-table tr td span,
.common-table tr td div,
.common-table tr td li,
.common-table tr th p,
.common-table tr th span {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    text-indent: 0 !important;
    line-height: 1.7 !important;
}

/* ---------- 5. 斑马纹（默认开启）---------- */
.v_news_content table tbody tr:nth-child(even) td,
.common-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

/* ---------- 6. 鼠标悬停高亮（放在斑马纹之后才生效）---------- */
.v_news_content table tbody tr:hover td,
.common-table tbody tr:hover td {
    background: #eef4fb;
}

/* ---------- 7. 可选修饰类（按需给 table 加 class）---------- */

/* 7.1 关闭斑马纹 + 悬停：<table class="v-table-plain"> */
.v_news_content table.v-table-plain tbody tr:nth-child(even) td,
.v_news_content table.v-table-plain tbody tr:hover td,
.common-table.v-table-plain tbody tr:nth-child(even) td,
.common-table.v-table-plain tbody tr:hover td {
    background: #ffffff;
}

/* 7.2 列宽按内容自适应（两列"信息表"用这个更好看）：class="v-table-auto" */
.v_news_content table.v-table-auto,
.common-table.v-table-auto {
    width: auto;
    min-width: 50%;
    table-layout: auto;
}

/* 7.3 首列收窄（序号列）：class="v-table-narrow-first" */
.v_news_content table.v-table-narrow-first th:first-child,
.v_news_content table.v-table-narrow-first td:first-child,
.common-table.v-table-narrow-first th:first-child,
.common-table.v-table-narrow-first td:first-child {
    width: 60px;
}

/* ---------- 8. 窄屏适配 ---------- */
@media screen and (max-width: 768px) {
    .v_news_content table,
    .common-table {
        font-size: 13px;
    }
    .v_news_content table th,
    .v_news_content table td,
    .common-table th,
    .common-table td {
        padding: 6px 8px !important;
    }
}
