/**
 * aiweb 移动端 — 隔离 mvpx 全局样式与 Bootstrap 冲突
 */
::selection { background:#427edf; color:#FFF; }
::-moz-selection { background:#427edf; color:#FFF; }

body#mvpAiTemplate {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #151a23;
  background: #fff;
  padding-top: 94px !important;
}

/* 隔离 Bootstrap/ai-template 对顶栏类型导航的影响，保持横向滑动 */
body#mvpAiTemplate ul.mvp-type-nav {
  display: block !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

body#mvpAiTemplate ul.mvp-type-nav li {
  display: inline-block !important;
  float: none !important;
}

body#mvpAiTemplate header .nav {
  display: block !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
  margin: 0 !important;
}

body#mvpAiTemplate .wrapper.aiweb-wrapper {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 48%, #eef3f7 100%);
  min-height: calc(100vh - 94px);
}

body#mvpAiTemplate .aiweb-page {
  width: auto;
  margin: 0;
  padding: 20px 14px 30px;
}

body#mvpAiTemplate .ai-hero {
  display: block;
  margin-bottom: 20px;
}

body#mvpAiTemplate .ai-hero > div:first-child {
  margin-bottom: 16px;
}

body#mvpAiTemplate .ai-page-title {
  font-size: 28px;
  line-height: 1.2;
  word-break: break-word;
}

body#mvpAiTemplate .ai-page-desc {
  font-size: 14px;
  line-height: 1.8;
  max-width: none;
}

body#mvpAiTemplate .ai-summary {
  min-width: 0;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
}

body#mvpAiTemplate .ai-summary strong {
  display: inline;
  font-size: 28px;
  margin-right: 4px;
}

body#mvpAiTemplate .ai-toolbar {
  display: block;
  margin-bottom: 16px;
}

body#mvpAiTemplate .ai-tabs-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 12px;
  padding-bottom: 2px;
}

body#mvpAiTemplate .ai-tabs-scroll::-webkit-scrollbar {
  display: none;
}

body#mvpAiTemplate .ai-nav-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: static !important;
  width: max-content !important;
  min-width: 100%;
  height: auto !important;
  background: none !important;
}

body#mvpAiTemplate .ai-nav-pills li {
  float: none;
  width: auto;
  display: block;
}

body#mvpAiTemplate .ai-nav-link {
  display: inline-block;
  min-width: 70px;
  padding: 7px 16px;
  border: 1px solid #e3e7ee;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  -webkit-appearance: none;
  appearance: none;
}

body#mvpAiTemplate .ai-nav-link.active {
  color: #fff;
  border-color: #427edf;
  background: #427edf;
}

body#mvpAiTemplate .ai-toolbar-tip {
  display: block;
  color: #999;
  font-size: 12px;
}

body#mvpAiTemplate #templateList {
  margin: 0;
}

body#mvpAiTemplate #templateList > [class*="col-"] {
  width: 100%;
  padding: 0;
  margin-bottom: 16px;
}

body#mvpAiTemplate .template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body#mvpAiTemplate .template-title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  margin: 0;
}

body#mvpAiTemplate .thumb-inner img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

body#mvpAiTemplate .thumb-inner p {
  margin: 0;
}

body#mvpAiTemplate .preview-rich {
  max-height: 70vh;
  overflow: auto;
}

body#mvpAiTemplate .load-more-wrap {
  display: none;
}

body#mvpAiTemplate .ai-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 15px 30px;
  background: #427edf;
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
}

body#mvpAiTemplate .ai-footer a {
  color: #fff;
}
