/* ===== XILET · 暗色环境强制浅色覆盖 ===== */

/* 部分浏览器（Via / 夸克 / 微信等）检测到系统深色模式后，
   会自动反转或改写页面配色。这里在 dark 媒体查询里
   主动把所有关键颜色重新声明一遍，把被改写的部分抢回来。 */

@media (prefers-color-scheme: dark){

  html{
    background:#ffffff !important;
    color-scheme:only light !important;
  }

  body{
    background:#ffffff !important;
    color:#1A1F2E !important;
  }

  /* ---------- 顶栏 ---------- */
  .topbar{
    background:#0F3355 !important;
    color:rgba(255,255,255,.82) !important;
  }

  /* ---------- 主视觉带 ---------- */
  .masthead{
    background:#ffffff !important;
  }
  .brand-text b{
    color:#1A1F2E !important;
  }
  .brand-text i{
    color:#9AA3B0 !important;
  }
  .masthead-slogan{
    color:#6B7686 !important;
  }

  /* ---------- 导航 ---------- */
  .nav{
    background:#1B4B7F !important;
  }
  .nav-link{
    color:rgba(255,255,255,.82) !important;
  }
  .nav-link:hover,
  .nav-link.active{
    color:#ffffff !important;
  }

  /* ---------- 内容区 ---------- */
  .section{
    background:#ffffff !important;
  }
  .section--soft{
    background:#F7F9FB !important;
  }

  /* 区块标题 */
  .sec-head h2{
    color:#1A1F2E !important;
  }
  .sec-head h2 em{
    color:#9AA3B0 !important;
  }
  .sec-more{
    color:#1B4B7F !important;
  }

  /* ---------- 技术动态列表 ---------- */
  .news-row{
    border-bottom-color:#EEF2F6 !important;
  }
  .news-link{
    color:#1A1F2E !important;
  }
  .news-link:hover{
    color:#1B4B7F !important;
  }
  .news-date{
    color:#9AA3B0 !important;
  }
  .tab-btn{
    color:#37414F !important;
    border-color:#DDE3EA !important;
    background:#ffffff !important;
  }
  .tab-btn.active{
    background:#1B4B7F !important;
    border-color:#1B4B7F !important;
    color:#ffffff !important;
  }

  /* ---------- 业务卡 ---------- */
  .svc-card{
    background:#ffffff !important;
    border-color:#EEF2F6 !important;
  }
  .svc-card h3{
    color:#1A1F2E !important;
  }
  .svc-card p{
    color:#37414F !important;
  }
  .svc-more{
    color:#1B4B7F !important;
  }
  .svc-no{
    color:rgba(27,75,127,.13) !important;
  }

  /* ---------- 关于 ---------- */
  .about-text p{
    color:#37414F !important;
  }
  .about-text strong{
    color:#1A1F2E !important;
  }
  .stat-cell{
    background:#ffffff !important;
    border-color:#DDE3EA !important;
  }
  .stat-num{
    color:#1B4B7F !important;
  }
  .stat-label{
    color:#9AA3B0 !important;
  }

  /* ---------- 侧栏 ---------- */
  .side-card{
    background:#ffffff !important;
    border-color:#EEF2F6 !important;
  }
  .side-card__ttl{
    background:#F7F9FB !important;
    color:#1A1F2E !important;
    border-bottom-color:#EEF2F6 !important;
  }
  .side-contact b,
  .side-links a{
    color:#1A1F2E !important;
  }
  .side-contact small{
    color:#9AA3B0 !important;
  }

  /* ---------- 页脚 ---------- */
  .footer{
    background:#0F2A45 !important;
  }

  /* ---------- 内页 ---------- */
  .pagewrap{
    background:#ffffff !important;
  }
  .article,
  .sub-main{
    background:#ffffff !important;
    border-color:#EEF2F6 !important;
  }
  .article__ttl,
  .sub-h2,
  .sub-p strong{
    color:#1A1F2E !important;
  }
  .article__body,
  .sub-p,
  .sub-ul{
    color:#37414F !important;
  }
  .article__body h2,
  .article__body h3{
    color:#1A1F2E !important;
  }
  .crumb,
  .sub-crumb{
    background:#F7F9FB !important;
    border-bottom-color:#EEF2F6 !important;
  }
  .crumb a,
  .sub-crumb a{
    color:#6B7686 !important;
  }
  .artlist li{
    border-bottom-color:#EEF2F6 !important;
  }
  .artlist__ttl{
    color:#1A1F2E !important;
  }
  .artlist__desc{
    color:#6B7686 !important;
  }
  .artlist__date{
    color:#9AA3B0 !important;
  }
  .filterbar__btn{
    background:#ffffff !important;
    border-color:#DDE3EA !important;
    color:#37414F !important;
  }
  .filterbar__btn.is-on{
    background:#1B4B7F !important;
    border-color:#1B4B7F !important;
    color:#ffffff !important;
  }

  /* 表格 */
  .sub-table th{
    background:#F7F9FB !important;
    color:#1A1F2E !important;
    border-color:#DDE3EA !important;
  }
  .sub-table td{
    color:#37414F !important;
    border-color:#DDE3EA !important;
  }
  .article__body th,
  .article__body td{
    border-color:#DDE3EA !important;
  }

  /* 联系卡、承诺条 */
  .contact-card,
  .promise,
  .step__meta,
  .svc-block__list li{
    background:#F7F9FB !important;
    border-color:#EEF2F6 !important;
  }
  .contact-card__v,
  .step__ttl,
  .svc-block__ttl{
    color:#1A1F2E !important;
  }
  .step__desc,
  .svc-block__desc{
    color:#37414F !important;
  }

  /* 分隔线 */
  .article__meta{
    border-bottom-color:#EEF2F6 !important;
  }

  /* 弹窗 */
  .mail-modal__box{
    background:#ffffff !important;
  }
  .mail-modal__addr{
    background:#F7F9FB !important;
    border-color:#DDE3EA !important;
    color:#1B4B7F !important;
  }
  .mail-modal__ttl{
    color:#1A1F2E !important;
  }
  .mail-modal__tip{
    color:#6B7686 !important;
  }
  .mail-btn--ghost{
    background:#ffffff !important;
    border-color:#DDE3EA !important;
    color:#37414F !important;
  }
}

/* 轮播图：无论深浅模式都要能显示图片 */
.slide{
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}