/* =====================================================================
   Tencent Cloud 风格首页样式 (首页 index.html 专属)
   注意：--tc-* 颜色变量默认取下方值；前台 header 末尾会引入
   /theme-admin/theme-config.php（后台可改），其值将覆盖这里的默认值。
   这样即使后台接口不可用，页面也能正常显示默认蓝色风格。
   ===================================================================== */

:root {
  --tc-blue: #006EFF;
  --tc-blue-d: #0052D9;
  --tc-blue-l: #E8F3FF;
  --tc-ink: #0052D9;
  --tc-ink-2: #0052D9;
  --tc-text: #1D2129;
  --tc-sub: #86909C;
  --tc-bg: #F5F7FA;
  --tc-line: #E5E6EB;
  --tc-radius: 8px;
  --tc-shadow: 0 6px 20px rgba(10, 31, 68, .08);
  --tc-shadow-h: 0 12px 30px rgba(0, 110, 255, .18);
  --tc-gradient: linear-gradient(135deg, #006EFF 0%, #0052D9 100%);
}

/* 容器 */
.tc-container {
  width: 1200px;
  max-width: 92%;
  margin: 0 auto;
}

/* 导航标签栏：Banner 下方横向锚点导航 */
.tc-neck {
  background: #fff;
  border-bottom: 1px solid var(--tc-line, #eceef2);
  position: relative;
  z-index: 1;
  margin-top: 40px;
  box-shadow: 0 2px 12px rgba(22, 93, 255, .06);
}
.tc-neck-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tc-neck-nav::-webkit-scrollbar { display: none; }
.tc-neck-link {
  position: relative;
  flex-shrink: 0;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text, #1d2129);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: color .2s, background .2s;
  cursor: pointer;
}
.tc-neck-link:hover {
  color: var(--tc-blue, #165DFF);
  background: rgba(22, 93, 255, .05);
}
.tc-neck-link.active,
.tc-neck-link.active:hover {
  color: var(--tc-blue, #165DFF);
  font-weight: 600;
  background: transparent;
}
.tc-neck-link.active::after,
.tc-neck-link:hover::after {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--tc-blue, #165DFF);
  transition: opacity .2s;
  opacity: 0;
}
.tc-neck-link.active::after,
.tc-neck-link:hover::after { opacity: 1; }
.tc-neck-link.active::after { opacity: 1; }

/* 更多下拉按钮 */
.tc-neck-more {
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--tc-sub, #86909c);
  cursor: pointer;
  transition: color .2s, transform .2s;
  line-height: 1;
}
.tc-neck-more:hover { color: var(--tc-blue, #165DFF); }
.tc-neck-more.open { transform: rotate(180deg); }

/* 更多下拉面板 */
.tc-neck-panel {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--tc-line, #eceef2);
  box-shadow: 0 8px 24px rgba(22, 93, 255, .08);
}
.tc-neck-panel.open { display: block; }
.tc-neck-panel-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
}
.tc-neck-panel-link {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--tc-sub, #86909c);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  background: #f7f8fa;
  transition: color .2s, background .2s;
}
.tc-neck-panel-link:hover {
  color: var(--tc-blue, #165DFF);
  background: rgba(22, 93, 255, .08);
}

/* 手机端 neck 导航适配 */
@media (max-width: 768px) {
  .tc-neck { z-index: 1; margin-top: 0; }
  .tc-neck-nav { gap: 6px; padding: 10px 0; }
  .tc-neck-link { padding: 6px 14px; font-size: 13px; }
  .tc-neck-panel-inner { gap: 8px; padding: 12px 0; }
  .tc-neck-panel-link { padding: 5px 12px; font-size: 12px; }
}

/* 区块通用 */
.tc-section {
  padding: 64px 0;
}
.tc-section--alt {
  background: var(--tc-bg);
}

/* 区块标题 */
.tc-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.tc-sec-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--tc-text);
  letter-spacing: 1px;
  position: relative;
  padding-left: 16px;
  line-height: 1.2;
}
.tc-sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 26px;
  border-radius: 3px;
  background: var(--tc-gradient);
}
.tc-sec-sub {
  margin-top: 10px;
  font-size: 15px;
  color: var(--tc-sub);
}
.tc-sec-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--tc-blue);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--tc-line);
  border-radius: 20px;
  transition: .25s;
}
.tc-sec-more:hover {
  border-color: var(--tc-blue);
  background: var(--tc-blue-l);
}
.tc-sec-more i {
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}

