
button {
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  /* 去除点击高亮（移动端） */
  -webkit-tap-highlight-color: transparent;
}
/* 去除按钮点击时浏览器默认focus外框，如需可自行加 */
button:focus {
  outline: none;
}
.ui-btn-box-ai {
  float: right;
}

.ui-btn-box {
  display: flex;
  align-items: center;
  width: 80px;
  height: 30px;
  font-size: 12px;
  background: none;
  line-height: 32px;
  border-radius: 8px;
  color: var(--theme-color1);
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
  border: 1px solid rgba(34, 48, 53, 0.2);
  margin: 0 6px 0 0;

}

.ui-btn-box img {
  width: auto;
  height: 20px;
  margin: 0 6px 0 6px;

}
.ui-btn-box .ui-btn {
  display: block;
  display: flex;
  
}

.ui-btn-box:hover {
  /* color: #fff;
  background: #087462; */
}


/* ========== 迁移：顶部公告条 + AI监控面板CSS start ========== */
@keyframes pulse-expand {
  0% {
    width: 6px;
    height: 6px;
    opacity: 0.7;
  }

  100% {
    width: 24px;
    height: 24px;
    opacity: 0;
  }
}

@keyframes scroll-log {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.lock-scroll {
  overflow: hidden !important;
}


.xs-hidden {
  display: flex;
}

@media (max-width: 991px) {
  .xs-hidden {
    display: none !important;
  }
}

.xs-show {
  display: none !important;
}

@media (max-width: 991px) {
  .xs-show {
    display: flex !important;
  }
}

.flex {
  display: flex;
}

.row-between {
  justify-content: space-between;
}

.col-center {
  align-items: center;
}

.header-top-content {
  position: fixed;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  background: linear-gradient(90deg, #e8e6ff 0%, #dfefff 100%);

  z-index: 9991;
  top: 0;
  left: 0;
}

.header-top-content p {
  margin: 0 6px 0 6px !important;
  font-size: 12px !important;
}

.header-top-content .top-content {
  padding: 8px 15px;
  height: 26px;
  line-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top-content .left {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #2daeff 0%, #2563eb 32.69%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-top-content .left p {
  width: 6px;
  height: 6px;
  background-color: #2563eb;
  border-radius: 50%;
  margin: 0 10px 0 6px;
  position: relative;
}

.header-top-content .left p::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background-color: #2563eb;
  border-radius: 50%;
  animation: pulse-expand 2s infinite ease-out;
}

.header-top-content .middle {
  display: flex;
  font-size: 11px;
  font-weight: 400;
}

.header-top-content .middle-content {
  display: flex;
  align-items: center;
}

.header-top-content .middle-content img {
  width: 12px;
  height: 12px;
}

.header-top-content .middle-content .p1 {
  color: rgb(102, 102, 102);
  margin: 0px 6px 0 6px;
}

.header-top-content .right {
  display: flex;
}

.header-top-content .ai-protect {
  display: flex;
  align-items: center;
}

.header-top-content .ai-protect p {
  margin-bottom: 0px;
}

.header-top-content .ai-protect img {
  width: 12px;
  height: 12px;
}

.header-top-content .ai-protect p {
  background: linear-gradient(90deg, #2daeff 0%, #2563eb 32.69%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 6px;
}

.header-top-content .toggle-btn {
  margin-left: 6px;
  cursor: pointer;
}

.header-top-content .toggle-btn p {
  color: rgb(96, 165, 250);
  text-decoration: underline;
  margin: 0 !important;
}

.ai-dashboard-panel {
  position: absolute;
  left: 0;
  width: 100%;
  top: 26px;
  max-height: 0;
  overflow: hidden;
  background: #f8fbf9;
  transition: max-height 0.46s ease;
  z-index: 9990;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 12px !important;
}

.ai-dashboard-panel p {
  font-size: 12px !important;
  margin: 0 !important;
}

.ai-dashboard-panel.open {
  max-height: 720px;
}

.ai-dashboard-panel .dashboard-inner {
  padding: 14px 15px 20px;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.ai-dashboard-panel .dashboard-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 400;
  color: #666666;
  margin-bottom: 20px;
}

.ai-dashboard-panel .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 1000px) {
  .ai-dashboard-panel .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ai-dashboard-panel .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dash-card {
  cursor: pointer;
  background: #fff;
  width: 100% !important;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
}

.dash-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(80, 137, 235, 0.15);
}

.dash-card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dash-card .card-head .card-label {
  color: #666;
  font-size: 12px;
}

.dash-card .card-head .card-icon {
  width: 26px;
  height: 26px;
}

.dash-card .card-num {
  font-size: 18px;
  font-weight: bold;
  color: #111;
}

.dash-card .card-num.level {
  color: #f59e0b;
}

.dash-card .card-num.small {
  font-size: 18px;
}

.dash-card .card-trend {
  margin-top: 6px;
  font-size: 10px;
}

.dash-card .card-trend.up {
  color: #e53e3e;
}

.dash-card .card-trend.down {
  color: #38a169;
}

.dash-card .card-canvas {
  width: 100% !important;
  max-width: 100%;
  height: 30px;
  margin-top: 10px;
  pointer-events: none;
  display: block;
  object-fit: fill;
  image-rendering: crisp-edges;
}

.dash-card .card-canvas-node {
  height: 30px;
  background-color: rgba(148, 118, 224, 0.18);
}

.dash-card .card-desc {
  margin-top: 6px;
  font-size: 10px;
  color: rgb(34 197 94);
}

.dash-card .card-desc.green {
  color: rgb(34 197 94);
}

.dash-card .card-desc-bg {
  position: relative;
  margin-top: 10px;
}

.dash-card .card-desc-bg img {
  height: 36px;
  width: 100%;
  display: block;
}

.dash-card .card-desc-bg p {
  position: absolute;
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #f59e0b;
  margin: 0;
}

.dash-card .intercept-list {
  width: 100%;
  height: 40px;
  background: #eef2ff;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.dash-card .intercept-list .scroll-wrap {
  animation: scroll-log 8s linear infinite;
}

.dash-card .intercept-list .log-item {
  display: flex;
  justify-content: space-between;
  padding: 0px 10px;
  font-size: 10px;
  color: #777;
}

.dash-card .intercept-list .log-item .log-text {
  white-space: nowrap;
}

.dash-card .intercept-list .log-item .log-time {
  color: #999;
  margin-left: 4px;
}

.dash-card .load-bar-wrap {
  width: 100%;
  height: 14px;
  background: #e8f0fe;
  border-radius: 99px;
  margin-top: 12px;
  overflow: hidden;
}

.dash-card .load-bar-wrap .load-bar-fill {
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4cd964, #36d1d9);
}

.ai-dashboard-panel .service-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .ai-dashboard-panel .service-row {
    grid-template-columns: repeat(1, 1fr);
  }
}

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 10px 10px;
  border-radius: 6px;
}

