/* Banner 区块 */
.home-banner {
  position: relative;
  height: 700px;
  background-image: url('../images/bg2_1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 顶栏样式 */
.header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

/* 头部容器 */
.home-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo 样式 */
.home-logo {
  display: flex;
  align-items: center;
}

.home-logo img {
  height: 50px;
  width: auto;
}

/* 导航样式 */
.home-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.home-nav-item {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: opacity 0.3s ease;
}

.home-nav-item:not(.has-dropdown):hover::after,
.home-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background-color: #fff;
}

/* Slogan 区域样式 */
.home-banner-slogan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 60px;
  color: #fff;
}

.home-slogan-title {
  font-size: 60px;
  font-weight: bold;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.home-slogan-subtitle {
  font-size: 24px;
  margin: 0 0 20px 0;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

/* 搜索区域样式 */
.home-banner-search {
  width: 1000px;
  max-width: 100%;
}

.home-search-box {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 6px;
  overflow: visible;
  height: 56px;
  padding: 0 4px 0 16px;
}

.home-search-select-wrap {
  flex-shrink: 0;
  width: 132px;
  margin-right: 18px;
}

.home-search-select-wrap .layui-form-select {
  margin-top: 0;
}

.home-search-select-wrap .layui-select-title .layui-input {
  height: 40px;
  line-height: 40px;
  border: none;
  background: transparent;
  outline: none;
  box-shadow: none;
  padding: 0 24px 0 0;
  font-size: 15px;
  color: #2f3747;
}

.home-search-select-wrap .layui-form-select dl {
  top: 46px;
  z-index: 1001;
}

.home-search-select-wrap .layui-form-selected .layui-input {
  color: #e8722a;
}

.home-search-select-wrap .layui-form-select dl dd:hover {
  background-color: #fff4ec;
  color: #e8722a;
}

.home-search-select-wrap .layui-form-select dl dd.layui-this {
  background-color: #e8722a;
  color: #fff;
}

.home-search-select-wrap .layui-form-select .layui-edge {
  right: 8px;
  border-top-color: #8a909a;
}

.home-search-select-wrap .layui-form-select.layui-form-selected .layui-edge {
  border-top-color: #e8722a;
}

.home-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  background: transparent;
  min-width: 0;
}

.home-search-input::placeholder {
  color: #bbb;
}

.home-search-btn {
  flex-shrink: 0;
  height: 50px;
  padding: 0 34px;
  background-color: #e8722a;
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  margin-right: 0;
  transition: background-color 0.2s ease;
  border-radius: 6px;
}

.home-search-btn:hover {
  background-color: #d0621e;
}

.home-search-hot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-search-hot-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.home-search-hot-tag {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-search-hot-tag:hover {
  color: #fff;
  text-decoration: underline;
}

/* 统计数据区域样式 */
.home-banner-stats {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
}

.home-stats-container {
  display: flex;
  gap: 20px;
  padding-bottom: 0;
  width: 1200px;
}

.home-stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: rgba(89, 143, 219, 0.7);
  border-radius: 6px;
  padding: 35px 18px;
}

.home-stat-icon {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: contain;
}

.home-stat-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-stat-num {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.home-stat-label {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

/* 主内容区域 */
.home-main {
  background-image: url('../images/body-bg.png');
  background-repeat: repeat;
  background-position: center top;
  min-height: 600px;
  padding-bottom: 60px;
}

/* ================================================
   首页公用 Section 样式
   ================================================ */

/* Section 外层容器 */
.home-section {
  padding: 40px 0 0;
  margin-bottom: 38px;
}

/* Section 标题行 */
.home-section-header {
  display: flex;
  align-items: center;
}

/* 标题图标 */
.home-section-icon {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  vertical-align: middle;
}

.home-section-icon.s1 {
  position: relative;
  top: 3px;
}

.home-section-icon.s2 {
  width: 35px;
  height: auto;
}

/* 标题文字 */
.home-section-title {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  margin: 0 0 0 12px;
  line-height: 1;
  flex-shrink: 0;
  width: 127px;
}

/* Tab 插槽（距离标题 60px，占满剩余空间） */
.home-section-tab-slot {
  margin-left: 60px;
  flex: 1;
  display: flex;
  align-items: center;
}

/* 更多按钮 */
.home-section-more {
  flex-shrink: 0;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  margin-left: auto;
}

.home-section-more:hover {
  color: #1e6ddb;
}

/* Section 内容区域 */
.home-section-body {
  margin-top: 20px;
}

/* 找服务左右布局 */
.home-find-layout {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

/* 左侧分类面板 */
.home-find-aside {
  width: 232px;
  min-width: 232px;
  height: 710px;
  background-image: url('../images/s1bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-find-aside-title {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-bottom: 5px;
}

.home-find-aside-cats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-find-aside-cat {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  background-color: transparent;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
  height: 24px;
  line-height: 28px;
  overflow: hidden;
}

.home-find-aside-cat:hover,
.home-find-aside-cat.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* 右侧内容区 */
.home-find-main {
  flex: 1;
  height: 710px;
  padding: 15px;
  box-sizing: border-box;
  /*background-color: #fff;*/
  background: #d7ecfd;
}

/* 4列网格 */
.home-find-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 产品卡片 */
.home-find-card {
  background-color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.home-find-card-img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
}
.home-find-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.home-find-card-body {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.home-find-card-title {
  font-size: 18px;
  color: #222;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 10px;
  height: 25px;
}

.home-find-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 10px;
}
.home-find-card-meta-item {
  font-size: 14px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  overflow: hidden;
}
.home-find-card-meta-item .layui-icon {
  font-size: 14px;
  color: #aaa;
}

.home-find-card-price {
  font-size: 16px;
  font-weight: bold;
  color: #e8722a;
}

.home-find-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.home-find-card-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 0;
  font-size: 14px;
  border: 1px solid #4da3e8;
  border-radius: 4px;
  color: #4da3e8;
  background-color: #fff;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.home-find-card-btn:hover {
  background-color: #e8f4fd;
}
.home-find-card-btn.primary {
  background-color: #4da3e8;
  color: #fff;
  border-color: #4da3e8;
}
.home-find-card-btn.primary:hover {
  background-color: #3a8fd4;
  color: #fff;
}

/* Section Tab 样式 */
.home-section-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
}

.home-section-tab {
  display: inline-block;
  padding: 10px 40px;
  font-size: 16px;
  color: #2f82b5;
  border: 1px solid #0995ed;
  border-radius: 6px;
  text-decoration: none;
  background-color: #d2e3f8;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  line-height: 1.5;
}

.home-section-tab:hover {
  background-color: #e8f4fd;
}

.home-section-tab.active {
  background-color: #0995ed;
  color: #fff;
  border-color: #0995ed;
}

/* 快速入口 */
.home-quick-section {
  padding: 0;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.home-quick-card {
  height: 174px;
  /*background-image: url('../images/sbg4.png');*/
  /*background-size: cover;*/
  /*background-position: center;*/
  /*background-repeat: no-repeat;*/
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.home-quick-card:hover {
  transform: translateY(-2px);
}

.home-quick-card-title {
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  line-height: 1.2;
}

/* 新闻列表 */
.news-wrap {
  background: #e7f5fe url(../images/sbg3.png) no-repeat left top;
  background-size: 242px;
  padding-left: 242px;
}

.news-wrap__inner {
  display: flex;
  gap: 30px;
  padding: 37px 30px;
}

.news-item {
  background-color: #fff;
  padding: 27px 32px;
}

.news-title {
  font-size: 24px;
  line-height: 33px;
  color: #222;
  margin-bottom: 15px;
}

.news-desc {
  font-size: 18px;
  color: #444;
  line-height: 30px;
  margin-bottom: 20px;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.news-meta {
  font-size: 14px;
  color: #444444;
}

.news-meta-item {
  margin-right: 10px;
}

.service-wrap {
  display: flex;
  background: #fff url(../images/sbg2.png) no-repeat left -23px;
  background-size: 242px;
}

.service-feature {
  box-sizing: border-box;
  width: 240px;
  padding: 80px 30px 30px 30px;
}

.service-feature p {
  font-size: 14px;
  color: #ffffff;
  line-height: 32px;
}

.feature-targets {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.feature-targets .target {
  flex: 1;
  text-align: center;
}

.feature-targets .target .num {
  font-size: 24px;
  color: #fff;
  line-height: 1.6;
}

.feature-targets .target .lab {
  font-size: 14px;
  color: #fff;
  line-height: 1;
}

.service-wrap__inner {
  flex: 1;
  display: flex;
  gap: 30px;
  padding: 37px 30px;
  overflow: hidden;
}

/* 检测服务列表 */
.service-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  gap: 40px;
}

.service-list-item:first-child {
  padding-top: 0;
}

.service-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-list-item__left {
  flex: 1;
  min-width: 0;
}

.service-list-item__title {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-list-item:hover .service-list-item__title {
  color: #1890ff;
}

.service-list-item__meta {
  display: flex;
  gap: 30px;
}

.service-list-item__meta-item {
  font-size: 18px;
  color: #666;
}

.service-list-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.service-list-item__price {
  font-size: 22px;
  font-weight: bold;
  color: #f60;
}

.service-list-item__status-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-list-item__badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 13px;
  color: #fff;
  line-height: 1.6;
}

.service-list-item__badge--active {
  background-color: #52c41a;
}

.service-list-item__badge--ended {
  background-color: #999;
}

.service-list-item__badge--pending {
  background-color: #1890ff;
}

.service-list-item__countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #666;
}

.service-countdown-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f60;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  min-width: 22px;
  font-weight: bold;
}

.friendship-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background-color: #fff;
  border-radius: 6px;
  padding: 36px 70px;
}

.friendship-links > a {
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
  color: black;
  /*background-color: #F1F2F3;*/
  /*color: #666;*/
  padding: 5px 10px;
}