/* 企策网首页：顶栏 ~ 行业资讯以上（内容宽度 1200px） */

.qc-topbar,
.qc-header,
.qc-nav,
footer {
  width: 100%;
  flex: 0 0 auto;
}

.qc-topbar *,
.qc-header *,
.qc-nav *,
.qc-hero *,
.qc-mid *,
.qc-services * {
  box-sizing: border-box;
}

/* ---------- 顶栏 ---------- */
.qc-topbar {
  width: 100%;
  height: 36px;
  background: #fff;
  border-bottom: 1px solid #eee;
  color: #888;
  font-size: 12px;
  line-height: 36px;
}

.qc-topbar .content,
.qc-header .content,
.qc-nav .content {
  width: 1200px;
  max-width: 1200px;
  box-sizing: border-box;
}

.qc-topbar .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qc-topbar-welcome {
  color: #999;
}

.qc-topbar-links {
  display: flex;
  align-items: center;
}

.qc-topbar-links a,
.qc-topbar-links span {
  color: #666;
  padding: 0 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.qc-topbar-links a:hover {
  color: #1677ff;
}

.qc-topbar-links a + a::before,
.qc-topbar-links .qc-drop + a::before,
.qc-topbar-user::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 1px;
  height: 12px;
  background: #e5e5e5;
}

.qc-topbar-links svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.qc-drop {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.qc-drop-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  width: 140px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 80;
  padding: 6px 0;
  line-height: 1.4;
}

.qc-drop:hover .qc-drop-menu {
  display: block;
}

.qc-drop-menu a {
  display: block;
  padding: 8px 14px;
  color: #555;
  height: auto;
}

.qc-drop-menu a::before {
  display: none;
}

.qc-drop-menu a:hover {
  background: #f5f8ff;
  color: #1677ff;
}

.qc-topbar-user {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding-left: 4px;
  position: relative;
}

.qc-topbar-user a {
  color: #1677ff;
}

.qc-topbar-user .qc-reg {
  color: #666;
}

.qc-topbar-user .qc-reg:hover {
  color: #1677ff;
}

/* ---------- Logo / 搜索 / 按钮 ---------- */
.qc-header {
  width: 100%;
  background: #fff;
}

.qc-header .content {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  grid-template-areas: "logo search btns";
  align-items: center;
  height: 88px;
}

.qc-logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  width: 240px;
}

