/* ============================================================
   时光云官网 · 腾讯云风格全局覆盖层（tc.css）
   作用域：body:not(#index) —— 首页 index.html 使用 <body id="index">，
   整个文件对其不生效；其余 40 页全部走腾讯云控制台设计语言。
   设计 token 与 modern.css（Arco 蓝 #165dff）保持同源，按钮改
   腾讯云标志性圆角小、层次分明的 #0052d9 主蓝。
   加载顺序：header.html 中置于 modern.css 之后，同权重时后者生效。
   ============================================================ */

:root {
  --tc-primary: #0052d9;
  --tc-primary-hover: #266fe8;
  --tc-primary-active: #0043b8;
  --tc-primary-light: #ecf2ff;
  --tc-primary-light-2: #f2f6fd;
  --tc-success: #12b76a;
  --tc-warning: #f59e0b;
  --tc-danger: #f04438;
  --tc-text: #1a2233;
  --tc-text-2: #4b5b76;
  --tc-text-3: #818f9e;
  --tc-border: #e3e9f2;
  --tc-border-light: #edf1f7;
  --tc-bg-page: #f6f8fb;
  --tc-bg-soft: #fafbfd;
  --tc-radius: 6px;
  --tc-radius-lg: 10px;
  --tc-shadow-card: 0 1px 2px rgba(26, 34, 51, .04), 0 2px 8px rgba(26, 34, 51, .05);
  --tc-shadow-hover: 0 6px 20px rgba(26, 34, 51, .10);
}

/* ---------- 全局基调 ---------- */
body:not(#index) {
  background: var(--tc-bg-page);
  color: var(--tc-text);
}

body:not(#index) .section {
  max-width: 1920px;
  margin: 0 auto;
}