/* =====================================================================
   1. 产品与服务（热门产品）
   ===================================================================== */
.tc-products {
  background: #fff;
}
.tc-prod-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.tc-prod-tab {
  border: 1px solid var(--tc-line);
  background: #fff;
  color: var(--tc-text);
  font-size: 15px;
  padding: 9px 22px;
  border-radius: 22px;
  cursor: pointer;
  transition: .25s;
}
.tc-prod-tab:hover {
  color: var(--tc-blue);
  border-color: var(--tc-blue);
}
.tc-prod-tab.is-active {
  background: var(--tc-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--tc-shadow-h);
}
.tc-prod-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tc-prod-panel.is-hidden {
  display: none;
}
.tc-prod-card {
  display: block;
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: .25s;
  overflow: hidden;
}
.tc-prod-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--tc-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: .3s;
}
.tc-prod-card:hover {
  border-color: transparent;
  box-shadow: var(--tc-shadow-h);
  transform: translateY(-4px);
}
.tc-prod-card:hover::after {
  transform: scaleX(1);
}
.tc-prod-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--tc-blue-l);
  color: var(--tc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.tc-prod-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--tc-text);
}
.tc-prod-card p {
  font-size: 13px;
  color: var(--tc-sub);
  line-height: 1.6;
  min-height: 42px;
  margin: 0;
}
.tc-prod-go {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--tc-blue);
  font-weight: 500;
}

/* =====================================================================
   2. 解决方案（深色渐变）
   ===================================================================== */
.tc-solutions {
  background: #fff;
  color: var(--tc-text);
  position: relative;
}
.tc-solutions .tc-sec-title {
  color: var(--tc-text);
}
.tc-solutions .tc-sec-sub {
  color: var(--tc-sub);
}
.tc-sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.tc-sol-card {
  background: #fff;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  padding: 26px 22px;
  transition: .3s;
}
.tc-sol-card:hover {
  border-color: var(--tc-blue);
  box-shadow: var(--tc-shadow-h);
  transform: translateY(-5px);
}
.tc-sol-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tc-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0, 110, 255, .4);
}
.tc-sol-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--tc-text);
}
.tc-sol-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tc-sol-card li {
  font-size: 13px;
  color: var(--tc-sub);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.7;
}
.tc-sol-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tc-blue);
}

/* =====================================================================
   3. 为什么选择我们（优势）
   ===================================================================== */
.tc-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tc-adv-card {
  background: #fff;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  padding: 32px 26px;
  text-align: center;
  transition: .25s;
}
.tc-adv-card:hover {
  box-shadow: var(--tc-shadow);
  transform: translateY(-4px);
}
.tc-adv-num {
  font-size: 34px;
  font-weight: 700;
  background: var(--tc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.tc-adv-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--tc-text);
  margin-bottom: 10px;
}
.tc-adv-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--tc-sub);
  margin: 0;
}

/* =====================================================================
   4. 数据看板（蓝色统计条）
   ===================================================================== */
