/**
 * 浅色白底 · 大红字风格（卡片布局，内容结构与经典版一致）
 */
:root {
  --red:       #d32f2f;
  --red-light: #ef5350;
  --red-dark:  #b71c1c;
  --red-bg:    #fff5f5;
  --gold:      #fbbf24;
  --bg:        #ffffff;
  --bg-2:      #f8f9fa;
  --border:    #e5e7eb;
  --text:      #111827;
  --text-muted:#6b7280;
  --nav-h:     64px;
  /* 固定底栏：距底 8px + 栏内边距与 min-height，再加 12px 余量，避免最后一帖被遮挡 */
  --bottom-nav-reserve: calc(8px + 8px + 56px + 10px + 12px + env(safe-area-inset-bottom, 0px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h:  52px;
  --demo-h:    0px;
  /* 顶栏总高：主导航 + 底部分隔条（与 body padding-top 一致） */
  --top-stack-h: calc(var(--demo-h) + var(--header-h) + 4px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
a,
.nav-item,
.post-row,
.header-btn,
.field-input,
.draw-tab,
.draw-refresh,
.draw-hist-close,
.yixiao-close,
.btn {
  touch-action: manipulation;
}

html {
  height: 100%;
  /* iOS 11.2+ 圆角/刘海安全区域 */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  /* 页内锚点/滚动到视图时预留固定顶栏高度 */
  scroll-padding-top: var(--top-stack-h);
}

html,
body {
  height: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  /* 固定顶栏占位：白导航 + accent */
  padding-top: var(--top-stack-h);
  /* 主滚动区 .main-scroll 承担底栏留白，避免与 body 双重叠加 */
  padding-bottom: 0;
}

.site-header {
  position: fixed;
  top: var(--demo-h);
  left: 0;
  right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0 clamp(8px, 2vw, 14px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-btn {
  border: none;
  background: transparent;
  color: var(--red);
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 600;
  padding: clamp(8px, 2.5vw, 12px) clamp(6px, 1.5vw, 10px);
  cursor: pointer;
  letter-spacing: 0.04em;
  border-radius: 10px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

/* 必须晚于 .header-btn：否则 display:flex 会盖掉原生 [hidden]，未登录也会露出「退出」 */
.site-header .header-btn[hidden],
.site-header #headerCoins[hidden] {
  display: none !important;
}

.header-btn:active { background: var(--red-bg); }

.site-title {
  margin: 0;
  font-size: clamp(15px, 4.5vw, 18px);
  font-weight: 900;
  text-align: center;
  color: var(--red);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(183, 28, 28, 0.12);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-accent {
  height: 4px;
  position: fixed;
  top: calc(var(--demo-h) + var(--header-h));
  left: 0;
  right: 0;
  z-index: 140;
  background: linear-gradient(90deg, transparent, var(--red), var(--red-dark), transparent);
  opacity: 0.9;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.main-scroll {
  min-height: calc(100vh - var(--top-stack-h) - 80px - var(--safe-bottom));
  padding: clamp(16px, 4vw, 20px) clamp(12px, 3vw, 16px) calc(64px + 12px + env(safe-area-inset-bottom, 0px));
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-search-section {
  margin: 12px 14px 4px;
}

.post-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.post-search-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.post-search-input:focus {
  outline: none;
  border-color: var(--red-light);
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.12);
}

/* 首页胜率榜 */
.win-rate-board {
  margin: 14px 14px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.win-rate-board-title {
  margin: 0;
  padding: 14px 16px 10px;
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}

.win-rate-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.win-rate-row {
  display: grid;
  grid-template-columns: 36px 48px minmax(0, 1fr) 20px;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.win-rate-row:last-child {
  border-bottom: none;
}

.win-rate-row--top1 {
  background: linear-gradient(90deg, #fff8f0 0%, #fff 55%);
}

.win-rate-row--top2 {
  background: linear-gradient(90deg, #f0f7ff 0%, #fff 55%);
}

.win-rate-row--top3 {
  background: linear-gradient(90deg, #faf6f3 0%, #fff 55%);
}

.win-rate-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #666;
}

.win-rate-rank--hex {
  width: 30px;
  height: 34px;
  margin: 0 auto;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: #fff;
}

.win-rate-row--top1 .win-rate-rank--hex {
  background: linear-gradient(165deg, #ffb74d, #f57c00);
}

.win-rate-row--top2 .win-rate-rank--hex {
  background: linear-gradient(165deg, #64b5f6, #1976d2);
}

.win-rate-row--top3 .win-rate-rank--hex {
  background: linear-gradient(165deg, #bcaaa4, #8d6e63);
}

.win-rate-rank--plain {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #555;
  font-size: 12px;
}

.win-rate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0, 0, 0, 0.06);
}

.win-rate-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.win-rate-meta {
  min-width: 0;
}

.win-rate-name {
  font-size: 15px;
  font-weight: 800;
  color: #8b1538;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.win-rate-specialty {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.win-rate-stats {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.win-rate-chevron {
  color: #c4c4c4;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  justify-self: end;
}

.win-rate-loading,
.win-rate-empty {
  padding: 24px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.win-rate-row--clickable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.win-rate-row--clickable:active {
  opacity: 0.94;
}

/* 虚拟用户详情弹窗 */
.vu-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

@media (min-width: 520px) {
  .vu-detail-backdrop {
    align-items: center;
    padding: 24px;
  }
}

.vu-detail-panel {
  width: 100%;
  max-width: 480px;
  max-height: min(92dvh, 92vh, 720px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 520px) {
  .vu-detail-panel {
    border-radius: 16px;
    max-height: 85vh;
  }
}

.vu-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: clamp(12px, 3.5vw, 14px) clamp(12px, 4vw, 16px) 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.vu-detail-head-main {
  display: flex;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.vu-detail-head-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.vu-detail-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.vu-detail-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.vu-detail-meta {
  min-width: 0;
}

.vu-detail-title {
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  color: #8b1538;
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}

.vu-detail-specialty {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.vu-detail-stats {
  font-size: clamp(12px, 3.4vw, 14px);
  color: #6b7280;
  line-height: 1.5;
}

/* 下期预测订阅区 */
.vu-next-prediction {
  padding: 14px clamp(14px, 5vw, 20px) max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px dashed #d1d5db;
  background: #fff;
}

.vu-next-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
}

.vu-next-locked-icon {
  font-size: 28px;
  line-height: 1;
}

.vu-next-locked-title {
  font-size: clamp(17px, 5vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  color: #1f2937;
  text-align: center;
  padding: 0 clamp(4px, 2vw, 12px);
}

.vu-next-locked-info {
  font-size: clamp(13px, 3.6vw, 15px);
  color: #6b7280;
  text-align: center;
}

.vu-next-subscribe-btn {
  margin-top: 8px;
  padding: 12px 24px;
  min-height: 48px;
  width: 100%;
  max-width: min(320px, 100%);
  box-sizing: border-box;
  background: linear-gradient(145deg, #d97706, #b45309);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.vu-next-free {
  padding: 4px 0;
}

.vu-next-free-title,
.vu-next-pred-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vu-next-free-title {
  font-size: clamp(17px, 5.2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  color: #d97706;
  margin-bottom: 8px;
  text-align: center;
  padding: 0 clamp(4px, 2vw, 12px);
}

.vu-next-rule {
  font-size: clamp(14px, 4vw, 16px);
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.45;
  padding: 0 clamp(6px, 3vw, 14px);
}

.vu-next-engine {
  padding: 6px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.vu-next-engine img,
.vu-next-engine table {
  max-width: 100%;
  height: auto;
}

.vu-next-openline {
  font-size: clamp(12px, 3.5vw, 14px);
  color: #9ca3af;
  margin-top: 4px;
  text-align: center;
  padding: 0 clamp(8px, 3vw, 16px);
}

.vu-next-hint {
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  padding: 8px 0;
}

.vu-detail-edit-btn {
  border: none;
  background: linear-gradient(145deg, #16a34a, #15803d);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}

.vu-detail-close {
  border: none;
  background: #f3f4f6;
  color: #666;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.vu-detail-sub {
  margin: 0;
  padding: clamp(10px, 2.5vw, 12px) clamp(12px, 4vw, 16px);
  font-size: clamp(12px, 3.2vw, 13px);
  color: #6b7280;
  background: #fafafa;
  flex-shrink: 0;
  line-height: 1.55;
  word-break: break-word;
}

.vu-detail-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vu-detail-list {
  list-style: none;
  margin: 0;
  padding: 8px clamp(10px, 4vw, 16px) max(16px, env(safe-area-inset-bottom, 0px));
}

.vu-detail-row {
  padding: 12px clamp(6px, 2vw, 10px);
  border-bottom: 1px solid #f0f0f0;
  font-size: clamp(13px, 3.7vw, 15px);
}

.vu-detail-expect {
  font-weight: 800;
  color: #333;
  margin-right: 6px;
}

.vu-detail-rule {
  font-size: clamp(12px, 3.2vw, 13px);
  color: #6b7280;
  line-height: 1.45;
}

.vu-detail-line {
  margin-top: 6px;
  line-height: 1.55;
  word-break: break-word;
}

.vu-detail-line--xiaoma,
.vu-detail-line--engine {
  font-size: clamp(12px, 3.4vw, 14px);
}

.vu-detail-hint {
  display: inline;
  font-size: clamp(11px, 3vw, 12px);
  font-weight: 500;
  color: #6b7280;
  margin-right: 4px;
}

.vu-detail-hint--hit,
.vu-detail-pred-hit {
  color: #c62828;
}

.vu-detail-xz {
  font-weight: 800;
  color: #333;
  margin-right: 2px;
}

.vu-detail-zodiac {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px 4px 2px 0;
  background: #f3f4f6;
  border-radius: 6px;
  font-weight: 700;
}

.vu-detail-zodiac--hit {
  background: #fef2f2;
  color: #c62828;
}

.vu-detail-openline {
  margin-top: 6px;
  font-size: 13px;
}

.vu-detail-num--hit {
  color: #c62828;
  font-weight: 800;
}

.vu-detail-open {
  color: #c62828;
  font-weight: 700;
  margin-left: 4px;
}

.vu-detail-mark--hit {
  color: #c62828;
  font-weight: 800;
}

.vu-detail-mark--miss {
  color: #dc2626;
  font-weight: 800;
}

/* 胜率榜管理 Tab */
.vu-admin-header {
  padding: 14px 16px 8px;
}
.vu-admin-header--split {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.vu-admin-header--split .btn-primary {
  flex: 1;
  min-height: 44px;
}
.vu-admin-header--split .btn-ghost {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  align-self: center;
}

.row-inactive td {
  opacity: 0.5;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay-inner {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.modal-footer .btn {
  flex: 1;
}

.vu-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.vu-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.vu-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vu-avatar-preview span {
  font-size: 11px;
  color: #bbb;
}

/* 首页置底规则区（直接展示图片，无需点击展开） */
.home-rules-section {
  margin: 16px 14px var(--bottom-nav-reserve);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.home-rules-inner {
  padding: 10px 10px 4px;
}

.home-rules-inner img.rule-img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.post-author-col--trail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.post-row-edit {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #16a34a, #15803d);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}

.post-row-edit:active {
  transform: scale(0.96);
}

.post-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 2vw, 14px) clamp(10px, 3vw, 16px);
  align-items: center;
  padding: clamp(14px, 4vw, 18px) clamp(12px, 3vw, 16px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: clamp(12px, 3vw, 16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}

.post-author-col--side {
  flex-shrink: 0;
  text-align: center;
  align-self: center;
  justify-self: center;
}

.post-author-name {
  display: block;
  font-size: clamp(22px, 7vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    #ef4444,
    #f97316,
    #eab308,
    #22c55e,
    #06b6d4,
    #6366f1,
    #a855f7,
    #ec4899,
    #ef4444
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: post-author-rainbow 3s linear infinite, post-author-pulse 1.1s ease-in-out infinite;
}

@keyframes post-author-rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

@keyframes post-author-pulse {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.88;
    filter: brightness(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-author-name {
    animation: none;
    color: var(--red);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

.post-body-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.post-text {
  margin: 0;
  font-size: clamp(15px, 4.5vw, 19px);
  line-height: 1.45;
  color: var(--red);
  font-weight: 800;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(6px, 2vw, 10px);
}

.post-row:active {
  border-color: var(--red-light);
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.12);
  transform: scale(0.985);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3px, 1vw, 5px) clamp(8px, 2.5vw, 12px);
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  background: linear-gradient(135deg, #fde68a, var(--gold));
  border-radius: 999px;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}

/* 底部胶囊导航（手机优先，640px 以上才做圆角胶囊居中） */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 56px;
  padding: 8px 4px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

@media (min-width: 640px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(360px, calc(100vw - 32px));
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 2px;
  border-radius: 12px;
  transition: color 0.2s, background 0.2s;
}

.nav-item.active {
  color: var(--red);
  background: var(--red-bg);
}

.nav-icon {
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}

.nav-item--fab.hidden { display: none; }

/* 未登录时底部「管理」带 hidden，避免仍占 flex 宽度（部分内置浏览器会露空白） */
.nav-item[hidden] {
  display: none !important;
}

.nav-fab {
  width: 48px;
  height: 48px;
  margin-top: -28px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4), 0 0 0 2px var(--bg) inset;
}

.panel-placeholder {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin: 8px 0;
}

/* 规则页图片无缝拼接 */
.rule-img {
  display: block;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0;
}

.rule-img + .rule-img {
  margin-top: -3px;  /* 两图边缘重叠，消除白缝 */
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 301;
  transform: translate(-50%, -50%);
  width: min(
    calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)),
    340px
  );
  max-width: 100%;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 5vw, 28px) clamp(16px, 4vw, 22px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.modal-title {
  margin: 0 0 20px;
  font-size: 19px;
  text-align: center;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.04em;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input::placeholder { color: #9ca3af; }

.field-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

select.field-input {
  cursor: pointer;
}

.vu-stat-readonly {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  color: var(--text);
  background: #f1f5f9;
  border: 1px dashed var(--border);
  user-select: none;
}

.vu-form-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.vu-stats-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
}

.vu-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vu-stat-label {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
}

.vu-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
}

.btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 32px + var(--safe-bottom));
  z-index: 1100;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 12px 18px;
  background: #111827;
  color: #f9fafb;
  font-size: 14px;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* 密码输入框 + 眼睛图标容器 */
.field-icon-wrap {
  position: relative;
  display: block;
}

.field-icon-wrap .field-input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.toggle-password:hover { color: var(--red); }

/* 登录/注册切换提示 */
.auth-tip {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.auth-tip a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.auth-tip a:hover { text-decoration: underline; }

/* ─── 首页：开奖条（手机优先） ─── */
.lottery-strip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.draw-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.draw-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  background: #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.draw-tab.active {
  background: #22c55e;
  color: #fff;
}

.draw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 6px;
}

.draw-issue {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.draw-link-records {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

.draw-link-records:hover {
  text-decoration: underline;
}

.draw-refresh {
  margin-left: auto;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #eab308;
  background: linear-gradient(180deg, #fef08a, #fde047);
  color: #713f12;
  border-radius: 8px;
  cursor: pointer;
}

.draw-refresh:disabled {
  opacity: 0.75;
  cursor: wait;
}

.draw-site-tip {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}

.draw-site-tip--offline {
  color: #b45309;
  font-size: 12px;
  line-height: 1.45;
}

.draw-balls-row {
  --draw-ball-size: clamp(44px, 12vw, 58px);
  --draw-meta-gap: 5px;
  --draw-meta-h: 13px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px 4px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 4px 0 2px;
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .draw-balls-row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
}

.draw-ball-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--draw-meta-gap);
  flex: 1 1 0;
  min-width: 0;
}

.draw-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--draw-ball-size);
  height: var(--draw-ball-size);
  border-radius: 50%;
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 3px 3px 10px rgba(255, 255, 255, 0.45),
    inset -4px -6px 14px rgba(0, 0, 0, 0.38),
    0 6px 14px rgba(0, 0, 0, 0.22);
}

.draw-ball--red {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.12) 22%, transparent 42%),
    radial-gradient(circle at 50% 118%, rgba(0, 0, 0, 0.5) 0%, transparent 48%),
    linear-gradient(168deg, #fecaca 0%, #ef4444 42%, #991b1b 100%);
}

.draw-ball--green {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.12) 22%, transparent 42%),
    radial-gradient(circle at 50% 118%, rgba(0, 0, 0, 0.45) 0%, transparent 48%),
    linear-gradient(168deg, #bbf7d0 0%, #22c55e 42%, #14532d 100%);
}

.draw-ball--blue {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.12) 22%, transparent 42%),
    radial-gradient(circle at 50% 118%, rgba(0, 0, 0, 0.45) 0%, transparent 48%),
    linear-gradient(168deg, #bfdbfe 0%, #3b82f6 42%, #1e3a8a 100%);
}

.draw-ball-meta {
  font-size: clamp(10px, 2.8vw, 12px);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.draw-balls-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--draw-ball-size, 48px);
  width: 100%;
}

.draw-loading-dots {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid #e5e7eb;
  border-top-color: #22c55e;
  animation: draw-spin 0.75s linear infinite;
}

@keyframes draw-spin {
  to { transform: rotate(360deg); }
}

.draw-ball-plus {
  flex: 0 0 auto;
  align-self: flex-end;
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 800;
  line-height: 1;
  color: #1f2937;
  margin-bottom: calc(var(--draw-meta-h) + var(--draw-meta-gap) + var(--draw-ball-size) / 2 - 0.5em);
  user-select: none;
}

.draw-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.draw-next {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.draw-countdown {
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

.draw-error {
  margin: 12px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* 开奖记录弹窗（作者样式勿覆盖 [hidden]，否则默认会显示出来） */
.draw-hist-backdrop[hidden],
.draw-hist-modal[hidden] {
  display: none !important;
}

.draw-hist-backdrop {
  z-index: 310;
  background: rgba(60, 15, 15, 0.55);
  backdrop-filter: blur(6px);
}

.draw-hist-modal {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 311;
  width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  max-width: 100%;
  height: min(88dvh, calc(100vh - env(safe-area-inset-bottom, 0px) - 8px));
  min-height: 320px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #fffefb 0%, #fff5f0 40%, #fffcf8 100%);
  border-radius: 20px 20px 0 0;
  border: 2px solid rgba(212, 175, 55, 0.55);
  border-bottom: none;
  box-shadow:
    0 -8px 0 rgba(183, 28, 28, 0.08),
    0 -24px 48px rgba(0, 0, 0, 0.22);
}

.draw-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 14px;
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 50%, #b45309 160%);
  border-radius: 18px 18px 0 0;
  border-bottom: 2px solid rgba(251, 191, 36, 0.5);
}

.draw-hist-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fde047;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.draw-hist-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #fef3c7;
}

.draw-hist-close:active {
  opacity: 0.85;
}

.draw-hist-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 12px 0;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.5), transparent);
}

.draw-hist-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #d6d3d1;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #e7e5e4, #d6d3d1);
  color: #57534e;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.draw-hist-tab.active {
  background: linear-gradient(180deg, #ecfdf5, #d1fae5);
  border-color: #34d399;
  color: #065f46;
  box-shadow: 0 -2px 8px rgba(16, 185, 129, 0.2);
}

.draw-hist-tab[data-hist-tab="macau"].active {
  background: linear-gradient(180deg, #fff1f2, #ffe4e6);
  border-color: #fb7185;
  color: #9f1239;
  box-shadow: 0 -2px 8px rgba(244, 63, 94, 0.15);
}

.draw-hist-tab .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.draw-hist-tab .dot--green {
  background: #22c55e;
}

.draw-hist-tab .dot--red {
  background: var(--red);
}

.draw-hist-body {
  flex: 1;
  min-height: 0;
  position: relative;
}

.draw-hist-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 12px 14px 12px;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.6), transparent 120px);
}

.draw-hist-list {
  padding-bottom: 8px;
}

.hist-loading,
.hist-empty {
  text-align: center;
  color: #78716c;
  padding: 28px 16px;
  font-size: 14px;
  font-weight: 600;
}

.hist-loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 20px 56px;
  min-height: 200px;
  box-sizing: border-box;
}

.hist-loading-spin {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid #e7e5e4;
  border-top-color: #b91c1c;
  animation: draw-spin 0.8s linear infinite;
}

.hist-loading-text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #78716c;
}

.hist-row {
  padding: 14px 12px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(127, 29, 29, 0.06);
}

.hist-row:last-child {
  margin-bottom: 0;
}

.hist-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(185, 28, 28, 0.2);
}

.hist-row-title {
  font-size: 15px;
  font-weight: 900;
  color: #991b1b;
}

.hist-row-time {
  font-size: 12px;
  color: #78716c;
  font-variant-numeric: tabular-nums;
}

.hist-row-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: flex-start;
}

.hist-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hist-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.hist-ball--red {
  background: linear-gradient(160deg, #fca5a5, #b91c1c);
}

.hist-ball--green {
  background: linear-gradient(160deg, #86efac, #15803d);
}

.hist-ball--blue {
  background: linear-gradient(160deg, #93c5fd, #1d4ed8);
}

.hist-ball-sub {
  font-size: 11px;
  color: #57534e;
  font-weight: 700;
}

.hist-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 4px;
}

.hist-more-btn {
  background: none;
  border: none;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hist-more-btn:active {
  opacity: 0.6;
}


@media (min-width: 640px) {
  .draw-hist-modal {
    left: 50%;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw - 48px, 420px);
    border-radius: 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.55);
    height: min(80vh, 580px);
    box-shadow:
      0 0 0 2px rgba(212, 175, 55, 0.45),
      0 24px 64px rgba(0, 0, 0, 0.28);
  }
}

/* ─── 帖子详情弹窗（参考论坛帖内页：大标题、作者、紧凑期号行、购买区、底栏） ─── */
.yixiao-backdrop[hidden],
.yixiao-modal[hidden] {
  display: none !important;
}

.yixiao-backdrop {
  position: fixed;
  inset: 0;
  z-index: 315;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
}

.yixiao-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 316;
  width: min(
    calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)),
    420px
  );
  max-height: min(
    calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)),
    calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)),
    720px
  );
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.yixiao-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px max(48px, calc(44px + env(safe-area-inset-right, 0px))) 12px clamp(12px, 4vw, 16px);
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.yixiao-head--toolbar {
  justify-content: flex-end;
  gap: 14px;
}

.yixiao-winrate {
  font-size: 15px;
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
}

.yixiao-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.stub-period {
  font-size: 15px;
  margin: 0 0 10px;
  color: #111;
}

.stub-tag {
  font-size: 14px;
  color: var(--red);
  margin: 0 0 12px;
}

.stub-pred-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stub-pred-row {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stub-pred-row:last-child {
  border-bottom: none;
}

.stub-pred-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.stub-slogan {
  display: inline-block;
  padding: 2px 8px;
  font-size: 13px;
  color: #fff;
  background: #2563eb;
  border-radius: 4px;
}

.stub-play-tag {
  font-size: 12px;
  color: #6b7280;
}

.stub-line--inner {
  margin: 0 0 6px;
}

.stub-line--inner:last-child {
  margin-bottom: 0;
}

.stub-line {
  margin: 0 0 10px;
  font-size: 14px;
  color: #374151;
}

.stub-line strong {
  color: #111;
  letter-spacing: 0.02em;
}

.stub-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.yixiao-scroll {
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.post-detail-sheet {
  margin: 0;
  padding: 14px clamp(10px, 4vw, 16px) max(20px, env(safe-area-inset-bottom, 0px));
  border-left: none;
  border-right: none;
  border-top: 3px solid #22c55e;
  background: #fff;
  min-height: 120px;
}

.post-detail-hero {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  color: #111;
  line-height: 1.35;
  text-align: center;
}

.post-detail-play {
  margin: 0 0 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
}

.post-detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.post-detail-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, #e0f2fe, #bae6fd);
  border: 1px solid #7dd3fc;
  position: relative;
}

.post-detail-avatar::after {
  content: "👤";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.post-detail-author-text {
  flex: 1;
  min-width: 0;
}

.post-detail-author-line {
  margin: 0 0 4px;
  font-size: 14px;
  color: #374151;
}

.post-detail-author-line:last-child {
  margin-bottom: 0;
}

.post-detail-author-name,
.post-detail-views {
  color: var(--red);
  font-weight: 800;
}

.post-detail-rule {
  height: 0;
  margin: 10px 0 12px;
  border: none;
  border-top: 1px dashed #cbd5e1;
}

.post-detail-cur-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.post-detail-section-h {
  font-size: 13px;
  font-weight: 900;
  margin: 10px 0 6px;
  letter-spacing: 0.04em;
}

.post-detail-section-h--hit {
  color: var(--red);
}

.post-detail-section-h--miss {
  color: #6b7280;
}

.post-detail-section-h--hist {
  color: #b45309;
}

.post-detail-gap {
  height: 8px;
}

.post-detail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  line-height: 1.55;
}

.post-detail-row--locked .post-detail-lock-inline {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.post-detail-name-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #2563eb;
  border-radius: 4px;
  margin: 0 2px;
}

.post-detail-cat {
  font-weight: 800;
  color: #0ea5e9;
  margin: 0 2px;
}

.post-detail-period {
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
}

.post-detail-core {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  color: #111;
}

.post-detail-z--hit,
.post-detail-num--hit,
.post-detail-hint--hit,
.yixiao-status--win {
  color: var(--red);
}

.post-detail-sep,
.post-detail-dot {
  color: #9ca3af;
  font-weight: 700;
}

.post-detail-hint {
  display: inline;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  margin-right: 4px;
}

.post-detail-promo {
  margin: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.5;
}

.post-detail-lock {
  margin-top: 18px;
  padding: 14px 12px;
  text-align: center;
  background: #fffbeb;
  border: 2px dashed #fbbf24;
  border-radius: 10px;
}

.post-detail-lock-tip {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}

.post-detail-lock-price {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
}

.post-detail-lock-price strong {
  color: var(--red);
  font-weight: 900;
}

.post-detail-buy-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.post-detail-buy-btn:active {
  transform: scale(0.98);
}

.paywall-mask {
  position: relative;
  margin: 8px 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}
.paywall-inner {
  padding: 20px 16px;
  text-align: center;
  background: #fffbeb;
  border: 2px dashed #fbbf24;
}
.paywall-inner .post-detail-lock-tip {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}
.paywall-inner .post-detail-lock-price {
  margin: 0 0 14px;
  font-size: 14px;
  color: #374151;
}
.paywall-inner .post-detail-lock-price strong {
  color: var(--red, #ef4444);
  font-weight: 900;
}
.paywall-inner .post-detail-buy-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
.paywall-inner .post-detail-buy-btn:active {
  transform: scale(0.98);
}

.post-detail-sitebar {
  margin-top: 16px;
  padding: 10px 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 6px;
}

.post-detail-share {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
}

.post-detail-legal {
  margin: 14px 0 0;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.55;
}

.yixiao-body {
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.65;
  color: #111;
  padding: 0 clamp(4px, 2vw, 8px);
  word-break: break-word;
}

.yixiao-loading,
.yixiao-empty {
  text-align: center;
  color: #6b7280;
  padding: 20px 8px;
  font-size: 14px;
}

.yixiao-empty code {
  font-size: 12px;
  word-break: break-all;
}

.yixiao-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.yixiao-row:last-of-type {
  border-bottom: none;
}

.yixiao-current-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.yixiao-section-title {
  font-size: 13px;
  font-weight: 900;
  margin: 10px 0 4px;
  letter-spacing: 0.04em;
}

.yixiao-section-title--hit {
  color: var(--red);
}

.yixiao-section-title--miss {
  color: #6b7280;
}

.yixiao-section-title--hist {
  color: #b45309;
  margin-top: 6px;
}

.yixiao-stub-sync {
  font-size: 14px;
  margin: 0 0 6px;
  color: #374151;
}

.yixiao-stub-subline {
  font-size: 14px;
  color: var(--red);
  margin: 0 0 10px;
  font-weight: 800;
}

.yixiao-legal-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.yixiao-status--pending {
  color: #6b7280;
}

.yixiao-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  margin: 6px 0;
}

.yixiao-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yixiao-row-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}

.yixiao-period {
  font-weight: 800;
  color: #111;
}

.yixiao-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 4px;
}

.yixiao-badge--wuma {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.yixiao-play {
  font-weight: 700;
  color: #374151;
}

.yixiao-pred-zod {
  font-weight: 800;
}

.yixiao-zod {
  color: #111;
}

.yixiao-zod--hit {
  color: var(--red);
}

.yixiao-pred-num {
  font-weight: 800;
}

.yixiao-num {
  color: #111;
}

.yixiao-num--hit {
  color: var(--red);
}

.yixiao-pred-wuma {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
}

.yixiao-wuma-num {
  color: #111;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
  font-weight: 800;
}

.yixiao-wuma-num--hit {
  color: #fff;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  border-color: #b91c1c;
}

.yixiao-wuma-sep {
  color: #9ca3af;
  font-size: 12px;
}

.yixiao-open {
  font-weight: 800;
  color: var(--red);
}

.yixiao-open-zod {
  font-size: 12px;
  margin-right: 2px;
}

.yixiao-open-num {
  font-weight: 900;
}

.yixiao-status {
  font-weight: 900;
  margin-left: 2px;
}

.yixiao-status--win {
  color: var(--red);
}

.yixiao-status--lose {
  color: #111;
}

.yixiao-promo {
  margin: 12px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.5;
}

.post-row.js-open-yixiao,
.post-row.js-open-wuma,
.post-row.js-open-stub {
  cursor: pointer;
}

.post-row.js-open-yixiao .post-body-col .post-text,
.post-row.js-open-wuma .post-body-col .post-text,
.post-row.js-open-stub .post-body-col .post-text {
  text-decoration: underline;
  text-decoration-color: rgba(211, 47, 47, 0.35);
}

@media (max-width: 380px) {
  .yixiao-row {
    font-size: 13px;
  }
}

/* ── 后台管理面板 ─────────────────────────────── */
.panel-page {
  padding: clamp(16px, 4vw, 20px) clamp(12px, 4vw, 18px)
    calc(100px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
  overflow-x: hidden;
}
.panel-title {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 700;
  color: var(--red);
  margin: 0 0 16px;
}
.panel-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* 充值 */
.recharge-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.recharge-btn {
  padding: 12px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: white;
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.recharge-btn:hover { background: var(--red-bg); }

/* 记录行 */
.record-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

/* 管理后台 */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}
.admin-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.admin-users-toolbar {
  margin-bottom: 14px;
}
.admin-users-search-label {
  display: block;
  margin-bottom: 8px;
}
.admin-users-search-input {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
  box-sizing: border-box;
}
.admin-users-search-input::placeholder {
  color: var(--text-muted);
}
.admin-users-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.admin-users-empty {
  margin: 16px 0;
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px dashed var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
}
.admin-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }

.btn-sm {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-2);
  font-size: 12px;
  cursor: pointer;
  margin-right: 4px;
}
.btn-sm:hover { background: var(--border); }
/* 管理后台：小按钮上的主色不要被 .btn-sm 灰底盖住 */
.btn-sm.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.25);
}
.btn-sm.btn-primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}
.btn-danger {
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover { background: var(--red-bg); }

.text-green { color: #16a34a; font-weight: 700; }
.text-red   { color: var(--red); font-weight: 700; }
.text-gray  { color: var(--text-muted); }

/* 首页宣传轮播（管理后台可配置） */
.home-banner-wrap {
  margin: 0 12px 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}
.home-banner-viewport {
  position: relative;
  height: min(42vw, 200px);
  max-height: 220px;
}
.home-banner-slides {
  position: relative;
  height: 100%;
}
.home-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.home-banner-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.home-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-banner-slide-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.home-banner-slide-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.home-banner-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px 8px;
  background: var(--bg);
}
.home-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
}
.home-banner-dot.active {
  background: var(--red);
  transform: scale(1.15);
}

/* 管理后台 · 网站信息 */
.admin-siteinfo-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin: 18px 0 8px;
}
.admin-siteinfo-upload {
  display: inline-block;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 13px;
}
.admin-banner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-banner-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
}
.admin-banner-thumb {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.admin-banner-meta {
  flex: 1;
  min-width: 0;
}
.admin-banner-link-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}
.admin-banner-link-input {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  box-sizing: border-box;
}
.admin-banner-url {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 6px;
}
.admin-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-siteinfo-msg {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.admin-rules-textarea {
  width: 100%;
  min-height: 220px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-sizing: border-box;
  resize: vertical;
}

.rule-page {
  padding: 8px 14px var(--bottom-nav-reserve);
}
.rule-page .rule-img {
  display: block;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}
.rule-page-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
}
.rules-article {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
}
.rules-article h1,
.rules-article h2,
.rules-article h3 {
  margin: 1.1em 0 0.45em;
  font-size: 1.08em;
}
.rules-article h1:first-child,
.rules-article h2:first-child,
.rules-article h3:first-child {
  margin-top: 0;
}
.rules-article p {
  margin: 0.55em 0;
}
.rules-article ul,
.rules-article ol {
  margin: 0.5em 0;
  padding-left: 1.35em;
}
.rules-article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 10px 0;
}
.rules-article a {
  color: var(--red);
}

.post-views {
  font-size: clamp(16px, 4.5vw, 18px);
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
}

@media (max-width: 360px) {
  .post-row {
    gap: 8px 10px;
    padding: 13px 10px;
  }
  .post-author-name {
    font-size: 20px;
  }
  .post-text {
    font-size: 15px;
  }
  .post-meta {
    font-size: 12px;
  }
}

.badge--free {
  background: #16a34a;
  color: white;
}

.badge--sale {
  background: #fde047;
  color: #dc2626;
  font-weight: 800;
}

/* ── 我的面板 ── */
.my-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}

