/* app/web/user/css/index.css */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#pageToast {
  position: fixed;
  top: 82px;
  left: 50%;
  z-index: 9999;
  display: none;
  padding: 12px 18px;
  border-radius: 10px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .78);
  color: #ffffff;
  font-size: 14px;
}

.seo-noscript {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f1f2f3;
  border-radius: 10px;
  background: #fafafa;
  color: #61666d;
  line-height: 1.8;
}

.seo-noscript a {
  color: #00aeec;
}

.float-tools-label {
  display: inline-block;
  line-height: 1.15;
}

html,
    body {
      margin: 0;
      padding: 0;
    }

    body {
      font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        Arial,
        sans-serif;
      color: #18191c;
      background: #ffffff;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      display: block;
      width: 100%;
    }

    button {
      font-family: inherit;
    }

    .page {
      min-width: 1200px;
    }

    .container {
      width: 1640px;
      max-width: calc(100vw - 96px);
      margin: 0 auto;
    }

    .hero {
      position: relative;
      height: 180px;
      background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.9)),
        url("/static/user/img/index-banner.jpg") center / cover no-repeat;
    }

    .logo {
      position: absolute;
      left: 34px;
      top: 30px;
      bottom: auto;
      width: 160px;
      height: auto;
      display: block;
      z-index: 20;
    }

    .logo img {
      width: 100%;
      height: auto;
      object-fit: contain;
    }

    .channel-section {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 26px;
      padding: 22px 0 22px;
      border-bottom: 1px solid #f1f2f3;
      align-items: center;
    }

    .quick-entry {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 24px;
    }

    .quick-item {
      text-align: center;
      font-weight: 700;
      color: #18191c;
    }

    .quick-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 8px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #ffffff;
      font-size: 24px;
    }

    .quick-icon.orange {
      background: #ff9212;
    }

    .quick-icon.red {
      background: #ff6666;
    }

    .channels {
      display: grid;
      grid-template-columns: repeat(15, minmax(0, 1fr));
      gap: 10px;
    }

    .channel-btn {
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid #f1f2f3;
      border-radius: 7px;
      background: #f6f7f8;
      color: #61666d;
      font-size: 15px;
      transition: all 0.2s ease;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .channel-btn:hover {
      color: #00aeec;
      background: #e3f6ff;
    }

    .side-links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      align-content: center;
      gap: 12px 14px;
      padding-left: 24px;
      border-left: 1px solid #e3e5e7;
      color: #61666d;
      font-size: 15px;
    }

    .side-links a:hover {
      color: #00aeec;
    }

    .main-section {
      display: grid;
      grid-template-columns: minmax(520px, 2fr) minmax(0, 3fr);
      gap: 20px;
      padding: 22px 0 52px;
      align-items: start;
    }

    .main-section > section {
      min-width: 0;
    }

    .slider {
      position: relative;
      height: 430px;
      overflow: hidden;
      border-radius: 8px;
      background: #f5f5f5;
    }

    .slider a {
      display: block;
      width: 100%;
      height: 100%;
    }

    .slider img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .slider-info {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 74px 18px 18px;
      color: #ffffff;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent);
    }

    .slider-title {
      font-size: 20px;
      line-height: 1.35;
      font-weight: 800;
      text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    }

    .video-grid {
      min-width: 0;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px 20px;
      align-items: start;
    }

    .video-grid .video-title {
      height: 42px;
      margin: 8px 0 4px;
      font-size: 15px;
      line-height: 1.4;
    }

    .video-grid .video-meta {
      height: 18px;
      font-size: 12px;
      line-height: 18px;
    }

    .recommend-section {
      padding-top: 0;
    }

    .recommend-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 28px 20px;
      align-items: start;
    }

    .video-card {
      min-width: 0;
      overflow: hidden;
    }

    .cover {
      position: relative;
      display: block;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      border-radius: 8px;
      background: #f1f2f3;
    }

    .cover img {
      height: 100%;
      object-fit: cover;
      transition: transform 0.25s ease;
    }

    .video-card:hover .cover img {
      transform: scale(1.04);
    }

    .cover-mask {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 24px 8px 7px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 8px;
      color: #ffffff;
      font-size: 13px;
      line-height: 1;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    }

    .stats {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 10px;
      overflow: hidden;
      white-space: nowrap;
    }

    .stats span {
      flex-shrink: 0;
    }

    .duration {
      flex-shrink: 0;
      white-space: nowrap;
    }

    .home-vip-badge {
      position: absolute;
      left: 8px;
      top: 8px;
      z-index: 3;
      height: 24px;
      padding: 0 9px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(251, 114, 153, 0.95);
      color: #ffffff;
      font-size: 13px;
      font-weight: 800;
      line-height: 24px;
      pointer-events: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
    }

    .video-title {
      height: 46px;
      margin: 10px 0 6px;
      font-size: 16px;
      line-height: 1.45;
      font-weight: 700;
      overflow: hidden;
    }

    .video-title-link {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      color: #18191c;
      word-break: break-all;
      cursor: pointer;
    }

    .video-title-link:hover {
      color: #00aeec;
    }

    .video-meta {
      height: 20px;
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 6px;
      color: #9499a0;
      font-size: 13px;
      line-height: 20px;
      overflow: hidden;
      white-space: nowrap;
    }

    .followed-badge {
      flex-shrink: 0;
      height: 18px;
      padding: 0 5px;
      display: inline-flex;
      align-items: center;
      border-radius: 4px;
      color: #ff7f24;
      background: #fff0e3;
      font-size: 12px;
      line-height: 18px;
    }

    .author-name {
      min-width: 0;
      max-width: 58%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .meta-dot,
    .video-time {
      flex-shrink: 0;
    }

    .tag {
      padding: 1px 5px;
      border-radius: 4px;
      color: #ff7f24;
      background: #fff0e3;
    }

    .section-title {
      margin: 8px 0 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .section-title h2 {
      margin: 0;
      font-size: 24px;
    }

    .change-btn {
      padding: 8px 14px;
      border: 1px solid #e3e5e7;
      border-radius: 8px;
      background: #ffffff;
      color: #61666d;
      cursor: pointer;
    }

    .change-btn:hover {
      color: #00aeec;
      border-color: #00aeec;
    }

    .empty {
      grid-column: 1 / -1;
      padding: 70px 0;
      text-align: center;
      color: #9499a0;
      background: #fafafa;
      border-radius: 10px;
    }


    .slider.empty-slider {
      display: grid;
      place-items: center;
      color: #9499a0;
      font-size: 15px;
    }

    .slider-empty-ad {
      width: 100%;
      height: 100%;
      border-radius: 8px;
      background: #f6f7f8;
      color: #9499a0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    .slider-arrow {
      position: absolute;
      top: 50%;
      z-index: 5;
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 10px;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.34);
      color: #ffffff;
      cursor: pointer;
      font-size: 22px;
      line-height: 36px;
      display: none;
    }

    .slider:hover .slider-arrow {
      display: block;
    }

    .slider-arrow.prev {
      left: 14px;
    }

    .slider-arrow.next {
      right: 14px;
    }

    .slider-arrow:hover {
      background: rgba(0, 0, 0, 0.52);
    }

    .slider-dots {
      position: absolute;
      left: 18px;
      bottom: 14px;
      z-index: 6;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .slider-dot {
      width: 8px;
      height: 8px;
      border: 0;
      border-radius: 999px;
      padding: 0;
      background: rgba(255, 255, 255, .55);
      cursor: pointer;
      transition: all .16s ease;
    }

    .slider-dot.active {
      width: 18px;
      background: #ffffff;
    }

    .home-middle-ad {
      display: block;
      margin: -22px 0 28px;
      min-height: 92px;
    }

    .home-middle-ad a,
    .home-middle-ad-placeholder {
      position: relative;
      display: flex;
      width: 100%;
      height: 92px;
      overflow: hidden;
      border-radius: 8px;
      background: #f6f7f8;
      border: 1px solid #f1f2f3;
      align-items: center;
      justify-content: center;
      color: #9499a0;
      font-size: 15px;
    }

    .home-middle-ad-placeholder {
      background: linear-gradient(135deg, #f8fafc 0%, #f1f2f3 100%);
      border-style: dashed;
    }

    .home-middle-ad img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .2s ease;
    }

    .home-middle-ad a:hover img {
      transform: scale(1.015);
    }

    .home-ad-label {
      position: absolute;
      right: 10px;
      top: 8px;
      z-index: 2;
      height: 20px;
      padding: 0 7px;
      border-radius: 4px;
      background: rgba(0, 0, 0, .45);
      color: #ffffff;
      font-size: 12px;
      line-height: 20px;
    }

    .home-ad-popup-mask {
      position: fixed;
      inset: 0;
      z-index: 999999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background: rgba(15, 23, 42, .55);
    }

    .home-ad-popup-mask.show {
      display: flex;
    }

    .home-ad-popup-box {
      position: relative;
      width: min(680px, calc(100vw - 56px));
      max-height: calc(100vh - 80px);
      animation: homeAdPopup .16s ease-out;
    }

    @keyframes homeAdPopup {
      from {
        transform: translateY(12px) scale(.98);
        opacity: 0;
      }
      to {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
    }

    .home-ad-popup-close {
      position: absolute;
      right: 0;
      top: -46px;
      width: 36px;
      height: 36px;
      border: 1px solid rgba(255, 255, 255, .72);
      border-radius: 50%;
      background: rgba(0, 0, 0, .28);
      color: #ffffff;
      cursor: pointer;
      font-size: 26px;
      line-height: 32px;
    }

    .home-ad-popup-close:hover {
      background: rgba(0, 0, 0, .48);
    }

    .home-ad-popup-link {
      display: block;
      overflow: hidden;
      border-radius: 12px;
      background: #ffffff;
      box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    }

    .home-ad-popup-link img {
      width: 100%;
      max-height: calc(100vh - 110px);
      object-fit: contain;
      background: #ffffff;
    }


    .home-announcement-popup-card {
      display: none;
      overflow: hidden;
      border-radius: 12px;
      background: #ffffff;
      box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    }

    .home-announcement-popup-head {
      position: relative;
      min-height: 88px;
      padding: 24px 26px 18px;
      color: #ffffff;
      background: linear-gradient(135deg, #fb7299 0%, #00aeec 100%);
    }

    .home-announcement-popup-label {
      display: inline-flex;
      align-items: center;
      height: 22px;
      padding: 0 9px;
      margin-bottom: 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .22);
      color: #ffffff;
      font-size: 12px;
      font-weight: 800;
      line-height: 22px;
    }

    .home-announcement-popup-title {
      margin: 0;
      color: #ffffff;
      font-size: 22px;
      line-height: 1.38;
      font-weight: 900;
      word-break: break-word;
    }

    .home-announcement-popup-body {
      max-height: min(420px, calc(100vh - 250px));
      padding: 24px 26px 18px;
      overflow-y: auto;
      color: #18191c;
      font-size: 15px;
      line-height: 1.85;
      white-space: normal;
      word-break: break-word;
    }

    .home-announcement-popup-content {
      min-height: 90px;
    }

    .home-announcement-popup-time {
      margin-top: 16px;
      color: #9499a0;
      font-size: 13px;
      line-height: 1.5;
    }

    .home-announcement-popup-foot {
      height: 64px;
      padding: 0 26px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      border-top: 1px solid #f1f2f3;
      background: #ffffff;
    }

    .home-announcement-popup-btn {
      height: 38px;
      padding: 0 22px;
      border: none;
      border-radius: 999px;
      background: #00aeec;
      color: #ffffff;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .home-announcement-popup-btn:hover {
      background: #0093c4;
    }

    .float-tools {
      position: fixed;
      right: 28px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 900;
    }

    .float-tools button {
      width: 48px;
      min-height: 48px;
      border: 1px solid #e3e5e7;
      border-radius: 8px;
      background: #ffffff;
      color: #18191c;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    }

    .float-tools button:hover {
      color: #00aeec;
      border-color: #00aeec;
    }

    .float-tools .customer-service-btn {
      min-height: 58px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      color: #ffffff;
      border-color: #fb7299;
      background: linear-gradient(180deg, #ff8bb3 0%, #fb7299 100%);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.1;
    }

    .float-tools .customer-service-btn:hover {
      color: #ffffff;
      border-color: #fb7299;
      background: linear-gradient(180deg, #ff9dc1 0%, #ff6f9f 100%);
    }

    .float-tools .customer-service-icon {
      font-size: 20px;
      line-height: 20px;
    }

    .title-tooltip {
      position: fixed;
      z-index: 999999;
      display: none;
      max-width: 520px;
      padding: 5px 8px;
      border: 1px solid #9ca3af;
      background: #ffffff;
      color: #111827;
      font-size: 12px;
      line-height: 1.5;
      word-break: break-all;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
      pointer-events: none;
    }

    @media (max-width: 1400px) {
      .container {
        max-width: calc(100vw - 48px);
      }

      .main-section {
        grid-template-columns: minmax(480px, 2fr) minmax(0, 3fr);
        gap: 18px;
      }

      .slider {
        height: 400px;
      }

      .video-grid {
        gap: 18px 18px;
      }

      .slider-empty-ad {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: #f6f7f8;
  color: #9499a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.home-ad-label {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
}

      .channels {
        grid-template-columns: repeat(10, minmax(0, 1fr));
      }

      .recommend-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }
    }

.home-announcement-popup-card.is-visible {
  display: block;
}


/* =========================
   H5 移动端适配
   只影响手机端，不改 PC 样式
   直接放到 index.css 最下面
========================= */

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #ffffff;
    font-size: 14px;
  }

  .page {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: none;
    padding: 0 12px;
    margin: 0 auto;
  }

  /* 顶部 banner */
  .hero {
    height: 112px;
    border-radius: 0 0 14px 14px;
    background-position: center;
  }

  .logo {
    left: 14px;
    top: 18px;
    width: 104px;
  }

  /* 频道区域 */
  .channel-section {
    display: block;
    padding: 14px 0 12px;
    border-bottom: 8px solid #f6f7f8;
  }

  .quick-entry {
    justify-content: flex-start;
    gap: 18px;
    padding: 0 2px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quick-entry::-webkit-scrollbar {
    display: none;
  }

  .quick-item {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .quick-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    font-size: 20px;
  }

  .channels {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 2px;
    -webkit-overflow-scrolling: touch;
  }

  .channels::-webkit-scrollbar {
    display: none;
  }

  .channel-btn {
    flex: 0 0 auto;
    min-width: 68px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    background: #f6f7f8;
  }

  .side-links {
    grid-template-columns: repeat(4, max-content);
    justify-content: flex-start;
    gap: 10px 14px;
    margin-top: 12px;
    padding-left: 2px;
    border-left: 0;
    overflow-x: auto;
    color: #61666d;
    font-size: 13px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .side-links::-webkit-scrollbar {
    display: none;
  }

  /* 首屏：轮播 + 视频，手机改成上下结构 */
  .main-section {
    display: block;
    padding: 14px 0 22px;
  }

  .main-section > section {
    width: 100%;
  }

  .slider {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .slider-info {
    padding: 48px 12px 12px;
  }

  .slider-title {
    font-size: 15px;
    line-height: 1.35;
  }

  .slider-arrow {
    display: none !important;
  }

  .slider-dots {
    left: 12px;
    bottom: 10px;
    gap: 6px;
  }

  .slider-dot {
    width: 6px;
    height: 6px;
  }

  .slider-dot.active {
    width: 14px;
  }

  /* 右侧推荐视频，手机改两列 */
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
    margin-top: 14px;
  }

  .video-grid .video-title,
  .video-title {
    height: 38px;
    margin: 7px 0 3px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
  }

  .video-grid .video-meta,
  .video-meta {
    height: 18px;
    gap: 4px;
    font-size: 11px;
    line-height: 18px;
  }

  .author-name {
    max-width: 54%;
  }

  .cover {
    border-radius: 7px;
  }

  .cover-mask {
    padding: 20px 6px 6px;
    gap: 5px;
    font-size: 11px;
  }

  .stats {
    gap: 6px;
  }

  .home-vip-badge {
    left: 6px;
    top: 6px;
    height: 20px;
    padding: 0 7px;
    font-size: 11px;
    line-height: 20px;
  }

  /* 中间广告 */
  .home-middle-ad {
    margin: 2px 0 18px;
    min-height: 68px;
  }

  .home-middle-ad a,
  .home-middle-ad-placeholder {
    height: 68px;
    border-radius: 9px;
    font-size: 13px;
  }

  .home-ad-label {
    right: 8px;
    top: 6px;
    height: 18px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 18px;
  }

  /* 推荐区域 */
  .recommend-section {
    padding-top: 0;
  }

  .section-title {
    margin: 2px 0 12px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  .change-btn {
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
  }

  .recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .empty {
    padding: 42px 0;
    border-radius: 9px;
    font-size: 13px;
  }

  /* 弹窗广告 / 公告 */
  .home-ad-popup-mask {
    padding: 18px;
  }

  .home-ad-popup-box {
    width: min(420px, calc(100vw - 36px));
    max-height: calc(100vh - 70px);
  }

  .home-ad-popup-close {
    right: 0;
    top: -42px;
    width: 34px;
    height: 34px;
    font-size: 24px;
    line-height: 30px;
  }

  .home-ad-popup-link {
    border-radius: 10px;
  }

  .home-ad-popup-link img {
    max-height: calc(100vh - 110px);
  }

  .home-announcement-popup-head {
    min-height: 74px;
    padding: 18px 18px 14px;
  }

  .home-announcement-popup-title {
    font-size: 18px;
  }

  .home-announcement-popup-body {
    max-height: calc(100vh - 230px);
    padding: 18px;
    font-size: 14px;
    line-height: 1.75;
  }

  .home-announcement-popup-foot {
    height: 56px;
    padding: 0 18px;
  }

  .home-announcement-popup-btn {
    height: 34px;
    padding: 0 18px;
    font-size: 13px;
  }

  /* 右侧悬浮按钮，手机放到右下角，避免挡住中间内容 */
  .float-tools {
    right: 12px;
    top: auto;
    bottom: 76px;
    transform: none;
    gap: 8px;
  }

  .float-tools button {
    width: 42px;
    min-height: 42px;
    border-radius: 10px;
  }

  .float-tools .customer-service-btn {
    min-height: 50px;
    font-size: 11px;
  }

  .float-tools .customer-service-icon {
    font-size: 18px;
    line-height: 18px;
  }

  .title-tooltip {
    max-width: calc(100vw - 24px);
    font-size: 11px;
  }

  #pageToast {
    top: 64px;
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    font-size: 13px;
    white-space: normal;
  }
}

/* 更小屏幕：iPhone SE / 小安卓 */
@media (max-width: 420px) {
  .container {
    padding: 0 10px;
  }

  .hero {
    height: 96px;
  }

  .logo {
    width: 92px;
  }

  .video-grid,
  .recommend-grid {
    gap: 14px 8px;
  }

  .video-grid .video-title,
  .video-title {
    height: 36px;
    font-size: 12.5px;
  }

  .cover-mask {
    font-size: 10.5px;
  }

  .stats {
    gap: 4px;
  }

  .channel-btn {
    min-width: 62px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 17px;
  }

  .home-middle-ad a,
  .home-middle-ad-placeholder {
    height: 62px;
  }
}
/* =========================
   首页手机顶部最终覆盖版
   logo + 搜索 + 登录/头像 + 消息
========================= */

.mobile-index-topbar {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .page {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin: 0 auto !important;
  }

  /* 手机隐藏 PC 通用头部 */
  #userHeaderMount {
    display: none !important;
  }

  /* 手机隐藏原来的 banner logo，用新的 topbar logo */
  .hero > .logo {
    display: none !important;
  }

  /* 手机顶部不再是 banner */
  .hero {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f1f2f3 !important;
    overflow: visible !important;
  }

  .mobile-index-topbar {
    position: relative !important;
    z-index: 100000 !important;
    width: 100% !important;
    height: 58px !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    background: #ffffff !important;
  }

  .mobile-index-logo {
    flex: 0 0 auto !important;
    width: 76px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  .mobile-index-logo img {
    width: 76px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .mobile-index-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid #dcdfe6 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #777b82 !important;
    font-size: 14px !important;
    line-height: 38px !important;
  }

  .mobile-index-search-icon {
    flex: 0 0 auto !important;
    color: #61666d !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  .mobile-index-search-text {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .mobile-index-user {
    flex: 0 0 auto !important;
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #f6f7f8 !important;
    color: #fb7299 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    overflow: hidden !important;
  }

  .mobile-index-user img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .mobile-index-user.is-login {
    background: #f1f2f3 !important;
  }

  .mobile-index-message {
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #61666d !important;
    font-size: 23px !important;
    line-height: 1 !important;
  }

  /* 顶部下面的动态/热门和标签 */
  .channel-section {
    display: block !important;
    width: 100% !important;
    padding: 16px 0 12px !important;
    margin: 0 !important;
    border-bottom: 8px solid #f6f7f8 !important;
    overflow: hidden !important;
  }

  .quick-entry {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 26px !important;
    padding: 0 4px 14px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .quick-entry::-webkit-scrollbar {
    display: none !important;
  }

  .quick-item {
    flex: 0 0 auto !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .quick-icon {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 8px !important;
    font-size: 22px !important;
  }

  .channels {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    width: calc(100% + 20px) !important;
    max-width: none !important;
    padding: 0 10px 2px !important;
    margin: 0 -10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .channels::-webkit-scrollbar {
    display: none !important;
  }

  .channel-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    height: 32px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    line-height: 32px !important;
    white-space: nowrap !important;
  }

  .main-section {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 0 18px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .main-section > section {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .slider {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .slider a,
  .slider img {
    width: 100% !important;
    height: 100% !important;
  }

  .slider img {
    object-fit: cover !important;
  }

  .video-grid,
  .recommend-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .video-grid {
    margin-top: 14px !important;
  }

  .video-card {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .cover {
    width: 100% !important;
    border-radius: 8px !important;
    aspect-ratio: 16 / 9 !important;
  }

  .video-title,
  .video-grid .video-title {
    height: 38px !important;
    margin: 7px 0 3px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
  }

  .video-meta,
  .video-grid .video-meta {
    height: 18px !important;
    gap: 4px !important;
    font-size: 11px !important;
    line-height: 18px !important;
  }

  .home-middle-ad {
    width: 100% !important;
    min-height: 64px !important;
    margin: 0 0 16px !important;
    overflow: hidden !important;
  }

  .home-middle-ad a,
  .home-middle-ad-placeholder {
    width: 100% !important;
    height: 64px !important;
    border-radius: 9px !important;
  }

  .float-tools {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .mobile-index-topbar {
    gap: 7px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .mobile-index-logo {
    width: 68px !important;
  }

  .mobile-index-logo img {
    width: 68px !important;
  }

  .mobile-index-search {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  .mobile-index-user {
    width: 36px !important;
    height: 36px !important;
    font-size: 12px !important;
  }

  .mobile-index-message {
    width: 30px !important;
    height: 36px !important;
    font-size: 22px !important;
  }
}


/* 活动、创作中心：默认全部隐藏 */
.quick-entry > a.index-mobile-only-entry {
  display: none !important;
}

/* 电脑端强制隐藏 */
@media screen and (min-width: 769px) {
  .quick-entry > a.index-mobile-only-entry {
    display: none !important;
    visibility: hidden !important;
  }
}

/* 手机端才显示 */
@media screen and (max-width: 768px) {
  .quick-entry > a.index-mobile-only-entry {
    display: block !important;
    visibility: visible !important;
  }
}

/* =========================
   手机端首页顶部语言切换按钮
========================= */

.mobile-index-lang {
  display: none;
}

@media (max-width: 768px) {
  .mobile-index-lang {
    width: 38px;
    height: 32px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-index-lang select {
    width: 38px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #18191c;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    outline: none;
    cursor: pointer;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    appearance: none;
    -webkit-appearance: none;
  }

  .mobile-index-lang select:active {
    transform: scale(0.96);
  }

  .mobile-index-message {
    display: none !important;
  }
}

/* =========================
   首页访问统计
========================= */

.site-visit-summary {
  margin: 24px 0 6px;
  padding: 14px 18px;
  border: 1px solid #e3e5e7;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #61666d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.site-visit-summary[hidden] {
  display: none !important;
}

.site-visit-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.site-visit-summary-item b {
  color: #00aeec;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .site-visit-summary {
    margin: 18px 12px 76px;
    padding: 12px 10px;
    gap: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
  }

  .site-visit-summary-item b {
    font-size: 14px;
  }
}


/* =========================================================
   首页手机端：客服入口、上方六个换一换、下拉换全部
   仅 max-width: 768px 生效，不改变电脑端
========================================================= */

.mobile-top-video-head,
.mobile-pull-refresh {
  display: none;
}

@media (max-width: 768px) {
  html,
  body {
    overscroll-behavior-y: contain;
  }

  .mobile-customer-service-entry {
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #18191c;
  }

  .mobile-customer-service-icon {
    background: linear-gradient(135deg, #00aeec, #7bd5f4) !important;
  }

  .mobile-top-video-head {
    width: 100%;
    margin: 14px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-top-video-head strong {
    color: #18191c;
    font-size: 17px;
    line-height: 30px;
    font-weight: 800;
  }

  .mobile-change-top-btn {
    height: 30px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #e3e5e7;
    border-radius: 999px;
    background: #ffffff;
    color: #61666d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-change-top-btn:active {
    color: #00aeec;
    border-color: #00aeec;
    background: #f0fbff;
  }

  .mobile-change-top-btn.is-loading span {
    animation: mobileHomeRotate .72s linear infinite;
  }

  .mobile-change-top-btn:disabled {
    opacity: .58;
    cursor: wait;
  }

  @keyframes mobileHomeRotate {
    to {
      transform: rotate(360deg);
    }
  }

  /*
   * 原来 video-grid 已有 14px margin-top。
   * 现在上方有手机标题栏，避免间距重复。
   */
  .mobile-top-video-head + .video-grid {
    margin-top: 0 !important;
  }

  .mobile-pull-refresh {
    --pull-progress: 0;
    position: fixed;
    left: 50%;
    top: 66px;
    z-index: 100001;
    height: 34px;
    min-width: 132px;
    padding: 0 14px;
    border: 1px solid rgba(0, 174, 236, .18);
    border-radius: 999px;
    transform:
      translate(-50%, calc(-54px + (30px * var(--pull-progress))))
      scale(calc(.92 + (.08 * var(--pull-progress))));
    opacity: var(--pull-progress);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, .96);
    color: #61666d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .12);
    transition:
      opacity .1s ease,
      transform .1s ease,
      color .1s ease,
      border-color .1s ease;
  }

  .mobile-pull-refresh.show {
    display: flex;
  }

  .mobile-pull-refresh.ready {
    color: #00aeec;
    border-color: rgba(0, 174, 236, .48);
  }

  .mobile-pull-refresh.refreshing {
    --pull-progress: 1;
    color: #00aeec;
  }

  .mobile-pull-refresh.refreshing .mobile-pull-refresh-icon {
    animation: mobileHomeRotate .72s linear infinite;
  }

  .mobile-pull-refresh.success {
    --pull-progress: 1;
    color: #16a34a;
    border-color: rgba(22, 163, 74, .35);
  }

  .mobile-pull-refresh-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 16px;
  }
}

@media (min-width: 769px) {
  .mobile-top-video-head,
  .mobile-pull-refresh,
  .mobile-customer-service-entry {
    display: none !important;
  }
}


/* =========================================================
   首页手机端 Chrome 浏览器下载提示
   位置：热门标签下面、轮播广告上面
========================================================= */

.mobile-chrome-download-card {
  display: none;
}

.mobile-chrome-download-card[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-chrome-download-card:not([hidden]) {
    position: relative;
    width: 100%;
    min-height: 88px;
    margin: 12px 0 2px;
    padding: 12px 36px 12px 12px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background:
      linear-gradient(
        135deg,
        rgba(66, 133, 244, .08),
        rgba(52, 168, 83, .05) 48%,
        rgba(251, 188, 5, .06)
      ),
      #ffffff;
    box-shadow:
      0 6px 18px rgba(15, 23, 42, .06);
  }

  .mobile-chrome-download-logo {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background:
      conic-gradient(
        #ea4335 0deg 120deg,
        #fbbc05 120deg 240deg,
        #34a853 240deg 360deg
      );
    box-shadow:
      0 3px 10px rgba(15, 23, 42, .13);
  }

  .mobile-chrome-download-logo::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #4285f4;
  }

  .mobile-chrome-download-logo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 20px;
    height: 3px;
    transform: rotate(-1deg);
    background: rgba(255, 255, 255, .9);
  }

  .mobile-chrome-download-logo span {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
  }

  .mobile-chrome-download-content {
    min-width: 0;
  }

  .mobile-chrome-download-content strong {
    display: block;
    color: #18191c;
    font-size: 14px;
    line-height: 20px;
    font-weight: 900;
  }

  .mobile-chrome-download-content > span {
    display: block;
    margin-top: 1px;
    color: #73777f;
    font-size: 12px;
    line-height: 18px;
  }

  .mobile-chrome-download-actions {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-chrome-download-actions a {
    height: 29px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    line-height: 29px;
    font-weight: 800;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-chrome-download-primary {
    border: 1px solid #4285f4;
    background: #4285f4;
    color: #ffffff;
  }

  .mobile-chrome-download-secondary {
    border: 1px solid #dfe3e8;
    background: rgba(255, 255, 255, .9);
    color: #4b5563;
  }

  .mobile-chrome-download-actions a:active {
    transform: scale(.96);
  }

  .mobile-chrome-download-close {
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 3;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(241, 243, 245, .94);
    color: #8b9098;
    font-size: 19px;
    line-height: 25px;
    cursor: pointer;
  }

  /*
   * Chrome 提示条已经在标签与轮播之间，
   * 减小 main-section 原顶部间距。
   */
  .mobile-chrome-download-card:not([hidden])
  + .main-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 370px) {
  .mobile-chrome-download-card:not([hidden]) {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 84px;
    padding-left: 10px;
    gap: 9px;
  }

  .mobile-chrome-download-logo {
    width: 40px;
    height: 40px;
  }

  .mobile-chrome-download-logo::before {
    inset: 9px;
  }

  .mobile-chrome-download-content > span {
    font-size: 11px;
  }

  .mobile-chrome-download-actions {
    gap: 6px;
  }

  .mobile-chrome-download-actions a {
    padding: 0 9px;
    font-size: 10.5px;
  }
}

@media (min-width: 769px) {
  .mobile-chrome-download-card {
    display: none !important;
  }
}

