/* 内部独家 — 框色/字号/行距对齐下方 cms-box；采集高手三区；保留内部料小 UI */
.xtw-nbdj {
  margin: 10px 0;
  width: 100%;
}

.xtw-nbdj__main {
  width: 100%;
  overflow: hidden;
  border: 2px solid #3c74f7;
  border-radius: 10px;
  background: #fff;
}

.xtw-nbdj__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  border-bottom: 2px solid #3c74f7;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #3c74f7;
  color: #fff;
}

.xtw-nbdj__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xtw-nbdj__flame {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, #ffb347 0%, #ff6a00 70%);
  transform: rotate(-45deg);
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.55);
}

.xtw-nbdj__btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: none;
  background: #f5d76e;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.xtw-nbdj__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 行距用固定 px，避免根字号变化导致行高塌掉看不见 */
.xtw-nbdj__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  min-height: 36px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  border-bottom: 0.5px solid rgba(111, 81, 96, 0.3);
  background: #fcece8;
  color: #222;
  text-decoration: none;
  cursor: pointer;
}

.xtw-nbdj__item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.xtw-nbdj__deco {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: block;
}

.xtw-nbdj__tag {
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.xtw-nbdj__tag--inner {
  background: #f5d76e;
  color: #333;
}

.xtw-nbdj__tag--ok {
  background: #e53935;
  color: #fff;
}

.xtw-nbdj__period {
  flex-shrink: 0;
  color: #111;
  white-space: nowrap;
}

.xtw-nbdj__name {
  flex: 1;
  min-width: 0;
  color: #00b0f0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xtw-nbdj__open {
  flex-shrink: 0;
  color: #e53935;
  font-weight: 700;
  white-space: nowrap;
}

.home-container .xtw-nbdj,
.nc-page .xtw-nbdj {
  width: 100%;
}

.xtw-nbdj__item {
  cursor: pointer;
}

/* ===== 内页弹窗（对齐参考图） ===== */
html.xtw-nbdj-modal-open,
html.xtw-nbdj-modal-open body {
  overflow: hidden;
}

.xtw-nbdj-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.xtw-nbdj-modal[hidden] {
  display: none !important;
}

.xtw-nbdj-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.xtw-nbdj-modal__panel {
  position: relative;
  z-index: 1;
  width: min(440px, 94vw);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.xtw-nbdj-modal__head {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 44px;
  background: #9c27b0;
  color: #fff;
}

.xtw-nbdj-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xtw-nbdj-modal__close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.xtw-nbdj-modal__body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.xtw-nbdj-modal__loading,
.xtw-nbdj-modal__empty {
  padding: 36px 16px 28px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.xtw-nbdj-modal__load-text {
  margin-bottom: 14px;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.xtw-nbdj-modal__load-bar {
  width: min(220px, 70%);
  height: 8px;
  margin: 0 auto;
  border-radius: 999px;
  background: #e8e8e8;
  overflow: hidden;
}

.xtw-nbdj-modal__load-bar > i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c4dff, #5b2fd1);
  animation: xtw-nbdj-load 1s ease-in-out infinite;
}

@keyframes xtw-nbdj-load {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

.xtw-nbdj-modal__row {
  position: relative;
  padding: 0.21333rem 12px 0.21333rem 14px;
  border-bottom: 1px solid #eee;
}

.xtw-nbdj-modal__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ddd;
}

.xtw-nbdj-modal__row.is-first::before {
  background: #f5d76e;
}

.xtw-nbdj-modal__row-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.xtw-nbdj-modal__period {
  color: #222;
}

.xtw-nbdj-modal__tag {
  color: #e53935;
}

.xtw-nbdj-modal__status {
  margin-left: auto;
  font-weight: 700;
}

.xtw-nbdj-modal__status.is-live {
  color: #43a643;
}

.xtw-nbdj-modal__status.is-open {
  color: #e53935;
}

.xtw-nbdj-modal__row-body {
  padding-left: 2px;
}

.xtw-nbdj-modal__line {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: #222;
}

.xtw-nbdj-modal__sx {
  color: #2e7d32;
}

.xtw-nbdj-modal__num.is-odd {
  color: #00897b;
}

.xtw-nbdj-modal__num.is-even {
  color: #e53935;
}

.xtw-nbdj-modal__nick {
  margin-right: 4px;
}

.xtw-nbdj-modal__nick.nick-0 {
  color: #e60012;
}
.xtw-nbdj-modal__nick.nick-1 {
  color: #008000;
}
.xtw-nbdj-modal__nick.nick-2 {
  color: #800080;
}
.xtw-nbdj-modal__nick.nick-3 {
  color: #1e6bd6;
}

@media (max-width: 420px) {
  .xtw-nbdj__title {
    font-size: 18px;
  }
  .xtw-nbdj__item {
    font-size: 14px;
    padding: 7px 8px;
    gap: 4px;
  }
  .xtw-nbdj__tag {
    font-size: 11px;
    padding: 1px 5px;
  }
  .xtw-nbdj-modal__title {
    font-size: 16px;
  }
  .xtw-nbdj-modal__line {
    font-size: 14px;
  }
}
