/* 策略池独立站：轻量、无框架 */
.pool-wrap { padding-bottom: 40px; }
.pool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.pool-eyebrow { margin: 0 0 9px; color: #5eead4; font-size: 10px; letter-spacing: .22em; }
.pool-head h1 { margin: 0; font-size: clamp(30px, 4.5vw, 48px); letter-spacing: -.03em; font-weight: 650; color: #f0fdfa; }
.pool-sub { margin: 8px 0 0; color: var(--txt-2); font-size: 13px; }
.pool-head-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--txt-3); font-size: 11px; }
.pool-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pool-live { display: inline-flex; align-items: center; gap: 7px; color: var(--up); }
.pool-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(61,220,151,.12); }
.pool-latest { color: var(--txt-3); }
.pool-latest b { color: var(--txt-2); font-family: var(--mono); font-weight: 500; }
.pool-latest i { display: inline-block; margin-left: 5px; font-style: normal; }
.pool-latest i.is-live { color: var(--up); }
.pool-latest i.is-wait { color: var(--warn); }
.pool-latest i.is-late { color: var(--down); }
.pool-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.pool-summary > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(19,26,36,.72); }
.pool-summary span { display: block; color: var(--txt-3); font-size: 10px; }
.pool-summary b { display: block; margin: 7px 0 4px; color: #f0fdfa; font-size: 24px; letter-spacing: -.02em; }
.pool-summary b small { margin-left: 3px; color: var(--txt-3); font-size: 11px; }
.pool-summary em { color: #5eead4; font-size: 10px; font-style: normal; }
.pool-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(19,26,36,.72); }
.pool-toolbar-note { color: var(--txt-3); font-size: 10px; padding-right: 5px; }
.pool-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.pool-tabs button { border: 0; background: transparent; color: var(--txt-2); border-radius: 8px; padding: 8px 12px; font-size: 12px; cursor: pointer; }
.pool-tabs button.is-on { color: #f8fafc; background: #1f2937; box-shadow: inset 0 0 0 1px rgba(94,234,212,.25); }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.pool-card { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: linear-gradient(180deg, rgba(19,26,36,.95), rgba(14,20,29,.95)); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pool-card:hover { transform: translateY(-3px); border-color: rgba(94,234,212,.38); box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.pool-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pool-card-top h2 { margin: 0; font-size: 17px; color: #f0fdfa; }
.pool-card-top p { margin: 6px 0 0; color: var(--txt-3); font-size: 11px; }
.pool-code { flex: none; padding: 4px 7px; border-radius: 6px; background: rgba(148,163,184,.1); color: var(--txt-2); font-family: var(--mono); font-size: 9px; }
.pool-hero { display: flex; justify-content: space-between; gap: 14px; margin: 18px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pool-hero-main { min-width: 0; }
.pool-label { display: block; color: var(--txt-3); font-size: 10px; margin-bottom: 7px; }
.pool-hero-main strong, .pool-detail-main strong { display: block; color: #f0fdfa; font-size: 36px; line-height: 1; letter-spacing: -.03em; }
.pool-hero-main em, .pool-detail-main .pool-money { display: block; margin-top: 8px; color: #5eead4; font-size: 12px; font-style: normal; }
.pool-hero-main em b, .pool-detail-main .pool-money b { color: #c7f9ee; font-size: 17px; }
.pool-hero-main small, .pool-detail-main small { display: block; margin-top: 5px; color: var(--txt-3); font-size: 9px; }
.pool-hero-side { flex: none; text-align: right; color: var(--txt-3); font-size: 10px; }
.pool-hero-side b { display: block; margin: 4px 0; color: #93c5fd; font-size: 18px; }
.pool-hero-side em { display: block; color: var(--txt-3); font-style: normal; font-size: 10px; }
.pool-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.pool-facts div { padding: 9px 7px; border-radius: 8px; background: rgba(148,163,184,.06); }
.pool-facts b { display: block; color: #dbeafe; font-size: 13px; }
.pool-facts span { display: block; margin-top: 3px; color: var(--txt-3); font-size: 9px; }
.pool-card-foot { display: flex; justify-content: space-between; margin-top: 13px; color: var(--txt-3); font-size: 9px; }
.pool-card-foot span:last-child { color: #5eead4; font-size: 10px; }
.pool-branch { display: flex; gap: 6px; margin: 4px 0 10px; }
.pool-branch--overview { align-items: center; margin: -8px 0 16px; }
.pool-branch-label { color: var(--txt-3); font-size: 10px; margin-right: 3px; }
.pool-branch button, .pool-base button { border: 1px solid var(--line-2); background: transparent; color: var(--txt-2); padding: 7px 13px; border-radius: 7px; font-size: 12px; cursor: pointer; }
.pool-branch button.is-on, .pool-base button.is-on { color: #0f172a; background: #5eead4; border-color: #5eead4; font-weight: 600; }
.pool-base { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 9px 11px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(19,26,36,.68); }
.pool-base > span { color: var(--txt-3); font-size: 10px; margin-right: 2px; }
.pool-base button { padding: 5px 9px; font-size: 11px; }
.pool-base em { margin-left: auto; color: var(--txt-3); font-size: 9px; font-style: normal; }
.pool-detail-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; margin-bottom: 10px; }
.pool-detail-main, .pool-detail-current { border: 1px solid rgba(251,191,36,.2); border-radius: 14px; padding: 18px; background: linear-gradient(180deg, rgba(31,26,17,.55), rgba(14,20,29,.96)); }
.pool-detail-current { border-color: rgba(147,197,253,.2); background: linear-gradient(180deg, rgba(15,30,54,.6), rgba(14,20,29,.96)); }
.pool-detail-current strong { color: #93c5fd; }
.pool-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pool-kpis > div { padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(19,26,36,.72); }
.pool-kpis span { display: block; color: var(--txt-3); font-size: 9px; }
.pool-kpis b { display: block; margin: 6px 0 3px; color: #f0fdfa; font-size: 18px; }
.pool-kpis b.is-down { color: #fda4af; }
.pool-kpis b.is-up { color: #5eead4; }
.pool-kpis em { display: block; color: #5eead4; font-size: 8px; font-style: normal; }
.pool-panel { margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(14,20,29,.82); }
.pool-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pool-panel-head h2 { margin: 0; color: #f0fdfa; font-size: 13px; font-weight: 550; }
.pool-panel-head span { color: var(--txt-3); font-size: 9px; text-align: right; }
.pool-timeline { padding: 8px 0 0; }
.pool-tl-row { display: flex; align-items: center; gap: 7px; height: 28px; }
.pool-tl-row > span { width: 22px; color: var(--txt-3); font-family: var(--mono); font-size: 9px; text-align: right; }
.pool-tl-track { position: relative; flex: 1; height: 10px; border-radius: 99px; background: rgba(148,163,184,.08); }
.pool-tl-track i { position: absolute; top: 0; height: 10px; border-radius: 99px; background: rgba(45,212,191,.75); }
.pool-tl-track i.is-gain { background: rgba(45,212,191,.75); }
.pool-tl-track i.is-loss { background: rgba(251,113,133,.7); }
.pool-tl-track i.is-open { background: #93c5fd; box-shadow: 0 0 0 2px rgba(147,197,253,.15); }
.pool-table { max-height: 460px; overflow: auto; }
.pool-tr { display: grid; grid-template-columns: 28px 2.4fr .9fr 1.3fr .55fr; gap: 8px; align-items: center; padding: 9px 4px; border-bottom: 1px solid rgba(148,163,184,.07); font-size: 10px; color: var(--txt-2); }
.pool-th { position: sticky; top: 0; z-index: 1; background: #0e141d; color: var(--txt-3); font-size: 9px; }
.pool-tr.is-best { background: rgba(251,191,36,.04); }
.pool-tr.is-current { background: rgba(147,197,253,.05); }
.pool-rank { text-align: center; color: var(--txt-3); }
.pool-tr.is-best .pool-rank { color: #fbbf24; font-weight: 700; }
.pool-issue b { display: block; color: #cbd5e1; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.pool-issue em { display: block; margin-top: 3px; color: var(--txt-3); font-size: 8px; font-style: normal; }
.pool-strong { color: #f0fdfa; font-weight: 600; }
.pool-up { color: #5eead4; }
.pool-params { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 11px 13px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; color: var(--txt-3); font-size: 10px; }
.pool-params b { color: #cbd5e1; font-weight: 500; }
.pool-foot { margin: 14px 0 0; color: var(--txt-3); font-size: 10px; line-height: 1.8; }
.pool-empty { padding: 60px 16px; text-align: center; color: var(--txt-2); border: 1px dashed var(--line-2); border-radius: 14px; }
.pool-empty-line { padding: 20px 4px; text-align: center; color: var(--txt-3); font-size: 11px; }
.pool-error { margin: 60px auto; max-width: 460px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.pool-error b, .pool-error span { display: block; margin-bottom: 8px; }
.pool-error b { color: #fda4af; }
.pool-error span { color: var(--txt-3); font-size: 12px; }
.pool-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 100px 20px; color: var(--txt-2); }
.pool-loading b { font-weight: 500; }
.pool-loading em { color: var(--txt-3); font-size: 11px; font-style: normal; }
.pool-spinner { width: 26px; height: 26px; border: 2px solid rgba(94,234,212,.15); border-top-color: #5eead4; border-radius: 50%; animation: pool-spin .8s linear infinite; }
@keyframes pool-spin { to { transform: rotate(360deg); } }
.pool-sub-panel { max-width: 620px; margin: 0 auto; }
.pool-sub-panel label { display: block; margin-bottom: 7px; color: var(--txt-2); font-size: 12px; }
.pool-sub-row { display: flex; gap: 8px; }
.pool-sub-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: #0b1017; color: #f0fdfa; font-size: 16px; outline: none; }
.pool-sub-row input:focus { border-color: #5eead4; }
.pool-sub-row button, .pool-submit { padding: 11px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--txt-2); cursor: pointer; }
.pool-sub-quick { margin-top: 10px; }
.pool-sub-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.pool-sub-preview > div { padding: 10px; border-radius: 8px; background: rgba(148,163,184,.06); }
.pool-sub-preview span { display: block; color: var(--txt-3); font-size: 9px; }
.pool-sub-preview b { display: block; margin-top: 5px; color: #cbd5e1; font-size: 12px; }
.pool-sub-preview b.is-down { color: #fda4af; }
.pool-sub-preview b.is-up { color: #5eead4; }
.pool-mono { font-family: var(--mono); font-size: 9px !important; }
.pool-submit { width: 100%; color: #0f172a; background: #5eead4; border-color: #5eead4; font-weight: 650; }
.pool-submit:disabled { opacity: .6; }
.pool-success { text-align: center; padding: 24px 10px; }
.pool-success b { display: block; color: #5eead4; font-size: 20px; }
.pool-success span { display: block; margin: 8px 0 14px; color: var(--txt-2); }
.pool-user-branches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 12px; }
.pool-user-branch { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(19,26,36,.7); }
.pool-user-branch > div { display: flex; justify-content: space-between; color: var(--txt-3); font-size: 10px; }
.pool-user-branch strong { display: block; margin: 8px 0; color: #f0fdfa; font-size: 16px; }
.pool-user-track { height: 5px; border-radius: 99px; background: rgba(148,163,184,.14); overflow: hidden; }
.pool-user-track i { display: block; height: 100%; background: linear-gradient(90deg, #2dd4bf, #60a5fa); }
.pool-bets { max-height: 440px; overflow: auto; }
.pool-bet { display: grid; grid-template-columns: 1.1fr .8fr .7fr .6fr .9fr; gap: 7px; padding: 8px 4px; border-bottom: 1px solid rgba(148,163,184,.07); color: var(--txt-2); font-size: 10px; }
.pool-bet b { text-align: right; }
.is-up { color: #5eead4; }
.is-down { color: #fda4af; }
.is-muted { color: var(--txt-3); }
@media (max-width: 760px) {
  .pool-head { flex-direction: column; align-items: flex-start; }
  .pool-head-meta, .pool-head-right { align-items: flex-start; }
  .pool-summary { grid-template-columns: repeat(2, 1fr); }
  .pool-grid { grid-template-columns: 1fr; }
  .pool-detail-hero { grid-template-columns: 1fr; }
  .pool-facts { grid-template-columns: repeat(2, 1fr); }
  .pool-sub-preview { grid-template-columns: 1fr; }
  .pool-user-branches { grid-template-columns: 1fr; }
  .pool-tr { grid-template-columns: 26px 2fr .8fr 1fr; }
  .pool-tr span:nth-child(5) { display: none; }
  .pool-base em { width: 100%; margin-left: 0; }
  .pool-panel-head { flex-direction: column; gap: 3px; }
  .pool-panel-head span { text-align: left; }
}

/* ── 高级 loading：全屏毛玻璃 / 数据版块局部 loading ── */
.pool-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 18, .48);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.pool-glass {
  position: relative;
  width: min(360px, 88vw);
  padding: 30px 26px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(145deg, rgba(22, 32, 48, .82), rgba(8, 14, 24, .86));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.pool-glass::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 50% 0%, rgba(94, 234, 212, .16), transparent 55%);
  pointer-events: none;
}
.pool-glass b { display: block; margin-top: 16px; color: #f0fdfa; font-size: 15px; font-weight: 550; letter-spacing: .02em; }
.pool-glass em { display: block; margin-top: 6px; color: var(--txt-3); font-size: 11px; font-style: normal; }
.pool-glass-line { display: block; height: 2px; margin-top: 22px; border-radius: 99px; background: linear-gradient(90deg, transparent, #5eead4, transparent); animation: pool-line 1.4s ease-in-out infinite; }
@keyframes pool-line { 0%, 100% { transform: scaleX(.35); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }
.pool-ring {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(94, 234, 212, .04), rgba(94, 234, 212, .95));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  animation: pool-ring 1s linear infinite;
}
.pool-ring--sm { width: 28px; height: 28px; }
@keyframes pool-ring { to { transform: rotate(360deg); } }

.pool-data { position: relative; }
.pool-data.is-loading > :not(.pool-section-veil) {
  filter: blur(3px) saturate(.7);
  opacity: .38;
  pointer-events: none;
  transition: filter .2s ease, opacity .2s ease;
}
.pool-section-veil {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(7, 12, 20, .32);
  backdrop-filter: blur(9px) saturate(1.1);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  animation: pool-veil-in .18s ease-out;
}
@keyframes pool-veil-in { from { opacity: 0; } to { opacity: 1; } }
.pool-section-card {
  min-width: 190px;
  padding: 18px 22px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: linear-gradient(145deg, rgba(22, 32, 48, .9), rgba(8, 14, 24, .92));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.pool-section-card b { display: block; margin-top: 10px; color: #f0fdfa; font-size: 12px; font-weight: 500; }
.pool-section-card em { display: block; margin-top: 4px; color: var(--txt-3); font-size: 9px; font-style: normal; }

#pool-loading-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 9998;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid rgba(94, 234, 212, .18);
  background: linear-gradient(145deg, rgba(22, 32, 48, .9), rgba(8, 14, 24, .94));
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  animation: pool-toast-in .2s ease-out;
}
#pool-loading-toast > span:last-child { display: flex; flex-direction: column; gap: 3px; }
#pool-loading-toast b { color: #f0fdfa; font-size: 12px; font-weight: 550; }
#pool-loading-toast em { color: var(--txt-3); font-size: 9px; font-style: normal; }
@keyframes pool-toast-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 订阅历史：一段订阅一行，和最近注单一样的阅读节奏 */
.pool-history { display: flex; flex-direction: column; }
.pool-hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line, #1f2937);
}
.pool-hist-row:first-child { border-top: none; }
.pool-hist-row.is-live { background: rgba(91, 141, 239, 0.06); }
.pool-hist-main { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pool-hist-main b { font-family: var(--mono, monospace); font-size: 14px; }
.pool-hist-tag {
  font-size: 11px; color: #5b8def; border: 1px solid rgba(91, 141, 239, 0.45);
  border-radius: 999px; padding: 1px 8px;
}
.pool-hist-period { font-size: 11.5px; color: var(--txt-3, #5f6b7d); font-family: var(--mono, monospace); }
.pool-hist-figures { display: flex; align-items: center; gap: 14px; font-size: 12.5px; white-space: nowrap; }
.pool-hist-figures b { font-family: var(--mono, monospace); font-size: 14px; }
@media (max-width: 640px) {
  .pool-hist-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pool-hist-figures { width: 100%; justify-content: space-between; gap: 8px; }
}

/* 订阅历史：一条订阅 = 一个可折叠块，注单收在下面 */
.pool-hist-item { border-top: 1px solid var(--line, #1f2937); }
.pool-hist-row { justify-content: flex-start; }
.pool-hist-figures { margin-left: auto; }
.pool-hist-item:first-child { border-top: none; }
.pool-hist-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 0; border: none; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.pool-hist-row:hover { background: rgba(255, 255, 255, 0.02); }
.pool-hist-row.is-live { background: rgba(91, 141, 239, 0.06); }
.pool-hist-caret { color: var(--txt-3, #5f6b7d); font-size: 12px; width: 12px; flex: 0 0 12px; }
.pool-hist-bets { padding: 2px 0 12px 24px; }
.pool-hist-bets .pool-bet { border-top: 1px solid var(--line, #1f2937); }
.pool-hist-bets .pool-bet:first-child { border-top: none; }

/* 连胜段甘特图：最新在上，条内显示时长，悬停出卡片 */
.pool-tl { display: flex; flex-direction: column; gap: 2px; }
.pool-tl-row.is-current .pool-tl-idx { color: #93c5fd; }
.pool-tl-track i { display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: default; transition: filter .12s ease; }
.pool-tl-track i:hover { filter: brightness(1.25); }
.pool-tl-track i em { color: rgba(9,14,20,.82); font-size: 8px; font-style: normal; font-weight: 700; white-space: nowrap; letter-spacing: -.2px; }
.pool-tl-row { height: 30px; }
.pool-tl-tip {
  position: fixed; top: 0; left: 0; z-index: 9999; max-width: 300px;
  display: none; flex-direction: column; gap: 4px;
  padding: 9px 11px; border-radius: 9px;
  background: rgba(13,19,27,.97); border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  color: #cbd5e1; font-size: 10px; line-height: 1.5; pointer-events: none;
}
.pool-tl-tip.is-on { display: flex; }
.pool-tl-tip b { color: #f0fdfa; font-size: 11px; }
.pool-tl-tip span { color: var(--txt-2); font-family: var(--mono); font-size: 9px; }
.pool-tl-tip .is-gain { color: #5eead4; }
.pool-tl-tip .is-loss { color: #fb7185; }

/* 并行视图：资金总量 + 同时爆仓 */
.pool-parallel { border-color: rgba(147,197,253,.25); }
.pool-parallel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 12px; }
.pool-parallel-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(148,163,184,.04); }
.pool-parallel-grid strong { color: #f0fdfa; font-size: 20px; font-variant-numeric: tabular-nums; }
.pool-parallel-grid strong.is-down { color: #fb7185; }
.pool-parallel-grid em { color: var(--txt-3); font-size: 9px; font-style: normal; line-height: 1.5; }
.pool-lanes { display: flex; flex-direction: column; gap: 6px; }
.pool-lane { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 8px 12px; border-radius: 8px; background: rgba(148,163,184,.04); font-size: 10px; color: var(--txt-2); }
.pool-lane b { color: #cbd5e1; font-size: 11px; }
.pool-lane .is-down { color: #fb7185; }
@media (max-width: 560px) { .pool-parallel-grid { grid-template-columns: 1fr; } }

/* 卡片内的「连胜进度」条：相对固定 90 天中位爆仓间隔 */
.pool-risk { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px; margin: 2px 0 10px; border-radius: 9px; background: rgba(148,163,184,.05); }
.pool-risk.is-empty { flex-direction: row; justify-content: space-between; align-items: center; color: var(--txt-3); font-size: 9px; }
.pool-risk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 9px; color: var(--txt-2); }
.pool-risk-head em { color: var(--txt-3); font-style: normal; font-family: var(--mono); }
.pool-risk-track { height: 6px; border-radius: 99px; background: rgba(148,163,184,.12); overflow: hidden; }
.pool-risk-track i { display: block; height: 100%; border-radius: 99px; transition: width .3s ease; }
.pool-risk.is-cool .pool-risk-track i { background: #34d399; }
.pool-risk.is-mid  .pool-risk-track i { background: #a3e635; }
.pool-risk.is-warn .pool-risk-track i { background: #fbbf24; }
.pool-risk.is-hot  .pool-risk-track i { background: #fb7185; }
.pool-risk.is-cool .pool-risk-head span { color: #6ee7b7; }
.pool-risk.is-mid  .pool-risk-head span { color: #bef264; }
.pool-risk.is-warn .pool-risk-head span { color: #fcd34d; }
.pool-risk.is-hot  .pool-risk-head span { color: #fda4af; }

/* ─────────────────────────────────────────────────────────────
   UI polish · mobile-first
   数据元素不变，只优化层级、触控、可读性和安全区。
   ───────────────────────────────────────────────────────────── */

.pool-wrap {
  /* 提亮辅助文字：深色底上 9–10px 的小字也要能看清 */
  --txt-2: #9aa8bc;
  --txt-3: #7e8ca1;
  --pool-brand: #5eead4;
  --pool-brand-blue: #60a5fa;
  --pool-tap: 44px;
}

html { -webkit-text-size-adjust: 100%; }
@supports (min-height: 100dvh) { .page { min-height: 100dvh; } }

/* 数字统一等宽，刷新数据时不会左右跳 */
.pool-wrap b, .pool-wrap strong, .pool-wrap .pool-money,
.pool-wrap .pool-summary b, .pool-wrap .pool-facts b, .pool-wrap .pool-kpis b,
.pool-wrap .pool-hero-main strong, .pool-wrap .pool-hero-side b,
.pool-wrap .pool-detail-main strong, .pool-wrap .pool-detail-current strong,
.pool-wrap .pool-strong, .pool-wrap .pool-up, .pool-wrap .pool-rank,
.pool-wrap .pool-tl-idx, .pool-wrap .pool-latest, .pool-wrap .pool-code,
.pool-wrap .pool-params b, .pool-wrap .pool-bet {
  font-variant-numeric: tabular-nums;
}

/* 顶部返回：44px 药丸按钮 + 箭头图标 */
.pool-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pool-back {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: var(--pool-tap); padding: 0 14px 0 9px;
  border: 1px solid rgba(148,163,184,.16); border-radius: 999px;
  background: rgba(19,26,36,.72); color: var(--txt-2);
  text-decoration: none; font-size: 13px; font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .12s ease;
}
.pool-back svg { width: 18px; height: 18px; flex: none; }
.pool-back:hover { color: #f0fdfa; border-color: rgba(94,234,212,.35); background: rgba(94,234,212,.08); }
.pool-back:active { transform: scale(.97); }
.pool-brand-mini {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--txt-2); font-size: 12px; letter-spacing: .04em; white-space: nowrap;
}
.pool-brand-mini::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--pool-brand); box-shadow: 0 0 0 4px rgba(94,234,212,.12);
}

/* 总览品牌头 */
.pool-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pool-brand-mark {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 14px; color: #0f172a;
  background: linear-gradient(135deg, #5eead4, #60a5fa);
  box-shadow: 0 10px 28px rgba(45,212,191,.2), inset 0 1px 0 rgba(255,255,255,.35);
}
.pool-brand-mark svg { width: 26px; height: 26px; }
.pool-brand-text { min-width: 0; }
.pool-brand h1 {
  margin: 0; display: flex; align-items: baseline; gap: 1px;
  font-size: clamp(30px, 4.5vw, 48px); line-height: 1.05;
  letter-spacing: -.03em; color: #f0fdfa;
}
.pool-brand h1 span {
  background: linear-gradient(90deg, #5eead4, #60a5fa);
  -webkit-background-clip: text; background-clip: text;
  color: #5eead4; -webkit-text-fill-color: transparent;
}
.pool-tagline { margin: 7px 0 0; color: var(--txt-2); font-size: 13px; }

/* 统一的按压/焦点反馈 */
.pool-tabs button, .pool-branch button, .pool-base button, .pool-card,
.pool-tl-row, .pool-hist-row {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pool-tabs button, .pool-branch button, .pool-base button { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease; }
.pool-tabs button:active, .pool-branch button:active, .pool-base button:active { transform: scale(.97); }
.pool-card { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.pool-card:active { transform: translateY(0) scale(.995); }
.pool-card:focus-visible, .pool-back:focus-visible, .pool-tabs button:focus-visible,
.pool-branch button:focus-visible, .pool-base button:focus-visible,
.pool-tl-row:focus-visible, .pool-hist-row:focus-visible {
  outline: 2px solid var(--pool-brand); outline-offset: 2px;
}

/* 甘特图行是触控目标：整行可点 */
.pool-tl-row { cursor: pointer; border-radius: 10px; }
.pool-tl-row:active { background: rgba(148,163,184,.06); }
.pool-tl-tip {
  max-width: min(300px, calc(100vw - 28px));
  font-size: 11px;
}
.pool-tl-tip span { font-size: 10px; }

@media (max-width: 760px) {
  /* 刘海屏/手势条安全区；底部留白避免贴住 Home 指示条 */
  .page {
    padding-top: max(14px, env(safe-area-inset-top));
    padding-right: max(14px, env(safe-area-inset-right));
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
    padding-left: max(14px, env(safe-area-inset-left));
  }
  .pool-wrap { padding-bottom: 0; }
  #pool-loading-toast { top: max(20px, env(safe-area-inset-top)); }
  .pool-topbar { margin-bottom: 14px; }
  .pool-brand { align-items: flex-start; gap: 11px; }
  .pool-brand-mark { width: 42px; height: 42px; border-radius: 12px; }
  .pool-brand-mark svg { width: 23px; height: 23px; }
  .pool-brand h1 { font-size: 30px; }
  .pool-tagline { margin-top: 6px; font-size: 12.5px; }
  .pool-head { gap: 12px; margin-bottom: 18px; }
  .pool-head-meta { gap: 6px; font-size: 11px; line-height: 1.55; }
  .pool-head-right { width: 100%; align-items: stretch; gap: 8px; }

  /* 时间范围：5 个等宽按钮，44px 高 */
  .pool-toolbar { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; margin-bottom: 10px; }
  .pool-toolbar-note { text-align: right; padding: 0 4px 4px; font-size: 10px; }
  .pool-tabs { width: 100%; gap: 4px; }
  .pool-tabs button { flex: 1; min-height: var(--pool-tap); padding: 0 4px; font-size: 12px; }
  .pool-tabs button.is-on { background: var(--pool-brand); color: #0f172a; box-shadow: none; font-weight: 600; }

  /* 维度：大小 / 单双 / 合并 三个等宽按钮 */
  .pool-branch--overview { display: grid; grid-template-columns: auto repeat(3, 1fr); align-items: center; gap: 6px; margin: 0 0 14px; }
  .pool-branch--overview .pool-branch-label { grid-column: auto; margin: 0 2px 0 0; align-self: center; }
  .pool-branch:not(.pool-branch--overview) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 0 0 12px; }
  .pool-branch button { min-height: var(--pool-tap); padding: 0 8px; font-size: 13px; }

  /* 总览汇总：2×2，避免 4 列挤成豆腐块 */
  .pool-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
  .pool-summary > div { padding: 12px 13px; border-radius: 12px; }
  .pool-summary b { margin: 6px 0 3px; font-size: 22px; }
  .pool-summary em { font-size: 10px; line-height: 1.45; }

  /* 规则卡片：单列，最长/当前上下排 */
  .pool-grid { gap: 12px; }
  .pool-card { padding: 16px; border-radius: 16px; }
  .pool-card:hover { transform: none; }
  .pool-card-top h2 { font-size: 16px; line-height: 1.3; }
  .pool-card-top p { font-size: 11px; line-height: 1.5; }
  .pool-hero { flex-direction: column; gap: 12px; margin: 16px 0 12px; padding-bottom: 12px; }
  .pool-hero-main strong { font-size: 38px; }
  .pool-hero-main em { font-size: 12px; }
  .pool-hero-main small { font-size: 10px; line-height: 1.55; }
  .pool-hero-side {
    text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    padding: 10px 12px; border-radius: 10px; background: rgba(147,197,253,.06);
  }
  .pool-hero-side span:first-child { width: 100%; font-size: 10px; }
  .pool-hero-side b { margin: 0; font-size: 20px; }
  .pool-hero-side em { font-size: 11px; }
  .pool-risk { padding: 10px 12px; margin: 0 0 10px; }
  .pool-risk-head { font-size: 10px; line-height: 1.45; }
  .pool-risk.is-empty { font-size: 10px; }
  .pool-facts { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .pool-facts div { padding: 10px; }
  .pool-facts b { font-size: 14px; }
  .pool-facts span { font-size: 10px; }
  .pool-card-foot { margin-top: 12px; font-size: 10px; }
  .pool-card-foot span:last-child { font-size: 11px; }

  /* 首注：按钮加大，说明单独一行 */
  .pool-base { padding: 8px; gap: 6px; }
  .pool-base > span { width: 100%; }
  .pool-base button { flex: 1 1 68px; min-height: var(--pool-tap); }
  .pool-base em { width: 100%; margin: 2px 0 0; line-height: 1.5; }

  /* 详情主卡：上下排，数字不挤 */
  .pool-detail-hero { grid-template-columns: 1fr; gap: 10px; }
  .pool-detail-main, .pool-detail-current { padding: 16px; border-radius: 14px; }
  .pool-detail-main strong, .pool-detail-current strong { font-size: 40px; }
  .pool-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pool-kpis > div { padding: 11px 12px; }
  .pool-kpis > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pool-kpis b { font-size: 17px; }
  .pool-kpis em { font-size: 9px; line-height: 1.4; }
  .pool-panel { padding: 12px; }
  .pool-panel-head { gap: 5px; }
  .pool-panel-head h2 { font-size: 14px; }
  .pool-panel-head span { font-size: 10px; line-height: 1.5; }

  /* 甘特图：整行 44px 可点 */
  .pool-tl-row { height: 44px; }
  .pool-tl-track, .pool-tl-track i { height: 14px; }
  .pool-tl-track i em { font-size: 9px; }

  .pool-params { gap: 6px 14px; padding: 10px 12px; line-height: 1.6; }
  .pool-foot { font-size: 11px; line-height: 1.75; }
}

/* 连胜段明细：手机上改成卡片行，5 个字段都保留 */
@media (max-width: 760px) {
  .pool-tr > span:nth-child(5) { display: block; }
  .pool-table--segments { max-height: none; overflow: visible; }
  .pool-table--segments .pool-tr.pool-th { display: none; }
  .pool-table--segments .pool-tr {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank issue duration"
      "rank issue profit"
      "rank issue count";
    gap: 2px 10px; align-items: start;
    padding: 12px 10px; margin-bottom: 6px;
    border-bottom: 0; border-radius: 10px;
    background: rgba(148,163,184,.035);
  }
  .pool-table--segments .pool-rank { grid-area: rank; padding-top: 2px; }
  .pool-table--segments .pool-issue { grid-area: issue; min-width: 0; }
  .pool-table--segments .pool-strong { grid-area: duration; text-align: right; font-size: 13px; }
  .pool-table--segments .pool-up { grid-area: profit; text-align: right; font-size: 12px; }
  .pool-table--segments .pool-tr > span:nth-child(5) { grid-area: count; text-align: right; font-size: 10px; color: var(--txt-3); }
  .pool-table--segments .pool-strong::before,
  .pool-table--segments .pool-up::before,
  .pool-table--segments .pool-tr > span:nth-child(5)::before {
    display: block; margin-bottom: 1px;
    color: var(--txt-3); font-size: 10px; font-weight: 400;
  }
  .pool-table--segments .pool-strong::before { content: "持续"; }
  .pool-table--segments .pool-up::before { content: "盈利"; }
  .pool-table--segments .pool-tr > span:nth-child(5)::before { content: "期数"; }
  .pool-table--segments .pool-tr.is-best { background: rgba(251,191,36,.06); }
  .pool-table--segments .pool-tr.is-current { background: rgba(147,197,253,.08); }
  .pool-table--segments .pool-issue b { font-size: 11px; }
  .pool-table--segments .pool-issue em { font-size: 10px; }

  /* 订阅注单表：列多，保留表头并横向滚动，不丢字段 */
  .pool-table--bets { max-height: 420px; overflow: auto; -webkit-overflow-scrolling: touch; }
  .pool-table--bets .pool-tr { min-width: 520px; grid-template-columns: 48px 1.4fr .9fr 1fr .9fr; }
  .pool-table--bets .pool-tr.pool-th { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .pool-wrap *, .pool-wrap *::before, .pool-wrap *::after,
  #pool-tl-tip, #pool-loading-toast {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── 单线波次：信号源单元 / 今日场次 / 历史分页 ── */
.pool-head__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; color: var(--txt-3); font-size: 11px; }
.pool-head__meta .live { display: inline-flex; align-items: center; gap: 7px; color: var(--up); }
.pool-head__meta .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(61,220,151,.12); }
.pool-link { color: #5eead4; font-size: 12px; text-decoration: none; }
.pool-link:hover { text-decoration: underline; }
.pool-back { display: inline-block; margin-bottom: 10px; }
.pool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(19,26,36,.9); color: var(--txt-2); font-size: 12px; text-decoration: none; cursor: pointer; }
.pool-btn:hover { border-color: rgba(94,234,212,.4); color: #f0fdfa; }
.pool-btn--primary { background: #0f766e; border-color: #0f766e; color: #f0fdfa; }
.pool-btn.is-disabled { opacity: .35; cursor: not-allowed; }
.is-good { color: var(--up); }
.is-bad { color: var(--down); }

.src-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 12px; }
.src-legend .pool-link { margin-left: auto; }
.src-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; letter-spacing: .02em; background: rgba(148,163,184,.12); color: var(--txt-2); }
.src-badge.is-running { background: rgba(56,189,248,.16); color: #7dd3fc; }
.src-badge.is-armed { background: rgba(250,204,21,.16); color: #fcd34d; }
.src-badge.is-waiting { background: rgba(148,163,184,.14); color: #cbd5e1; }
.src-badge.is-off { background: rgba(148,163,184,.08); color: #64748b; }

.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.src-card { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-left: 3px solid rgba(148,163,184,.35); border-radius: 14px; padding: 14px 16px; background: linear-gradient(180deg, rgba(19,26,36,.95), rgba(14,20,29,.95)); color: inherit; cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.src-card:hover { transform: translateY(-2px); border-color: rgba(94,234,212,.38); }
.src-card.is-running { border-left-color: #38bdf8; }
.src-card.is-armed { border-left-color: #facc15; }
.src-card.is-waiting { border-left-color: #64748b; }
.src-card.is-off { border-left-color: #334155; opacity: .72; }
.src-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.src-card__top h3 { margin: 0; font-size: 15px; color: #f0fdfa; font-weight: 600; }
.src-card__top p { margin: 5px 0 0; color: var(--txt-3); font-size: 10px; }
.src-card__top p b { color: #5eead4; font-weight: 600; }
.src-live, .src-wait { margin: 12px 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(15,23,42,.6); }
.src-live__num { display: block; color: #f0fdfa; font-size: 17px; font-weight: 600; }
.src-live__meta { display: block; margin-top: 3px; color: var(--txt-3); font-size: 10px; }
.src-live__next { display: block; margin-top: 7px; color: #7dd3fc; font-size: 11px; }
.src-live__next b { color: #f0fdfa; }
.src-wait span { display: block; color: var(--txt-2); font-size: 12px; }
.src-wait em { display: block; margin-top: 4px; color: var(--txt-3); font-size: 10px; font-style: normal; }
.src-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--txt-3); font-size: 10px; }
.src-card__foot span:last-child { font-size: 12px; font-weight: 600; }
.src-card__last { margin-top: 6px; color: #475569; font-size: 10px; }

.pool-section { margin-top: 26px; }
.pool-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pool-section__head h2 { margin: 0; font-size: 15px; color: #f0fdfa; font-weight: 600; }
.pool-section__head h2 em { margin-left: 8px; color: var(--txt-3); font-size: 11px; font-style: normal; font-weight: 400; }

.wave-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wave-row { display: grid; grid-template-columns: 92px minmax(140px, 1.4fr) minmax(110px, 1fr) 74px 48px 76px 82px; gap: 8px; align-items: center; padding: 9px 12px; color: var(--txt-2); font-size: 11px; text-decoration: none; border-top: 1px solid rgba(148,163,184,.08); }
.wave-row:first-child { border-top: 0; }
.wave-row--head { background: rgba(19,26,36,.95); color: var(--txt-3); font-size: 10px; letter-spacing: .04em; }
.wave-row:not(.wave-row--head):hover { background: rgba(30,41,59,.6); }
.wave-num { text-align: right; font-family: var(--mono); }
.wave-when, .wave-issue { font-family: var(--mono); color: var(--txt-3); }
.wave-src i { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: rgba(94,234,212,.12); color: #5eead4; font-size: 9px; font-style: normal; }
.wave-state { display: inline-flex; justify-content: center; padding: 2px 7px; border-radius: 999px; font-size: 10px; }
.wave-state.is-target { background: rgba(61,220,151,.14); color: var(--up); }
.wave-state.is-bust { background: rgba(248,113,113,.16); color: var(--down); }
.wave-state.is-running { background: rgba(56,189,248,.16); color: #7dd3fc; }
.wave-state.is-gate { background: rgba(148,163,184,.14); color: var(--txt-2); }

.hist-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(19,26,36,.72); margin-bottom: 12px; }
.hist-filter label { display: flex; flex-direction: column; gap: 5px; font-size: 10px; color: var(--txt-3); }
.hist-filter select, .hist-filter input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(9,14,22,.9); color: #e2e8f0; font-size: 12px; min-width: 150px; }
.hist-filter__actions { display: flex; gap: 8px; margin-left: auto; }
.hist-summary { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 10px; color: var(--txt-2); font-size: 12px; }
.hist-summary__hint { margin-left: auto; color: var(--txt-3); font-size: 10px; }
.hist-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; }
.hist-pager__num { color: var(--txt-3); font-size: 11px; }

@media (max-width: 720px) {
  .src-grid { grid-template-columns: 1fr; }
  .wave-row--head { display: none; }
  .wave-row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .wave-num { text-align: left; }
  .hist-filter select, .hist-filter input { min-width: 0; width: 100%; }
  .hist-filter label { flex: 1 1 140px; }
}

/* ── 手机优先：首页 / 信号源详情 ── */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 14px; }
.home-head h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; color: #f0fdfa; }
.home-head p { margin: 4px 0 0; color: var(--txt-3); font-size: 11px; }
.home-head__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--txt-3); font-size: 10px; }
.home-head__meta .live { display: inline-flex; align-items: center; gap: 5px; color: var(--up); }
.home-head__meta .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }

.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.home-stats > div { padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(19,26,36,.72); text-align: center; }
.home-stats b { display: block; font-size: 19px; color: #f0fdfa; letter-spacing: -.02em; }
.home-stats span { display: block; margin-top: 3px; color: var(--txt-3); font-size: 10px; }

.up { color: var(--up); }
.down { color: var(--down); }

.tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(19,26,36,.72); }
.tab { flex: 1; border: 0; background: transparent; color: var(--txt-2); padding: 9px 8px; border-radius: 9px; font-size: 13px; cursor: pointer; }
.tab.is-on { background: #1f2937; color: #f0fdfa; box-shadow: inset 0 0 0 1px rgba(94,234,212,.25); }

.wlist { display: flex; flex-direction: column; gap: 8px; }
.wcard { border: 1px solid var(--line); border-radius: 12px; background: rgba(19,26,36,.8); overflow: hidden; }
.wcard.is-open { border-color: rgba(94,234,212,.35); }
.wcard__head { padding: 11px 12px; cursor: pointer; }
.wcard__main { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wcard__time { color: var(--txt-3); font-family: var(--mono); font-size: 11px; }
.wcard__src { color: var(--txt); font-size: 12px; flex: 1; text-align: right; }
.wcard__right { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; }
.wcard__pnl { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.wstate { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10px; }
.wstate.is-target { background: rgba(61,220,151,.14); color: var(--up); }
.wstate.is-bust { background: rgba(248,113,113,.16); color: var(--down); }
.wstate.is-running { background: rgba(56,189,248,.16); color: #7dd3fc; }
.wstate.is-gate { background: rgba(148,163,184,.14); color: var(--txt-2); }
.wcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(148,163,184,.1); color: var(--txt-3); font-size: 11px; }
.wcard__more { color: #5eead4; font-size: 11px; }
.wcard__body { display: none; padding: 0 12px 12px; }
.wcard.is-open .wcard__body { display: block; }
.wcard__loading { padding: 10px 0; color: var(--txt-3); font-size: 12px; text-align: center; }

.bet-list { display: flex; flex-direction: column; border-top: 1px dashed rgba(148,163,184,.16); }
.bet-row { display: grid; grid-template-columns: 62px 1fr 52px 64px 28px 62px; gap: 6px; align-items: center; padding: 7px 0; font-size: 11px; border-bottom: 1px solid rgba(148,163,184,.06); }
.bet-issue, .bet-stake, .bet-pnl { font-family: var(--mono); }
.bet-issue { color: var(--txt-3); }
.bet-dir { color: var(--txt); }
.bet-level { color: var(--txt-3); text-align: center; }
.bet-stake { color: var(--txt-2); text-align: right; }
.bet-hit { text-align: center; font-weight: 600; }
.bet-pnl { text-align: right; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chip { flex: none; border: 1px solid var(--line); background: rgba(19,26,36,.8); color: var(--txt-2); padding: 7px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.chip.is-on { background: #0f766e; border-color: #0f766e; color: #f0fdfa; }

.slist { display: flex; flex-direction: column; gap: 8px; }
.srow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(19,26,36,.8); text-decoration: none; color: inherit; }
.srow:active { background: rgba(30,41,59,.9); }
.srow__main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.srow__name { color: #f0fdfa; font-size: 13px; }
.srow__dim { padding: 1px 6px; border-radius: 5px; background: rgba(94,234,212,.12); color: #5eead4; font-size: 10px; }
.srow__hint { width: 100%; color: var(--txt-3); font-size: 11px; }
.srow__right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.srow__today { color: var(--txt-3); font-size: 10px; }
.sstate { display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 10px; }
.sstate.is-running { background: rgba(56,189,248,.16); color: #7dd3fc; }
.sstate.is-armed { background: rgba(250,204,21,.16); color: #fcd34d; }
.sstate.is-waiting { background: rgba(148,163,184,.14); color: #cbd5e1; }
.sstate.is-off { background: rgba(148,163,184,.08); color: #64748b; }

.detail-head { margin: 4px 0 12px; }
.detail-head .back { display: inline-block; color: #5eead4; font-size: 12px; text-decoration: none; margin-bottom: 8px; }
.detail-head h1 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 19px; color: #f0fdfa; letter-spacing: -.02em; }
.detail-head h1 i { padding: 2px 7px; border-radius: 6px; background: rgba(94,234,212,.14); color: #5eead4; font-size: 11px; font-style: normal; }
.detail-sub { margin: 6px 0 0; color: var(--txt-3); font-size: 11px; }

.src-overview { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(19,26,36,.95), rgba(14,20,29,.95)); margin-bottom: 14px; }
.src-status { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid rgba(148,163,184,.12); }
.src-status em { color: var(--txt-3); font-size: 11px; font-style: normal; }
.src-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; padding-top: 12px; }
.src-kpis > div { text-align: center; }
.src-kpis b { display: block; font-size: 15px; color: #f0fdfa; font-family: var(--mono); }
.src-kpis span { display: block; margin-top: 2px; color: var(--txt-3); font-size: 10px; }
.src-range { margin: 11px 0 0; color: #475569; font-size: 10px; text-align: center; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 16px 0 30px; }
.page-btn { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--line); border-radius: 9px; background: rgba(19,26,36,.9); color: var(--txt-2); font-size: 12px; text-decoration: none; }
.page-btn.is-off { opacity: .35; }
.pager__num { color: var(--txt-3); font-size: 11px; }
.empty { padding: 46px 16px; text-align: center; color: var(--txt-3); font-size: 13px; }
.more-link { display: block; margin: 14px 0 8px; text-align: center; color: #5eead4; font-size: 12px; text-decoration: none; }

@media (min-width: 720px) {
  .home-head h1 { font-size: 26px; }
  .wlist, .slist { gap: 10px; }
  .wcard__head { padding: 13px 16px; }
  .src-kpis { grid-template-columns: repeat(8, 1fr); }
  .bet-row { grid-template-columns: 80px 1fr 60px 80px 32px 80px; font-size: 12px; }
}

/* ── 我的订阅战绩 ── */
.sub-list { display: flex; flex-direction: column; gap: 14px; }
.sub-period { padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(19,26,36,.7); }
.sub-period__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sub-period__span { color: var(--txt-2); font-size: 12px; font-family: var(--mono); }
.sub-period__stat { margin: 8px 0 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(148,163,184,.12); color: var(--txt-3); font-size: 12px; }
.sub-period .wlist { gap: 6px; }
.sub-period .wcard { background: rgba(9,14,22,.6); }

/* 订阅卡片默认折叠 */
.sub-period__toggle { display: block; width: 100%; padding: 13px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.sub-period { padding: 0; overflow: hidden; }
.sub-period .sub-period__head { padding: 0; }
.sub-period__stat { margin: 8px 0 0; padding-bottom: 0; border-bottom: 0; }
.sub-period__more { display: block; margin-top: 8px; color: #5eead4; font-size: 11px; }
.sub-period.is-open .sub-period__more { color: var(--txt-3); }
.sub-period__body { display: none; padding: 0 13px 13px; }
.sub-period.is-open .sub-period__body { display: block; }
.sub-period.is-open { border-color: rgba(94,234,212,.32); }
.sub-empty { padding: 16px 0 4px; text-align: center; color: var(--txt-3); font-size: 12px; }

/* 个人战绩：盈利优先、手机优先 */
.sub-hero { margin: 0 0 16px; padding: 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(19,26,36,.95), rgba(14,20,29,.95)); text-align: center; }
.sub-hero.is-up { border-color: rgba(61,220,151,.35); }
.sub-hero.is-down { border-color: rgba(255,107,107,.3); }
.sub-hero span { display: block; color: var(--txt-3); font-size: 11px; letter-spacing: .06em; }
.sub-hero b { display: block; margin: 8px 0 6px; font-family: var(--mono); font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.sub-hero.is-up b { color: var(--up); }
.sub-hero.is-down b { color: var(--down); }
.sub-hero em { color: var(--txt-3); font-size: 11px; font-style: normal; }

.sub-period__pnl { margin: 10px 0 6px; font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.sub-period__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--txt-3); font-size: 11px; }
.sub-period__more { color: #5eead4; }
.sub-period.is-open .sub-period__more { color: var(--txt-3); }

.sub-hero__today { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(148,163,184,.12); }
.sub-hero__today span { color: var(--txt-3); font-size: 11px; }
.sub-hero__today i { font-family: var(--mono); font-size: 18px; font-weight: 700; font-style: normal; }
.sub-hero__today em { color: var(--txt-3); font-size: 11px; font-style: normal; }

.home-link { display:inline-flex; align-items:center; height:28px; padding:0 10px; border-radius:999px; border:1px solid rgba(76,141,255,.35); color:#bcd4ff; background:rgba(76,141,255,.10); font-size:12px; text-decoration:none; white-space:nowrap; }
.home-link:hover { background:rgba(76,141,255,.18); color:#fff; }
