/* ============================================================
   商标知产模块 · 参考站样式回正（1.4.199）
   /trademark/assets/css/ref/ref-fix.css

   加载顺序刻意排在「页面原版 css 之后、theme.css 之前」：
   参考站 new-services.css 末尾留着一组旧版覆盖规则
     .tm-inter-inner.list-panel .contry { width:870px; padding-left:50px }
     .tm-inter-inner.list-panel .contry ul>li { margin-left:85px }
   但参考站线上实际渲染是 660 宽 / 30 间距 / 四列（截图与 DOM 实测一致）。
   照抄那两条会导致一排只剩三个国家、第四行被裁掉，所以在这里回正。
   ============================================================ */

.tm-inter-inner.list-panel .contry {
    width: 660px;
    padding-left: 0;
}

.tm-inter-inner.list-panel .contry ul > li {
    margin-left: 30px;
}

.tm-inter-inner.list-panel .contry ul > li:nth-child(4n-3) {
    margin-left: 0;
}

/* 备注类段落左右对齐参考站：注释区用较松的行高 */
.classify-detail .tm-description .comments p {
    line-height: 24px;
}

/* 首页「国际商标注册」右侧绿框里的国家链接：参考站每条都在一行内，
   我们因为盒子略窄，'印度尼西亚' 会折成两行把整块顶高，这里锁成单行。 */
body.tm-home .tm-inter .con-right .con-list .a-li,
body.tm-home .tm-inter .con-right .con-list li {
    white-space: nowrap;
}

/* 2026-11-28 「商标分类：」下方 45 个类目。原来 li 固定 100px、inline-block 顺排，
   容器从 1200 拉到 1280 以后一行能塞 11 个，45 类变成「4 行满 + 45.社会服务 单独一行」，
   末尾孤零零一个特别难看。参考站是 10 个一行（尾行 5 个），这里改成 10 列栅格锁死。 */
.classify-detail .result-cls ul {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
}
.classify-detail .result-cls ul li {
    width: auto;
}
@media (max-width: 1100px) {
    .classify-detail .result-cls ul {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

/* ============================================================
   2026-11-28 · 容器 1200 → 1280 后的内部回正
   参考站整站按 1200 排版（3 张卡 380+30、5 张卡 240、
   进度条 558+642）。我们的死标准是 1280，宽度一放开，
   这些写死宽度的块右侧就会空一条 80px，看着像没对齐。
   这里统一改回「按容器百分比铺满」，视觉与参考站一致、左右齐平。
   ============================================================ */
body.tm-home .tm-list .tm-list-content.product-amount-3 > li {
    width: calc((100% - 60px) / 3);
}
body.tm-home .tm-list .tm-list-content.product-amount-4 > li {
    width: calc((100% - 90px) / 4);
}
body.tm-home .tm-list .tmprogress .tp-l {
    width: calc(100% - 642px);
}
body.tm-home .quality .con-bot > li {
    width: 20%;
}
body.tm-home .tm-massive .content {
    width: 100%;
}
/* 左主栏原 921（+右 270 +9 = 1200），改成吃满剩余宽度 */
body.tm-home .content .mc-l.pull-left {
    width: calc(100% - 279px);
}
/* 资讯/国际商标左栏原 880（+右 300 +20 = 1200） */
body.tm-home .content .con-left.pull-left,
body.tm-home .tm-legal .con-legal-left {
    width: calc(100% - 320px);
}
/* 香港/澳门卡原 430×2 + 20 = 880 */
body.tm-home .con-left > li.xianggang,
body.tm-home .con-left > li.aomen {
    width: calc((100% - 20px) / 2);
}
/* .content 是各块的主行容器，参考站写死 1200；这里统一吃满 1280 */
html body.tm-home .content {
    width: 100%;
}
/* 橱窗 4 列（原 230×4=920，对应 921 左栏）改成 25% 均分 */
html body.tm-home .tm-massive .content .mc-l .mc-l-con > li {
    width: 25%;
}
/* 品质服务整块外面套了一个 1200 的 <a>，同样吃满 */
html body.tm-home .quality > .center > a {
    width: 100%;
    display: block;
}
/* 香港/澳门卡原 430×2+20=880；父级是 <a> 包着 li，不能写 > li */
html body.tm-home .tm-inter .con-left li.xianggang,
html body.tm-home .tm-inter .con-left li.aomen {
    width: calc((100% - 20px) / 2);
}
/* ============================================================
   2026-11-28 · 全模块链接去下划线
   参考站 public.css 里有 a{text-decoration:none}，我们只搬了页面 css，
   这条基础规则没跟过来，于是卡片里的「立即注册」「价格」「作用说明」
   全部带上了浏览器默认下划线（商标首页实测 159 处），看着很脏。
   正文/条款里的行内链接仍保留下划线，便于识别可点。
   ============================================================ */
body.tm-ref a {
    text-decoration: none;
}
body.tm-ref .tm-description a,
body.tm-ref .article-content a,
body.tm-ref .tm-article a {
    text-decoration: underline;
}
/* 嵌套 .container（国际商标页 .list-content.container 套在外层 .container 里）
   会再叠一次 1280 宽度并把右边顶出容器 60px，这里把内层放开 */
html body.tm-ref .container .container,
html body.tm-ref .container .list-content.container {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
/* 商标服务/专利/版权页：卡片写死 274×4 + 20 间距 = 1156，放在 1280 里右侧空 82，
   改成按容器均分 4 列（与参考站在 1200 下的观感一致，但左右齐平） */
html body.tm-ref .service-index .tmlist .list li {
    width: calc((100% - 60px) / 4);
}
/* 国际商标页：面板 1200 时 .contry 只有 660，右侧空 271（我们 1280 下空 386，
   截图看就是「国旗只排到一半」。改成吃满剩余宽度，仍保持 4 列节奏 */
html body.tm-ref .tm-inter-inner.list-panel .contry {
    width: calc(100% - 269px);
    height: auto;
    overflow: visible;
}
html body.tm-ref .tm-inter-inner.list-panel .contry ul > li {
    width: calc((100% - 90px) / 4);
    margin: 0 0 18px 30px;
}
html body.tm-ref .tm-inter-inner.list-panel .contry ul > li:nth-child(4n-3) {
    margin-left: 0;
}
html body.tm-ref .tm-inter-inner.list-panel .contry ul > li .img-wrapper {
    width: 100%;
}

/* ============================================================
   2026-11-28 · 国际商标「选择我们」四张卡
   参考站写死 276×4 + 32 间距 = 1200，正好铺满 1200 容器；
   我们内容区 1280，卡片仍是 276 → 右边空出 78px，看着「左边挤、右边空」。
   改成按容器四等分，间距不变，左右与上下区块齐平。
   ============================================================ */
html body.tm-ref .intl-list .choose-panel .choose-content li {
    width: calc((100% - 96px) / 4);
}
