/**
 * ====================================================================
 * 英美尔官网 - 首页专用独立样式表 (home.css)
 * 作用范围：仅限首页引入生效，不污染任何子页面、栏目页及产品详情页
 * ====================================================================
 */

/* --------------------------------------------------
 * 1. 顶部导航与 Logo 垂直居中对齐 (桌面端)
 * -------------------------------------------------- */
@media (min-width: 768px) {
  .navbar-default .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .navbar-default .container:before,
  .navbar-default .container:after {
    display: none;
  }
  .navbar-header {
    float: none;
    display: flex;
    align-items: center;
  }
  .navbar-default .navbar-brand {
    float: none;
    height: auto;
    padding: 10px 0;
    margin: 0;
    display: flex;
    align-items: center;
  }
  .navbar-collapse.collapse {
    display: flex !important;
    align-items: center;
    float: none;
    margin-left: auto;
    overflow: visible;
  }
  .navbar-default .navbar-nav {
    order: 1;
    margin: 0;
  }
  .navbar-default .nav > li {
    padding: 0 16px;
    display: inline-block;
    float: none;
  }
  .navbar-default .nav > li > a {
    font-size: 15px;
    line-height: 18px;
    padding: 15px 0;
    display: inline-block;
  }
  #showHeaderSearch {
    order: 2;
    padding: 10px 0 10px 20px;
    margin: 0;
    display: flex;
    align-items: center;
  }
}

/* --------------------------------------------------
 * 2. 首页【产品中心】统一 370x370 正方形卡片 + 产品名居中显示
 * -------------------------------------------------- */
.portfolio-item {
  display: flex;
  flex-direction: column;
}

.portfolio-item .portfolio-thumbnail {
  width: 100%;
  height: 370px;
  overflow: hidden;
  margin: 0 0 14px 0;
  position: relative;
  background-color: #f8fafc;
  border-radius: 6px;
}

.portfolio-item .portfolio-thumbnail img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-thumbnail img {
  transform: scale(1.04);
}

/* 隐藏无作者残留的空逗号 */
.portfolio-item .entry-meta {
  display: none;
}

/* 产品名居中显示、统一锁定 2 行高度、超出自动省略号 */
.portfolio-item .entry-title {
  font-size: 16px;
  line-height: 24px;
  height: 48px;
  margin: 4px 0 0 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  font-weight: 500;
  text-align: center; /* 👈 1. 产品名居中显示 */
}

.portfolio-item .entry-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.portfolio-item .entry-title a:hover {
  color: #ff5000;
}

/* --------------------------------------------------
 * 3. 首页各大板块小标题加粗 (产品中心, 公司简介, 新闻资讯等)
 * -------------------------------------------------- */
.page-header h2,
.promoBox .inner h2,
.content-area .page-header h2 {
  font-weight: 700;        /* 👈 2. 标题加粗 */
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------
 * 4. 首页操作按钮悬浮微动效
 * -------------------------------------------------- */
.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  background-color: #ff5000;
  border-color: #ff5000;
  color: #fff;
}

/* --------------------------------------------------
 * 5. 首页【我们的服务】数据展示看板（参考图例样式）
 * -------------------------------------------------- */
.content-area.bg1,
.content-area:has(.iconBox) {
  padding: 60px 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9;
}

.iconBox {
  text-align: center !important;
  padding: 10px 30px !important;
  margin: 0 !important;
  background: transparent !important;
}