.service-item .item-left {
  font-size: 12px;
  display: flex;
  align-items: center;
}

.service-item .item-right {
  font-size: 12px;
  color: rgb(34 197 94);
  display: flex;
  align-items: center;
}

.service-item .serv-icon {
  width: 26px;
  height: 26px;
  margin-right: 6px;
}

.service-item .running-dot {
  width: 6px;
  height: 6px;
  background: rgb(34 197 94);
  border-radius: 50%;
  position: relative;
  margin-right: 8px;
}

.service-item .running-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background-color: rgb(34 197 94);
  border-radius: 50%;
  animation: pulse-expand 2s infinite ease-out;
}

/* ========== 迁移：顶部公告条 + AI监控面板CSS end ========== */

/* ========= AI SEARCH 弹窗CSS 全部 ais_前缀 防冲突 ========= */
.ais_mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, .4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease-out;
}

.ais_mask.show {
  opacity: 1;
  pointer-events: auto;
}

.ais_popup {
  width: min(760px, 92vw);
  max-height: 78vh;
  background: linear-gradient(90deg, #f5f0ff, #edf4ff);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92) translateY(14px);
  transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.ais_mask.show .ais_popup {
  transform: scale(1) translateY(0);
}

.ais_popup_box {
  width: 100%;
  margin: 0 auto;
}

.ais_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 96%;
  padding: 8px 12px;
  border-radius: 6px;
  gap: 10px;
  background: #fff;
  margin: 10px auto;
  flex-wrap: nowrap;
}

.ais_search_input_wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ais_icon_search {
  width: 14px;
  height: auto;
}

.ais_search_input_wrap input {
  height: 30px;
  flex: 1;
  border: none;
  outline: none;
  font-size: 12px;
  background: transparent;
  color: #1e293b;
  font-weight: 600;
  min-width: 0;
  padding:0 ;
}

.ais_search_input_wrap input::placeholder {
  color: #94a3b8;
}

.ais_search_input_wrap input:disabled {
  color: #b8c2d1;
  cursor: not-allowed;
}

.ais_header_right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ais_tag_open {
  cursor: pointer;
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
  white-space: nowrap;
}

.ais_tag_open.ais_disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ais_close_btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s;
}

