/* ==========================================================================
   便民服务专区 - 样式表 (Clean & Readable Version)
   原文件：从设计软件导出的单文件 HTML（index.html, 5351 行）
   本文件：将原内联 <style> 抽取、归类、去重后整理而成
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset / 基础样式
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* 设计稿为 1920px 宽度的 PC 端页面，页面整体背景白色 */
body {
  background-color: #ffffff;
  min-width: 320px;
}

img {
  display: block;
}

/* --------------------------------------------------------------------------
   2. 页面根容器
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto; /* 页面在任意分辨率下水平居中 */
  overflow: hidden;
  background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. 顶部页头
   -------------------------------------------------------------------------- */
.page-header__banner {
  display: block;
  width: 100%;
  max-width: 1920px;
  height: 143px;
  object-fit: cover;
}

.page-header__sub-banner {
  display: block;
  width: 100%;
  max-width: 1920px;
  height: 300px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   4. 内容主区（所有服务卡片容器）
   -------------------------------------------------------------------------- */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1200px;
  margin: 0 auto;
}

/* 服务分类卡片 */
.service-card {
  position: relative;
  width: 1200px;
  margin-top: 40px;
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 24px;
  background-color: #ffffff;
  box-shadow: 0 0 20px 0 #e0e0e0;
}

/* 卡片标题徽章（文字压在背景图上） */
.service-card__title {
  position: relative;
  width: 287px;
  height: 64px;
  margin-top: 0;
  background: url('title-banner.png') center / cover no-repeat;
  background-size: 100% 100%;
  /* 标题文字由 JS 填充；若个别标题更长，可覆盖 .service-card__title--wide */
  flex-shrink: 0;
}

.service-card__title--wide-357 {
  width: 357px;
}

.service-card__title--wide-367 {
  width: 367px;
}

.service-card__title--wide-407 {
  width: 407px;
}

.service-card__title-text {
  display: block;
  width: max-content;
  margin: 10px auto 0;
  font-family: 'HelloFont WenYiHei', 'Microsoft YaHei', sans-serif;
  font-size: 34px;
  line-height: 45px;
  color: #ffffff;
  text-align: center;
}

/* 服务条目网格 */
.service-card__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px 0;
  width: 100%;
  margin-top: 30px;
  justify-items: center;
}

/* 一项服务 = 圆形图标 + 下方文字 */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 144px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.service-item:hover {
  transform: translateY(-4px);
}

.service-item__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.service-item__icon img {
  width: 60px;
  height: 60px;
}

.service-item__label {
  font-size: 16px;
  line-height: 24px;
  color: #333333;
  word-break: break-all;
}

/* 图标圆形背景配色（按顺序循环：蓝 / 橙 / 粉） */
.service-item__icon--blue {  }
.service-item__icon--orange { background-color: #ffefdf; }
.service-item__icon--pink { background-color: #ffeeee; }

/* --------------------------------------------------------------------------
   5. 页脚
   -------------------------------------------------------------------------- */
.page-footer {
  width: 100%;
  max-width: 1920px;
  margin-top: 40px;
}

/* 5.1 底部友情链接栏（浅灰底） */
.friend-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  height: 60px;
  background-color: #f4f4f4;
}

.friend-links__item {
  font-family: 'PingFang SC Regular', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #333333;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.friend-links__item:hover {
  color: #1e6fff;
}

/* 文字与下拉箭头的小箭头图标 */
.friend-links__arrow {
  display: inline-block;
  width: 8px;
  height: 5px;
  margin-left: 11px;
  vertical-align: middle;
}

/* 相邻链接之间的竖线分隔符 */
.friend-links__divider {
  width: 1px;
  height: 30px;
  background-color: #333333;
}

/* 5.2 中部信息区（浅蓝底）#edf5fc */
.footer-info {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 200px;
  background-color: #edf5fc;
  padding: 30px 0;
}

.footer-info__logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  align-self: center;
  margin-right: 11px;
}

.footer-info__slogan {
  width: 110px;
  height: 55px;
  object-fit: cover;
  align-self: center;
}

/* 中部信息块（浅蓝卡片 #dfeffb） */
.footer-block {
  width: 295px;
  height: 140px;
  margin-left: 18px;
  background-color: #dfeffb;
  padding-top: 38px;
  padding-left: 50px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 16px;
  color: #333333;
}