.iconBox .media {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.iconBox .pull-left {
  float: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.iconBox .octagon {
  width: 48px !important;
  height: 48px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.iconBox .octagon:before,
.iconBox .octagon:after,
.iconBox .svg-load {
  display: none !important;
}

.iconBox .octagon i {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

.iconBox .octagon i:before {
  display: none !important;
}

/* 3 个红色彩色矢量图标 */
.content-area .row > div:nth-child(1) .iconBox .octagon i {
  background-image: url('../images/stats_building.svg') !important;
}

.content-area .row > div:nth-child(2) .iconBox .octagon i {
  background-image: url('../images/stats_map.svg') !important;
}

.content-area .row > div:nth-child(3) .iconBox .octagon i {
  background-image: url('../images/stats_users.svg') !important;
}

/* 数据展示大字与排版 */
.iconBox .media-body {
  width: 100% !important;
  text-align: center !important;
}

.iconBox .media-heading {
  margin: 0 0 6px 0 !important;
  line-height: 1.1 !important;
}

.iconBox .media-heading a {
  font-size: 38px !important;
  font-weight: 800 !important;
  color: #ce1431 !important;
  text-decoration: none !important;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif !important;
  letter-spacing: -0.5px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.iconBox .media-heading a:hover {
  transform: scale(1.05);
}

.iconBox .media-body p {
  font-size: 16px !important;
  color: #7a7a7a !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px;
}

/* 纵向分割细线 (桌面端三列之间) */
@media (min-width: 992px) {
  .content-area .row > div.col-md-4:not(:last-child) .iconBox {
    border-right: 1px solid #eeeeee !important;
  }
}

/* --------------------------------------------------
 * 6. 首页【品牌故事】（基于现代农业牧场与饲料工厂背景图）
 * -------------------------------------------------- */
.brand-story-area {
  position: relative !important;
  background-image: url('../images/现代农业牧场与饲料工厂景观.png') !important;
  background-size: cover !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  padding: 80px 0 75px !important;
  overflow: hidden !important;
}

.brand-story-area::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(235, 78, 15, 0.45) 0%, rgba(200, 60, 5, 0.35) 50%, rgba(180, 50, 0, 0.55) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.brand-story-area .container {
  position: relative !important;
  z-index: 2 !important;
}

/* 顶部标题 */
.brand-story-header {
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
  border: none !important;
}

.brand-story-header .brand-story-title {
  font-size: 30px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: 2px !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.brand-story-header .brand-story-sub {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  text-transform: capitalize !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

/* 发展历程流式排版 */
.brand-story-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin: 0 auto 35px auto !important;
  max-width: 960px !important;
}

.brand-story-list .story-item {
  font-size: 16px !important;
  color: #ffffff !important;
  line-height: 1.8 !important;
  margin: 0 !important;
  letter-spacing: 0.3px !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3) !important;
  text-wrap: balance !important;
}

/* 核心成就：明金黄色，在橙色背景上极其醒目、极具品质感 */
.brand-story-list .story-item .highlight {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #ffeb3b !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4) !important;
}

/* 底部主推口号 */
.brand-story-slogan {
  margin-top: 15px !important;
  display: inline-block !important;
}

.brand-story-slogan .slogan-main {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 2px !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45) !important;
}

/* 移动端适配 */
@media (max-width: 767px) {
  .brand-story-area {
    padding: 45px 15px 40px !important;
  }
  .brand-story-header {
    margin: 0 0 22px 0 !important;
  }
  .brand-story-header .brand-story-title {
    font-size: 24px !important;
  }
  .brand-story-list {
    gap: 12px !important;
    margin: 0 auto 25px auto !important;
  }
  .brand-story-list .story-item {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .brand-story-slogan .slogan-main {
    font-size: 20px !important;
    letter-spacing: 1px !important;
  }
}


/* --------------------------------------------------
 * 4. 养殖服务：手风琴滑动卡片特色交互区 (仿 fbpet 领航)
 * -------------------------------------------------- */
.indexfblh-section {
  padding: 65px 0 95px 0 !important;
  background-color: #ffffff !important;
  position: relative;
}

.indexfblh {
  width: 100%;
  position: relative;
}

.indexfblh .m {
  width: 100%;
  margin: 0 auto;
}

/* 标题区 */
.fblh-header {
  margin-bottom: 35px;
}

.fblh-header .fblh-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.fblh-header .fblh-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #ea5413;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* 手风琴卡片列表容器 */
.indexfblh .sub {
  width: 100%;
  height: 520px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
}

/* 单个卡片 */
.indexfblh .sub .list {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

/* 渐变遮罩层 */
.indexfblh .sub .list .card-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.72) 100%);
  transition: background 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

/* 未激活卡片：正居中标题 */
.indexfblh .sub .list h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  z-index: 2;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.4s ease;
  pointer-events: none;
}

/* 激活态卡片 (展开态) */
.indexfblh .sub .list.onmousejg {
  flex: 2.7;
  box-shadow: 0 16px 36px rgba(234, 84, 19, 0.18), 0 8px 24px rgba(15, 23, 42, 0.14);
}

.indexfblh .sub .list.onmousejg .card-mask {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.5) 45%, rgba(15, 23, 42, 0.94) 100%);
}

.indexfblh .sub .list.onmousejg h3 {
  opacity: 0;
  transform: translate(-50%, -20%);
}

/* 底部滑入抽屉信息 */
.indexfblh .sub .list dl {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 32px 36px;
  box-sizing: border-box;
  z-index: 3;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  pointer-events: auto;
}

.indexfblh .sub .list.onmousejg dl {
  transform: translateY(0);
  opacity: 1;
}

.indexfblh .sub .list dl dt {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-align: left;
  position: relative;
  padding-left: 14px;
}

.indexfblh .sub .list dl dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background-color: #ea5413;
}