.tc-stats {
  background: #fff;
  color: var(--tc-text);
  border-top: 1px solid var(--tc-line);
  border-bottom: 1px solid var(--tc-line);
}
.tc-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.tc-stat-num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  background: var(--tc-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tc-stat-num small {
  font-size: 22px;
  font-weight: 600;
  -webkit-text-fill-color: var(--tc-blue);
}
.tc-stat-label {
  margin-top: 8px;
  font-size: 15px;
  color: var(--tc-sub);
}

/* =====================================================================
   5. 全球基础设施（地图）
   ===================================================================== */
.tc-global {
  background: #fff;
}
.tc-global .intl-map-dot-layer {
  background: rgba(0, 110, 255, .25);
  border: 1px solid var(--tc-blue);
}
.tc-global .intl-map-dot.style-1 .intl-map-dot-layer {
  background: rgba(0, 110, 255, .25);
  border-color: var(--tc-blue);
}
.tc-global .intl-map-dot.style-2 .intl-map-dot-layer {
  background: rgba(0, 82, 217, .18);
  border-color: var(--tc-blue-d);
}
.tc-global .intl-map-dot-tit {
  color: var(--tc-text);
}
.tc-global .intl-map-bubble-inner {
  border-top: 3px solid var(--tc-blue);
}

/* =====================================================================
   6. 合作伙伴 logo 墙
   ===================================================================== */
.tc-partners {
  background: var(--tc-bg);
  padding: 40px 0;
}
.tc-partners .tc-sec-head { margin-bottom: 22px; }
.tc-partners .tc-sec-title { font-size: 24px; }
.tc-partners .tc-sec-sub { font-size: 14px; }
.tc-logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tc-logo-wall li {
  list-style: none;
  height: 64px;
  background: #fff;
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  background-size: 52% auto;
  background-position: center;
  background-repeat: no-repeat;
  transition: .25s;
}
.tc-logo-wall li:hover {
  border-color: var(--tc-blue);
  box-shadow: var(--tc-shadow);
}

/* 友情链接（友联配置） */
.tc-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--tc-line);
}
.tc-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
  flex-shrink: 0;
}
.tc-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.tc-links-list a,
.tc-links-list span {
  font-size: 14px;
  color: var(--tc-sub);
  text-decoration: none;
  transition: color .2s;
}
.tc-links-list a:hover {
  color: var(--tc-blue);
}

/* =====================================================================
   7. 新闻资讯
   ===================================================================== */
