/* =====================================================================
 * subpages.css — 斗笠江湖 子页（职业详情 / 资讯列表 / 资讯详情 / 客服中心）
 * 由子页负责人维护，主代理在 site.css 之后加载本文件。
 * 所有规则以 .role-detail / .article-page / .article-detail-page / .service-page
 * 作用域前缀，覆盖 site.css 中同名元素的残留旧值
 * （如通用 .serviceList、.roles_main_bg、.skill_*、.article_*）。
 * 资源全部本地化：../media/ 相对路径 + 本地 iconfont woff/ttf，不依赖远程。
 * ===================================================================== */

/* ---------- 图标字体（客服中心 iconfont，本地 woff/ttf） ---------- */
@font-face {
  font-family: "iconfont";
  src: url("../media/iconfont.woff?t=1566359549054") format("woff"),
       url("../media/iconfont.ttf?t=1566359549054") format("truetype");
  font-display: swap;
}
.iconfont {
  font-family: "iconfont" !important;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-kefu:before { content: "\e61e"; }
.icon-dianhua:before { content: "\e649"; }
.icon-mima:before { content: "\e65c"; }

/* =====================================================================
 * 职业详情页（site_role_detail）
 * 原站 overlord.html：.roles_main_bg 为定位上下文（position:relative），
 * 技能列表/内容绝对定位于其上（bottom/left 与原站一致）。
 * 修复：之前 .roles_main_bg 被误设为 static，导致技能锚定到整页而非角色图块。
 * ===================================================================== */
body.role-detail { position: relative; min-width: 1920px; width: 100vw; }
.role-detail .roles_main_bg {
  position: static;            /* 关键：技能锚定到角色图块，而非整页 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.role-detail .roles_main_bg > img {
  display: block;
  width: 100%;
  max-width: 1920px;
  object-fit: contain;
}
.role-detail .skill_list {
  position: absolute;
  bottom: 23%;
  left: 1060px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.role-detail .skill_item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0 10px;
  font-size: 16px;
  color: #9b9b9b;
  cursor: pointer;
  filter: grayscale(1);
}
.role-detail .skill_item.active { filter: grayscale(0); color: #c00; }
.role-detail .skill_item p { margin: 5px 0; }
.role-detail .skill_item img { width: auto; height: auto; max-width: 120px; }

.role-detail .skill_content {
  display: none;
  position: absolute;
  bottom: 17%;
  left: 1070px;
  width: 500px;
  height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.role-detail .skill_content.active { display: block; color: #c0c0c0; }

.role-detail .news_footer .ageTips { display: none; }

/* =====================================================================
 * 资讯列表页 / 详情页（site_news_list / site_news_detail）
 * 原站 news_official.html / 6454.html：背景 article_bg.jpg，
 * 列表卡片 1200×182（article_block_bg.png），详情白字 18px/1.8。
 * ===================================================================== */
.article-page,
.article-detail-page {
  background: #000 url("../media/article_bg.jpg") top / 100% no-repeat;
}
.article-page .article_content,
.article-detail-page .detail_container {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 200px;
  font-family: cursive, "KaiTi", "楷体", "Microsoft YaHei", "Arial", sans-serif;
  box-sizing: border-box;
}

/* 列表页标题图（article_title.png） */
.article-page .title {
  width: 638px;
  max-width: 100%;
  height: 48px;
  background: url("../media/article_title.png") 100% / 100% no-repeat;
}

/* 资讯分类标签 */
.article-page .article_tabs {
  display: flex;
  align-items: center;
  margin: 40px 0;
  color: #fff;
  font-size: 24px;
}
.article-page .article_tabs li { width: 60px; height: 30px; margin-right: 80px; }
.article-page .article_tabs li.active {
  background: url("../media/news_tab_active.png") 35% 50% / contain no-repeat;
}
.article-page .article_tabs li a { color: inherit; text-decoration: none; }

/* 列表卡片 */
.article-page .article_list { padding-bottom: 200px; }
.article-page .article_list li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1200px;
  max-width: 100%;
  height: 182px;
  margin-top: 30px;
  padding: 10px 20px;
  box-sizing: border-box;
  background: url("../media/article_block_bg.png") 100% / 100% no-repeat;
}
.article-page .article_list li a { color: inherit; text-decoration: none; }
.article-page .article_list li h1 {
  margin: 0;
  font-size: 22px;
  color: #202020;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-page .article_list li p {
  margin: 10px 0 0;
  font-size: 18px;
  color: #695029;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.article-page .article_list li .info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 16px;
  color: #666;
}
.article-page .article_list li .line {
  flex: 1;
  height: 1px;
  background: #9fa1a2;
  margin: 0 10px;
}
.article-page .article_list li .tab-name {
  position: relative;
  padding-right: 15px;
  color: #a20818;
}
.article-page .article_list li .tab-name::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M398.499 236.5l274.256 274.256-274.256 274.256z' fill='%23a20818'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 详情页（原站 6454.html：detail_container / detail_title / date / detail_content / pagination） */
.article-detail-page .detail_container { padding-bottom: 200px; }
.article-detail-page .location {
  width: 100%;
  margin: 0 0 10px;
  padding-bottom: 10px;
  color: #fff;
  border-bottom: 1px solid #ccc;
  font-size: 18px;
}
.article-detail-page .location a { color: inherit; text-decoration: none; }
.article-detail-page .location .current { color: red; }
.article-detail-page .detail_title {
  color: #fff;
  font-size: 35px;
  margin: 20px 0;
  text-align: center;
}
.article-detail-page .date {
  color: #fff;
  font-size: 18px;
  margin: 20px 0;
  text-align: center;
}
.article-detail-page .date .tag {
  color: red;
  border: 1px solid red;
  padding: 1px 5px;
  border-radius: 5px;
  margin-left: 10px;
}
.article-detail-page .detail_content {
  color: #fff;
  font-size: 18px;
  line-height: 1.8;
}
.article-detail-page .detail_content p { margin: 1em 0; }
.article-detail-page .detail_content img { max-width: 100%; height: auto; }
.article-detail-page .detail_content h2 { font-size: 26px; color: #fff; margin: 24px 0 14px; }
.article-detail-page .pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.article-detail-page .pagination a {
  min-width: 50px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  border: 1px solid #fff;
  padding: 3px 10px;
  border-radius: 5px;
  margin-left: 20px;
}
.article-detail-page .pagination a:hover {
  background-color: #fff;
  color: #000;
}

/* =====================================================================
 * 客服中心（site_service）
 * 原站 kfzx.html + serviceCenter.min.css。白卡 + 彩色描边，深色页脚 #272a2c。
 * 覆盖 site.css 中通用 .serviceList 残留（flex:1 1 300px / 红底 btn 等）。
 * ===================================================================== */
.service-page { background: #fff; }

/* 通用工具类（原 serviceCenter.min.css 提供；本项目未全局引入，故在此作用域补定义） */
.service-page .dyFx { display: flex; display: -webkit-flex; }
.service-page .posRel { position: relative; }
.service-page .posAbs { position: absolute; }

.service-page .middleBlock {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 140px;
  padding-bottom: 70px;
}
.service-page .service-banner img { width: 100%; display: block; }

/* 三栏目：覆盖 site.css .serviceList li 的 flex:1 1 300px / #111 背景 / 圆角 */
.service-page .serviceList {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30px;
}
.service-page .serviceList li {
  position: relative;
  flex: 0 0 400px;
  width: 400px;
  padding: 45px 40px 40px 45px;
  background-color: #fff;
  border: none;
  border-radius: 0;
  margin-right: 50px;
  box-sizing: border-box;
  text-align: center;
}
.service-page .serviceList li:last-child { margin-right: 0; }

.service-page .serviceList li .img {
  width: 73px;
  height: 73px;
  margin: 0 auto;
  border-radius: 50%;
}
.service-page .serviceList li .img i {
  display: block;
  line-height: 73px;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
}
.service-page .serviceList li h2 {
  padding: 20px 0;
  font-size: 20px;
  text-align: center;
}
.service-page .serviceList li p.hint {
  line-height: 22px;
  font-size: 16px;
  color: #ccc;
}
/* 覆盖 site.css .serviceList li .btn 的 红底 #c02125 与 padding:10px 26px */
.service-page .serviceList li a.btn {
  display: block;
  width: 118px;
  height: 40px;
  line-height: 40px;
  margin: 30px auto 0;
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}

/* 卡片 1：在线客服（红 #f67171，描边按钮） */
.service-page .serviceList li:nth-child(1) .img i { font-size: 60px; color: #f67171; }
.service-page .serviceList li:nth-child(1) h2 { color: #f67171; }
.service-page .serviceList li:nth-child(1) a.btn { border: 1px solid #f67171; color: #f67171; }
.service-page .serviceList li:nth-child(1) .angle { border-bottom: 40px solid #f67171; }

/* 卡片 2：电话客服（绿 #71e2b4，实心按钮 + 电话浮层） */
.service-page .serviceList li:nth-child(2) .img { background-color: #71e2b4; }
.service-page .serviceList li:nth-child(2) h2 { color: #71e2b4; }
.service-page .serviceList li:nth-child(2) p.hint { text-align: center; }
.service-page .serviceList li:nth-child(2) a.btn { background-color: #71e2b4; color: #fff; cursor: default; }
.service-page .serviceList li:nth-child(2) .angle { border-bottom: 40px solid #71e2b4; }

/* 卡片 3：账号问题（橙 #f9b25f，描边按钮） */
.service-page .serviceList li:nth-child(3) .img { background-color: #f9b25f; }
.service-page .serviceList li:nth-child(3) h2 { color: #f9b25f; }
.service-page .serviceList li:nth-child(3) a.btn { border: 1px solid #f9b25f; color: #f9b25f; }
.service-page .serviceList li:nth-child(3) .angle { border-bottom: 40px solid #f9b25f; }

/* 卡片右下角装饰三角 */
.service-page .serviceList .angle {
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  position: absolute;
}

/* 账号问题链接（原站 2×N 网格，.dyFx 提供 flex） */
.service-page .serviceList .issue {
  width: 195px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.service-page .serviceList .issue a {
  flex: 1;
  margin-bottom: 20px;
  text-decoration: underline;
  font-size: 16px;
  color: #888;
}
.service-page .serviceList .issue a:hover { color: #bf2124; }

/* 电话浮层（hover 显示） */
.service-page .serviceList li .tel {
  display: none;
  position: absolute;
  bottom: -70px;
  left: 50%;
  margin-left: -90px;
  width: 180px;
  height: auto;
  padding: 8px 0;
  line-height: 22px;
  border: 2px solid #71e2b4;
  background: #fff;
  font-size: 16px;
  color: #71e2b4;
  box-sizing: border-box;
  z-index: 10;
}
.service-page .serviceList li:nth-child(2) a.btn:hover .tel { display: block; }

/* 页脚（公司信息 + 举报单位） */
.service-page .companyTo {
  width: 100%;
  background-color: #272a2c;
  color: #fff;
  padding: 40px 0;
}
.service-page .companyTo .about {
  width: 450px;
  max-width: 92%;
  color: #fff;
  font-size: 13px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding-top: 58px;
}
.service-page .companyTo .about a { color: #fff; text-decoration: none; }
.service-page .companyTo .about a:hover { color: red; }
.service-page .companyTo .notice-title { margin: 0 4px; }
.service-page .companyTo .notice-links {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-page .companyTo .notice-links a { color: #fff; }
.service-page .companyTo .Company-IF {
  font-size: 13px;
  color: #fff;
  text-align: center;
  margin-top: 30px;
  line-height: 30px;
}
.service-page .companyTo .Company-IF p { margin: 4px 0; }
.service-page .companyTo .Reporting-unit { text-align: center; margin-top: 18px; }
.service-page .companyTo .Reporting-unit a { display: inline-block; margin: 0 10px; }
.service-page .companyTo .Reporting-unit img { height: 40px; width: auto; vertical-align: middle; }

/* 实测校正：职业技能以含页脚的body为锚点，图片保持1920px。 */
.role-detail .roles_main_bg { position:static; }
.role-detail .roles_main_bg > img { width:1920px; height:auto; max-width:none; }
.role-detail .skill_content { font-size:16px; }
/* 文章详情为独立页头，不使用首页导航。 */
.article-detail-page { width:100vw; min-height:1000px; background-repeat:repeat-y; font-family:cursive,"KaiTi","楷体","Microsoft YaHei",Arial,sans-serif; }
.article-detail-page .detail_header { display:flex; align-items:center; padding:20px 100px 0; height:120px; }
.article-detail-page .detail_header img { width:204px; height:97px; max-width:none; }
.article-detail-page .detail_header .location { margin:0 0 0 20px; }
.article-detail-page .detail_container { padding-top:0; padding-bottom:200px; }
.article-detail-page .detail_content p { margin:1em 0; }
.article-detail-page .date { text-align:left; }
/* 客服中心：1260画布、370px三卡，消除通用gap与flex-wrap级联。 */
body.service-page { background:#fff; }
.service-page .service-page { background:#f5f5f5; font-family:sans-serif,"Microsoft YaHei","微软雅黑",Tahoma,Helvetica; font-size:10px; }
.service-page .service-header { height:80px; background:#fff; box-shadow:0 1px 10px #0002; position:relative; z-index:30; }
.service-header .inner { width:1360px; height:80px; margin:auto; display:flex; align-items:center; }
.service-header .brands { display:flex; align-items:center; }
.service-header .brands img:first-child { width:149px; }
.service-header .brands img:last-child { width:132px; }
.service-header nav { display:flex; align-items:center; padding-left:100px; gap:16px; color:#727272; font-size:16px; }
.service-header a { text-decoration:none; }
.service-header nav .active { color:#bf2124; }
.service-header .login { margin-left:auto; display:flex; font-size:12px; }
.service-header .login a { padding:5px 12px; border:1px solid #ccc; color:#888; }
.service-header .login a:first-child { color:#fff; background:#bf2124; border-color:#bf2124; }
.service-page .middleBlock { width:1260px; max-width:1260px; padding:0 0 70px; }
.service-page .serviceList { margin:0; gap:0; padding-top:30px; flex-wrap:nowrap; align-items:stretch; justify-content:flex-start; }
.service-page .serviceList li { flex:1 1 400px; width:400px; margin:0 50px 0 0; min-height:338px; padding:45px 40px 40px 45px; }
.service-page .serviceList li:last-child { margin-right:50px; }
.service-page .serviceList li h2 { margin:0; font-weight:400; }
.service-page .serviceList li p { margin:0; text-align:left; }
.service-page .companyTo { margin:0; padding:0; border:0; height:245px; background:#000; }
.service-page .companyTo .about { width:450px; max-width:none; height:72px; padding-top:58px; gap:0; flex-wrap:nowrap; justify-content:space-between; }
.service-page .companyTo .about a { margin:0; white-space:nowrap; font-size:13px; }
.service-page .companyTo .Company-IF { margin-top:20px; line-height:30px; }
.service-page .companyTo .Company-IF p { margin:0; font-size:13px; }
.service-page .companyTo .Reporting-unit { margin-top:10px; }
.service-page .companyTo .Reporting-unit a { margin:0 10px; }
.service-page .companyTo .Reporting-unit img { height:33px; }

/* =====================================================================
 * 移动端回退（遵循原站最小宽度/响应式实际）
 * ===================================================================== */
@media (max-width: 768px) {
  /* 职业详情原站保留1920px设计宽度，不单独缩小技能导致与底图错位。 */

  .article-page .article_content,
  .article-detail-page .detail_container { padding-top: 90px; }
  .article-page .article_list li { width: 100%; height: auto; min-height: 160px; }

  .service-page .middleBlock { padding-top: 90px; max-width: 92%; }
  .service-page .serviceList { flex-direction: column; align-items: center; }
  .service-page .serviceList li {
    width: 100%;
    max-width: 400px;
    flex: none;
    margin-right: 0;
    margin-bottom: 24px;
  }
}
