/** 仅在高通 PHP 专区 legacy 页生效（body 带 qualcomm-zone-legacy-page） */
html.qualcomm-zone-legacy-page {
  background: #eee !important;
}

body.qualcomm-zone-legacy-page {
  background: #eee !important;
  color: #73808b;
}

body.qualcomm-zone-legacy-page #__nuxt {
  background: #eee !important;
  min-height: 100vh;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy {
  font-family: 'Microsoft YaHei', sans-serif;
  background: #eee;
  color: #73808b;
}

/** hardware_buy.php：独立页，勿套用专区 legacy 灰底 */
html.qualcomm-zone-hardware-buy-page,
body.qualcomm-zone-hardware-buy-page {
  background: #f8f8f8 !important;
}

body.qualcomm-zone-hardware-buy-page #__nuxt {
  background: #f8f8f8 !important;
  min-height: 100vh;
}

body.qualcomm-zone-hardware-buy-page .qc-hardware-buy {
  background: #f8f8f8;
  color: #222226;
  font-family: SourceHanSansSC-Regular, SourceHanSansSC, 'PingFang SC', 'Hiragino Sans GB',
    Arial, 'Microsoft YaHei', Verdana, Roboto, Noto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/** bootstrap 会盖掉 hardware_buy 顶栏蓝底 */
body.qualcomm-zone-hardware-buy-page .navs-wrapper .navs .navbar.navbar-default {
  background-color: #314fd5 !important;
  border: 0 !important;
}

body.qualcomm-zone-hardware-buy-page .navs-wrapper .navs .navbar .navbar-header .logo h1 a {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

body.qualcomm-zone-hardware-buy-page .navs-wrapper .navs .navbar .navbar-header .logo h1 {
  margin: 0;
}

/** newheader.php 内联：右侧营销浮窗 */
body.qualcomm-zone-legacy-page img.float {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 130px;
  height: 130px;
  object-fit: cover;
  z-index: 99999;
}

/** 与 newcommon.css / newindex.css 一致，避免透明区块露出深色 html */
body.qualcomm-zone-legacy-page .qc-zone-legacy .what,
body.qualcomm-zone-legacy-page .qc-zone-legacy .main,
body.qualcomm-zone-legacy-page .qc-zone-legacy header {
  background-color: #eee;
}

/**
 * 与 bootstrap2015.min.css 断点一致（勿写死 max-width:1170，否则 banner 右侧区域与线宽不符）
 * 列宽/浮动交给 bootstrap + newindex.css，勿统一给 [class*='col-'] 加 padding（会冲掉 .half / .download）
 */
body.qualcomm-zone-legacy-page .qc-zone-legacy .container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/**
 * CMS 内联 .xr p:nth-child(2) 会误命中 Vue 拆出的 .xr 第 2 子节点 p.xr_more（PHP 里 xr_more 为第 4 子节点）
 * 避免「下载软件中心」白底按钮带上白字阴影导致发糊
 */
body.qualcomm-zone-legacy-page .qc-zone-legacy .mod-r .xr > p.xr_more {
  text-shadow: none !important;
  font-family: 'Microsoft YaHei', sans-serif !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: normal !important;
  color: inherit !important;
  margin-bottom: 0 !important;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .mod-r .xr > p.xr_more > a {
  text-shadow: none !important;
  font-weight: normal !important;
}

/** xr.php：8+4 主栏与 mod-r 并排（依赖 bootstrap2015 + flex row） */
@media (min-width: 992px) {
  body.qualcomm-zone-legacy-page .qc-zone-legacy.qualcomm-zone-xr .main > .container > .row {
    display: flex;
    flex-wrap: wrap;
  }

  body.qualcomm-zone-legacy-page .qc-zone-legacy.qualcomm-zone-xr .main > .container > .row > .col-md-8 {
    flex: 0 0 66.66666667%;
    max-width: 66.66666667%;
  }

  body.qualcomm-zone-legacy-page .qc-zone-legacy.qualcomm-zone-xr .main > .container > .row > .mod-r.col-md-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
    display: block;
    float: none;
  }
}

/** 首页以外：窄屏右侧栏与主栏并排会伸出屏幕，移动端不展示 */
@media (max-width: 991px) {
  body.qualcomm-zone-legacy-page .qc-zone-legacy:not(.qualcomm-zone-home) .row > .mod-r,
  body.qualcomm-zone-legacy-page .qc-zone-legacy:not(.qualcomm-zone-home) .Jf_Box > .row > .col-md-4 {
    display: none !important;
  }

  body.qualcomm-zone-legacy-page .qc-zone-legacy:not(.qualcomm-zone-home) .main .row > .col-md-8,
  body.qualcomm-zone-legacy-page .qc-zone-legacy:not(.qualcomm-zone-home) .main .row > .mod-l,
  body.qualcomm-zone-legacy-page .qc-zone-legacy:not(.qualcomm-zone-home) .Jf_Box > .row > .col-md-8 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /** subpage.css 资讯标题 nowrap，窄屏会把主栏撑出视口 */
  body.qualcomm-zone-legacy-page .qc-zone-legacy:not(.qualcomm-zone-home) .news .item h3 {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    overflow-wrap: break-word;
  }
}

/** 与 PHP pub_toolbar 一致：1024 以下不展示工具栏和页脚，避免 min-width:972 撑开页面 */
@media (max-width: 1024px) {
  body.qualcomm-zone-legacy-page .csdn-toolbar,
  body.qualcomm-zone-legacy-page .pub_fo,
  body.qualcomm-zone-legacy-page #csdn-toolbar,
  body.qualcomm-zone-legacy-page #copyright-box,
  body.qualcomm-zone-legacy-page #csdn-copyright-footer {
    display: none !important;
  }
}

@media (min-width: 992px) {
  body.qualcomm-zone-legacy-page .qc-zone-legacy .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  body.qualcomm-zone-legacy-page .qc-zone-legacy .container {
    width: 1170px;
  }
}

/** newindex：论坛精华 / 热门博客 */
body.qualcomm-zone-legacy-page .qc-zone-legacy .half {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 768px) {
  body.qualcomm-zone-legacy-page .qc-zone-legacy .mod-l .half:nth-child(3) {
    padding-left: 0;
    padding-right: 15px;
  }

  body.qualcomm-zone-legacy-page .qc-zone-legacy .mod-l .half:nth-child(4) {
    padding-right: 0;
    padding-left: 15px;
  }
}

/** newindex：header 右侧登录/签到区 */
body.qualcomm-zone-legacy-page .qc-zone-legacy header .download {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 992px) {
  body.qualcomm-zone-legacy-page .qc-zone-legacy nav ul.pc {
    display: block !important;
    float: right;
  }
}

@media (min-width: 992px) {
  body.qualcomm-zone-legacy-page .csdn-toolbar,
  body.qualcomm-zone-legacy-page .pub_fo,
  body.qualcomm-zone-legacy-page #csdn-toolbar,
  body.qualcomm-zone-legacy-page #copyright-box {
    display: block !important;
  }
}

