/* 给独立页面加一点容器留白（不影响组件内部源站样式） */
body {
  margin: 0;
  background: #f5f5f5;
  overflow-x: hidden;
}
.wrap {
  width: 100%;
  max-width: 520px;
  margin: 18px auto;
  padding: 0 10px;
  box-sizing: border-box;
}
/* 倒计时 5 分钟内：用“官网摇奖进行中”占位替换开奖结果（球体直接复用开奖号码红球样式） */
.rolling-placeholder {
  width: 100%;
  padding: 10px 0 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rolling-placeholder .rolling-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.rolling-placeholder .rolling-plus {
  width: 12px;
  text-align: center;
  color: var(--rolling-plus-color, #888);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  user-select: none;
}
.rolling-placeholder .rolling-ball {
  flex: 0 0 auto;
}
.rolling-placeholder .rolling-ball .slot-text {
  display: none !important;
}
.rolling-placeholder .rolling-ball .icon-text {
  transition: transform 180ms ease, filter 180ms ease;
  transform-origin: center;
}
.rolling-placeholder .rolling-ball.is-active .icon-text {
  transform: scale(1.07);
  filter: var(--rolling-active-shadow, drop-shadow(0 3px 8px rgba(240, 74, 74, 0.35)));
}
.rolling-placeholder .rolling-slash {
  width: 34px;
  text-align: center;
  color: var(--rolling-slash-color, #999);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  animation: rollingSlashBlink 1.4s ease-in-out infinite;
}
.rolling-placeholder .rolling-slash.spacer {
  width: 12px;
  opacity: 0;
}
.rolling-placeholder .rolling-ball .icon-text .slot-icon {
  transform: scale(0.92);
}
@media (max-width: 520px) {
  .rolling-placeholder .rolling-row {
    gap: 1px;
  }
  .rolling-placeholder .rolling-slash {
    width: 30px;
    font-size: 12px;
  }
  .rolling-placeholder .rolling-plus {
    width: 10px;
    font-size: 20px;
  }
  .rolling-placeholder .rolling-slash.spacer {
    width: 10px;
  }
  .rolling-placeholder .rolling-ball .icon-text .slot-icon {
    transform: scale(0.84);
  }
}
@keyframes rollingSlashBlink {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
/* 顶栏标题：对接后台「首页顶栏标题」配置（homeNavTitle） */
.home-nav-title {
  background: #07c160;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.home-nav-title span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 首页系统公告 + 广告图片位（参考截图） */
.home-notice-bar {
  background: #ef1b1b;
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.home-notice-bar .home-notice-label {
  white-space: nowrap;
}
.home-notice-bar #homeNoticeText {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: homeNoticeMarquee 12s linear infinite;
}
.home-notice-text-outer {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

@keyframes homeNoticeMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.home-ad-images {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
  display: block;
}
.home-ad-images img {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  max-height: 86px;
}

/* 结果区与「吉美凶丑」之间的二/三图展示区（不改顶部三图展示） */
.home-mid-ad-images {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px;
  margin: 10px 0 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-mid-ad-images img {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: contain;
  height: auto;
  max-height: none;
}

/* 首页最底部双图（独立配置，与顶部/中部三张广告无关） */
.home-footer-ad-images {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px;
  margin: 12px 0 4px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-footer-ad-images img {
  width: 100%;
  display: block;
  border-radius: 6px;
  object-fit: contain;
  height: auto;
  max-height: none;
}

/* 源站 app.css 里 .border-ws 自带左右 margin，开奖区会比同页广告/资料板块窄；取消后与 .wrap 内其它块左右对齐 */
#widget.border-ws {
  margin-left: 0;
  margin-right: 0;
}

/* 开奖区倒计时胶囊：标签 + 倒计时（桌面端横排） */
#widget .border-box-body-hd .lottys {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  box-sizing: border-box;
}
#widget .border-box-body-hd .lottys .lottys-label {
  white-space: nowrap;
}

/* 顶栏期号整段不换行（桌面宽度足够时） */
#widget .border-box-body-hd .hd-period-line {
  white-space: nowrap;
  display: inline-block;
}

/* 中间列：倒计时胶囊在栏内水平居中（抵消 .text-left） */
#widget .border-box-body-hd .van-row > .van-col:nth-child(2) {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 540px) {
  .wrap {
    width: 100%;
    max-width: 100%;
    margin: 8px auto;
    padding: 0 6px;
  }
  .tabs {
    gap: 6px;
    margin-bottom: 8px;
  }
  .tabs button {
    height: 52px;
    border-radius: 8px;
    min-width: 0;
  }
  .tabs button .tab-name {
    font-size: 14px;
    line-height: 1.05;
    white-space: nowrap;
  }
  .tabs button .tab-date {
    font-size: 11px;
    line-height: 1.05;
    white-space: nowrap;
  }
  .jmxc-tip-row {
    gap: 4px 8px;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
  }
  .jmxc-rows-inner .text.juzhong.waibiankuang {
    font-size: 14px;
    line-height: 1.5;
    padding: 8px 6px;
    white-space: nowrap;
  }

  /* 顶栏三列：左「期号」按内容宽度、中间胶囊可收缩，避免期号被压成两行 */
  #widget .border-box-body-hd .van-row.van-row--flex.van-row--justify-space-between {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  #widget .border-box-body-hd .van-row > .van-col:first-child {
    width: auto !important;
    flex: 0 0 auto;
    max-width: none;
  }
  #widget .border-box-body-hd .van-row > .van-col:nth-child(2) {
    flex: 1 1 0%;
    min-width: 0;
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #widget .border-box-body-hd .van-row > .van-col:last-child {
    width: auto !important;
    flex: 0 0 auto;
  }
  #widget .border-box-body-hd .text-right {
    white-space: nowrap;
  }

  /* 开奖区胶囊：手机端上下两行（上：距离下期开奖： / 下：倒计时） */
  #widget .border-box-body-hd .lottys {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: normal !important;
    max-width: 100%;
    min-width: 0;
  }
  #widget .border-box-body-hd .lottys .lottys-label {
    display: block;
    text-align: center;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
  }
  #widget .border-box-body-hd .lottys .van-count-down {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.05;
  }
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.tabs button {
  flex: 1;
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: #e9e9e9;
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 600;
  cursor: pointer;
}
.tabs button .tab-name {
  line-height: 1.1;
}
.tabs button .tab-date {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 500;
  opacity: 0.92;
}
.tabs button:not(.active) .tab-date {
  color: #8a8a8a;
  opacity: 1;
}
.tabs button.active {
  background: #07c160;
  color: #fff;
}
.tabs button.tab--hidden {
  display: none !important;
}
@media (max-width: 850px) {
  .tabs {
    gap: 8px;
  }
  .tabs button {
    height: 60px;
    padding: 4px 2px 6px;
    box-sizing: border-box;
    gap: 3px;
  }
  .tabs button .tab-name {
    display: block;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tabs button .tab-date {
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }
}
.hint {
  font-size: 12px;
  color: #888;
  margin: 10px 2px 0;
}
/* 吉美凶丑：参考用户提供的竖版样式（深蓝顶栏+黄字、生肖横排、行卡黑框+黄底标签+双色结果章） */
.jmxc-open-log {
  margin-top: 12px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  background: #fff;
}
.jmxc-biaoti {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #07c160;
  text-align: center;
  box-sizing: border-box;
}
/* 顶栏左右金色装饰条 */
.jmxc-biaoti::before,
.jmxc-biaoti::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 10px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    #b8860b 0%,
    #ffd700 35%,
    #fff8dc 50%,
    #ffd700 65%,
    #8b6914 100%
  );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.jmxc-biaoti::before {
  left: 6px;
}
.jmxc-biaoti::after {
  right: 6px;
}
.jmxc-biaoti-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffeb3b;
  letter-spacing: 2px;
  line-height: 1.3;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.jmxc-host {
  display: none;
}
.jmxc-host .jmxc-host-title {
  font-weight: 700;
  color: #333;
}
.jmxc-host .jmxc-host-url {
  color: #888;
  font-size: 13px;
}
.jmxc-host .jmxc-color-red {
  color: #e53935;
  font-size: 15px;
  line-height: 1;
}
.jmxc-content {
  background: #fff;
  border-top: 0;
}
.jmxc-tip {
  padding: 10px 12px 8px;
  background: #fff;
}
.jmxc-tip:empty {
  display: none !important;
  padding: 0;
  margin: 0;
}