.tc-news {
  background: #fff;
}
.tc-news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.tc-news-feature {
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius);
  padding: 28px;
  background: linear-gradient(160deg, #f4f9ff, #fff);
}
.tc-news-feature .tag {
  display: inline-block;
  background: var(--tc-blue-l);
  color: var(--tc-blue);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.tc-news-feature h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--tc-text);
  margin-bottom: 12px;
  line-height: 1.5;
}
.tc-news-feature p {
  font-size: 14px;
  color: var(--tc-sub);
  line-height: 1.8;
  margin: 0;
}
.tc-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tc-news-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--tc-line);
}
.tc-news-list li:last-child {
  border-bottom: none;
}
.tc-news-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--tc-text);
  gap: 14px;
}
.tc-news-list .tc-news-t {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: .2s;
}
.tc-news-list a:hover .tc-news-t {
  color: var(--tc-blue);
}
.tc-news-list .tc-news-d {
  flex: none;
  font-size: 13px;
  color: var(--tc-sub);
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 992px) {
  .tc-prod-panel { grid-template-columns: repeat(2, 1fr); }
  .tc-sol-grid,
  .tc-adv-grid,
  .tc-logo-wall { grid-template-columns: repeat(2, 1fr); }
  .tc-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .tc-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tc-section { padding: 40px 0; }
  .tc-sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .tc-prod-panel,
  .tc-adv-grid,
  .tc-logo-wall,
  .tc-stats-grid { grid-template-columns: 1fr; }
  /* 云上解决方案 8 张卡片在手机端保持 2 列并排，不要一个一行 */
  .tc-sol-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-content: center;
  }
  .tc-sol-card {
    text-align: center;
    padding: 20px 12px;
  }
  .tc-sol-icon {
    margin-left: auto;
    margin-right: auto;
  }
  .tc-sol-card li {
    padding-left: 0;
  }
  .tc-sol-card li::before {
    display: none;
  }
  .tc-logo-wall { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   顶部导航栏三级下拉菜单（网站资讯 / 渠道合作 / 解决方案 / 更多）
   根因：原 common.css 仅定义 .third-menu{display:none}，缺少 hover 显示规则，
   导致这些下拉在所有页面（不止其它页面）都无法展开。统一在此补充 hover 显示。
   ===================================================================== */
.common-header.no-touch .nav .nav-item.spec,
.common-header.no-touch .nav .nav-item.nav-drop-down-wrap {
  position: relative;
}
/* 三级菜单 third-menu（网站资讯 / 渠道合作 / 解决方案 / 更多）*/
.common-header.no-touch .nav .nav-item.spec:hover .third-menu,
.common-header.no-touch .nav .nav-item.nav_item.qz.spec:hover .third-menu,
.common-header.no-touch .nav .nav-item.nav-drop-down-wrap:hover .third-menu,
.common-header.no-touch .nav .nav-item.spec:focus-within .third-menu,
.common-header.no-touch .nav .nav-item.open .third-menu {
  display: block !important;
}
/* 全部产品 / 更多 的容器支持点击 .open 展开（hover 之外的兜底）*/
.common-header.no-touch .nav .nav-item.nav-drop-down-wrap.open .nav-drop-down-container {
  display: block !important;
}

/* =====================================================================
   下拉面板补齐全样式（原 common.css 仅 display:none，显示后无布局/背景/文字样式，
   导致“乱码”裸列表）。统一用蓝色视觉令牌，作用于所有页面。
   ===================================================================== */
.common-header .nav .third-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  min-width: 200px;
  max-width: 320px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22,93,255,.12);
  border: 1px solid #eef1f6;
  border-radius: var(--radius, 10px);
  padding: 14px 18px;
  margin: 0;
  overflow: visible;
  box-sizing: border-box;
}
/* 中和 common.css 中 .nav_child 对“网站资讯”下拉的 top:70px/left:0 定位，
   使其与其它下拉一致地贴在导航项正下方 */
.common-header .nav .nav_child.third-menu {
  top: 100%;
  left: 0;
}
.common-header .nav .third-menu .three-menu {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eef1f6;
  font-size: 14px;
  font-weight: 700;
  color: var(--txtcl, #1d2129);
}
.common-header .nav .third-menu .three-menu .img-menu {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  object-fit: contain;
}
.common-header .nav .third-menu ul { list-style: none; margin: 0; padding: 0; }
.common-header .nav .third-menu li.menu-li {
  height: auto;
  line-height: 1.6;
  margin: 2px 0;
  list-style: none;
}
.common-header .nav .third-menu li.menu-li a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: #4d5260 !important;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.common-header .nav .third-menu li.menu-li a:hover {
  background: #f2f8ff;
  color: var(--Original, #165DFF) !important;
}
/* 网站资讯双栏布局（left_nav_child + right_nav_child）*/
.common-header .nav .third-menu .left_nav_child,
.common-header .nav .third-menu .right_nav_child {
  display: inline-block;
  vertical-align: top;
  margin: 0;
  padding: 0;
}
.common-header .nav .third-menu .right_nav_child {
  border-left: 1px solid #eef1f6;
  margin-left: 16px;
  padding-left: 16px;
}
.common-header .nav .third-menu .left_nav_child ul,
.common-header .nav .third-menu .right_nav_child ul {
  margin: 0;
}
.common-header .nav .third-menu .left_nav_child li a,
.common-header .nav .third-menu .right_nav_child li a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: #4d5260 !important;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.common-header .nav .third-menu .left_nav_child li a:hover,
.common-header .nav .third-menu .right_nav_child li a:hover {
  background: #f2f8ff;
  color: var(--Original, #165DFF) !important;
}
