/**
 * 移动端轮播样式
 * 适配首页轮播卡片区域
 */

/* 平板适配 */
@media screen and (max-width: 1024px) {
  #carousel {
    padding-top: 1.5rem;
  }
  
  .carousel-item {
    width: 450px;
    height: 380px;
  }
  
  .roundhead {
    height: 100px;
    padding: 0 25px;
    font-size: 26px;
  }
  
  .roundhead_icon {
    width: 40px;
    height: 40px;
  }
  
  .processguide {
    row-gap: 15px;
    column-gap: 15px;
  }
  
  .guide_processitem {
    width: 180px;
    height: 110px;
  }
  
  .guide_infoimage {
    height: 80px;
  }
  
  .guide_infotitle {
    font-size: 14px;
  }
  
  .news-item {
    height: 45px;
    font-size: 14px;
    padding: 0 15px;
    margin-top: 12px;
  }
}

/* 手机端适配 */
@media screen and (max-width: 768px) {
  #carousel {
    padding: 15px 10px;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .carousel-item {
    width: 100% !important;
    max-width: 360px;
    height: auto !important;
    min-height: auto;
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    margin: 0 auto;
    padding-bottom: 15px;
  }
  
  /* 卡片标题区域 - 确保“服务指南”等文字可见 */
  .roundhead {
    height: auto;
    min-height: 70px;
    padding: 12px 15px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .roundhead_icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    flex-shrink: 0;
  }
  
  .roundhead_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  /* 标题文字显示优化 - 添加红色横线 */
  .roundhead_title {
    padding-bottom: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: visible;
    border-bottom: 2px solid #bd1a2d !important;
  }
  
  /* 内容区域 */
  .roundcontent {
    position: relative;
    padding: 12px;
  }
  
  /* 四宫格布局优化 - 服务指南、信息发布 */
  .processguide {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    row-gap: 15px;
    column-gap: 12px;
  }
  
  .processguide > a {
    display: block;
  }
  
  /* 图片卡片项 - 调整尺寸和间距 */
  .guide_processitem {
    width: 100%;
    height: auto;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .guide_infoimage {
    height: 75px;
    width: 100%;
    overflow: hidden;
  }
  
  .guide_infoimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* 图片下方标题 */
  .guide_infotitle {
    font-size: 13px;
    padding: 8px 6px;
    text-align: center;
    background-color: #f6f6f6;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
  }
  
  /* 新闻项目 */
  .define-news {
    padding: 10px 15px;
  }
  
  .news-title {
    height: 60px;
    font-size: 18px;
    padding-left: 15px;
  }
  
  .news-item {
    height: 42px;
    font-size: 13px;
    padding: 0 12px;
    margin-top: 10px;
  }
  
  .news-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    padding-right: 10px;
  }
  
  .news-item img {
    width: 16px;
    flex-shrink: 0;
  }
  
  /* 卡片样式 */
  .define-cards {
    padding: 10px 15px;
    font-size: 20px;
  }
  
  .define-cards > :first-child div,
  .define-cards > :last-child div {
    height: 80px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .define-cards > :last-child div {
    margin-top: 15px;
  }
  
  /* 项目申请区域 */
  .projectapplys {
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .projectapply_image {
    width: 100%;
    max-width: 200px;
    height: auto;
  }
  
  .projectapply_image .img {
    height: 80px;
  }
  
  .projectapply_image .title {
    height: 40px;
    font-size: 14px;
  }
  
  .projectapply .applyentry {
    width: 100%;
    max-width: 280px;
    height: 50px;
    font-size: 20px;
  }
  
  /* 信息发布区域 */
  .inforelease {
    flex-direction: column;
    gap: 0.8rem;
    height: auto;
    padding: 10px;
  }
  
  .inforeleaseitem {
    width: 100%;
    max-width: 260px;
    height: 140px;
  }
  
  .releasetitle {
    font-size: 16px;
  }
  
  /* 入口浮动按钮 - 移动端替代方案 */
  .inlet-box {
    display: none;
  }
  
  /* define-box 优化 */
  .define-box {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .define-box > a {
    margin: 0 !important;
  }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
  #carousel {
    padding: 10px 8px;
    gap: 20px;
  }
  
  .carousel-item {
    max-width: 320px;
    min-height: auto;
  }
  
  .roundhead {
    font-size: 16px;
    padding: 10px 12px;
    min-height: 60px;
  }
  
  .roundhead_icon {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
  }
  
  .roundhead_title {
    font-size: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #bd1a2d !important;
  }
  
  /* 四宫格优化 */
  .processguide {
    padding: 8px;
    gap: 10px;
    row-gap: 12px;
    column-gap: 10px;
  }
  
  .guide_processitem {
    min-height: 95px;
  }
  
  .guide_infoimage {
    height: 60px;
  }
  
  .guide_infotitle {
    font-size: 12px;
    padding: 6px 4px;
    min-height: 28px;
  }
  
  .news-item {
    height: 38px;
    font-size: 12px;
    padding: 0 10px;
    margin-top: 8px;
  }
  
  .news-item img {
    width: 14px;
  }
  
  .projectapply .applyentry {
    height: 45px;
    font-size: 18px;
  }
  
  .inforeleaseitem {
    height: 120px;
  }
  
  .releasetitle {
    font-size: 14px;
  }
  
  .define-box {
    gap: 10px !important;
  }
}
