/* ============================================================
   商标知产模块 · 参考站页面基础版式补充（1.4.199）
   /trademark/assets/css/ref/compat.css

   参考站的公共样式 public.css 里有一条 `*{margin:0;padding:0;box-sizing:border-box}`，
   那份文件同时带着参考站整套 header/nav 样式，整份引入会把我们全站的头部/页脚砸掉。
   所以这里只把「模块内容真正依赖的几条」按作用域补回来，不碰 header/footer。
   ============================================================ */

.service-detail, .service-detail *,
.service-index, .service-index *,
.intl-list, .intl-list *,
.tm-scope, .tm-scope *,
.tmlist, .tmlist * {
    box-sizing: border-box;
}

/* 首页专用（body 带 tm-home）：参考站首页那套 banner / 公告条 / 商标橱窗 /
   问答区大量用「固定宽度 + 左右内边距」的元素（.tp-l 宽 558 内边距 59 等），
   没有全局 border-box 时盒子会多吃一圈内边距，右侧栏被挤到第二行。
   同时 ul 带着浏览器默认的 padding-left:40px，会把 3×380+2×30 顶出 1200，
   第三张卡片被折到第二行（背景图 cover 跟着拉长，首屏就是一片绿）。
   参考站是靠 public.css 的 *{margin:0;padding:0;box-sizing:border-box} 解决的。
   这里只对首页正文容器 #app 做等价重置——壳层的头部/页脚在 #app 之外，
   不会被影响到（这是之前不敢全局上 reset 的原因）。 */
body.tm-home #app,
body.tm-home #app *,
body.tm-home #app *::before,
body.tm-home #app *::after {
    box-sizing: border-box;
}
/* 重置整条选择器都包进 :where()，特异性为 0：只压过浏览器默认样式，
   页面自己的 `.tm-list-content li{margin-right:30px}` 这类规则照旧生效。 */
:where(body.tm-home) :where(#app) :where(h1, h2, h3, h4, h5, h6, p, dl, dd, ul, ol, li) {
    margin: 0;
    padding: 0;
}
:where(body.tm-home) :where(#app) :where(ul, ol, li) {
    list-style: none;
}

/* 参考站靠 public.css 的 `ul,li{list-style:none}` 把项目符号去掉、并清掉浏览器默认的
   40px 内缩。不补这两条，卡片会多出小黑点、一排挤成三列（业主第一版就是踩这个）。 */
.tmlist ul, .tmlist ul li,
.service-index ul, .service-index ul li,
.service-detail ul, .service-detail ul li,
.intl-list ul, .intl-list ul li,
.tm-inter-inner ul, .tm-inter-inner ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tmlist .list { margin: 0; padding: 0; }

.container,
.center {
    width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.pull-left  { float: left; }
.pull-right { float: right; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 参考站用的是 Bootstrap 版 clearfix：:before 是 display:table 的零高盒子。
   我们只补了 :after，:before 就退回默认的 inline，在橱窗这类「整块都是浮动卡片」
   的容器里会先撑出一个 41px 的行盒，卡片整体被顶下去、整段高 40px。 */
body.tm-home #app .clearfix::before {
    content: "" !important;
    display: table !important;
    line-height: 0;
}

.bg-fff     { background: #fff; }
.text-white { color: #fff; }
.tc         { text-align: center; }
.pointer    { cursor: pointer; }

.btn {
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

/* 参考站 public.css 里有 a{color:#333;text-decoration:none}。没有它，
   卡片里的「立即办理」会继承浏览器默认链接蓝（业主看到的就是紫蓝色字）。
   tab、卡片标题等自己有颜色的选择器加载在后面，会盖掉这条，不受影响。 */
.service-index a, .service-detail a, .intl-list a, .tmlist a, .tm-scope a {
    color: #333;
    text-decoration: none;
}

/* 参考站那对红/绿按钮：红是默认皮肤，绿色由 theme.css 覆盖 */
.red-btn-active {
    padding: 8px 34px;
    background: #f85252;
    border: 1px solid #f85252;
    border-radius: 2px;
    font-size: 14px;
    color: #ffffff;
}
.red-btn-active:hover { color: #fff; }
.red-btn {
    padding: 8px 34px;
    background: #ffffff;
    border-radius: 2px;
    border: 1px solid #f85252;
    font-size: 14px;
    color: #f85252;
}
.red-btn:hover {
    background: #f85252;
    border: 1px solid #f85252;
    color: #ffffff;
}
