/* 自选盯盘页 */

.wl-rule-hint {
  font-size: 12px;
  color: var(--txt2, #9aa0aa);
  margin: -4px 0 12px;
}

/* ── 未登录挡板：让人先看到规则/示例，再决定要不要登录 ──────────── */
.wl-gate-example { margin-top: 18px; }
.wl-gate-example-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--txt2, #9aa0aa);
  margin-bottom: 8px;
}
.wl-alert-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.wl-alert-demo-tag {
  flex: none;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  padding: 3px 8px;
}
.wl-alert-demo-tag.buy  { color: #e05252; border: 1px solid #e05252; }
.wl-alert-demo-tag.sell { color: #2fa87d; border: 1px solid #2fa87d; }
.wl-alert-demo-code { color: var(--txt2, #9aa0aa); font-size: 12px; margin-left: 4px; }
.wl-alert-demo-rule { color: var(--txt2, #9aa0aa); font-size: 12px; }
.wl-alert-demo-date {
  flex: none; margin-left: auto;
  color: var(--txt2, #9aa0aa); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.wl-gate-strat {
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #333);
  font-size: 13px;
}
.wl-gate-strat:last-child { border-bottom: none; }
.wl-gate-strat b { margin-right: 8px; }
.wl-gate-strat span { color: var(--txt2, #9aa0aa); font-size: 12px; }
.wl-gate-login-btn {
  margin-top: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  border: none;
  border-radius: 8px;
  background: #5b8def;
  color: #fff;
  font-size: 14px;
  padding: 10px 24px;
  min-height: 44px;   /* 未登录时这是本页唯一的行动按钮，原先 40px */
  cursor: pointer;
}

/* ── 信号提醒 ─────────────────────────────────────────────── */
.wl-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border, #333);
}
.wl-alert.unread { background: rgba(91, 141, 239, .07); }
.wl-alert-sig {
  flex: none;
  width: 40px;
  text-align: center;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 0;
  font-size: 13px;
}
.wl-buy  { color: #e05252; border: 1px solid #e05252; }
.wl-sell { color: #2fa87d; border: 1px solid #2fa87d; }
.wl-alert-main { flex: 1; min-width: 0; }
.wl-alert-name { font-size: 14px; }
.wl-alert-meta { font-size: 12px; color: var(--txt2, #9aa0aa); }
.wl-alert-date { flex: none; font-size: 12px; color: var(--txt2, #9aa0aa); font-variant-numeric: tabular-nums; }

.wl-readbtn, .wl-savebtn, .wl-addbtn {
  border: none;
  border-radius: 8px;
  background: #5b8def;
  color: #fff;
  cursor: pointer;
}
.wl-readbtn { font-size: 12px; padding: 4px 12px; float: right; }
.wl-savebtn { font-size: 14px; padding: 9px 20px; }
.wl-addbtn  { font-size: 14px; padding: 0 18px; height: 38px; }

/* 付费墙 */
.wl-paywall {
  text-align: center;
  padding: 28px 20px;
  border: 1px dashed var(--border, #3a3f4b);
  border-radius: 12px;
  background: rgba(91, 141, 239, .05);
}
.wl-paywall p { font-size: 13px; color: var(--txt2, #9aa0aa); margin: 0 0 14px; }
.wl-paywall-btn {
  border: none; border-radius: 8px; background: #5b8def; color: #fff;
  font-size: 14px; padding: 10px 24px; cursor: pointer;
}

/* ── 自选股 ───────────────────────────────────────────────── */
.wl-add { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.wl-add input {
  width: 240px; max-width: 60vw; height: 38px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--border, #333);
  background: var(--bg, #12151b); color: var(--txt, #e6e6e6); font-size: 14px;
}
.wl-add input:focus { outline: none; border-color: #5b8def; }
.wl-add-msg, .wl-save-msg { font-size: 12px; color: #e0684d; }
.wl-add-msg.ok, .wl-save-msg.ok { color: #2fa87d; }

/* 自选股从 chip 换成行情表后 .wl-chip 容器没人用了,只剩这个删除按钮 ——
   它现在是 <button>,要把浏览器默认的边框/底色/内边距清掉 */
.wl-chip-x {
  cursor: pointer;
  color: var(--txt2, #9aa0aa);
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  border: none;
  background: none;
  border-radius: 6px;
}
.wl-chip-x:hover { color: #e0684d; background: var(--bg2, #f0f1f3); }

/* ── 盯盘策略 ─────────────────────────────────────────────── */
.wl-strats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.wl-strat {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--border, #333); border-radius: 8px; cursor: pointer; font-size: 13px;
}
.wl-strat input { margin: 0; }
.wl-strat.on { border-color: #5b8def; }
.wl-save-row { margin-top: 14px; display: flex; align-items: center; gap: 12px; }

/* ── 邮件通知开关 ─────────────────────────────────────────── */
/* 每项一行(不做成盯盘策略那种网格):这三项各自的说明比标题长得多,
   挤成两列会把说明压成两三行,读起来比开关本身还费劲。 */
.wl-notify-list { display: flex; flex-direction: column; gap: 10px; }
.wl-notify-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--border, #333); border-radius: 8px;
}
.wl-notify-item:hover { border-color: #5b8def; }
.wl-notify-item input { margin: 3px 0 0; flex: none; }
.wl-notify-text { display: flex; flex-direction: column; gap: 3px; }
.wl-notify-text b { font-size: 13px; color: var(--txt, #e6e6e6); font-weight: 600; }
.wl-notify-text span { font-size: 12px; color: var(--txt2, #9aa0aa); line-height: 1.7; }
.wl-notify-foot { margin-top: 12px; font-size: 12px; color: var(--txt2, #9aa0aa); }
.wl-notify-msg { font-size: 12px; color: #e0684d; margin-left: 8px; font-weight: 400; }
.wl-notify-msg.ok { color: #2fa87d; }


/* 登录闸上的免费名额提示。只在还有名额时由 JS 填内容并显示 —— 发完就消失,
   挂一个"已抢光"在这儿只会让人转身就走。 */
.wl-gate-offer {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #EF9F27;
  border-radius: 8px;
  background: rgba(239, 159, 39, .08);
  font-size: 13px;
  line-height: 1.8;
  color: var(--txt, #24292f);
}
.wl-gate-offer b { color: #b06d00; }


/* ── 自选股行情表 ────────────────────────────────────────────────────────
   替掉原来那排只有名字和代码的灰 chip。信号一天只出一次、还得等到 17:20,
   中间十几个小时这一页得有东西可看。 */
.wl-table-wrap { overflow-x: auto; }
.wl-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.wl-table th {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--txt2, #8a929c);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--border, #eaeef2);
  white-space: nowrap;
}
.wl-table th:first-child { text-align: left; }
.wl-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border, #f0f1f3);
  white-space: nowrap;
}
.wl-table tbody tr:hover { background: var(--bg2, #f6f8fa); }

.wl-td-name { display: flex; align-items: baseline; gap: 8px; }
.wl-name-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt, #24292f);
  text-decoration: none;
}
.wl-name-link:hover { color: var(--accent, #0969da); }
.wl-td-code { font-size: 12px; color: var(--txt2, #8a929c); }
.wl-susp {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg2, #f0f1f3);
  color: var(--txt2, #8a929c);
}

.wl-td-num { text-align: right; font-size: 14px; font-weight: 600; }
.wl-td-sub { font-weight: 400; color: var(--txt2, #8a929c); font-size: 13px; }
/* A 股口径:涨红跌绿 */
.wl-up { color: #cf222e; }
.wl-down { color: #1a7f37; }
.wl-flat { color: var(--txt, #24292f); }

.wl-td-op { text-align: right; white-space: nowrap; }
.wl-op-link {
  font-size: 12px;
  color: var(--txt2, #8a929c);
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 6px;
  margin-right: 6px;
}
.wl-op-link:hover { color: var(--accent, #0969da); border-color: var(--accent, #0969da); }

/* ── 盘中刷新指示 ────────────────────────────────────────────────────────
   只在"行情日期=今天且在交易时段"时出现。收盘后这张表不再变,还闪着
   会让人以为数字在动。动效对 prefers-reduced-motion 关掉。 */
.wl-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 400;
  color: var(--txt2, #8a929c);
}
.wl-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cf222e;
  animation: wl-live-pulse 2s ease-in-out infinite;
}
@keyframes wl-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.82); }
}
@media (prefers-reduced-motion: reduce) {
  .wl-live i { animation: none; }
}
.wl-quote-time {
  font-size: 12px;
  font-weight: 400;
  color: var(--txt2, #8a929c);
  font-variant-numeric: tabular-nums;
}

/* 窄屏:振幅和成交额是"锦上添花"的两列,先让位给价格和涨跌幅 */
@media (max-width: 560px) {
  .wl-table th:nth-child(4), .wl-table td:nth-child(4),
  .wl-table th:nth-child(5), .wl-table td:nth-child(5) { display: none; }
}
