/* ============================================================
   飞傲软件官网模板 · CMS 补充样式 (cms.css)
   依赖 css/style.css，仅补充 CMS 动态输出所需的组件样式
   ============================================================ */

/* 品牌 logo 图片 */
.logo-mark { overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 首页 Hero 3:2 大图 */
.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(10, 42, 82, .28);
}

/* 内页子导航 */
.subnav { background: #fff; border-bottom: 1px solid var(--blue-100); position: sticky; top: 0; z-index: 90; }
.subnav-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0; align-items: center; }
.subnav-row a { display: inline-block; padding: 7px 18px; border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--blue-100); background: #fff; transition: all .2s ease; }
.subnav-row a:hover { color: var(--blue); border-color: var(--blue); }
.subnav-row a.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 筛选条 */
.filter-bar { margin-bottom: 28px; }
.filter-row { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--blue-100); align-items: baseline; }
.filter-label { color: var(--navy); font-weight: 700; font-size: 14px; white-space: nowrap; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-opts a { padding: 4px 14px; font-size: 13.5px; border-radius: 999px; color: var(--muted); transition: all .2s ease; }
.filter-opts a:hover { color: var(--blue); background: var(--blue-50); }
.filter-opts a.active { background: var(--blue); color: #fff; }

/* 分页（CMS 输出 ul>li>a 结构） */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 36px 0 0; }
.pagination ul li { }
.pagination ul li a { display: inline-block; min-width: 40px; text-align: center; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--blue-100); background: #fff; color: var(--ink); font-size: 14px; transition: all .2s ease; }
.pagination ul li a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.pagination ul li.active a { background: var(--blue); border-color: var(--blue); color: #fff; pointer-events: none; }

/* 列表缩略图与空状态 */
.news-pic { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.case-thumb { overflow: hidden; }
.empty-tip { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); background: var(--blue-50); border-radius: 16px; font-size: 15px; }

/* 搜索/标签结果标题 */
.search-result-title { font-size: 17px; color: var(--navy); margin-bottom: 26px; }
.search-result-title strong { color: var(--blue); }

/* 详情页上下篇 */
.article-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--blue-100); font-size: 14.5px; color: var(--muted); }
.article-nav a { color: var(--navy); font-weight: 600; }
.article-nav a:hover { color: var(--blue); }

/* 详情页大标题（无横幅版式） */
.article-title {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 18px;
}

/* 单页 / 正文排版兜底 */
.single-page .article h2 { font-size: 22px; margin: 26px 0 14px; color: var(--navy); }
.single-page .article p { margin: 0 0 14px; line-height: 1.9; }
.single-page .article img { max-width: 100%; height: auto; border-radius: 12px; }
.single-page .article ul, .single-page .article ol { padding-left: 22px; margin: 0 0 14px; }
.page-gallery figure { margin: 0; }
.page-gallery img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: var(--shadow-sm); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 20px 0; }
.tag-cloud .tag-link { font-size: 14.5px; padding: 8px 20px; }

/* 网站地图 */
.sitemap-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.sitemap-group { background: #fff; border: 1px solid var(--blue-100); border-radius: 16px; padding: 22px; }
.sitemap-parent { font-size: 17px; margin-bottom: 12px; }
.sitemap-parent a { color: var(--navy); }
.sitemap-parent a:hover { color: var(--blue); }
.sitemap-children { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sitemap-children a { color: var(--muted); font-size: 14px; }
.sitemap-children a:hover { color: var(--blue); }

/* 团队卡片 */
.team-card .case-thumb img { aspect-ratio: 3 / 3.6; }

/* 移动端适配 */
@media (max-width: 768px) {
  .subnav-row { overflow-x: auto; flex-wrap: nowrap; }
  .filter-row { flex-direction: column; gap: 6px; }
  .pagination ul li a { min-width: 34px; padding: 8px 12px; }
}

/* ============================================================
   移动端菜单（独立面板）
   .header 的 backdrop-filter 会改变内部 fixed 元素的包含块，
   因此移动端菜单放在 header 外层，固定定位于顶栏正下方。
   ============================================================ */
@media (max-width: 860px) {
  /* 隐藏桌面导航，仅用汉堡面板 */
  .nav { display: none !important; }

  .m-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;              /* js 会按实际顶栏高度覆盖 */
    background: #fff;
    z-index: 1000;
    padding: 10px 16px 16px;
    box-shadow: 0 24px 48px rgba(10, 42, 82, .18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .m-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .m-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    padding: 12px 14px;
    border-radius: 12px;
  }
  .m-nav a + a { margin-top: 4px; }
  .m-nav a:hover { background: var(--blue-50); }
  .m-nav a.active { color: #fff; background: var(--blue); }
  .m-nav a.active::after { content: none; }

  .m-mask {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 42, 82, .45);
    z-index: 900;
    opacity: 0;
    transition: opacity .22s ease;
  }
  .m-mask.show { opacity: 1; }

  .nav-toggle { position: relative; z-index: 1100; }
}
@media (min-width: 861px) {
  .m-nav, .m-mask { display: none !important; }
}