.qc-logo img {
  height: 37px;
  width: auto;
  max-width: 240px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.qc-search {
  grid-area: search;
  width: 540px;
  margin: 0 auto;
}

.qc-search-form {
  display: flex;
  height: 42px;
  border: 2px solid #1677ff;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.qc-search-form input {
  flex: 1;
  height: 38px;
  border: 0;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  background: transparent;
}

.qc-search-form button {
  width: 96px;
  height: 38px;
  border: 0;
  background: #1677ff;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.qc-search-form button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.qc-search-form button:hover {
  background: #0f6ae8;
}

.qc-hot-words {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
}

.qc-hot-words span {
  color: #b0b0b0;
  margin-right: 4px;
}

.qc-hot-words a {
  color: #888;
  margin-right: 10px;
}

.qc-hot-words a:hover {
  color: #1677ff;
}

.qc-header-btns {
  grid-area: btns;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.qc-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.qc-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.qc-btn-ghost {
  border: 1px solid #1677ff;
  color: #1677ff;
  background: #fff;
}

.qc-btn-ghost:hover {
  background: #f0f6ff;
  color: #1677ff;
}

.qc-btn-primary {
  background: #1677ff;
  color: #fff !important;
  border: 1px solid #1677ff;
}

.qc-btn-primary:hover {
  background: #0f6ae8;
  color: #fff !important;
}

/* ---------- 导航 ---------- */
.qc-nav {
  width: 100%;
  height: 46px;
  background: #1677ff;
}

.qc-nav .content {
  display: flex;
  align-items: stretch;
  height: 46px;
}

.qc-nav-list {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.qc-nav-list a {
  color: #fff;
  font-size: 16px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  height: 46px;
  font-weight: 600;
}

.qc-nav-list a:hover,
.qc-nav-list a.is-on {
  background: #0d5fd8;
  color: #fff;
}

/* ---------- 首屏三栏 ---------- */
.qc-main {
  width: 1200px;
  max-width: 1200px;
  min-width: 0;
  margin: 0 auto;
  flex: 0 0 auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.qc-hero {
  width: 1200px;
  max-width: 1200px;
  min-width: 0;
  margin: 10px auto 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.qc-panel {
  background: #fff;
  border: 1px solid #e8eef5;
}

.qc-cate {
  flex: 0 0 250px;
  width: 250px;
  max-width: 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 0 4px;
}

.qc-mid {
  flex: 0 0 680px;
  width: 680px;
  max-width: 680px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: hidden;
}

.qc-cate-item {
  padding: 11px 14px 10px;
  border-bottom: 1px solid #f0f3f7;
  flex: 1;
}

.qc-cate-item:last-child {
  border-bottom: 0;
}

.qc-cate-item:hover {
  background: #f7faff;
}

.qc-cate-tit a {
  color: inherit;
  text-decoration: none;
}

.qc-cate-tit a:hover {
  color: #1677ff;
}

.qc-cate-tit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.qc-cate-tit .qc-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1677ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qc-cate-tit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qc-cate-tit svg * {
  fill: none;
  stroke: #fff;
}

.qc-cate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-left: 36px;
  overflow: hidden;
}

.qc-cate-links a {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.qc-cate-links a:hover {
  color: #1677ff;
}

.qc-cate-links .more {
  color: #1677ff;
}

/* 中：Banner 轮播 */
.qc-banner {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 320px;
  min-height: 280px;
  overflow: hidden;
  background: #062a6b;
}

.qc-banner.layui-carousel > [carousel-item] > * {
  background: #062a6b;
}

.qc-banner.layui-carousel > [carousel-item] > * > a,
.qc-banner.layui-carousel > [carousel-item] > * {
  display: block;
  width: 100%;
  height: 100%;
}

.qc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qc-banner .layui-carousel-ind {
  top: auto;
  bottom: 12px;
}

.qc-banner .layui-carousel-arrow {
  background-color: rgba(0, 0, 0, 0.28);
}

.qc-banner-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 28, 82, 0.62) 0%, rgba(8, 50, 130, 0.28) 46%, rgba(4, 28, 82, 0.08) 100%);
}

.qc-banner-copy {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-54%);
  z-index: 2;
  color: #fff;
  max-width: 420px;
}

.qc-banner-copy h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.45;
  text-shadow: 0 4px 16px rgba(0, 20, 60, 0.45);
}

.qc-banner-copy p {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.95;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 8px rgba(0, 20, 60, 0.4);
}

.qc-banner-more {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  height: 36px;
  padding: 0 20px;
  background: #fff;
  color: #1677ff !important;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 30, 80, 0.18);
}

.qc-banner-more:hover {
  background: #f3f8ff;
  color: #0f6ae8 !important;
}

.qc-banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.qc-banner-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.qc-banner-dots i.is-on {
  background: #fff;
}

/* 右：登录 + 热门企业 */
.qc-side {
  flex: 0 0 250px;
  width: 250px;
  max-width: 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qc-user {
  padding: 18px 16px 16px;
  text-align: center;
}

.qc-avatar {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #eef2f6;
  color: #9aa7b5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qc-avatar svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.qc-user p {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.qc-user-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.qc-user-btns .qc-btn {
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  width: 100%;
}

.qc-hot {
  flex: 1;
  padding: 0 12px 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.qc-hd {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.qc-hd strong {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  position: relative;
  padding-left: 10px;
}

.qc-hd strong::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: #1677ff;
  border-radius: 2px;
}

.qc-hd a {
  color: #999;
  font-size: 12px;
}

.qc-hd a:hover {
  color: #1677ff;
}

.qc-hot-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.qc-hot-list li {
  list-style: none;
}

.qc-hot-list a {
  display: flex;
  align-items: center;
  height: 32px;
  min-width: 0;
  color: #333;
  font-size: 13px;
}

.qc-hot-list a:hover .qc-hot-name {
  color: #1677ff;
}

.qc-hot-ico {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  color: #8aa0b8;
}

.qc-hot-ico svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.qc-hot-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 栏目入口（与 Banner 同宽） ---------- */
.qc-services {
  width: 100%;
  height: 86px;
  min-width: 0;
  background: #fff;
  border: 1px solid #eee;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  box-sizing: border-box;
  flex: 0 0 86px;
  overflow: hidden;
}

.qc-services a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #222;
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0 4px;
}

.qc-services a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: #eee;
}

.qc-services a:hover strong {
  color: #1677ff;
}

.qc-services .qc-ico {
  width: 32px;
  height: 32px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qc-services svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #1677ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qc-services svg * {
  fill: none;
  stroke: #1677ff;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qc-services-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.35;
}

