/* ==========================================================================
   IRONFIT — layout refinements
   只在原模板基础上做版式微调，不改变模板原有配色与组件风格
   ========================================================================== */

/* ==========================================================================
   板块间距统一收紧：PC 60px / 手机 30px
   覆盖模板默认 90~120px 的 pt-/pb- 工具类，并同步收紧板块内部大间距
   ========================================================================== */
.services-secton,
.about-section,
.portfolio-section,
.framework-section,
.features-boxes-two,
.latetest-post,
.contact-section,
.clinet-section,
.blog-section,
.service-details-wrap,
.portfolio-details-wrap,
.call-to-action {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Inner-page breadcrumb: keep the same compact rhythm */
.breadcrumb-section {
  padding-top: 180px;
  padding-bottom: 180px;
  padding-top: 245px;
  padding-bottom: 200px;
}

/* 板块内部大间距同步收紧 */
.mb-110 { margin-bottom: 60px; }
.mb-80  { margin-bottom: 40px; }
.mt-80  { margin-top: 40px; }
.mt-70  { margin-top: 40px; }
.services-loop.mt-50 { margin-top: 30px; }
.framework-list.mt-25 { margin-top: 18px; }

@media (max-width: 767px) {
  .services-secton,
  .about-section,
  .portfolio-section,
  .framework-section,
  .features-boxes-two,
  .latetest-post,
  .contact-section,
  .clinet-section,
  .blog-section,
  .service-details-wrap,
  .portfolio-details-wrap,
  .call-to-action {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .breadcrumb-section {
    padding-top: 95px;
    padding-bottom: 45px;
  }
  .mb-110 { margin-bottom: 30px; }
  .mb-80  { margin-bottom: 25px; }
  .mb-40  { margin-bottom: 25px; }
  .mt-80  { margin-top: 25px; }
  .mt-70  { margin-top: 25px; }
  .services-loop.mt-50 { margin-top: 20px; }
  .framework-list.mt-25 { margin-top: 15px; }
}

/* 板块层次：交替浅灰背景，让相邻板块分明 */
.section-alt {
  background-color: #f7f8fa;
}

/* 板块定位基准 */
.services-secton-two,
.framework-section,
.portfolio-section,
.features-boxes-two,
.latetest-post,
.contact-section,
.clinet-section {
  position: relative;
}

/* 工厂板块：图片与文字垂直居中更舒展 */
.framework-section .framework-img img {
  width: 100%;
  transition: opacity .3s ease;
}

/* 工厂 tab：固定内容高度，切换时文字多少不再下沉 */
.pf-factory-tabs {
  min-height: 96px;
}
.pf-factory-tabs .tab-pane {
  min-height: 96px;
}
.pf-factory-tabs .tab-pane p {
  margin-bottom: 0;
}

/* ---------- 项目案例：卡片网格（等高） ---------- */
.pf-case-card {
  background: #fff;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid #e8eaed;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .35s ease, transform .35s ease;
}
.pf-case-card:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}
.pf-case-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.pf-case-card:hover .pf-case-img {
  transform: scale(1.05);
}
.pf-case-body {
  padding: 26px 28px 30px;
}
.pf-case-cat {
  display: inline-block;
  color: #d4a800;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.pf-case-body h4 {
  font-size: 21px;
  line-height: 1.35;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pf-case-body h4 a { color: #333; }
.pf-case-body h4 a:hover { color: #d4a800; }
.pf-case-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #333;
  border-bottom: 2px solid #fddb51;
  padding-bottom: 4px;
}
.pf-case-link i { margin-left: 6px; }
.pf-case-link:hover { color: #d4a800; }

.pf-case-card .pf-case-body { flex: 1; }

/* ---------- 产品展示：图片 + 名称标签 ---------- */
.portfolio-section .portfolio-grid-loop .pf-product {
  margin-bottom: 30px;
  overflow: hidden;
}
/* 给图片留出底部名称条的空间 */
.portfolio-section .portfolio-grid-loop .pf-product .portfolio-img {
  height: calc(100% - 58px);
}
.pf-product-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: #fff;
  padding: 12px 16px;
  border-top: 3px solid #fddb51;
}
.pf-product-cap h4 {
  font-size: 16px;
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0 0 3px;
  font-weight: 700;
}
.pf-product-cap span {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
}

/* ---------- 资质证书：简洁图片展示 ---------- */
.pf-cert-row {
  margin-top: 10px;
}
.pf-cert-item {
  margin-bottom: 20px;
  text-align: center;
}
.pf-cert-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: grayscale(20%);
  transition: transform .35s ease, filter .35s ease;
}
.pf-cert-item:hover img {
  transform: translateY(-4px);
  filter: grayscale(0%);
}
.pf-cert-item span {
  display: block;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
}

/* ---------- 最新资讯：等高、不固定高度 ---------- */
.pf-news-grid .post-grid-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.pf-news-grid .post-grid-box .post-desc {
  flex: 1;
}
.pf-news-grid .post-grid-box h4 a { color: #333; }
.pf-news-grid .post-grid-box h4 a:hover { color: #d4a800; }

/* ---------- 合作客户：网格展示 ---------- */
.pf-client-box {
  background: #fff;
  border: 1px solid #e8eaed;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 20px;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.pf-client-box:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  border-color: #fddb51;
}
.pf-client-box img {
  max-width: 100%;
  max-height: 60px;
  opacity: .65;
  transition: opacity .3s ease;
}
.pf-client-box:hover img { opacity: 1; }

/* ---------- 按钮与文字细节 ---------- */
.pf-case-link, .pf-case-link:hover { text-decoration: none; }

/* ---------- 产品分类筛选排：9 个分类紧凑排布 ---------- */
.pf-cat-filter { padding: 14px 10px; margin-bottom: 40px; }
.pf-cat-filter::after { left: 10px; right: 10px; top: 10px; bottom: -10px; }
.pf-cat-filter ul { display: flex; flex-wrap: wrap; justify-content: center; }
.pf-cat-filter ul li {
  font-size: 13px;
  padding: 6px 8px;
  margin: 0 4px;
}

/* ==========================================================================
   手机端紧凑：字号缩小、元素精简，产品/案例一行2个
   ========================================================================== */
@media (max-width: 575px) {
  /* 标题字号缩小、间距收紧 */
  .section-title span.title-tag { font-size: 12px; }
  .section-title h2 { font-size: 24px !important; line-height: 1.3; }
  .section-title.both-border { margin-bottom: 24px !important; }

  /* 产品展示：卡片2列紧凑；分类筛选改为横向滑动的一排 */
  .portfolio-filter { display: none; }
  .portfolio-filter.pf-cat-filter {
    display: block;
    padding: 8px 6px;
    margin-bottom: 20px;
  }
  .pf-cat-filter ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pf-cat-filter ul::-webkit-scrollbar { display: none; }
  .pf-cat-filter ul li {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 7px;
    margin: 0 3px;
  }
  .portfolio-section .portfolio-grid-loop .pf-product { height: 200px; margin-bottom: 14px; }
  .portfolio-section .portfolio-grid-loop .pf-product .portfolio-img { height: calc(100% - 44px); }
  .pf-product-cap { padding: 8px 10px; border-top-width: 2px; }
  .pf-product-cap h4 { font-size: 12px; margin-bottom: 2px; }
  .pf-product-cap span { font-size: 9px; }
  /* 手机端不需要hover放大图标 */
  .portfolio-section .portfolio-grid-loop .pf-product .portfolio-link { display: none; }

  /* 案例卡片：2列、字号缩小、精简文字 */
  .pf-case-card { margin-bottom: 14px; }
  .pf-case-img { height: 110px; }
  .pf-case-body { padding: 12px 10px 14px; }
  .pf-case-cat { font-size: 10px; margin-bottom: 5px; }
  .pf-case-body h4 { font-size: 13px; line-height: 1.3; margin-bottom: 8px; }
  .pf-case-link { font-size: 10px; padding-bottom: 2px; }

  /* 证书：2列、字号缩小 */
  .pf-cert-item { margin-bottom: 14px; }
  .pf-cert-item img { margin-bottom: 8px; }
  .pf-cert-item span { font-size: 12px; }

  /* 产品分类卡：2列紧凑，缩小内边距与图标间距 */
  .services-loop .row { margin-left: -6px; margin-right: -6px; }
  .services-loop .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
  .services-secton .services-loop .single-service-two { margin-top: 0; margin-bottom: 12px; padding: 18px 10px; }
  .services-secton .services-loop .single-service-two h4 { font-size: 13px !important; margin-bottom: 10px; }
  .services-secton .services-loop .single-service-two p { font-size: 11px; line-height: 1.4; margin-bottom: 0; }
  .services-secton .services-loop .single-service-two .top-icon { margin-bottom: 10px; font-size: 16px; }
  .services-secton .services-loop .single-service-two .bottom-icon { margin-top: 12px; font-size: 28px; }

  /* 新闻：卡片内间距、margin 全部收紧 */
  .post-loop.mt-70 { margin-top: 20px !important; }
  .pf-news-grid .row { margin-left: -6px; margin-right: -6px; }
  .pf-news-grid .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
  .pf-news-grid .post-grid-box { padding: 14px 12px; margin-bottom: 12px; }
  .pf-news-grid .post-grid-box .post-desc { margin-bottom: 10px; padding-bottom: 10px; }
  .pf-news-grid .post-grid-box h4 { font-size: 13px; line-height: 1.35; margin-bottom: 8px; }
  .pf-news-grid .post-grid-box .post-desc p { font-size: 11px; line-height: 1.4; margin-bottom: 0; }
  .pf-news-grid .post-grid-box .post-meta li { margin-right: 8px; font-size: 10px; }
  .latetest-post .blog-btn .main-btn { font-size: 12px; padding: 8px 14px; }

  /* 客户Logo、优势卡紧凑 */
  .pf-client-box { height: 76px; margin-bottom: 12px; padding: 12px; }
  .pf-client-box img { max-height: 42px; }
  .services-loop .single-service { margin-bottom: 14px; }

  /* 工厂：缩小图片高度，缩短产品与案例之间的距离 */
  .framework-section .framework-img img { max-height: 200px; object-fit: cover; }
  .framework-section .framework-text .section-title { margin-bottom: 20px !important; }
  .pf-factory-tabs, .pf-factory-tabs .tab-pane { min-height: 72px; }

  /* 顶部导航栏：降低高度、缩小 Logo */
  header.header-three .mainmenu-area { padding: 8px 0 !important; }
  header.header-three .mainmenu-area .main-menu .logo img { max-width: 105px !important; }
  header.header-three .mainmenu-area .main-right .lang-switch { display: none !important; }
  header.header-three .mainmenu-area .main-right .main-btn { font-size: 11px !important; padding: 8px 12px !important; }
  /* 菜单按钮：调整负边距使其落在缩小后的 header 内 */
  header .mobile-menu.mean-container .mean-bar a.meanmenu-reveal { margin-top: -50px !important; padding: 10px 9px !important; }

  /* 联系信息区字号缩小 */
  .contact-form-wrapper .contact-info-list { padding: 24px; }
  .contact-form-wrapper .contact-info-list .info-box h4 { font-size: 17px; margin-bottom: 8px; }

  /* 新闻列表：2列紧凑 */
  .pf-news-grid .row { margin-left: -6px; margin-right: -6px; }
  .pf-news-grid .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }

  /* 详情页：图片限高、侧栏收紧 */
  .blog-details-box .entry-content .title { font-size: 22px !important; line-height: 1.35; }
  .blog-details-box .entry-content figure img,
  .service-details .thmb img,
  .service-details .list-img img,
  .portfolio-details .gallery img { max-height: 220px; object-fit: cover; width: 100%; }
  .portfolio-thumb { min-height: 260px !important; }
  .entry-footer .tag-and-share,
  .entry-footer .post-nav { text-align: center; }

  /* 新闻侧栏：手机端收紧，避免过长 */
  .sidebar .widget { margin-bottom: 20px; padding: 18px; }
  .sidebar .widget-title { font-size: 17px; margin-bottom: 14px; }
  .sidebar .about-author-widget .author-box img { max-width: 90px; }
  .sidebar .about-author-widget .author-box p { font-size: 12px; line-height: 1.5; }
  .sidebar .popular-feeds .single-popular-feed .feed-img img { max-height: 62px; object-fit: cover; }
  .sidebar .popular-feeds .single-popular-feed .feed-desc h6 { font-size: 12px; line-height: 1.4; }
  .sidebar .categories-widget ul li a,
  .sidebar .popular-tag-widget ul li a { font-size: 12px; padding: 5px 9px; }
  .sidebar .search-widget form input { height: 40px; }
  .sidebar .banner-ad-widget img { max-height: 200px; object-fit: cover; width: 100%; }
}

/* ==========================================================================
   新闻列表：作者头像圆形 + 卡片紧凑
   ========================================================================== */
.post-standard-box .post-desc .post-footer .author img {
  border-radius: 50% !important;
  object-fit: cover;
  width: 34px;
  height: 34px;
  margin-right: 10px;
}

/* PC 端紧凑 */
@media (min-width: 576px) {
  .blog-loop .post-standard-box { margin-bottom: 24px !important; }
  .blog-loop .post-standard-box .post-desc { padding: 26px 30px !important; }
  .blog-loop .post-standard-box .post-desc .cat { margin-bottom: 14px !important; padding: 7px 20px !important; }
  .blog-loop .post-standard-box .post-desc h2 { font-size: 26px !important; margin-bottom: 16px !important; }
  .blog-loop .post-standard-box .post-desc .post-meta { margin-bottom: 16px !important; }
  .blog-loop .post-standard-box .post-media img { max-height: 300px; object-fit: cover; width: 100%; }
}

/* 手机端进一步紧凑 */
@media (max-width: 575px) {
  .blog-loop .post-standard-box { margin-bottom: 18px !important; }
  .blog-loop .post-standard-box .post-desc { padding: 18px 16px !important; }
  .blog-loop .post-standard-box .post-desc .cat { margin-bottom: 10px !important; padding: 6px 14px !important; }
  .blog-loop .post-standard-box .post-desc h2 { font-size: 19px !important; margin-bottom: 12px !important; }
  .blog-loop .post-standard-box .post-desc .post-meta { margin-bottom: 12px !important; }
  .blog-loop .post-standard-box .post-desc .post-meta li { margin-right: 14px !important; }
  .blog-loop .post-standard-box .post-media img { max-height: 200px; object-fit: cover; width: 100%; }
  .post-standard-box .post-desc .post-footer .author img { width: 28px; height: 28px; margin-right: 8px; }
}