.my-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.my-user-info { flex: 1; }

.my-user-name {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
}

.my-user-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.my-user-coins {
  font-size: 14px;
  color: #92400e;
}

.my-user-coins strong {
  color: #d97706;
  font-size: 16px;
}

.my-referrer-hint {
  margin-top: 6px;
  padding: 6px 10px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  font-size: 12px;
  color: #854d0e;
}

.my-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.my-record-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.my-record-row > :first-child { flex: 1; }
.my-record-row > :nth-child(2) { text-align: right; }
.my-record-time { font-size: 11px; color: #94a3b8; white-space: nowrap; }

/* ── 管理员分销商表单 ── */
.admin-dist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-dist-form .field-input {
  min-width: 120px;
  flex: 1;
}
.dist-panel-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
}

.dist-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}

.dist-stat-card--highlight {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
}

.dist-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.dist-stat-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.dist-referral-section {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.dist-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  padding: 10px 16px 6px;
}

.dist-code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  margin: 0 16px 8px;
}

.dist-code {
  flex: 1;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #1e40af;
  font-family: monospace;
}

.dist-copy-btn {
  padding: 6px 12px !important;
  font-size: 12px !important;
  width: auto !important;
}

.dist-referral-link {
  font-size: 11px;
  color: #64748b;
  word-break: break-all;
  padding: 0 16px 8px;
  display: none;
}

.dist-withdraw-form {
  padding: 0 16px 12px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.dist-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dist-notice {
  margin: 0 16px 12px;
  padding: 8px 12px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 13px;
  color: #92400e;
}

.dist-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

/* 「我的」页分销商整块 */
.my-dist-board {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.my-dist-board-heading {
  margin: 0;
  padding: 12px 16px 4px;
  font-size: 16px;
  font-weight: 800;
  color: #b91c1c;
}
.my-dist-board-hint {
  margin: 0;
  padding: 0 16px 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.my-account-records-label {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.my-user-coins-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.35;
}

.dist-dash-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.dist-dash-error {
  margin: 0;
}

.dist-wd-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.dist-wd-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.dist-wd-status--pending {
  background: #fef3c7;
  color: #92400e;
}
.dist-wd-status--approved {
  background: #dcfce7;
  color: #166534;
}
.dist-wd-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}
.dist-wd-admin-note {
  margin-top: 6px;
  font-size: 11px;
  color: #b91c1c;
  max-width: 140px;
  margin-left: auto;
  text-align: right;
  line-height: 1.35;
}

@media (max-width: 360px) {
  .dist-panel-header {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 管理后台宽表小屏横向滑动 */
#adminContent {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
