/* ============================================================
   site.css —— 重构版新增的全局样式（老版散落在 App.vue 里的全局规则 + 新组件样式）
   模板原有样式在 style.css，本文件只做补充，不覆盖模板
   ============================================================ */

/* 设计 token：主题色集中管理 */
:root {
  --color-primary: #ff9902;   /* 主题橙（菜单激活、强调） */
  --color-dark: #232126;      /* 深色底（首页卡片区） */
  --color-gold: #d3aa5b;      /* 金色（公司介绍横幅） */
  --color-blue: #43577b;      /* 蓝灰（关于我们页文字/装饰条） */
}

/* 内容区最小高度（老版 App.vue） */
.conent_box {
  min-height: 100vh;
}

/* 详情页富文本（老版 App.vue 全局规则 + detail 页规则的合并） */
.detail_brief span {
  white-space: normal !important;
}
@media (max-width: 765px) {
  .detail_brief img {
    width: 100% !important;
  }
}

/* ---------- 空状态（替代 el-empty） ---------- */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #909399;
}
.empty-state__icon {
  font-size: 56px;
  color: #d3d6db;
}
.empty-state__text {
  margin-top: 12px;
  font-size: 14px;
}

/* ---------- 分页（替代 el-pagination） ---------- */
.pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pager__btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: none;
  border-radius: 3px;
  background: #f4f4f5;
  color: #606266;
  font-size: 13px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.pager__btn:hover:not(:disabled):not(.is-active) {
  color: var(--color-primary);
}
.pager__btn.is-active {
  background: var(--color-primary);
  color: #fff;
}
.pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- 页脚响应式（老版 App.vue scoped 规则平移） ---------- */
@media (min-width: 280px) and (max-width: 820px) {
  .mb-5 {
    margin-bottom: 1rem !important;
  }
  .zuoyou {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .zuoyou > h3 {
    font-size: 2.5vh;
  }
  .daohang > ul {
    display: flex;
    flex-wrap: wrap;
    font-size: 2vh;
  }
  .daohang > h3 {
    font-size: 2.5vh;
  }
  .lianix > h3 {
    font-size: 2.5vh;
  }
  .lianix > ul > li {
    font-size: 2vh;
  }
  .daohang > ul > li {
    text-align: center;
    width: 50%;
  }
  .chengxu > h3 {
    text-align: center;
    font-size: 3vh;
  }
  .chengxu > div {
    width: 20vh;
    margin: auto;
  }
  .chengxu > div > img {
    width: 100%;
    height: auto;
  }
}
@media (min-width: 1200px) {
  .daohang > h3 {
    font-size: 2vh;
  }
  .zuoyou > h3 {
    font-size: 2vh;
  }
  .lianix > h3 {
    font-size: 2vh;
  }
  .chengxu > h3 {
    text-align: center;
    font-size: 2vh;
  }
  .chengxu > div {
    width: 10vh;
    background: #fff;
    margin: auto;
  }
  .chengxu > div > img {
    width: 100%;
    height: auto;
  }
}

/* ============================================================
   移动端适配（2026-09-18 全站）
   ============================================================ */

/* CMS 页顶部 banner 图：模板给的是内联 width:100%;height:50vh。
   后台 banner 是 1920×572（宽高比 3.36）的宽幅横图，手机上被塞进 375×422
   （宽高比 0.89）的框里——图内文字被压成一团（/about 实测）。
   统一改成按比例裁切填充（不压扁）；窄屏另给 30vh 定高，
   否则 height:auto 时 390 宽只有 112px 高，几乎全被悬浮页头（约 91px）遮住 */
.page-banner {
  object-fit: cover;
  object-position: center;
}
@media (max-width: 991.98px) {
  .page-banner {
    height: 30vh !important;
  }
}

/* 内容区最小高度：模板给 .conent_box 设了 min-height:100vh，下载中心/合作伙伴
   这类短内容页在手机上会被撑出一大片空白、页脚被顶到很远处 */
@media (max-width: 991.98px) {
  .conent_box {
    min-height: auto;
  }
}

/* CMS 富文本表格（下载中心那类文章）：窄屏把链接做成整行大按钮——
   原来 <a> 的点击区只有 72×26，手指很难点中 */
@media (max-width: 767.98px) {
  .detail_brief table a {
    display: block;
    padding: 10px 12px;
    text-align: center;
    background: linear-gradient(135deg, #ffb84d, #ff8c00);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
  }
  .detail_brief table td,
  .detail_brief table th {
    padding: 10px 12px;
  }
}
