/* Web 首页：紧凑字号层级 + Banner 四入口 */

/*
 * 字号层级：
 * 1. 模块主标题 20px
 * 2. 卡片/产品标题 16px
 * 3. 正文 16px
 * 4. 导航、辅助说明 14px~15px
 * 不再全局覆盖所有 h1-h6 / strong / span，避免旧主题权重反压造成视觉失控。
 */

html body main {
  font-size: 16px;
}

/* ===== Web 公共模块主标题 ===== */
html body main .qy-section-head h2,
html body main .qy-partner-card h2,
html body main .qy-cta h2,
html body main .qy-page-title h1,
html body main .qy-page-head h1,
html body main .qy-content-title h1,
html body main .qy-content-title h2 {
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

html body main .qy-section-head > p,
html body main .qy-partner-card p,
html body main .qy-cta p {
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

/* ===== 首页普通内容卡片：标题不再全部套 20px ===== */
html body#index-page main .qy-assure-grid h3,
html body#index-page main .qy-tools-grid strong,
html body#index-page main .qy-why-grid h3,
html body#index-page main .qy-news-card__head h3,
html body#index-page main .qy-news-card > a strong,
html body#index-page main .qy-news-v2-main__head h3,
html body#index-page main .qy-news-v2-docs__head h3 {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

html body#index-page main .qy-tools-main h3 {
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

html body#index-page main .qy-assure-grid p,
html body#index-page main .qy-tools-main p,
html body#index-page main .qy-why-grid p,
html body#index-page main .qy-partner-card p,
html body#index-page main .qy-news-v2-item,
html body#index-page main .qy-news-v2-doc-grid a {
  font-size: 16px !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

/* ===== 顶部导航与“产品与服务”下拉：UI 字号更紧凑 ===== */
html body .qy-header-scope .qy-nav__link,
html body .qy-header-scope .qy-nav__button,
html body .qy-header-scope .qy-actions__login,
html body .qy-header-scope .qy-user-trigger,
html body .qy-header-scope .qy-user-dropdown a {
  font-size: 15px !important;
  font-weight: 500 !important;
}

html body .qy-header-scope .qy-mega-sidebar h2,
html body .qy-header-scope .qy-mobile-panel h3 {
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

html body .qy-header-scope .qy-mega-nav button,
html body .qy-header-scope .qy-product-tabs button,
html body .qy-header-scope .qy-mobile-menu__left button,
html body .qy-header-scope .qy-mobile-panel h4,
html body .qy-header-scope .qy-mobile-panel a,
html body .qy-header-scope .qy-mobile-panel a strong {
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}

html body .qy-header-scope .qy-mega-card,
html body .qy-header-scope .qy-mega-card strong {
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

html body .qy-header-scope .qy-mega-card p,
html body .qy-header-scope .qy-mega-title span,
html body .qy-header-scope .qy-mega-more {
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}

/* ===== 首页“产品与服务”区域 ===== */
html body#index-page main #activity .qy-section-head h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
}

html body#index-page main #activity .qy-section-head > p {
  font-size: 16px !important;
}

html body#index-page main #activity .qy-hot-cate-title span,
html body#index-page main #activity .qy-hot-api__head span,
html body#index-page main #activity .qy-hot-api__head a {
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
}

html body#index-page main #activity .qy-hot-cate-title strong,
html body#index-page main #activity .qy-hot-api__head strong {
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

html body#index-page main #activity .qy-hot-cate button strong,
html body#index-page main #activity .qy-service-item h3 {
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

html body#index-page main #activity .qy-service-item::after {
  font-size: 18px !important;
  font-weight: 500 !important;
}

/* ===== Banner 下方四入口 ===== */
body#index-page .qy-home-promo {
  position: relative;
  z-index: 60;
  margin-top: -46px;
  margin-bottom: 24px;
  pointer-events: none;
}

body#index-page .qy-home-promo .qy-container {
  pointer-events: auto;
}

body#index-page .qy-home-promo__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body#index-page .qy-home-promo__card {
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  color: #334155;
  border: 1px solid #e5eaf1;
  border-radius: 0 !important;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  box-sizing: border-box;
  cursor: pointer;
}

body#index-page .qy-home-promo__card:hover,
body#index-page .qy-home-promo__card:focus-visible {
  color: #334155;
  border-color: #9dbef8;
  box-shadow: 0 7px 18px rgba(18, 99, 255, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

/* 图标本体 67×67，外层完全透明。 */
body#index-page .qy-home-promo__icon {
  flex: 0 0 67px;
  width: 67px;
  height: 67px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #1263ff;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
  box-sizing: border-box;
}

body#index-page .qy-home-promo__icon img {
  width: 67px;
  height: 67px;
  display: block;
  object-fit: contain;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body#index-page .qy-home-promo__icon.is-empty::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  box-sizing: border-box;
}

body#index-page .qy-home-promo__body {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}

/* 云厂商入口卡片通常使用 16px 标题，而不是 20px 模块标题。 */
html body#index-page main .qy-home-promo__title {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

html body#index-page main .qy-home-promo__subtitle {
  display: block;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  body#index-page .qy-home-promo__card {
    min-height: 92px;
    gap: 10px;
    padding: 11px 12px;
  }

  body#index-page .qy-home-promo__icon,
  body#index-page .qy-home-promo__icon img {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 991.98px) {
  body#index-page .qy-home-promo {
    margin-top: -34px;
    margin-bottom: 22px;
  }

  body#index-page .qy-home-promo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body#index-page .qy-home-promo__card {
    min-height: 84px;
    padding: 10px 12px;
  }
}

@media (max-width: 760px) {
  body#index-page .qy-home-promo {
    margin-top: -20px;
    margin-bottom: 18px;
  }

  body#index-page .qy-home-promo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body#index-page .qy-home-promo__card,
  body#index-page .qy-home-promo__card:hover,
  body#index-page .qy-home-promo__card:focus-visible {
    min-height: 72px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 9px;
    transform: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.045);
  }

  body#index-page .qy-home-promo__icon,
  body#index-page .qy-home-promo__icon img {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    background: transparent !important;
  }

  html body#index-page main .qy-home-promo__title {
    font-size: 15px !important;
    line-height: 1.3 !important;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html body#index-page main .qy-home-promo__subtitle {
    display: none !important;
  }

  /* 手机端“产品与服务”产品卡片隐藏国旗。 */
  body#index-page #activity .qy-hot-cate button .qy-hot-flag,
  body#index-page #activity .qy-hot-cate button .qy-hot-flag-country,
  body#index-page #activity .qy-hot-cate button .qy-plus-flag,
  body#index-page #activity .qy-hot-cate button img,
  body#index-page #activity .qy-hot-product .qy-plus-flag,
  body#index-page #activity .qy-hot-product img.qy-hot-flag,
  body#index-page .qy-product-panel .qy-plus-flag,
  body#index-page .qy-service-item .qy-plus-flag {
    display: none !important;
  }

  body#index-page #activity .qy-hot-cate button {
    min-height: 46px !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 9px 11px !important;
  }

  html body#index-page main #activity .qy-hot-cate button strong,
  html body#index-page main #activity .qy-service-item h3 {
    font-size: 14px !important;
    font-weight: 500 !important;
  }
}

@media (max-width: 420px) {
  body#index-page .qy-home-promo__card {
    min-height: 68px;
    padding: 7px 8px;
  }

  body#index-page .qy-home-promo__icon,
  body#index-page .qy-home-promo__icon img {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  html body#index-page main .qy-home-promo__title {
    font-size: 14px !important;
  }
}
