/**
 * Toolbox card / section layout for theme-integrated /zxgj routes.
 * Vendor style.css is not loaded (breaks theme chrome) — this replaces .moder grid.
 */

.fs-main--zxgj .center,
body.fsgj-route .center {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px 28px;
  box-sizing: border-box;
}

.fs-main--zxgj .moder_h2,
body.fsgj-route .moder_h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #eef0f4;
  letter-spacing: 0.02em;
}

.fs-main--zxgj .moder_h2:first-child,
.fs-main--zxgj .moder_h2_one,
body.fsgj-route .moder_h2_one {
  margin-top: 4px;
}

.fs-main--zxgj .moder_h2 i,
body.fsgj-route .moder_h2 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  color: #e8c96a;
  background: rgba(232, 201, 106, 0.12);
}

/* 5-column tool card grid (Figure 3) */
.fs-main--zxgj .moder,
body.fsgj-route .moder {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  float: none !important;
  width: 100% !important;
  clear: both;
}

.fs-main--zxgj .moder::after,
.fs-main--zxgj .moder::before,
body.fsgj-route .moder::after,
body.fsgj-route .moder::before {
  display: none !important;
  content: none !important;
}

.fs-main--zxgj .moder > li,
body.fsgj-route .moder > li {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  min-width: 0;
}

.fs-main--zxgj .moder > li > a,
body.fsgj-route .moder > li > a {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
  min-height: 88px;
  height: auto !important;
  padding: 14px 14px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #151920 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: inherit !important;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.fs-main--zxgj .moder > li > a:hover,
body.fsgj-route .moder > li > a:hover {
  border-color: rgba(232, 201, 106, 0.4) !important;
  background: #1b212b !important;
  transform: translateY(-1px);
}

.fs-main--zxgj .moder > li > a > img,
body.fsgj-route .moder > li > a > img {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  border-radius: 10px !important;
  object-fit: cover;
  margin: 0 !important;
  float: none !important;
  position: relative !important;
  z-index: 1;
}

.fs-main--zxgj .moder > li > a > div,
body.fsgj-route .moder > li > a > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  position: relative !important;
  z-index: 1;
  overflow: hidden;
}

.fs-main--zxgj .moder > li > a > div h3,
body.fsgj-route .moder > li > a > div h3 {
  display: block;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #f3f5f8 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-main--zxgj .moder > li > a > div p,
body.fsgj-route .moder > li > a > div p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #9aa3af !important;
  white-space: normal !important;
}

/* Tool detail page shell */
.fs-main--zxgj .tools-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 20px 16px;
  margin: 0 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  clear: both;
}

.fs-main--zxgj .tools-info > img {
  float: none !important;
  flex: 0 0 48px;
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 !important;
}

.fs-main--zxgj .tools-info > div {
  flex: 1 1 auto;
  min-width: 0;
  float: none !important;
  overflow: visible;
}

.fs-main--zxgj .tools-info .title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  height: auto !important;
  line-height: 1.35 !important;
  margin: 0 0 6px;
  font-size: inherit !important;
  color: #eef0f4 !important;
}

.fs-main--zxgj .tools-info .title h1 {
  display: inline !important;
  height: auto !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700;
  color: #eef0f4 !important;
}

.fs-main--zxgj .tools-info .title span {
  position: relative;
  margin-left: 0 !important;
  font-size: 16px !important;
  color: #ff7503 !important;
}

.fs-main--zxgj .tools-info .pingfens {
  height: auto !important;
  line-height: 1.4 !important;
  margin: 0;
  color: #e8c96a;
}

.fs-main--zxgj .tools-info > i.sharetool {
  position: static;
  margin-left: auto;
  flex: 0 0 auto;
  color: #9aa3af;
  font-size: 18px;
  cursor: pointer;
}

.fs-main--zxgj .tools-cent {
  margin: 0 20px 20px;
  padding: 16px;
  border-radius: 12px;
  background: #151920;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 12rem;
  color: #eef0f4;
}