.footer-block--links .footer-block__link {
  display: inline-block;
  margin-right: 70px;
  margin-bottom: 10px;
  line-height: 16px;
  color: #333333;
  text-decoration: none;
  vertical-align: top;
}

.footer-block--links .footer-block__link:hover {
  color: #1e6fff;
}

.footer-block--qr {
  width: 299px;
  padding-left: 48px;
  padding-top: 15px;
}

.footer-block--qr .qr-images {
  display: flex;
  gap: 58px;
}

.footer-block--qr img {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.footer-block--qr .qr-labels {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  margin-left: -12px;
}

.footer-block--qr .qr-labels span {
  width: 97px;
  text-align: center;
  font-size: 16px;
  line-height: 16px;
  color: #333333;
}

/* 5.3 版权/备案栏（同色浅蓝底 #dfeffb） */
.footer-copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  gap: 40px;
  background-color: #dfeffb;
  font-family: 'PingFang SC Regular', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #333333;
  white-space: nowrap;
}

.footer-copyright__icon {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.footer-copyright span + span,
.footer-copyright img {
  margin-left: 5px;
}

/* ==========================================================================
   6. 移动端自适应（≤750px）
   目标：不出现横向滚动条，内容不被压缩
   ========================================================================== */
@media (max-width: 750px) {
  /* 顶部横幅相对高度适当缩小，避免占用过多屏高 */
  .page-header__banner {
    height: 90px;
  }

  .page-header__sub-banner {
    height: auto;
  }

  /* 服务主区铺满屏宽，去掉固定 1200px */
  .services {
    width: 100%;
    padding: 0 12px;
  }

  /* 服务卡片铺满屏宽，缩小内边距与圆角 */
  .service-card {
    width: 100%;
    margin-top: 20px;
    padding: 0 12px 20px;
    border-radius: 16px;
  }

  /* 标题徽章自适应（最大不超出卡片，避免横向溢出） */
  .service-card__title,
  .service-card__title--wide-357,
  .service-card__title--wide-367,
  .service-card__title--wide-407 {
    width: auto;
    min-width: 3rem;
    height: 1rem;
    max-width: 100%;
    background-size: 100% 100%;
  }
.rsservers {
    width: 3.5rem !important;
}
.rsserver {
    width: 4rem !important;
}
  .service-card__title-text {
    font-size: 0.32rem;
    line-height: 32px;
    white-space: nowrap;
    overflow: hidden;
  }

  /* 网格由 6 列改为 3 列，条目有足够宽度，文字正常折行不压缩 */
  .service-card__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 8px;
    margin-top: 20px;
  }

  .service-item {
    width: 100%;
    gap: 8px;
  }

  .service-item__icon {
    width: 52px;
    height: 52px;
  }

  .service-item__icon img {
    width: 30px;
    height: 30px;
  }

  .service-item__label {
    font-size: 13px;
    line-height: 18px;
    word-break: break-all;
  }

  /* ---------- 页脚自适应 ---------- */
  .page-footer {
    margin-top: 24px;
  }

  /* 友情链接栏：换行排列，避免横向溢出 */
  .friend-links {
    flex-wrap: wrap;
    height: auto;
    gap: 10px 16px;
    padding: 14px 12px;
  }

  .friend-links__divider {
    display: none;
  }

  /* 中部信息区：纵向堆叠居中 */
  .footer-info {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 24px 16px;
  }

  .footer-info__logo {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .footer-info__slogan {
    margin-bottom: 12px;
  }

  .footer-block {
    width: 100%;
    max-width: 440px;
    height: auto;
    margin-left: 0;
    margin-top: 14px;
    padding: 16px 20px;
    text-align: center;
  }

  .footer-block--links .footer-block__link {
    margin-right: 30px;
  }

  .footer-block--qr .qr-images {
    justify-content: center;
    gap: 40px;
  }

  .footer-block--qr .qr-labels {
    justify-content: center;
    gap: 20px;
    margin-left: 0;
  }

  /* 版权栏：换行居中 */
  .footer-copyright {
    flex-wrap: wrap;
    height: auto;
    gap: 8px 16px;
    padding: 14px 12px;
    white-space: normal;
    text-align: center;
  }
}