.indexfblh .sub .list dl dd {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  padding-left: 14px;
  max-width: 72%;
  text-align: left;
}

/* 了解更多胶囊按钮 */
.indexfblh .sub .list dl .btn-more {
  position: absolute;
  right: 36px;
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: #ea5413;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(234, 84, 19, 0.35);
  transition: all 0.25s ease;
}

.indexfblh .sub .list dl .btn-more i {
  margin-left: 8px;
  font-size: 14px;
  transition: transform 0.25s ease;
}

.indexfblh .sub .list dl .btn-more:hover {
  background: #b8400b;
  box-shadow: 0 6px 20px rgba(184, 64, 11, 0.45);
  transform: translateY(-2px);
}

.indexfblh .sub .list dl .btn-more:hover i {
  transform: translateX(3px);
}

/* --------------------------------------------------
 * 响应式适配：平板与移动端
 * -------------------------------------------------- */
@media (max-width: 991px) {
  .indexfblh .sub {
    height: auto;
    flex-direction: column;
    gap: 16px;
  }
  .indexfblh .sub .list {
    flex: none !important;
    width: 100% !important;
    height: 240px;
    border-radius: 12px;
  }
  .indexfblh .sub .list h3 {
    display: none !important;
  }
  .indexfblh .sub .list dl {
    transform: translateY(0) !important;
    opacity: 1 !important;
    padding: 24px;
  }
  .indexfblh .sub .list dl dt {
    font-size: 22px;
  }
  .indexfblh .sub .list dl dd {
    font-size: 13.5px;
    max-width: 65%;
  }
  .indexfblh .sub .list dl .btn-more {
    right: 24px;
    bottom: 24px;
    height: 38px;
    padding: 0 18px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .indexfblh-section {
    padding: 45px 0 50px 0;
  }
  .fblh-header {
    margin-bottom: 25px;
  }
  .fblh-header .fblh-title {
    font-size: 24px;
  }
  .indexfblh .sub .list {
    height: 220px;
  }
  .indexfblh .sub .list dl {
    padding: 20px 16px;
  }
  .indexfblh .sub .list dl dt {
    font-size: 19px;
  }
  .indexfblh .sub .list dl dd {
    max-width: 100%;
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .indexfblh .sub .list dl .btn-more {
    position: static;
    display: inline-flex;
    margin-top: 10px;
    margin-left: 14px;
    height: 34px;
    padding: 0 16px;
    font-size: 12px;
  }
}