.ais_close_btn:hover {
  background: #cbd5e1;
}

.ais_close_btn.ais_disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ais_tabs {
  width: 96%;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  padding: 0 0 16px;
  background: linear-gradient(90deg, #f5f0ff, #edf4ff);
  overflow-x: auto;
}

.ais_tabs::-webkit-scrollbar {
  height: 0;
}

.ais_tab_item {
  flex-shrink: 0;
  padding: 0px 10px;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.ais_tab_item:hover {
  color: #dc2626;
}

.ais_tab_item.ais_disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ais_content_wrap_wrapper {
  background-color: #fff;
}

.ais_content_wrap {
  width: 96%;
  margin: 0 auto;
}

.ais_title_fixed {
  font-size:16px;
  text-align: left;
  padding: 6px 0;
  background: linear-gradient(135deg, rgb(226, 52, 255), rgb(77, 80, 255), rgb(64, 148, 253));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ais_content {
  padding: 0 0 20px 0;
  overflow-y: auto;
  max-height: calc(78vh - 160px);
}

.ais_intro {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  border-radius: 8px;
}

.ais_intro img {
  width: 80px;
  height: auto;
}

.ais_intro p {
  margin: 6px 0;
  font-size: 14px;
}

.ais_intro ul,
.ais_intro ol {
  padding-left: 22px;
  margin: 8px 0;
}

.ais_intro li {
  margin: 4px 0;
}

.ais_intro code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
}

.ais_intro pre {
  background: #f1f1f1;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
}

.ais_intro blockquote {
  border-left: 3px solid #b8c2d1;
  padding-left: 10px;
  color: #555;
  margin: 8px 0;
}

.ais_intro h1,
.ais_intro h2,
.ais_intro h3,
.ais_intro h4 {
  margin: 10px 0 4px;
  font-weight: bold;
}
.ais_intro h1 {
  font-size: 18px !important;
}
.ais_intro h2 {
  font-size: 18px !important;
}
.ais_intro h3 {
  font-size: 18px !important;
}
.ais_intro h4 {
  font-size: 16px !important;
}
.ais_intro h5 {
  font-size: 16px !important;
}

.ais_info_block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.ais_block_title {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 16px;
}

.ais_tip_text {
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}

.ais_scroll_hint {
  cursor: pointer;
  text-align: center;
  margin-top: 36px;
  font-size: 14px;
  color: #94a3b8;
}

.ais_scroll_hint.ais_disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ais_goods_wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ais_goods_item {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  background: rgb(249 248 248);
  padding: 10px 10px;
  text-decoration: none;
}

.ais_goods_item img {
  width: 100px;
  border-radius: 6px;
  height: auto;
  object-fit: cover;
  display: block;
}

.ais_goods_info {
  padding: 10px;
}

.ais_goods_name1 {
  font-size: 14px;
  margin: 0 0 6px 0;
  color: #222;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ais_goods_name {
  font-size: 12px;
  line-height: 1.2;
  color: #999;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ais_goods_price {
  font-size: 10px;
  color: #999;
  font-weight: 600;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 760px) {
  .ais_goods_wrap {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .ais_header {
    padding: 6px 10px;
    gap: 8px;
  }

  .ais_tag_open {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header-top-content .ai-protect p {
    display: none;
  }
  .header-top-content .middle-content .p1 {
    display: none;
  }
}

@media (max-width: 500px) {
  .header-top-content .middle {
    display: none !important;
  }
}