@charset "UTF-8";

/**
 * 威班首页 · 手机端样式（独立维护，不影响 PC / SEO）
 * - 仅 @media (max-width: 800px) 生效
 * - 在 index.css 之后加载，覆盖 index 内 problematic 手机规则
 * - 同一 URL、同一 HTML，不隐藏正文
 */

@media (max-width: 800px) {

  .page-home .maxw1560,
  .page-home .maxw1200 {
    width: 92% !important;
  }

  .page-home .pub-title {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .page-home .pub-title h5 {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
  }

  /* Banner：固定比例容器，取代 index.css 的 min-height:650px */
  .page-home .default-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 1600 / 774;
    overflow: hidden;
    background-color: #f6f6f6;
  }

  .page-home .default-banner > img,
  .page-home .default-banner img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none;
    object-fit: cover;
    object-position: center bottom;
  }

  .page-home .default-banner .text {
    top: 50%;
    left: 50%;
    width: 88%;
    transform: translate(-50%, -50%) !important;
    text-align: center;
  }

  .page-home .default-banner .text > div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-home .default-banner .text .fs21 {
    font-size: 0.875rem !important;
    line-height: 1.4;
  }

  .page-home .default-banner .text .fs22 {
    font-size: 1.125rem !important;
    line-height: 1.45;
    margin: 0.25rem 0;
  }

  .page-home .default-banner .text .fs23 {
    display: inline-block;
    font-size: 0.75rem !important;
    padding: 0.2rem 0.875rem !important;
  }

  .page-home .default-banner .text h5 {
    font-size: 1.125rem !important;
  }

  .page-home .default-banner .text p {
    font-size: 0.875rem !important;
  }

  /* 轮播：上下排列 */
  .page-home .swiper-box {
    margin-top: 1rem;
  }

  .page-home .swiper-box-wrap {
    padding: 1.25rem 0.875rem 1.5rem !important;
    border-radius: 1rem !important;
  }

  .page-home .swiper-box-wrap .swiper-slide {
    gap: 0.75rem;
  }

  .page-home .swiper-box-wrap .swiper-slide .item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
  }

  /* 快捷入口：五个一行；图标=宽图左侧橙色方块，裁成正方形 */
  .page-home .box1 {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    height: auto !important;
    margin: 1rem 0 1.5rem !important;
    padding: 0.625rem 0.375rem !important;
    gap: 0.25rem !important;
  }

  .page-home .box1 .item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: start;
    width: auto !important;
    padding: 0.5rem 0.125rem 0.375rem !important;
    min-height: 0;
    border-radius: 0.375rem;
    text-align: center;
    overflow: visible;
    background: #fff;
    gap: 0.375rem;
  }

  .page-home .box1 .item > img.item-img:not(.item-img-hover),
  .page-home .box1 .item > img.item-img-hover {
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
    display: block !important;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    object-position: 7% center;
    margin: 0;
    transition: opacity 0.2s ease;
  }

  .page-home .box1 .item > img.item-img:not(.item-img-hover) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 1;
  }

  .page-home .box1 .item > img.item-img-hover {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    opacity: 0;
  }

  .page-home .box1 .item:hover .item-img:not(.item-img-hover),
  .page-home .box1 .item:active .item-img:not(.item-img-hover) {
    opacity: 0;
  }

  .page-home .box1 .item:hover .item-img-hover,
  .page-home .box1 .item:active .item-img-hover {
    opacity: 1;
  }

  .page-home .box1 .item .con {
    grid-row: 2;
    grid-column: 1;
    position: static !important;
    left: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: none;
    width: auto;
    max-width: 100%;
    min-width: 0;
    justify-self: center;
  }

  .page-home .box1 .item .con > div,
  .page-home .box1 .item .con > div.row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto;
    max-width: 100%;
    gap: 0;
  }

  .page-home .box1 .item .con > div > h5 {
    width: auto;
    max-width: 100%;
    font-size: 0.625rem;
    line-height: 1.25;
    font-weight: bold;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
  }

  .page-home .box1 .item .con > div > span {
    display: none;
  }

  .page-home .box1 .item .con > p {
    display: none;
  }

  /* 最新资讯：手机两列卡片 + 滚动标题常规字重 */
  .page-home .box2 .news-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem !important;
  }

  .page-home .box2 .news-list .news-item {
    padding: 0.625rem 0.5rem 0.5rem !important;
    gap: 0.375rem !important;
  }

  .page-home .box2 .news-list .news-item > h5 {
    font-size: 0.875rem !important;
    line-height: 1.5625rem !important;
    font-weight: bold !important;
    color: #333333;
  }

  .page-home .box2 .news-list .news-item > p {
    font-size: 0.6875rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .page-home .box2 .news-list .news-item > div {
    font-size: 0.625rem;
  }

  .page-home .box2 .news-list .news-item > img:hover {
    transform: none;
  }

  .page-home .box2 .r {
    width: 100%;
    display: block !important;
  }

  .page-home .box2 .r .news-scroll-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.375rem;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0 0.625rem 0.0625rem rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.625rem 0.625rem;
    box-sizing: border-box;
  }

  .page-home .box2 .r .news-scroll-viewport {
    /* 约 5 行列表 + 底部留空给按钮 */
    height: 9.5rem;
    min-height: 9.5rem;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
  }

  /* 手机端滚动在 viewport 内 */
  .page-home .box2 .r .news-scroll-viewport .news-scroll-content {
    position: static !important;
    width: 100%;
  }

  .page-home .box2 .r .item {
    height: auto !important;
    line-height: 1.5625rem !important;
    padding: 0.125rem 0 !important;
    min-height: 0;
    align-items: center;
  }

  .page-home .box2 .r .item .name {
    max-width: none !important;
    flex: 1;
    min-width: 0;
    font-weight: normal !important;
    color: #666666 !important;
    font-size: 0.875rem !important;
    line-height: 1.5625rem !important;
  }

  .page-home .box2 .r .item .time {
    font-size: 0.75rem;
    line-height: 1.5625rem;
    color: #cccccc;
    flex-shrink: 0;
  }

  /* 讲师 */
  .page-home .box3 .top > img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
  }

  .page-home .box3 .top > div > a.pub-btn {
    justify-self: end;
  }

  /* 学习教辅 */
  .page-home .box4 {
    padding: 1.5rem 0.75rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .page-home .box4 .maxw1200 {
    width: 100%;
    align-self: stretch;
  }

  .page-home .box4 .list {
    gap: 0.75rem 0.625rem !important;
  }

  .page-home .box4 .list > a {
    display: block;
    width: 100%;
  }

  .page-home .box4 .list > a img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
  }

  .page-home .box4 .list > a:hover img {
    transform: none;
  }

  /* 课程特色 */
  .page-home .box5 > a img {
    width: 100%;
    height: auto;
    display: block;
  }

  .page-home .box5 > a:hover .img1 {
    transform: none;
  }

  /* 课程信息 */
  .page-home .box6 > a.box6-img-link img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
  }

  .page-home .box6 > a.box6-img-link:hover img {
    transform: none;
  }

  .page-home .box6 > div {
    display: grid;
    gap: 0.625rem;
  }

  .page-home .box6 > div > a.box6-text-link {
    gap: 0.25rem;
  }

  .page-home .box6 > div > a.box6-text-link > h5 {
    margin: 0 !important;
  }

  .page-home .box6 > div > a.box6-text-link > p {
    margin: 0.25rem 0 0 !important;
    padding-right: 0;
  }

  .page-home .box6 > div > a.pub-btn {
    justify-self: end;
    margin: 0;
  }

  /* 学员活动 */
  .page-home .box7 {
    padding: 1.5rem 0.75rem 1rem !important;
    border-radius: 1rem !important;
  }

  .page-home .box7 > div {
    gap: 0.625rem !important;
  }

  .page-home .box7 > div > img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 0.375rem;
  }

  .page-home .box7 > div > img:hover {
    transform: none;
  }

  /* 学员案例：手机两列，一屏 4 个（2×2） */
  .page-home .box8 .overhide {
    max-width: 100%;
  }

  .page-home .box8 .swiper-button-prev,
  .page-home .box8 .swiper-button-next {
    display: none;
  }

  .page-home .box8 .case-list {
    margin-bottom: 0;
  }

  .page-home .box8 .case-item {
    height: 100%;
  }

  .page-home .box8 .case-item > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .page-home .box8 .case-item > div {
    padding: 0.5rem 0.375rem;
  }

  .page-home .box8 .case-item .case-title {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .page-home .box8 .case-item .case-subtitle {
    font-size: 0.6875rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  /* 资料下载：紧凑单行标题 + 小下载按钮 */
  .page-home .box9 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
  }

  .page-home .box9 .list {
    width: 100%;
    align-self: stretch;
    gap: 0.625rem !important;
  }

  .page-home .box9 .list .item {
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 0.4375rem 0.625rem !important;
    gap: 0.375rem !important;
  }

  .page-home .box9 .list .item .l {
    flex: 1;
    min-width: 0;
    gap: 0.4375rem !important;
  }

  .page-home .box9 .list .item .l > img {
    width: 1.75rem !important;
    flex-shrink: 0;
  }

  .page-home .box9 .list .item .l h5 {
    max-width: none;
    font-size: 0.6875rem !important;
    line-height: 1.25 !important;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-home .box9 .list .item .l p {
    font-size: 0.625rem !important;
    margin-top: 0.125rem !important;
  }

  .page-home .box9 .list .item .r {
    width: auto !important;
    min-width: 3.75rem;
    height: 1.625rem !important;
    padding: 0 0.5rem;
    font-size: 0.625rem !important;
    gap: 0 !important;
    flex-shrink: 0;
    border-radius: 0.1875rem;
    white-space: nowrap;
  }

  /* 全程服务：四列两行，紧凑不加粗 */
  .page-home .box11 .server-img {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.375rem !important;
  }

  .page-home .box11 .server-img > div {
    height: auto;
    min-height: 0;
    padding: 0.5rem 0.25rem;
    gap: 0.375rem;
    border-radius: 0.5rem;
  }

  .page-home .box11 .server-img > div > img {
    max-width: 2rem;
    width: 2rem;
  }

  .page-home .box11 .server-img > div > span {
    font-size: 0.625rem;
    font-weight: normal !important;
    color: #333333;
    text-align: center;
    line-height: 1.25;
  }

  /* 学员企业 */
  .page-home .box12 > div img {
    width: 100%;
    height: auto;
  }

  /* 手机首页：所有「查看更多」圆角按钮统一尺寸（与讲师区一致） */
  .page-home .pub-btn,
  .page-home .pub-btn2,
  .page-home .pub-btn3 {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 9.125rem;
    height: 2.5rem;
    line-height: 1;
    font-size: 1rem;
    padding: 0 0.3125rem;
    border-width: 0.125rem;
    box-sizing: border-box;
    max-width: 100%;
  }

  /* 资讯滚动框内按钮：包在白框底部、居右、四字「查看更多」 */
  .page-home .box2 .r .news-scroll-container > a.pub-btn {
    flex-shrink: 0;
    align-self: flex-end;
    margin: 0.25rem 0 0 auto !important;
    width: auto !important;
    min-width: 5.5rem;
    padding: 0 0.875rem !important;
  }

  /* 学习教辅：底部按钮居中，与资料下载一致 */
  .page-home .box4 > a.pub-btn {
    margin: 1.25rem 0 0 !important;
    flex-shrink: 0;
  }

  /* 资料下载：底部按钮居中，与首页其他「查看更多」一致 */
  .page-home .box9 > a.pub-btn {
    margin: 0.75rem 0 0 !important;
    flex-shrink: 0;
  }
}
