
/* ============================================================================
 * Storage 信息中心 - 三端响应式样式（独立文件 · 支持热插拔）
 * ============================================================================
 *
 * 使用说明：
 * 1. 本文件独立于项目既有样式，不依赖、不修改任何原 less/ts/html 组件代码。
 * 2. 断点规则（严格按下述宽度访问）：
 *      - 移动端 mobile :  width  < 600px
 *      - Pad 端  pad    :  600px <= width < 1200px
 *      - PC 端   pc     :  width >= 1200px
 * 3. 布局尽量采用弹性方案：flex/grid + gap/fr/minmax，尺寸用 vw / % / min() /
 *    clamp() 等动态单位表达，避免写死像素；仅在覆盖组件内部 !important、
 *    内联 style 或钳制 vw 失控时使用必要的固定上限与 !important。
 * 4. 热插拔：本文件位于静态资源目录，构建后原样拷贝至 dist 的 assets/css/ 下，
 *    线上直接替换该 css 文件即生效；删除 index.html 中对应 link 即可整体下线。
 * ==========================================================================*/

/* ----------------------------------------------------------------------------
 * 一、全局 / 三端通用修复（不区分断点）
 * --------------------------------------------------------------------------*/
/* 防止小屏横向滚动与设计稿溢出 */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 通栏内容版心安全边距 */
.top-in.content-in,
.page-contanier,
.page-search-list .content-in,
.page-product-list .content-in,
.resource-shelf-banner .banner-content,
.list-page-banner .content-in,
.communication-matrix-banner .content-in {
  box-sizing: border-box;
}

/* 图片、视频默认不溢出容器 */
img,
video {
  max-width: 100%;
}

/* 首页(land) 顶部搜索框：placeholder 距左边 24px */
.gray .search .ti3-searchbox-container .ti3-searchbox-input {
  padding-left: 24px !important;
}

/* ---- 首页(land) 搜索按钮(.confirm)：mobile / pad 段自定义定位见对应断点区段；PC 段保持组件源码样式 ---- */

/* ----------------------------------------------------------------------------
 * 二、移动端 mobile：width < 600px
 *  说明：移动端原有基于 750 设计稿 vw 的布局已成熟，此处仅做必要保护性覆盖。
 * --------------------------------------------------------------------------*/
