/* services-elderly.css - 移动端完美适配（原文件内修改） */
.service-item {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(20px, 5vw, 28px);   /* 自适应 padding */
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.8;
  min-height: 260px;                 /* 防止错位 */
  display: flex;
  flex-direction: column;
}

.service-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* 标题：移动端自适应 */
.service-item h4 {
  font-size: clamp(1.4rem, 6vw, 1.75rem) !important;  /* 22px~28px */
  font-weight: 700 !important;
  color: #fffcfc !important;
  margin-bottom: 12px !important;
  flex-shrink: 0;
}

/* 正文：高对比 + 弹性 */
.service-item p {
  font-size: clamp(1rem, 4.5vw, 1.25rem) !important; /* 16px~20px */
  color: #fffefe !important;
  margin-bottom: 0;
  flex-grow: 1;
  line-height: 1.7;
}

/* 图标 */
.service-item i {
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  margin-right: 12px;
  color: #c9e3ff;
}

/* 分隔线 */
.service-item .line-dec {
  width: 80px;
  height: 5px;
  background: #cae4ff;
  border-radius: 3px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* 移动端优化（原 @media 内增强） */
@media (max-width: 768px) {
  .service-item {
    padding: 20px 16px;
    margin-bottom: 1rem;
    min-height: 240px;
  }
  
  .service-item h4 {
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
  }
  
  .service-item p {
    font-size: 1.1rem !important;
  }
}





/* css/blog-compact.css - 移动端完美适配（原文件内修改） */
#blog .line-dec {
  width: 80px;
  height: 5px;
  background: #d9e3ee;
  border-radius: 3px;
  margin: 16px auto;
}

.blog-item-compact {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  min-height: 200px;                 /* 固定高度，防错位 */
  display: flex;
  flex-direction: column;
}

.blog-item-compact.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.blog-item-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

/* 图片：移动端固定比例 */
.blog-item-compact img {
  height: clamp(90px, 25vw, 120px);  /* 90px ~ 120px 自适应 */
  object-fit: cover;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.blog-item-compact:hover img {
  transform: scale(1.03);
}

/* 文字：移动端自适应 */
.blog-item-compact h3 {
  font-size: clamp(1rem, 5.5vw, 1.15rem) !important;  /* 16px~18px */
  line-height: 1.5;
  color: #1a1a1a !important;
  margin-bottom: 8px !important;
  flex-shrink: 0;
}

.blog-item-compact p {
  font-size: clamp(0.85rem, 4vw, 1rem) !important;
  line-height: 1.7;
  color: #333333 !important;
  margin-bottom: 12px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-item-compact .meta {
  font-size: 0.8rem !important;
  color: #555555 !important;
  margin-bottom: 8px;
}

/* 按钮：手指易点 */
.blog-item-compact .btn {
  min-height: 44px;
  font-size: 0.95rem !important;
  padding: 8px 16px !important;
  flex-shrink: 0;
}

/* 移动端网格优化 */
@media (max-width: 767px) {
  #blog-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }
  
  .blog-item-compact {
    margin-bottom: 0.75rem;
  }
  
  .blog-item-compact img {
    height: 90px;
  }
  
  .blog-item-compact .p-3 {
    padding: 0.75rem !important;
  }
}

/* 超小屏优化 */
@media (max-width: 576px) {
  .blog-item-compact h3 { font-size: 1rem !important; }
  .blog-item-compact p  { font-size: 0.9rem !important; }
}



/* 让卡片更矮（紧凑模式） */
.service-item.compact {
  padding: 20px !important;          /* 原 32px → 20px */
  min-height: auto !important;
  line-height: 1.6 !important;       /* 原 1.8 → 1.6 */
}

.service-item.compact h4 {
  font-size: 1.4rem !important;      /* 原 1.75rem → 1.4rem */
  margin-bottom: 10px !important;    /* 原 12px → 10px */
  font-weight: 700 !important;
}

.service-item.compact p {
  font-size: 1rem !important;        /* 原 1.25rem → 1rem */
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

.service-item.compact .line-dec {
  margin-bottom: 10px !important;    /* 原 16px → 10px */
  height: 4px !important;
}

/* 移动端也矮 */
@media (max-width: 768px) {
  .service-item.compact {
    padding: 16px !important;
  }
  .service-item.compact h4 {
    font-size: 1.3rem !important;
  }
  .service-item.compact p {
    font-size: 0.95rem !important;
  }
}











 .blog-section {
        padding: 60px 0;
        background-color: #f9f9f9;
    }

    .blog-section h2 {
        font-size: 36px;
        color: #333;
        margin-bottom: 20px;
    }

    .line-dec {
        width: 50px;
        height: 3px;
        background-color: #007bff;
        margin: 0 auto 30px auto;
    }

    .blog-item {
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 30px;
    }

    .blog-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .blog-item h4 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .blog-item .blog-excerpt {
        font-size: 16px;
        color: #666;
        margin-bottom: 15px;
    }

    .blog-item .read-more-btn {
        font-size: 14px;
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }

    .blog-item .read-more-btn:hover {
        text-decoration: underline;
    }

    /* Responsive Design */
    @media (max-width: 767px) {
        .blog-item {
            margin-bottom: 20px;
        }
    }