.sanguo-tip {
  padding: 10px 12px 8px;
  background: #fff;
}
.sanguo-tip:empty {
  display: none !important;
  padding: 0;
  margin: 0;
}
.sanguo-tip p {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #00008b;
  line-height: 1.45;
  text-align: center;
}
.sanguo-tip p:last-child {
  margin-bottom: 0;
}
.jmxc-tip-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #00008b;
  line-height: 1.45;
}
.jmxc-tip-row .jmxc-zodiac-x {
  text-align: right;
  flex: 1 1 auto;
  min-width: 0;
}
.jmxc-tip-row .jmxc-zodiac-j {
  flex: 0 1 auto;
}
/* fragment：期号、右侧「开…准」主色改为深蓝 */
.jmxc-open-log .color-1e90ff {
  color: #00008b !important;
}
/* 预测与【吉美/凶丑】高亮：专用 class，避免与 vendors 里 .bg-ffeb3b 冲突成蓝底 */
.jmxc-open-log .jmxc-hl-pred {
  background-color: #ffff00 !important;
  color: #00008b !important;
  font-weight: 800;
  padding: 0 2px;
  border-radius: 2px;
  border: 0 !important;
}
/* 兼容旧片段：若仍带 bg-ffeb3b 且无 color-red */
.jmxc-open-log .text.juzhong.waibiankuang .bg-ffeb3b:not(.color-red) {
  background-color: #ffff00 !important;
  color: #00008b !important;
  font-weight: 800;
  padding: 0 2px;
  border-radius: 2px;
}
/* 统一结果色：黄=预测正确，红=预测错误 */
.jmxc-result-chip {
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  display: inline-block;
}
.jmxc-result-good {
  background-color: #ffff00 !important;
  color: #ff0000 !important;
}
.jmxc-result-bad {
  background-color: #ff0000 !important;
  color: #ffff00 !important;
}
.jmxc-rows-inner .text.juzhong.waibiankuang .jmxc-hl-result-hit {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.jmxc-outcome-good,
.jmxc-outcome-bad {
  font-weight: 800;
}
.jmxc-outcome-good {
  color: #ff0000 !important;
}
.jmxc-outcome-bad {
  color: #ff0000 !important;
}
.jmxc-rows-inner {
  padding: 4px 8px 12px;
}
.jmxc-rows-inner .text.juzhong.waibiankuang {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 6px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid #000;
  border-radius: 5px;
  background: #fff;
  color: #00008b;
  font-weight: 700;
}
.jmxc-rows-inner .text.juzhong.waibiankuang:last-child {
  margin-bottom: 0;
}
#shujinRows .text.juzhong.waibiankuang {
  text-align: center !important;
}
.jmxc-empty,
.jmxc-err {
  text-align: center;
  padding: 14px 12px;
  font-size: 14px;
  color: #888;
  margin: 0 10px 12px;
  border: 1px dashed #ddd;
  border-radius: 6px;
  background: #fafafa;
}
.jmxc-err {
  color: #c62828;
  border-color: #ffcdd2;
  background: #fff5f5;
}
.floating-nav {
  position: fixed;
  right: 12px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.floating-nav button {
  border: 0;
  min-width: 72px;
  height: 34px;
  border-radius: 17px;
  background: #07c160;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.floating-nav button.secondary {
  background: #10b859;
}
.floating-nav button:hover {
  background: #06ad56;
}
.floating-directory {
  position: fixed;
  right: 12px;
  bottom: 98px;
  width: min(360px, calc(100vw - 24px));
  max-height: 56vh;
  overflow-y: auto;
  z-index: 9998;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  padding: 8px;
  display: none;
}
.floating-directory.show {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.floating-directory .dir-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin: 2px 2px 0;
  grid-column: 1 / -1;
}
.floating-directory .dir-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #07c160;
  color: #fff;
  padding: 8px 6px;
  margin-bottom: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
  cursor: pointer;
}
.floating-directory .dir-item:hover {
  background: #06ad56;
}
.floating-directory .dir-item:last-child {
  margin-bottom: 0;
}
.floating-directory .dir-empty {
  font-size: 12px;
  color: #888;
  padding: 8px 4px;
  grid-column: 1 / -1;
}