@media screen and (max-width: 599px) {
  /* ---- 框架顶栏：窄屏字号收敛 ---- */
  .top .top-left .web-name a {
    font-size: 15px !important;
  }

  /* ---- 首页(land) 搜索框：中线与轮播 banner 底部 border 对齐（carousel 高 316/7.5vw） ---- */
  .gray .search {
    top: calc(42.13vw - clamp(40px, 5.5vw, 48px) / 2);
  }

  /* ti-searchbox：高度≤56px、宽度≤680px —— 移动端高度弹性 40-48px */
  .gray .search .ti3-searchbox-container {
    width: min(84vw, 680px) !important;
    height: clamp(40px, 5.5vw, 48px) !important;
  }

  /* ---- 首页(land) 搜索按钮：定位于 searchbox 输入框外部右侧 24px、垂直居中 ---- */
  .gray .search .confirm {
    right: calc((100vw - min(84vw, 680px)) / 2 + 24px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  /* ---- 工具宫格：保持 3 列，卡片自适应 ---- */
  app-grid .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: auto !important;
  }

  app-tool-card .card {
    width: 100% !important;
    height: auto !important;
    padding: 0.5em 0.15em !important;
  }

  /* ---- 活动资讯：留白收敛 ---- */
  .notice-box {
    margin-left: clamp(10px, 3vw, 16px) !important;
    margin-right: clamp(10px, 3vw, 16px) !important;
  }

  /* ---- 搜索列表页：左侧内容安全留白 ---- */
  .page-search-list .layout-left {
    padding-left: clamp(12px, 4vw, 16px) !important;
    padding-right: clamp(12px, 4vw, 16px) !important;
  }

  /* ---- 文档生成 / 解决方案：下拉单列铺满手机宽度 ---- */
  .selector-container {
    grid-template-columns: 1fr !important;
    gap: clamp(8px, 2vw, 12px) !important;
  }

  /* ---- communication-matrix 通信矩阵：移动端左右安全留白（与 pad 一致），保证组件在视窗内完整显示 ---- */
  .communication-matrix-banner .content-in {
    padding-left: clamp(12px, 4vw, 16px) !important;
    padding-right: clamp(12px, 4vw, 16px) !important;
    box-sizing: border-box !important;
  }

  .communication-matrix-container {
    padding-left: clamp(12px, 4vw, 16px) !important;
    padding-right: clamp(12px, 4vw, 16px) !important;
    box-sizing: border-box !important;
  }

  /* 筛选区：纵向排列，下拉铺满视窗宽度，避免横向溢出 */
  .communication-matrix-container .filter-box .select-box {
    flex-direction: column;
    row-gap: clamp(12px, 4vw, 16px);
  }

  .communication-matrix-container .filter-box .select-box > div {
    display: block;
    width: 100%;
  }

  .communication-matrix-container .filter-box .select-box .select-label {
    display: block;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .communication-matrix-container .filter-box .select-box tp-cascader {
    width: 100% !important;
    max-width: 800px !important;
  }

  .communication-matrix-container .filter-box .select-box ti-select {
    width: 100% !important;
    max-width: 800px !important;
  }

  /* ---- 移动版解决方案 横向背景卡：适当增高，背景等比 cover 不失真 ---- */
  app-mobile-case-solution .horizon-solutions li {
    min-height: clamp(64px, 13vw, 110px) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}

/* ----------------------------------------------------------------------------
 * 三、Pad 端：600px <= width < 1200px（对应项目现有 isMobile 移动布局的平板化）
 * --------------------------------------------------------------------------*/
@media screen and (min-width: 600px) and (max-width: 1199px) {
  /* ---- 框架顶栏：通栏内边距统一（弹性） ---- */
  .top .top-in {
    padding-left: clamp(20px, 4vw, 32px) !important;
    padding-right: clamp(20px, 4vw, 32px) !important;
  }

  .top .top-right .iconfont {
    font-size: 22px !important;
  }

  /* ---- 首页(land) Banner：弹性高度钳制 vw，避免无限放大 ---- */
  app-banner .carousel {
    height: clamp(240px, 40vw, 380px) !important;
    margin-bottom: clamp(12px, 2vw, 20px) !important;
  }

  /* ---- 首页(land) 轮播背景图：等比缩放只裁不拉伸（不失真） ---- */
  .gray app-banner .carousel .swiper-slide .banner {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /* ---- 首页(land) 搜索框：中线与轮播 banner 底部 border 对齐 ---- */
  /* top 与上方 carousel 高度表达式保持一致；translateY(-50%) 使搜索框中心精确落在 carousel 底部线上 */
  .gray .search {
    top: calc(clamp(240px, 40vw, 380px) - clamp(44px, 6vw, 56px) / 2) !important;
  }

  /* ti-searchbox：高度≤56px、宽度≤680px —— pad 高度弹性 44-56px */
  .gray .search .ti3-searchbox-container {
    width: min(78vw, 680px) !important;
    height: clamp(44px, 6vw, 56px) !important;
  }

  /* ---- 首页(land) 搜索按钮：定位于 searchbox 输入框外部右侧 24px、垂直居中 ---- */
  .gray .search .confirm {
    right: calc((100vw - min(78vw, 680px)) / 2 + 24px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  app-banner .title {
    font-size: 34px !important;
    padding-top: clamp(64px, 12vw, 120px) !important;
  }

  app-banner .description {
    font-size: 17px !important;
    padding-top: clamp(10px, 2vw, 18px) !important;
  }

  /* ---- 首页(land) section：左右安全留白（弹性） ---- */
  app-section {
    padding-left: clamp(16px, 3vw, 32px) !important;
    padding-right: clamp(16px, 3vw, 32px) !important;
    padding-top: clamp(32px, 5vw, 48px) !important;
  }

  app-section header h1 {
    font-size: 28px !important;
    line-height: 1.2em !important;
  }

  app-section .visitMore {
    font-size: 16px !important;
  }

  /* ---- 工具宫格：小 pad 4 列 / 大 pad 6 列（覆盖组件内联 style） ---- */
  app-grid .grid {
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: auto !important;
    column-gap: clamp(10px, 1.6vw, 16px) !important;
    row-gap: clamp(10px, 1.6vw, 16px) !important;
  }

  app-tool-card .card {
    width: min(96px, 24vw) !important;
    height: clamp(76px, 12vw, 96px) !important;
  }

  app-tool-card .icon {
    width: min(46px, 48%) !important;
    height: auto !important;
    aspect-ratio: 1 !important;
  }

  app-tool-card .tool-name {
    font-size: 13px !important;
    margin-top: 0.4em !important;
  }

  /* ---- 首页(land) 商品卡：弹性高度 ---- */
  .gray app-section app-product-card .card {
    height: clamp(260px, 40vw, 360px);
  }

  .gray app-section app-product-card .title {
    font-size: 24px;
  }

  .gray app-section app-product-card .product {
    grid-column-gap: clamp(16px, 3vw, 28px);
    grid-row-gap: clamp(14px, 2.5vw, 24px);
  }

  .gray app-section app-product-card .product-item {
    font-size: 16px;
  }

  /* ---- 首页(land) 商品 / 视频 轮播容器：弹性左右留白 ----
     margin-bottom 保持源码 6.4vw，为负值分页器(bottom -6vw)预留悬停空间，避免压住下方 visitMore */
  .gray app-section .carousel {
    width: 100%;
    padding-left: clamp(8px, 1.5vw, 14px);
    padding-right: clamp(8px, 1.5vw, 14px);
    margin-bottom: 6.4vw;
    box-sizing: border-box;
  }

  /* ---- 首页(land) 商品 / 视频 轮播分页器：bullet 高度统一 1vw，避免与下方 visitMore 重叠 ---- */
  .gray app-section .carousel .swiper-pagination-bullet {
    height: 1vw !important;
  }

  /* ---- 首页(land) 商品 / 视频 轮播分页器：红点外圈 border 胶囊收敛居中，不再遮住相邻圆点 ----
     （不动分页器位置；仅收窄激活红点外圈边框并精确居中于圆点） */
  .gray app-section .carousel .swiper-pagination-bullet.swiper-pagination-bullet-active::after {
    width: clamp(16px, 3vw, 26px) !important;
    height: clamp(10px, 1.8vw, 14px) !important;
    border: 1px solid rgb(199, 0, 11) !important;
    border-radius: 12px !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* ---- 首页(land) 视频卡：弹性高度 ---- */
  .gray app-section app-hot-video-card .pic {
    height: clamp(240px, 38vw, 340px);
  }

  /* 视频卡封面：等比缩放不拉伸不失真 */
  .gray app-section app-hot-video-card .pic > img {
    width: 100% !important;
    height: 100% !important;
  }

  .gray app-section app-hot-video-card .article {
    height: clamp(120px, 18vw, 170px);
    padding: clamp(8px, 1.6vw, 14px) clamp(12px, 2vw, 16px);
  }

  .gray app-section app-hot-video-card .title {
    font-size: 18px;
  }

  .gray app-section app-hot-video-card .type {
    font-size: 15px;
  }

  .gray app-section app-hot-video-card .serial {
    font-size: 16px;
  }

  /* ---- 连载瀑布：pad 3 列 ---- */
  app-fall .grid {
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: clamp(10px, 1.8vw, 16px) !important;
    row-gap: clamp(12px, 2vw, 18px) !important;
    padding: clamp(12px, 2vw, 18px) 4px 0 !important;
  }

  /* ---- 连载 / 课程卡：弹性高度 ---- */
  app-technology-article-card .pic {
    height: clamp(150px, 24vw, 220px) !important;
  }

  /* 连载 / 课程卡：高度自适应（min-height 保底），保证「查看更多」始终完整可见，
     不再被固定高度 + .card overflow:hidden 裁切遮住 */
  app-technology-article-card .article {
    height: auto !important;
    min-height: clamp(130px, 20vw, 190px) !important;
    padding: clamp(8px, 1.6vw, 14px) clamp(12px, 2vw, 16px) !important;
  }

  /* 大卡（特写卡）内容多：更高的保底高度，确保「查看更多」完整可见 */
  app-technology-article-card .card.lg .article {
    min-height: clamp(160px, 24vw, 220px) !important;
  }

  app-technology-article-card .title {
    font-size: 17px !important;
  }

  app-technology-article-card .desc {
    font-size: 14px !important;
    line-height: 1.5em !important;
  }

  app-course-card .course-card .pic {
    height: clamp(120px, 19vw, 170px);
  }

  app-course-card .course-card .article {
    height: clamp(110px, 18vw, 160px);
  }

  /* ---- 移动版解决方案 ---- */
  app-mobile-case-solution .case-solution-box {
    padding: clamp(24px, 4vw, 36px) clamp(16px, 3vw, 28px) 0 !important;
  }

  app-mobile-case-solution .case-solution-box .tab li h1 {
    font-size: 26px !important;
    line-height: 1.25em !important;
  }

  .case-solution-box .marketing-solutions {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: clamp(10px, 1.8vw, 16px) !important;
  }

  /* ---- 移动版解决方案 横向背景卡：适当增高，背景等比 cover 不失真 ---- */
  app-mobile-case-solution .horizon-solutions li {
    min-height: clamp(64px, 13vw, 110px) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  /* ---- 活动资讯：pad 中间档（弹性高度） ---- */
  .notice-box {
    height: clamp(36px, 5.5vw, 48px) !important;
    margin: clamp(20px, 3.5vw, 32px) clamp(18px, 3vw, 28px) 0 !important;
    padding: 0 clamp(12px, 2vw, 18px) !important;
    font-size: 13px !important;
  }

  .notice-box .message-carousel {
    height: clamp(36px, 5.5vw, 48px) !important;
    width: calc(100% - 11em) !important;
  }

  .notice-box .message-carousel .message-item {
    font-size: 13px !important;
    line-height: clamp(36px, 5.5vw, 48px) !important;
  }

  .notice-box .notice-more {
    font-size: 13px !important;
  }

  /* ---- 搜索结果页：弹性槽高与留白 ---- */
  .page-search-list .breadcrumb {
    height: clamp(40px, 6vw, 52px) !important;
  }

  .page-search-list .layout-left {
    padding-left: clamp(16px, 3vw, 28px) !important;
    padding-right: clamp(16px, 3vw, 28px) !important;
  }

  /* ---- 书架子 banner：弹性高度；背景图等比 cover，只裁切不拉伸（不失真） ---- */
  .resource-shelf-banner {
    height: clamp(120px, 20vw, 180px) !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
  }

  .resource-shelf-banner .banner-content {
    margin-left: 8% !important;
    padding: clamp(24px, 4.5vw, 40px) 0 !important;
  }

  .resource-shelf-banner .banner-content .title {
    font-size: 30px !important;
  }

  .resource-shelf-banner .banner-content .sub-title {
    font-size: 15px !important;
  }

  /* ---- 列表页 banner：弹性高度 ---- */
  .list-page-banner {
    height: clamp(150px, 25vw, 220px) !important;
  }

  .list-page-banner .content-in h3 {
    font-size: 26px !important;
  }

  /* ---- 资料书架 / 个人信息中心 / 新闻 / 详情 / 电子书 / 工具中心：弹性留白 ---- */
  .page-resource-bookshelf .main-content {
    padding: clamp(14px, 3vw, 24px) !important;
  }

  .personalCenterPage {
    padding: 0 clamp(16px, 3vw, 28px) !important;
  }

  .banner-box-mobile + .list-box-mobile,
  .list-box-mobile {
    padding-left: clamp(14px, 2.5vw, 24px) !important;
    padding-right: clamp(14px, 2.5vw, 24px) !important;
  }

  .details-page .content-box {
    padding: clamp(14px, 3vw, 24px) !important;
  }

  .ebook-page {
    padding-left: clamp(14px, 2.5vw, 24px) !important;
    padding-right: clamp(14px, 2.5vw, 24px) !important;
  }

  .tool-page {
    padding: clamp(14px, 3vw, 24px) !important;
  }

  .tool-page .tool-banner {
    height: clamp(130px, 22vw, 200px) !important;
  }

  /* ---- communication-matrix 通信矩阵：pad 左右安全留白 ---- */
  /* banner 标题/副标题（communicationMatrix、communicationMatrixSubTitle）留白 */
  .communication-matrix-banner .content-in {
    padding-left: clamp(16px, 4vw, 32px) !important;
    padding-right: clamp(16px, 4vw, 32px) !important;
    box-sizing: border-box !important;
  }

  .communication-matrix-container {
    padding-left: clamp(16px, 4vw, 32px) !important;
    padding-right: clamp(16px, 4vw, 32px) !important;
    box-sizing: border-box !important;
  }

  /* 筛选区下拉：参考移动端纵向排列，每一行铺满容器宽度，避免挤压 */
  .communication-matrix-container .filter-box .select-box {
    flex-direction: column;
    row-gap: clamp(12px, 2vw, 18px);
  }

  .communication-matrix-container .filter-box .select-box > div {
    display: block;
    width: 100%;
  }

  .communication-matrix-container .filter-box .select-box .select-label {
    display: block;
    margin-right: 0;
    margin-bottom: 6px;
  }

  .communication-matrix-container .filter-box .select-box tp-cascader {
    width: 100% !important;
    max-width: 800px !important;
  }

  .communication-matrix-container .filter-box .select-box ti-select {
    width: 100% !important;
    max-width: 800px !important;
  }

  /* ---- 文档生成 / 解决方案 ---- */
  .selector-container {
    gap: clamp(10px, 1.8vw, 16px) !important;
  }

  .scenario-based-doc-container .form-container {
    max-width: 70% !important;
    padding: clamp(14px, 3vw, 24px) clamp(20px, 4vw, 36px) !important;
  }

  .solution-doc .form ti-select,
  .form ti-select {
    width: min(260px, 60%) !important;
  }
}

/* ----------------------------------------------------------------------------
 * 四、PC 端：width >= 1200px（相关样式已去除，PC 端保持组件默认样式）
 * --------------------------------------------------------------------------*/

/* ----------------------------------------------------------------------------
 * 五、补充：通用极窄屏保护（< 360px，个别小屏手机）
 *  说明：保持移动端 vw 原设计，此处仅预留极窄屏适配入口。
 * --------------------------------------------------------------------------*/