/** 论坛 bbs.php 筛选区（subpage.css + 页内 style，避免 scoped 盖不住 .mod-l .tags） */
body.qualcomm-zone-legacy-page .qc-zone-legacy .forum .tags.qc-zone-bbs-tabs {
  border-bottom: none !important;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .forum .tags.qc-zone-bbs-cates {
  padding-top: 0 !important;
  padding-bottom: 10px !important;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .forum .tags .tag.router-link-active:not(.cur),
body.qualcomm-zone-legacy-page .qc-zone-legacy .forum .tags .tag.router-link-exact-active:not(.cur) {
  background: transparent;
  border: 1px solid #dde2e5;
  color: #465561;
}

@media (max-width: 768px) {
  body.qualcomm-zone-legacy-page .qc-zone-legacy .forum .tags .tag:nth-child(3) {
    width: auto;
    height: inherit;
    border-radius: 14px;
    margin-top: 0;
    padding: 0 20px;
    text-overflow: ellipsis;
  }

  body.qualcomm-zone-legacy-page .qc-zone-legacy .forum .news .posttime span {
    float: unset;
  }
}

/** newindex.php 页内 <style>：动态上方 PSE / WoS 横幅（背景图见 --tech-banner-url） */
body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology.mod {
  overflow: hidden;
}

/** blog_expert.php current==13：Tab「高通公司技术大牛」宽度 */
body.qualcomm-zone-legacy-page .qc-zone-tech-expert-page .mod-l .tab .wth {
  width: 162px;
}

/**
 * subpage.css：`.blog .csdn-pagination`；硬件俱乐部分页在 `.hdclub` 内
 * legacy `.csdn-pagination *` 会把 Element Plus 的 li 变成 list-item 宽 100%，需重置
 */
/** 资讯列表：条目最小高度见 newcommon `.items .blog-margin`；列表盒底部间距盖过 subpage.css `.news` 的 25px */
body.qualcomm-zone-legacy-page .qc-zone-legacy .mod-l.news.blog {
  padding-bottom: 30px;
}

/** 硬件俱乐部页（hardware.php）：左侧主栏底部留白 */
body.qualcomm-zone-legacy-page .qc-zone-legacy.qualcomm-zone-hardware .mod-l.hdclub {
  margin-bottom: 30px !important;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .blog .csdn-pagination,
body.qualcomm-zone-legacy-page .qc-zone-legacy .mod-l.news > .csdn-pagination,
body.qualcomm-zone-legacy-page .qc-zone-legacy .video .csdn-pagination,
body.qualcomm-zone-legacy-page .qc-zone-legacy .hdclub .csdn-pagination {
  background: #fff;
  margin: 0;
  padding: 25px 0 30px;
  text-align: center;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .csdn-pagination.qc-zone-legacy-pager .page-nav .btn,
body.qualcomm-zone-legacy-page .qc-zone-legacy .csdn-pagination.qc-zone-legacy-pager .page-nav a.btn {
  text-decoration: none;
  display: inline-block;
  margin: 0 1px;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .csdn-pagination.qc-zone-legacy-pager .page-nav .ellipsis {
  display: inline-block;
  padding: 0 4px;
  color: #999;
  vertical-align: middle;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .csdn-pagination.qc-zone-blog-pager .el-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  vertical-align: middle;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .csdn-pagination.qc-zone-blog-pager .el-pager {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

body.qualcomm-zone-legacy-page .qc-zone-legacy .csdn-pagination.qc-zone-blog-pager .el-pager li,
body.qualcomm-zone-legacy-page .qc-zone-legacy .csdn-pagination.qc-zone-blog-pager .el-pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 32px;
  float: none;
  list-style: none;
  line-height: normal;
  border-radius: 2px;
}

body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology a.xlnpe_L {
  display: block;
  width: 100%;
  float: none;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 768px) {
  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology.technology--banner {
    background: var(--tech-banner-url) no-repeat center center;
    background-size: cover;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology {
    height: auto;
    min-height: 230px;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .mod_dashi h4 {
    font-size: 18px;
    font-weight: bold;
  }

  /** 首页动态：固定单条卡片高度，与 PHP newindex 页内 style 一致 */
  body.qualcomm-zone-legacy-page .qualcomm-zone-home .news img {
    max-width: 150px !important;
    max-height: 175px !important;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .news .item {
    height: 256px;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .news .brief h3 {
    height: 56px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .news .brief > p:not(.posttime) {
    height: 60px;
    min-height: 0;
    line-height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .news .tags {
    height: 34px;
    overflow: hidden;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .news .tags::after {
    content: '';
    display: block;
    clear: both;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .news .posttime {
    height: 43px;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block.wap {
    display: none !important;
  }

  /* newcommon.css 的 .pc 在 992px 以下会隐藏，此处按 PHP 768px 断点强制展示 PC 块 */
  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block.pc {
    display: block !important;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block {
    padding: 28px 0 12px 30px;
    box-sizing: border-box;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block .title {
    height: 24px;
    font-size: 18px;
    font-family: MicrosoftYaHei-Bold, MicrosoftYaHei, 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    color: #ffffff;
    line-height: 24px;
    margin: 0;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block .desc {
    width: 57%;
    min-width: 320px;
    font-size: 14px;
    font-family: MicrosoftYaHei, 'Microsoft YaHei', sans-serif;
    color: #ffffff;
    line-height: 21px;
    padding: 19px 0;
    min-height: 198px;
    margin: 0;
    box-sizing: border-box;
  }

}

@media (max-width: 767px) {
  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology.mod {
    background-image: none;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block.pc {
    display: none !important;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block.wap {
    display: block !important;
    position: relative;
    background: #ffffff;
    padding: 0;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block.wap img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
  }

  body.qualcomm-zone-legacy-page .qualcomm-zone-home .technology .content-block.wap .title {
    height: 43px;
    font-size: 18px;
    font-family: MicrosoftYaHei-Bold, MicrosoftYaHei, 'Microsoft YaHei', sans-serif;
    font-weight: bold;
    color: #ffffff;
    line-height: 43px;
    position: absolute;
    top: 38px;
    left: 0;
    right: 0;
    padding-left: 20px;
    margin: 0;
    box-sizing: border-box;
  }
}

/** pse.php：独立落地页（pse-index.css），勿套用专区 gray/chrome */
body.qualcomm-zone-pse-legacy-page {
  background: #fff !important;
  color: #222;
}

body.qualcomm-zone-pse-legacy-page #__nuxt {
  background: #fff !important;
  min-height: 100%;
}

/** PSE / WoS 不展示 CSDN 公共顶栏与页脚（从其它子页 SPA 切过来时兜底隐藏） */
body.qualcomm-zone-pse-legacy-page #csdn-toolbar,
body.qualcomm-zone-pse-legacy-page .csdn-toolbar,
body.qualcomm-zone-pse-legacy-page .pub_fo,
body.qualcomm-zone-pse-legacy-page #copyright-box,
body.qualcomm-zone-wos-page #csdn-toolbar,
body.qualcomm-zone-wos-page .csdn-toolbar,
body.qualcomm-zone-wos-page .pub_fo,
body.qualcomm-zone-wos-page #copyright-box,
html.qc-cview-reg-pse-page #csdn-toolbar,
html.qc-cview-reg-pse-page .csdn-toolbar,
html.qc-cview-reg-pse-page .pub_fo,
html.qc-cview-reg-pse-page #copyright-box {
  display: none !important;
}

/** PHP reg.php identy 2379：body 背景，不套专区灰底 */
html.qc-cview-reg-pse-page,
html.qc-cview-reg-pse-page body {
  margin: 0;
  background-image: url('https://img-home.csdnimg.cn/images/20220802052938.jpg');
  background-size: cover;
  background-color: transparent;
}

html.qc-cview-reg-pse-page body #__nuxt {
  background: transparent;
  min-height: 100%;
}

/**
 * PHP topBrief 桌面覆盖：apply.css @750px 把 label 做成 200px 右对齐。
 * 这段选择器必须比 apply.css 更具体，避免 useHead 注入顺序再次把布局打乱。
 */
@media (min-width: 1025px) {
  html.qc-cview-reg-pse-page .csdn-applyli {
    width: 370px;
    margin: 0 auto;
  }

  html.qc-cview-reg-pse-page .csdn-applyli li label,
  html.qc-cview-reg-pse-page .csdn-applyli li > span {
    width: 100%;
    text-align: left;
  }

  html.qc-cview-reg-pse-page .csdn-applyli li .txt_sm {
    width: 330px;
  }

  html.qc-cview-reg-pse-page .signup .joinin {
    text-align: center;
  }

  html.qc-cview-reg-pse-page .csdn-applyli li input[type='checkbox'] {
    margin-top: -11px !important;
  }
}

/** reg.php identy 2379：KindEditor 上传区默认 width:0，JS 再写成 240×56 / 240×48 */
html.qc-cview-reg-pse-page .ke-upload-area {
  position: relative;
  width: 240px;
  overflow: visible;
  clear: both;
}

html.qc-cview-reg-pse-page .csdn-applyli li label.ke-button,
html.qc-cview-reg-pse-page .csdn-applyli li label.ke-button-common,
html.qc-cview-reg-pse-page .ke-button-common,
html.qc-cview-reg-pse-page .ke-upload-file {
  float: none;
  width: 240px;
  height: 56px;
}

html.qc-cview-reg-pse-page .ke-button-common {
  display: inline-block;
  line-height: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #e5e5e5;
  border: 1px solid #c3c3c3;
  color: #333;
  box-sizing: border-box;
}

html.qc-cview-reg-pse-page .ke-upload-file {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

html.qc-cview-reg-pse-page .ke-button-doc {
  display: block;
  float: none;
  background: #d8d8d8;
  height: 48px;
  width: 240px;
  border: 0;
}

/** themes/zone/qualcomm2016/project_detail.php 页内 style */
body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 h2.deta_t {
  padding-left: 0 !important;
  margin-top: 15px;
  color: #232534;
}

body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 {
  padding: 10px 15px 30px;
}

body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 img {
  margin: 10px auto 0 !important;
  display: block;
}

body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 img.img01 {
  margin: 10px 0 !important;
}

body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 table {
  border: 1px solid #ccc;
}

body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 table th {
  background-color: #fff;
  width: 25%;
  border: 1px solid #ccc;
}

body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 table td {
  background-color: #efeded;
  border: 1px solid #ccc;
}

@media (min-width: 660px) {
  body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 img {
    width: auto;
  }
}

body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 td,
body.qualcomm-zone-legacy-page .mod-l.detail .subpage1 th {
  border-bottom: 0;
  margin: 0;
  padding: 10px;
  font-weight: normal;
}