/* Layui upload / form dark adapt */
body.fsgj-dark .fs-main--zxgj .layui-upload-drag,
body.fsgj-route.night .fs-main--zxgj .layui-upload-drag {
  background: #0f1218 !important;
  border: 1px dashed rgba(232, 201, 106, 0.35) !important;
  color: #9aa3af !important;
  border-radius: 12px !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

body.fsgj-dark .fs-main--zxgj .layui-upload-drag:hover,
body.fsgj-route.night .fs-main--zxgj .layui-upload-drag:hover {
  border-color: rgba(232, 201, 106, 0.65) !important;
  background: #151920 !important;
}

body.fsgj-dark .fs-main--zxgj .layui-upload-drag .layui-icon,
body.fsgj-route.night .fs-main--zxgj .layui-upload-drag .layui-icon {
  color: #e8c96a !important;
}

body.fsgj-dark .fs-main--zxgj .layui-upload-drag .tipsd,
body.fsgj-route.night .fs-main--zxgj .layui-upload-drag .tipsd {
  color: #c8d0db !important;
}

body.fsgj-dark .fs-main--zxgj .datalist,
body.fsgj-route.night .fs-main--zxgj .datalist {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #eef0f4 !important;
}

body.fsgj-dark .fs-main--zxgj .layui-form-pane .layui-form-item[pane],
body.fsgj-route.night .fs-main--zxgj .layui-form-pane .layui-form-item[pane] {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: #12161d !important;
}

body.fsgj-dark .fs-main--zxgj .layui-form-pane .layui-form-label,
body.fsgj-route.night .fs-main--zxgj .layui-form-pane .layui-form-label {
  background: #1b212b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #c8d0db !important;
}

body.fsgj-dark .fs-main--zxgj .layui-form-pane .layui-input-block,
body.fsgj-route.night .fs-main--zxgj .layui-form-pane .layui-input-block {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #eef0f4 !important;
}

body.fsgj-dark .fs-main--zxgj .layui-form-radio > i,
body.fsgj-route.night .fs-main--zxgj .layui-form-radio > i {
  color: #e8c96a !important;
}

body.fsgj-dark .fs-main--zxgj .layui-form-radio > div,
body.fsgj-route.night .fs-main--zxgj .layui-form-radioed > div,
body.fsgj-dark .fs-main--zxgj .layui-form-radioed > div,
body.fsgj-route.night .fs-main--zxgj .layui-form-radio > div {
  color: #eef0f4 !important;
}

body.fsgj-dark .fs-main--zxgj .layui-input,
body.fsgj-route.night .fs-main--zxgj .layui-input {
  background: #0f1218 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #eef0f4 !important;
}

body.fsgj-dark .fs-main--zxgj .datalistbut,
body.fsgj-route.night .fs-main--zxgj .datalistbut {
  background: #12161d !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  display: block !important;
}

body.fsgj-dark .fs-main--zxgj .datalistbut span.zipevent,
body.fsgj-route.night .fs-main--zxgj .datalistbut span.zipevent {
  background: linear-gradient(135deg, #c19549, #e8c96a) !important;
  border-color: transparent !important;
  color: #1a1408 !important;
  font-weight: 700;
}

body.fsgj-dark .fs-main--zxgj .datalistbut span.cle,
body.fsgj-route.night .fs-main--zxgj .datalistbut span.cle {
  background: #1b212b !important;
  border-color: rgba(232, 201, 106, 0.35) !important;
  color: #f0e0a8 !important;
}

body.fsgj-dark .fs-main--zxgj .resttips,
body.fsgj-route.night .fs-main--zxgj .resttips {
  background: rgba(232, 201, 106, 0.08) !important;
  border: 1px solid rgba(232, 201, 106, 0.28) !important;
  color: #e8c96a !important;
}

body.fsgj-dark .fs-main--zxgj .resttips span,
body.fsgj-dark .fs-main--zxgj .resttips p,
body.fsgj-route.night .fs-main--zxgj .resttips span,
body.fsgj-route.night .fs-main--zxgj .resttips p {
  color: #e8c96a !important;
}

body.fsgj-dark .fs-main--zxgj .layui-slider-bar,
body.fsgj-route.night .fs-main--zxgj .layui-slider-bar {
  background: #e8c96a !important;
}

body.fsgj-dark .fs-main--zxgj .layui-slider-wrap-btn,
body.fsgj-route.night .fs-main--zxgj .layui-slider-wrap-btn {
  border-color: #e8c96a !important;
}

.fs-main--zxgj .scttop {
  position: fixed;
  right: 28px;
  bottom: 100px;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232, 201, 106, 0.12);
  border: 1px solid rgba(232, 201, 106, 0.35);
  color: #e8c96a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .fs-main--zxgj .moder,
  body.fsgj-route .moder {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .fs-main--zxgj .moder,
  body.fsgj-route .moder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .fs-main--zxgj .center,
  body.fsgj-route .center {
    padding: 0 12px 20px;
  }
  .fs-main--zxgj .moder,
  body.fsgj-route .moder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .fs-main--zxgj .tools-cent {
    margin: 0 12px 16px;
  }
}

@media (max-width: 420px) {
  .fs-main--zxgj .moder,
  body.fsgj-route .moder {
    grid-template-columns: 1fr;
  }
}