.qc-services-txt strong {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.qc-services-txt em {
  font-size: 12px;
  font-style: normal;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.img_news_block .img_news_list img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}

.qc-menu-btn {
  display: none;
}

body.qc-nav-lock {
  overflow: hidden;
}

/* PC 锁定 1200px，避免缩放/窄窗口把桌面布局改乱 */
@media (min-width: 992px) {
  .qc-topbar .content,
  .qc-header .content,
  .qc-nav .content,
  .qc-main,
  .qc-hero,
  .content,
  footer .content {
    width: 1200px;
    max-width: 1200px;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .qc-main,
  .qc-hero {
    overflow-x: hidden;
  }

  .qc-header .content {
    grid-template-columns: 240px 1fr 220px;
    grid-template-areas: "logo search btns";
    height: 88px;
  }

  .qc-menu-btn {
    display: none !important;
  }

  .qc-header-btns {
    display: flex;
  }

  .qc-cate,
  .qc-side {
    flex: 0 0 250px;
    width: 250px;
    max-width: 250px;
  }

  .qc-mid {
    flex: 0 0 680px;
    width: 680px;
    max-width: 680px;
    min-width: 0;
    overflow-x: hidden;
  }

  .qc-services {
    width: 100%;
    height: 86px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .qc-services a {
    flex-direction: row;
  }

  .block {
    flex-direction: row;
  }

  .block .center {
    width: 835px;
  }

  .block .right {
    width: 355px;
  }

  .h450 {
    height: 450px;
  }

  .img_news_block {
    display: flex;
  }

  .img_news_block .img_news_list {
    width: 180px;
  }

  .img_news_block .img_news_list img {
    width: 180px;
    height: 120px;
  }

  .news_list2 li {
    width: 49%;
  }
}

/* 仅手机/平板竖屏启用自适应，不影响 PC */
@media (max-width: 991px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .qc-topbar .content,
  .qc-header .content,
  .qc-nav .content,
  .qc-main,
  .qc-hero,
  .content,
  footer .content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .qc-main,
  .qc-hero,
  .qc-mid {
    overflow: visible;
    width: 100%;
    max-width: 100%;
  }

  .qc-topbar .content,
  .qc-header .content,
  .qc-nav .content,
  .qc-main,
  footer .content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .qc-topbar-welcome,
  .qc-topbar-links > a,
  .qc-drop {
    display: none;
  }

  .qc-topbar .content {
    justify-content: flex-end;
  }

  .qc-topbar-user {
    margin-left: 0;
    padding-left: 0;
  }

  .qc-topbar-user::before {
    display: none;
  }

  .news_block,
  .block,
  .img_news_block,
  .img_news_block .img_news_list {
    box-sizing: border-box;
  }

  .qc-header .content {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo menu"
      "search search";
    height: auto;
    padding-top: 10px;
    padding-bottom: 12px;
    gap: 10px 12px;
  }

  .qc-logo {
    width: auto;
  }

  .qc-menu-btn {
    grid-area: menu;
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid #dbe4f0;
    border-radius: 6px;
    background: #fff;
    padding: 0;
    cursor: pointer;
  }

  .qc-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #1677ff;
    border-radius: 2px;
  }

  .qc-menu-btn.is-on span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .qc-menu-btn.is-on span:nth-child(2) {
    opacity: 0;
  }

  .qc-menu-btn.is-on span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .qc-menu-btn span {
    transition: 0.2s;
  }

  .qc-search {
    grid-area: search;
    width: 100%;
  }

  .qc-header-btns {
    display: none !important;
  }

  .qc-hot-words {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .qc-search-form input {
    font-size: 16px;
  }

  .qc-nav {
    display: none;
    height: auto;
  }

  .qc-nav.is-open {
    display: block;
  }

  .qc-nav .content {
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .qc-nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .qc-nav-list a {
    height: 44px;
    padding: 0 16px;
    font-size: 15px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .qc-nav-list a:last-child {
    border-bottom: 0;
  }

  .qc-hero {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  .qc-mid {
    order: 1;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .qc-cate {
    order: 2;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .qc-side {
    order: 3;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .qc-banner {
    flex: none;
    min-height: 0;
    height: 200px;
  }

  .qc-banner-copy {
    left: 16px;
    max-width: 88%;
  }

  .qc-banner-copy h2 {
    font-size: 22px;
    line-height: 1.35;
  }

  .qc-banner-copy p {
    margin-top: 8px;
    font-size: 13px;
  }

  .qc-banner-more {
    margin-top: 14px;
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }

  .qc-services {
    width: 100%;
    height: auto;
    flex: none;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .qc-services a {
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 14px 12px;
    min-height: 68px;
    border-radius: 0;
  }

  .qc-services a + a::before {
    display: none;
  }

  .qc-services a:nth-child(odd) {
    border-right: 1px solid #eee;
  }

  .qc-services a:nth-child(-n + 4) {
    border-bottom: 1px solid #eee;
  }

  .qc-services a:nth-child(5) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  .qc-services .qc-ico {
    width: 36px;
    height: 36px;
  }

  .qc-services svg {
    width: 34px;
    height: 34px;
  }

  .qc-cate-item {
    flex: none;
  }

  .qc-hot {
    flex: none;
  }

  .block {
    flex-direction: column;
    gap: 10px;
  }

  .block .center,
  .block .right {
    width: 100%;
  }

  .h450 {
    height: auto;
  }

  .img_news_block {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    justify-content: stretch;
  }

  .img_news_block .img_news_list {
    width: auto;
  }

  .img_news_block .img_news_list img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .img_news_block .img_news_list dd {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
  }

  .news_list2 li {
    width: 100%;
  }

  .news_block {
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .qc-topbar {
    height: 40px;
    line-height: 40px;
  }

  .qc-topbar-links a,
  .qc-topbar-links span {
    height: 40px;
    padding: 0 8px;
  }

  .qc-banner {
    height: 46vw;
    min-height: 168px;
    max-height: 220px;
  }

  .qc-banner-copy h2 {
    font-size: 20px;
  }

  .qc-banner-dots {
    bottom: 10px;
  }

  .qc-cate-links {
    padding-left: 38px;
  }

  .title_03 strong {
    font-size: 18px;
  }

  footer {
    padding: 16px 0;
  }

  footer .menu_foot {
    height: auto;
    line-height: 1.6;
    padding: 8px 0 12px;
    flex-wrap: wrap;
  }

  footer .copyright {
    padding: 12px 0 4px;
    text-align: center;
  }

  footer .copyright a.gaba {
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .qc-services {
    grid-template-columns: 1fr;
  }

  .qc-services a {
    min-height: 64px;
    padding: 12px 14px;
  }

  .qc-services a:nth-child(5) {
    grid-column: auto;
  }

  .qc-services a:nth-child(odd) {
    border-right: 0;
  }

  .qc-services a:nth-child(-n + 4) {
    border-bottom: 1px solid #eee;
  }

  .qc-services a:last-child {
    border-bottom: 0;
  }

  .qc-services .qc-ico {
    width: 34px;
    height: 34px;
  }

  .qc-services svg {
    width: 32px;
    height: 32px;
  }

  .img_news_block {
    grid-template-columns: 1fr 1fr;
  }

  .ranking_list li a {
    height: 36px;
    line-height: 36px;
  }
}

/* ---------- 登录后样式（默认隐藏，body.is-login 时显示） ---------- */
.qc-authed {
  display: none !important;
}

body.is-login .qc-guest {
  display: none !important;
}

body.is-login .qc-topbar-user.qc-authed {
  display: inline-flex !important;
}

body.is-login .qc-header-btns.qc-authed {
  display: flex !important;
}

body.is-login .qc-user.qc-authed {
  display: block !important;
}

.qc-topbar-name {
  max-width: 120px;
  overflow: hidden;
}

.qc-topbar-name svg {
  flex-shrink: 0;
}

.qc-badge {
  display: inline-block;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  margin-left: 3px;
  border-radius: 8px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 14px;
  text-align: center;
}

.qc-user.qc-authed {
  padding: 16px 14px 14px;
  text-align: left;
}

.qc-user-in {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qc-user.qc-authed .qc-avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  flex-shrink: 0;
}

.qc-user-meta {
  min-width: 0;
}

.qc-user-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qc-user-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #1677ff;
  line-height: 1.2;
}

.qc-user-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 12px 0 10px;
}

.qc-user-links a {
  height: 30px;
  font-size: 12px;
  color: #1677ff;
  background: #f5f8ff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qc-user-links a:hover {
  background: #e8f1ff;
  color: #0f6ae8;
}

.qc-user.qc-authed > .qc-btn {
  width: 100%;
  height: 34px;
  font-size: 13px;
}

@media (max-width: 991px) {
  body.is-login .qc-header-btns.qc-authed {
    display: none !important;
  }

  body.is-login .qc-topbar-name {
    max-width: 88px;
  }
}