/* ---------- 顶部 banner（server-banner / server-banner2）---------- */
body:not(#index) .server-banner,
body:not(#index) .server-banner2 {
  background: linear-gradient(118deg, #0a1c4e 0%, #10357a 46%, #0f4bbd 100%) !important;
  position: relative;
  overflow: hidden;
  padding: 88px 0;
}
/* 保留各页面自带的图片背景（banner-cloud 等按类挂在同一元素上），
   图片做右半透明底，主色渐变打底保证文字可读 */
body:not(#index) .server-banner.banner-cloud,
body:not(#index) .server-banner.product-banner,
body:not(#index) .server-banner.banner-trademark {
  background: linear-gradient(118deg, #0a1c4e 0%, #10357a 46%, #0f4bbd 100%);
}
body:not(#index) .server-banner::after,
body:not(#index) .server-banner2::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -60%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 145, 255, .35) 0%, rgba(0, 82, 217, 0) 62%);
  pointer-events: none;
}
body:not(#index) .server-banner .section-content,
body:not(#index) .server-banner2 .section-content {
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}
body:not(#index) .server-banner h1,
body:not(#index) .server-banner2 h1 {
  font-size: 34px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
body:not(#index) .server-banner-desc,
body:not(#index) .server-banner-desc2 {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.9;
  max-width: 640px;
  margin-top: 14px;
  margin-bottom: 0;
}
/* banner 内按钮：白底蓝字（腾讯云 hero 常用样式） */
body:not(#index) .server-banner .btn,
body:not(#index) .server-banner2 .btn {
  margin-top: 28px;
  margin-bottom: 0;
}
body:not(#index) .server-banner .btn a,
body:not(#index) .server-banner2 .btn a,
body:not(#index) .server-banner .btn,
body:not(#index) .server-banner2 .btn {
  color: var(--tc-primary) !important;
}

/* ---------- 按钮（btn 体系）---------- */
body:not(#index) .btn {
  border-radius: var(--tc-radius) !important;
  font-weight: 500;
  letter-spacing: .5px;
  transition: all .18s ease;
}
body:not(#index) .btn.btn-normal {
  background: var(--tc-primary) !important;
  color: #fff !important;
  border: 1px solid var(--tc-primary) !important;
  box-shadow: 0 2px 6px rgba(0, 82, 217, .22);
}
body:not(#index) .btn.btn-normal:hover {
  background: var(--tc-primary-hover) !important;
  border-color: var(--tc-primary-hover) !important;
  box-shadow: 0 4px 12px rgba(0, 82, 217, .30);
  transform: translateY(-1px);
}
body:not(#index) .btn.btn-normal:active {
  background: var(--tc-primary-active) !important;
  border-color: var(--tc-primary-active) !important;
  transform: none;
}
body:not(#index) .btn.btn-normal-light {
  background: #fff !important;
  color: var(--tc-primary) !important;
  border: 1px solid var(--tc-border) !important;
}
body:not(#index) .btn.btn-normal-light:hover {
  border-color: var(--tc-primary) !important;
  box-shadow: var(--tc-shadow-card);
}
body:not(#index) .btn.btn-dark {
  background: #1a2233 !important;
  color: #fff !important;
  border: 1px solid #1a2233 !important;
}
body:not(#index) .btn.btn-dark:hover { background: #2c3a52 !important; }
body:not(#index) .btn.btn-orgin {
  background: var(--tc-warning) !important;
  color: #fff !important;
  border: 1px solid var(--tc-warning) !important;
}
/* banner 内白底按钮 */
body:not(#index) .server-banner .btn.btn-normal,
body:not(#index) .server-banner2 .btn.btn-normal {
  background: #fff !important;
  color: var(--tc-primary) !important;
  border-color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
body:not(#index) .server-banner .btn.btn-normal:hover,
body:not(#index) .server-banner2 .btn.btn-normal:hover {
  background: var(--tc-primary-light) !important;
  color: var(--tc-primary) !important;
}

/* ---------- 区块标题 ---------- */
body:not(#index) .section-title {
  margin-bottom: 40px;
}
body:not(#index) .section-title h2 {
  font-size: 30px;
  font-weight: 600;
  color: var(--tc-text);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  margin: 0;
}
body:not(#index) .section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tc-primary), #4a8cff);
}
body:not(#index) .section-title .section-desc {
  color: var(--tc-text-3);
  font-size: 15px;
  margin-top: 12px;
}
/* 左对齐标题（mb-40 h2 独立出现时）*/
body:not(#index) .section-content > h2.mb-40,
body:not(#index) .about-details h2.mb-40 {
  font-size: 26px;
  font-weight: 600;
}

/* ---------- 通用内容卡 ---------- */
body:not(#index) .section {
  background: transparent;
}
body:not(#index) .trend,
body:not(#index) .advantage,
body:not(#index) .reason {
  gap: 20px;
}
/* 趋势/优势卡片 */
body:not(#index) .trend-box,
body:not(#index) .advantage-box {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
body:not(#index) .trend-box:hover,
body:not(#index) .advantage-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--tc-shadow-hover);
  border-color: rgba(0, 82, 217, .35);
}
body:not(#index) .trend-box h4,
body:not(#index) .advantage-box h5 {
  color: var(--tc-text);
  font-weight: 600;
}
body:not(#index) .trend-box p,
body:not(#index) .advantage-box p {
  color: var(--tc-text-2);
  font-size: 14px;
  line-height: 1.85;
}
body:not(#index) .trend-box img {
  background: linear-gradient(135deg, #eef4ff 0%, #f7fafd 100%);
}

/* ---------- jr-tabs 选项卡（热门组合/典型场景）---------- */
body:not(#index) .hot .swiper-wrapper.jr-tabs {
  gap: 10px;
  flex-wrap: wrap;
}
body:not(#index) .hot .swiper-wrapper.jr-tabs .title {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 999px;
  padding: 8px 22px;
  color: var(--tc-text-2);
  cursor: pointer;
  transition: all .18s ease;
  border-bottom: 1px solid var(--tc-border);
}
body:not(#index) .hot .swiper-wrapper.jr-tabs .title:hover {
  color: var(--tc-primary);
  border-color: rgba(0, 82, 217, .45);
}
body:not(#index) .hot .swiper-wrapper.jr-tabs .title.active {
  background: var(--tc-primary);
  border-color: var(--tc-primary);
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(0, 82, 217, .28);
}
body:not(#index) .scene-box {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow-card);
  overflow: hidden;
  padding: 0 !important;
}
body:not(#index) .scene-box img {
  border-radius: 0;
}
body:not(#index) .scene-cont {
  padding: 28px 30px 30px;
}
body:not(#index) .scene-cont h4 {
  color: var(--tc-text);
}
body:not(#index) .scene-cont p {
  color: var(--tc-text-2);
}
body:not(#index) .gallery-top .scene-cont p::after {
  background: var(--tc-primary);
}

/* ---------- cloud-box 产品卡片 ---------- */
body:not(#index) .cloud-box {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
body:not(#index) .cloud-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--tc-shadow-hover);
}
body:not(#index) .cloud-box-cont {
  color: var(--tc-text-2);
}

/* ---------- help 帮助卡片 ---------- */
body:not(#index) .help-box {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow-card);
}
body:not(#index) .help-head {
  border-bottom: 1px solid var(--tc-border-light);
  color: var(--tc-text);
  font-weight: 600;
}

/* ---------- 表单（solution-contact / feedback）---------- */
body:not(#index) .form-control {
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
  color: var(--tc-text);
}
body:not(#index) .form-control:focus {
  border-color: var(--tc-primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 217, .12) !important;
}
body:not(#index) .control-label {
  color: var(--tc-text-2);
  font-weight: 500;
}
body:not(#index) .solution-contact {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow-card);
  padding: 36px 40px !important;
}

/* ---------- support 售前支持盒 ---------- */
body:not(#index) .contact-support { background: transparent; }
body:not(#index) .contact-support.service { background: transparent; }
body:not(#index) .contact-support .support-box {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
  min-width: 0;
}
body:not(#index) .contact-support .support-box:hover {
  box-shadow: var(--tc-shadow-hover);
  transform: translateY(-3px);
  border: 1px solid var(--tc-border-light);
}
body:not(#index) .contact-support .support-box img {
  background: var(--tc-primary-light);
}
body:not(#index) .contact-support .support-box .btn:hover {
  border: 1px solid var(--tc-primary);
  color: var(--tc-primary);
}

/* ---------- sustain 保障盒 ---------- */
body:not(#index) .server-sustain,
body:not(#index) .server-sustain2 { background: transparent; }
body:not(#index) .server-sustain .sustain .sustain-box,
body:not(#index) .server-sustain2 .sustain .sustain-box {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow-card);
}

/* ---------- about 数字统计 ---------- */
body:not(#index) .about-details-item h2 {
  color: var(--tc-primary);
  font-weight: 700;
}

/* ---------- news/announce 列表 ---------- */
body:not(#index) .news-list .item,
body:not(#index) .announce-item,
body:not(#index) .new-list li,
body:not(#index) .document-item {
  border-radius: var(--tc-radius);
}

/* ---------- footer 保持 modern.css 深色，不改 ---------- */

/* ---------- 零散卡片类兜底（standards-box / sustain-box / scene 容器等旧结构卡片）---------- */
body:not(#index) .standards-box,
body:not(#index) .sustain-box,
body:not(#index) .recruit-box,
body:not(#index) .honor-item {
  background: #fff;
  border: 1px solid var(--tc-border-light);
  border-radius: var(--tc-radius-lg);
  box-shadow: var(--tc-shadow-card);
  overflow: hidden;
}
body:not(#index) .standards-box:hover,
body:not(#index) .sustain-box:hover {
  box-shadow: var(--tc-shadow-hover);
}

/* ---------- 移动端适配（≤992px 平板 / ≤640px 手机）---------- */
@media (max-width: 992px) {
  body:not(#index) .server-banner,
  body:not(#index) .server-banner2 {
    padding: 52px 0;
  }
  body:not(#index) .server-banner .section-content,
  body:not(#index) .server-banner2 .section-content {
    padding: 8px 16px 28px;
  }
  body:not(#index) .server-banner h1,
  body:not(#index) .server-banner2 h1 {
    font-size: 24px;
  }
  body:not(#index) .server-banner-desc,
  body:not(#index) .server-banner-desc2 {
    font-size: 14px;
  }
  body:not(#index) .section-title h2 {
    font-size: 22px;
  }
  body:not(#index) .server-banner::after,
  body:not(#index) .server-banner2::after {
    width: 380px;
    height: 380px;
    right: -30%;
  }
  body:not(#index) .solution-contact {
    padding: 22px 16px !important;
  }
}

@media (max-width: 640px) {
  body:not(#index) .section-content {
    padding: 44px 16px;
  }
  body:not(#index) .server-banner,
  body:not(#index) .server-banner2 {
    padding: 40px 0;
  }
  body:not(#index) .server-banner .section-content,
  body:not(#index) .server-banner2 .section-content {
    padding: 0 16px;
  }
  body:not(#index) .server-banner h1,
  body:not(#index) .server-banner2 h1 {
    font-size: 22px;
    letter-spacing: 0;
  }
  body:not(#index) .server-banner-desc,
  body:not(#index) .server-banner-desc2 {
    font-size: 13px;
    line-height: 1.8;
  }
  body:not(#index) .section-title {
    margin-bottom: 26px;
  }
  body:not(#index) .section-title h2 {
    font-size: 20px;
    padding-bottom: 10px;
  }
  body:not(#index) .section-title h2::after {
    width: 26px;
    height: 2.5px;
  }
  /* 卡片纵向堆叠，间距统一 */
  body:not(#index) .trend,
  body:not(#index) .advantage,
  body:not(#index) .reason,
  body:not(#index) .support {
    flex-direction: column !important;
    display: flex !important;
    gap: 14px !important;
  }
  body:not(#index) .trend-box,
  body:not(#index) .advantage-box,
  body:not(#index) .support-box {
    width: 100% !important;
    margin: 0 !important;
  }
  body:not(#index) .trend-box img {
    height: 150px;
  }
  /* 选项卡横向可滑动 */
  body:not(#index) .hot .swiper-wrapper.jr-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  body:not(#index) .hot .swiper-wrapper.jr-tabs .title {
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: 13px;
  }
  body:not(#index) .scene-box img {
    width: 100% !important;
    height: auto !important;
  }
  body:not(#index) .scene-cont {
    padding: 18px 16px 20px;
  }
  /* 表单 */
  body:not(#index) .solution-contact {
    padding: 18px 14px !important;
  }
  body:not(#index) .solution-contact .form-group {
    width: 100% !important;
    margin-bottom: 14px;
  }
  body:not(#index) .solution-contact .control-label {
    text-align: left !important;
    padding-bottom: 4px;
  }
  body:not(#index) .form-control {
    width: 100% !important;
  }
  body:not(#index) .contact-support .support-box {
    flex-direction: column;
    text-align: center;
    padding: 26px 16px;
  }
  body:not(#index) .contact-support .support-box img {
    margin: 0 auto 12px;
  }
  /* banner 按钮居中铺满 */
  body:not(#index) .server-banner .btn,
  body:not(#index) .server-banner2 .btn {
    width: 100%;
    max-width: 240px;
  }
  /* 零散卡片：移动端两列等宽起步，不再被压缩到几十像素 */
  body:not(#index) .standards,
  body:not(#index) .sustain,
  body:not(#index) .recruit-list {
    gap: 12px !important;
  }
  body:not(#index) .standards-box,
  body:not(#index) .sustain-box,
  body:not(#index) .recruit-box,
  body:not(#index) .honor-item {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: calc(50% - 6px) !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
  }
  body:not(#index) .standards-box h4,
  body:not(#index) .sustain-box h4 {
    font-size: 16px !important;
    margin: 0 0 8px !important;
  }
  body:not(#index) .standards-box ul li,
  body:not(#index) .sustain-box p {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }
}
