/* ========================================================================
   跨平台带单策略 - 卡片样式
   设计基调：
     - 与现有作者中心暗黑交易终端风格一致
     - 引入电青色 (#00D4FF) 作为「跨平台桥接」的视觉标识，与主绿 (#02B977) 形成双色生态
     - 卡片头部带渐变发光描边，弱化的网格背景增强终端感
     - 收益曲线区域采用渐变填充 + 中轴零线，代替原始单一折线
     - 自适应：≥1280px 三列；≥860px 两列；移动端单列堆叠
   ======================================================================== */

:root {
  --cp-accent: #00D4FF;
  --cp-accent-soft: rgba(0, 212, 255, 0.14);
  --cp-accent-edge: rgba(0, 212, 255, 0.32);
  --cp-up: #34d399;
  --cp-down: #f87171;
  --cp-warn: #fbbf24;
  --cp-trade: #60a5fa;
  --cp-winrate: #67e8f9;
  --cp-card-bg: linear-gradient(180deg, rgba(20, 27, 42, 0.96), rgba(11, 16, 27, 0.98));
  --cp-card-border: rgba(255, 255, 255, 0.08);
  --cp-text-strong: #f8fbff;
  --cp-text-soft: #94a3b8;
  --cp-text-muted: #64748b;
}

/* ===== 区域标题 ===== */
.cp-section {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.cp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 4px 14px;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.18);
  position: relative;
}

.cp-section-head::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), transparent);
  opacity: 0.6;
}

.cp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cp-accent);
  margin-bottom: 8px;
}
.cp-section-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--cp-accent);
  opacity: 0.7;
}

.cp-section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cp-text-strong);
  display: flex;
  align-items: center;
  gap: 12px;
}

.cp-section-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0b1020;
  background: linear-gradient(135deg, var(--cp-accent), #5af2c1);
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(0, 212, 255, 0.32);
}

.cp-section-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cp-text-soft);
  max-width: 640px;
}

.cp-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cp-create-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #04162a;
  background: linear-gradient(135deg, var(--cp-accent), #44ffd2);
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 212, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cp-create-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 212, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ===== 卡片网格 ===== */
.cp-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 340px));
  gap: 20px;
  align-content: start;
}

/* ===== 单张卡片 ===== */
.cp-card {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid var(--cp-card-border);
  border-radius: 20px;
  background: var(--cp-card-bg);
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  isolation: isolate;
}
.cp-card::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0), rgba(0, 212, 255, 0.6), rgba(0, 212, 255, 0));
  opacity: 0.7;
  z-index: 1;
}
.cp-card-glow {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(0, 212, 255, 0.12), transparent 55%),
              radial-gradient(120% 80% at 100% 100%, rgba(2, 185, 119, 0.08), transparent 55%);
  opacity: 0.7;
  z-index: 0;
}
.cp-card:hover {
  border-color: var(--cp-accent-edge);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(0, 212, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cp-card > * { position: relative; z-index: 1; }

/* 头部 */
.cp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
}
.cp-card-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.cp-card-head-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.cp-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cp-accent), #02B977);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.14);
  flex-shrink: 0;
}
.cp-card-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cp-text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-card-author {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  line-height: 1;
  vertical-align: middle;
}

.cp-card-author-avatar {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  flex: 0 0 22px !important;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.cp-card-author .cp-card-name {
  display: block;
  min-width: 0;
  max-width: 160px;
  line-height: 1.2;
}

.cp-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.cp-status.is-active { color: #8af0c4; background: rgba(2, 185, 119, 0.12); border-color: rgba(2, 185, 119, 0.22); }
.cp-status.is-inactive { color: #cbd5e1; background: rgba(71, 85, 105, 0.22); border-color: rgba(148, 163, 184, 0.18); }
.cp-status.is-draft { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.22); }
.cp-status.is-default { color: #cbd5e1; background: rgba(71, 85, 105, 0.18); }

/* 元信息行 */
.cp-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 4px;
  font-size: 11.5px;
  color: var(--cp-text-soft);
}
.cp-meta-spacer { flex: 1; }
.cp-meta-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.12);
}
.cp-meta-text {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10.5px;
  font-weight: 700;
}

.cp-exchange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.cp-exchange.is-binance { background: rgba(243, 186, 47, 0.14); color: #F3BA2F; border-color: rgba(243, 186, 47, 0.24); }
.cp-exchange.is-okx { background: rgba(255, 255, 255, 0.06); color: #ffffff; border-color: rgba(255, 255, 255, 0.18); }
.cp-exchange.is-bitget { background: rgba(33, 155, 93, 0.14); color: #4ade80; border-color: rgba(33, 155, 93, 0.28); }
.cp-exchange.is-gateio { background: rgba(0, 169, 227, 0.14); color: #38bdf8; border-color: rgba(0, 169, 227, 0.28); }
.cp-exchange.is-default { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.22); }

.cp-yield-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
}
.cp-yield-pill.is-positive { color: var(--cp-up); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); }
.cp-yield-pill.is-negative { color: var(--cp-down); background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.28); }
.cp-yield-arrow { font-size: 9px; }

/* 描述 */
.cp-card-desc {
  margin: 8px 18px 12px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #c7d3e1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 42px;
}
.cp-curve-block-label {
  margin: 0 18px 8px;
  color: rgba(165, 243, 252, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* 收益曲线 */
.cp-curve {
  position: relative;
  height: 84px;
  margin: 0 18px 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.1);
  background: linear-gradient(180deg, rgba(8, 13, 22, 0.95), rgba(15, 22, 36, 0.92));
}
.cp-curve.is-flat-display::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 58%;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.92), rgba(45, 212, 191, 0.98));
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.18),
    0 0 20px rgba(103, 232, 249, 0.42),
    0 0 36px rgba(45, 212, 191, 0.22);
  pointer-events: none;
  z-index: 1;
}
.cp-curve.is-flat-display {
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.95), rgba(15, 22, 36, 0.92)),
    linear-gradient(90deg, rgba(34, 211, 238, 0.92), rgba(45, 212, 191, 0.98)) center 58% / calc(100% - 36px) 8px no-repeat;
}
.cp-curve-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 21px, 32px 100%;
  opacity: 0.5;
  pointer-events: none;
}
.cp-curve-basic {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px 12px 12px;
}
.cp-curve-basic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cp-curve-basic-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.28);
  color: #a5f3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cp-curve-basic-text {
  color: rgba(165, 243, 252, 0.88);
  font-size: 11px;
  font-weight: 700;
}
.cp-curve-basic-track {
  position: relative;
  flex: 1;
  min-height: 46px;
  margin-top: 8px;
}
.cp-curve-basic-track::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.88), rgba(45, 212, 191, 0.96));
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.18),
    0 0 18px rgba(103, 232, 249, 0.4),
    0 0 30px rgba(45, 212, 191, 0.2);
}
.cp-curve-basic-track.is-pending::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.48), rgba(94, 234, 212, 0.62));
}
.cp-curve-basic-start,
.cp-curve-basic-end {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #a5f3fc;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.14), 0 0 14px rgba(103, 232, 249, 0.55);
}
.cp-curve-basic-start { left: 10px; }
.cp-curve-basic-end { right: 10px; }
.cp-curve-flat-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 10px 12px 12px;
}
.cp-curve.is-flat-display {
  display: flex;
  flex-direction: column;
}
.cp-curve-flat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cp-curve-flat-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.28);
  color: #a5f3fc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cp-curve-flat-text {
  color: rgba(165, 243, 252, 0.88);
  font-size: 11px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(103, 232, 249, 0.18);
}
.cp-curve-flat-track {
  position: relative;
  flex: 1;
  min-height: 46px;
  margin-top: 8px;
}
.cp-curve-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--cp-up);
}
.cp-curve-svg.is-up { color: var(--cp-up); }
.cp-curve-svg.is-down { color: var(--cp-down); }
.cp-curve-svg.is-flat { color: #67e8f9; }
.cp-curve-zero {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.cp-curve-line {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
}
.cp-curve-flat-track-line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.85), rgba(45, 212, 191, 0.96));
  box-shadow:
    0 0 0 1px rgba(103, 232, 249, 0.18),
    0 0 18px rgba(103, 232, 249, 0.4),
    0 0 30px rgba(45, 212, 191, 0.2);
}
.cp-curve-flat-start,
.cp-curve-flat-end {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #a5f3fc;
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.14), 0 0 14px rgba(103, 232, 249, 0.55);
}
.cp-curve-flat-start {
  left: 10px;
}
.cp-curve-flat-end {
  right: 10px;
}
.cp-curve-area { opacity: 0.85; }
.cp-curve-empty,
.cp-curve-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  color: var(--cp-text-muted);
  letter-spacing: 0.04em;
}
.cp-curve-loading::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--cp-accent);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.55);
  animation: cpPulse 1.4s ease-out infinite;
}

@keyframes cpPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5); transform: scale(1); }
  70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); transform: scale(1); }
}

/* 指标行 */
.cp-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.005));
}
.cp-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 4px;
  position: relative;
  min-width: 0;
}
.cp-metric::after {
  content: '';
  position: absolute;
  right: 0;
  top: 26%;
  width: 1px;
  height: 48%;
  background: rgba(255, 255, 255, 0.05);
}
.cp-metric:last-child::after { display: none; }
.cp-metric-label {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.3;
  color: #8fa3b7;
  letter-spacing: 0.02em;
  order: 2;
}
.cp-metric-value {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  order: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-metric-value small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--cp-text-soft);
  margin-left: 1px;
}
.cp-metric-value.is-positive { color: var(--cp-up); }
.cp-metric-value.is-negative { color: var(--cp-down); }
.cp-metric-value.is-drawdown { color: var(--cp-warn); }
.cp-metric-value.is-trades { color: var(--cp-trade); }
.cp-metric-value.is-winrate { color: var(--cp-winrate); }
.cp-metric-value.is-follow { color: var(--cp-text-strong); }
.cp-metrics-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: none;
}
.cp-metrics-secondary .cp-metric-value {
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

/* 操作按钮 */
.cp-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: #f8fbff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cp-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18); }
.cp-btn-primary {
  color: #8af0c4;
  border-color: rgba(2, 185, 119, 0.24);
  background: linear-gradient(180deg, rgba(2, 185, 119, 0.18), rgba(2, 185, 119, 0.08));
}
.cp-btn-primary:hover { background: linear-gradient(180deg, rgba(2, 185, 119, 0.26), rgba(2, 185, 119, 0.12)); }
.cp-btn-warning {
  color: #f8d08b;
  border-color: rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
}
.cp-btn-danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.22);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.06));
}
.cp-btn-has-tooltip {
  position: relative;
}
.cp-btn-has-tooltip::before,
.cp-btn-has-tooltip::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  transition-delay: 1s;
  z-index: 30;
}
.cp-btn-has-tooltip::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 150px;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 12, 20, 0.96);
  color: #e2e8f0;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  white-space: normal;
}
.cp-btn-has-tooltip::after {
  content: '';
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: rgba(7, 12, 20, 0.96) transparent transparent transparent;
}
.cp-btn-has-tooltip:hover::before,
.cp-btn-has-tooltip:hover::after,
.cp-btn-has-tooltip:focus-visible::before,
.cp-btn-has-tooltip:focus-visible::after {
  opacity: 1;
}
.cp-card-actions-manage {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px 12px;
}
.cp-card-actions-manage .cp-btn {
  min-height: 32px;
  padding: 0 6px;
  gap: 4px;
  border-radius: 8px;
  font-size: 11px;
}
.cp-card-actions-manage .cp-btn .iconify {
  font-size: 13px;
}

/* ===== 加载态 / 空态 ===== */
.cp-loading-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 212, 255, 0.2);
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.06), transparent 60%);
  font-size: 13px;
  color: var(--cp-text-soft);
  letter-spacing: 0.04em;
}
.cp-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--cp-accent);
  animation: cpSpin 0.9s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }

.cp-empty-state {
  grid-column: 1 / -1;
  border-radius: 22px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(2, 185, 119, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.005));
  min-height: 360px;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cp-empty-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.5), rgba(2, 185, 119, 0.1) 60%, transparent 75%);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.25), inset 0 0 30px rgba(0, 212, 255, 0.4);
}
.cp-empty-orb span {
  position: absolute;
  border-radius: 999px;
  width: 10px;
  height: 10px;
  background: var(--cp-accent);
  box-shadow: 0 0 12px var(--cp-accent);
}
.cp-empty-orb span:nth-child(1) { top: -4px; left: 50%; transform: translateX(-50%); }
.cp-empty-orb span:nth-child(2) { right: -4px; top: 50%; transform: translateY(-50%); background: #F3BA2F; box-shadow: 0 0 12px #F3BA2F; }
.cp-empty-orb span:nth-child(3) { bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--cp-up); box-shadow: 0 0 12px var(--cp-up); }
.cp-empty-orb span:nth-child(4) { left: -4px; top: 50%; transform: translateY(-50%); background: #38bdf8; box-shadow: 0 0 12px #38bdf8; }

.cp-empty-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.36em;
  font-weight: 800;
  color: var(--cp-accent);
  margin-bottom: 12px;
}
.cp-empty-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cp-text-strong);
}
.cp-empty-text {
  margin: 12px auto 24px;
  max-width: 520px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--cp-text-soft);
}
.cp-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #04162a;
  background: linear-gradient(135deg, var(--cp-accent), #44ffd2);
  border: 1px solid rgba(0, 212, 255, 0.4);
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 212, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cp-empty-cta:hover { transform: translateY(-1px); }

/* ===== 创建策略弹窗 ===== */
.cp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  z-index: 1900;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cp-modal-overlay.is-open { display: flex; }
.cp-modal-panel {
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(20, 27, 42, 0.98), rgba(11, 16, 27, 0.98));
  padding: 26px 24px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.cp-modal-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cp-accent), transparent);
  opacity: 0.7;
}
.cp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cp-modal-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cp-accent);
  font-weight: 800;
}
.cp-modal-title {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cp-text-strong);
}
.cp-modal-sub {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--cp-text-soft);
}
.cp-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cp-modal-close:hover { color: #fff; border-color: rgba(255, 255, 255, 0.18); }

.cp-form-grid { display: grid; gap: 14px; }
.cp-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #cfd9e7;
  letter-spacing: 0.01em;
}
.cp-field-input,
.cp-field-textarea,
.cp-field-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1623;
  color: #fff;
  outline: none;
  padding: 12px 14px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cp-field-input:focus,
.cp-field-textarea:focus,
.cp-field-select:focus {
  border-color: var(--cp-accent-edge);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.cp-field-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.7;
}
.cp-field-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--cp-text-muted);
}

.cp-account-empty {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.05);
  padding: 14px 14px 12px;
}
.cp-account-empty-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--cp-text-strong);
}
.cp-account-empty-text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--cp-text-soft);
}
.cp-account-empty-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.14);
  color: var(--cp-accent);
  font-weight: 800;
  font-size: 12px;
}

.cp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.cp-btn-cancel {
  min-width: 92px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cp-text-strong);
  font-weight: 700;
  cursor: pointer;
}
.cp-btn-submit {
  min-width: 132px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, var(--cp-accent), #44ffd2);
  color: #04162a;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 28px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.cp-btn-submit:hover { transform: translateY(-1px); }
.cp-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .cp-strategy-grid { grid-template-columns: 1fr; }
  .cp-card { max-width: 100%; }
  .cp-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-metric:nth-child(4)::after,
  .cp-metric:nth-child(5)::after { display: none; }
  .cp-card-actions { grid-template-columns: 1fr; }
  .cp-section-head { flex-direction: column; align-items: flex-start; }
  .cp-section-actions { width: 100%; }
  .cp-create-cta { width: 100%; }
}

/* ===== 浅色主题适配 ===== */
html[data-theme='light'] {
  --cp-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  --cp-card-border: rgba(148, 163, 184, 0.22);
  --cp-text-strong: #0f172a;
  --cp-text-soft: #64748b;
  --cp-text-muted: #94a3b8;
  --cp-accent: #0891b2;
  --cp-accent-soft: rgba(8, 145, 178, 0.1);
  --cp-accent-edge: rgba(8, 145, 178, 0.32);
}
html[data-theme='light'] .cp-card {
  box-shadow: 0 22px 56px rgba(148, 163, 184, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
html[data-theme='light'] .cp-card-head {
  border-bottom-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}
html[data-theme='light'] .cp-card-name { color: #0f172a; }
html[data-theme='light'] .cp-card-desc { color: #475569; }
html[data-theme='light'] .cp-curve {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
  border-color: rgba(8, 145, 178, 0.18);
}
html[data-theme='light'] .cp-curve-zero { stroke: rgba(71, 85, 105, 0.22); }
html[data-theme='light'] .cp-metrics {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-theme='light'] .cp-metric::after { background: rgba(148, 163, 184, 0.16); }
html[data-theme='light'] .cp-metric-label { color: #64748b; }
html[data-theme='light'] .cp-metric-value.is-follow { color: #0f172a; }
html[data-theme='light'] .cp-card-actions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.82));
}
html[data-theme='light'] .cp-btn {
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98);
}
html[data-theme='light'] .cp-btn-primary {
  color: #047857;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(236, 253, 245, 0.92));
  border-color: rgba(16, 185, 129, 0.22);
}
html[data-theme='light'] .cp-btn-warning {
  color: #b45309;
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.95), rgba(255, 251, 235, 0.92));
  border-color: rgba(245, 158, 11, 0.22);
}
html[data-theme='light'] .cp-btn-danger {
  color: #b91c1c;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.95), rgba(254, 242, 242, 0.92));
  border-color: rgba(239, 68, 68, 0.22);
}
html[data-theme='light'] .cp-modal-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.96));
  border-color: rgba(8, 145, 178, 0.22);
  box-shadow: 0 28px 80px rgba(100, 116, 139, 0.22);
}
html[data-theme='light'] .cp-modal-title { color: #0f172a; }
html[data-theme='light'] .cp-modal-sub { color: #475569; }
html[data-theme='light'] .cp-modal-close {
  background: rgba(255, 255, 255, 0.94);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.2);
}
html[data-theme='light'] .cp-field-label { color: #1e293b; }
html[data-theme='light'] .cp-field-input,
html[data-theme='light'] .cp-field-textarea,
html[data-theme='light'] .cp-field-select {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
}
html[data-theme='light'] .cp-btn-cancel {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
}
html[data-theme='light'] .cp-empty-state {
  border-color: rgba(8, 145, 178, 0.22);
  background:
    radial-gradient(circle at 30% 20%, rgba(8, 145, 178, 0.1), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.88));
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.16);
}
html[data-theme='light'] .cp-empty-title { color: #0f172a; }
html[data-theme='light'] .cp-empty-text { color: #475569; }
html[data-theme='light'] .cp-section-title { color: #0f172a; }
html[data-theme='light'] .cp-section-sub { color: #475569; }
html[data-theme='light'] .cp-loading-state {
  border-color: rgba(8, 145, 178, 0.24);
  color: #475569;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.08), transparent 60%);
}

/* ========================================================================
   跟单详情页（Follower Detail）
   - 与现有跨平台暗黑终端风格一致：电青 + 翡翠绿
   - 数据优先：tabular-nums、网格基线、克制的发光描边
   ======================================================================== */

.follower-summary {
  position: relative;
  margin-top: 8px;
  padding: 22px 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--cp-card-border);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 212, 255, 0.10), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(2, 185, 119, 0.08), transparent 55%),
    var(--cp-card-bg);
  box-shadow: 0 18px 44px rgba(3, 8, 18, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.follower-summary::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0) 80%);
  pointer-events: none;
  opacity: 0.5;
}
.follower-summary > * { position: relative; z-index: 1; }
.follower-summary-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cp-accent);
}
.follower-summary-divider {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cp-accent), transparent);
  opacity: 0.7;
}
.follower-summary-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cp-text-soft);
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  transition: color 0.18s ease;
}
.follower-summary-back:hover { color: var(--cp-accent); }
.follower-summary-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.follower-summary-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cp-text-strong);
  line-height: 1.05;
}
.follower-summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #5eead4;
}
.follower-summary-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}
.follower-summary-tag.is-paused { color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.12); }
.follower-summary-tag.is-paused::before { background: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.6); }
.follower-summary-tag.is-stopped { color: #f87171; border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.12); }
.follower-summary-tag.is-stopped::before { background: #f87171; box-shadow: 0 0 10px rgba(248, 113, 113, 0.6); }

.follower-info {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 22px;
}
.follower-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(0, 212, 255, 0.18);
}
.follower-info-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cp-text-muted);
  font-weight: 700;
}
.follower-info-value {
  font-size: 15px;
  color: var(--cp-text-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* ========== 指标卡片网格 ========== */
.follower-metrics-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) { .follower-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .follower-metrics-grid { grid-template-columns: 1fr; } }

.metric-card {
  position: relative;
  padding: 18px 20px 16px;
  border-radius: 16px;
  border: 1px solid var(--cp-card-border);
  background: var(--cp-card-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.metric-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(0, 212, 255, 0.10), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 18px 38px rgba(3, 8, 18, 0.48);
}
.metric-card--primary {
  border-color: rgba(0, 212, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 212, 255, 0.08), rgba(2, 185, 119, 0.04)),
    var(--cp-card-bg);
  box-shadow: 0 14px 36px rgba(0, 212, 255, 0.12);
}
.metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(2, 185, 119, 0.10));
  color: var(--cp-accent);
  font-size: 18px;
  margin-bottom: 6px;
  border: 1px solid rgba(0, 212, 255, 0.18);
}
.metric-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cp-text-soft);
}
.metric-value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--cp-text-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.metric-value.positive { color: #22c55e; }
.metric-value.negative { color: #ef4444; }
.metric-foot {
  font-size: 11px;
  color: var(--cp-text-muted);
  letter-spacing: 0.04em;
}

/* ========== Section heads (curve & trades) ========== */
.follower-curve-section,
.follower-trades-section {
  margin-top: 22px;
  padding: 20px 22px 22px;
  border-radius: 18px;
  border: 1px solid var(--cp-card-border);
  background: var(--cp-card-bg);
  box-shadow: 0 16px 40px rgba(3, 8, 18, 0.42);
}
.follower-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.18);
}
.follower-section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cp-accent);
  margin-bottom: 6px;
}
.follower-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--cp-text-strong);
}
.follower-section-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--cp-text-soft);
  letter-spacing: 0.04em;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.65);
}
.legend-dot--up { background: linear-gradient(135deg, #22c55e, #00D4FF); }
.follower-section-meta {
  font-size: 12px;
  color: var(--cp-text-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ========== 收益曲线 ========== */
.follower-curve-container {
  position: relative;
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.36), rgba(11, 16, 27, 0.22));
  border: 1px solid rgba(0, 212, 255, 0.10);
  overflow: hidden;
}
.follower-curve-svg {
  width: 100%;
  height: 240px;
  display: block;
}

/* ========== 交易记录表 ========== */
.trades-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.trades-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 720px;
}
.trades-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(11, 16, 27, 0.92));
  color: var(--cp-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
}
.trades-table tbody td {
  padding: 14px 16px;
  color: var(--cp-text-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.trades-table tbody tr:last-child td { border-bottom: 0; }
.trades-table tbody tr { transition: background 0.18s ease; }
.trades-table tbody tr:hover { background: rgba(0, 212, 255, 0.05); }
.trades-table .td-symbol { font-weight: 800; letter-spacing: 0.02em; }
.trades-table .td-time { color: var(--cp-text-soft); font-size: 12px; }
.trades-table .td-num { font-weight: 700; }
.trades-table .empty-row {
  text-align: center;
  color: var(--cp-text-muted);
  padding: 36px 16px;
  font-size: 13px;
}
.trades-table .positive { color: #22c55e; }
.trades-table .negative { color: #ef4444; }

.direction-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}
.direction-pill.direction-long {
  color: #5eead4;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
}
.direction-pill.direction-short {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.32);
}

/* ========== 分页 ========== */
.pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cp-text-soft);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.18s ease;
}
.page-btn:hover:not(:disabled) {
  color: var(--cp-text-strong);
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}
.page-btn.is-active {
  color: #04162a;
  background: linear-gradient(135deg, #00D4FF, #5af2c1);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 6px 18px rgba(0, 212, 255, 0.28);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn--nav { font-size: 16px; line-height: 1; }
.page-ellipsis { color: var(--cp-text-muted); padding: 0 4px; user-select: none; }

/* ========== 底部操作 ========== */
.follower-actions {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.18);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.06), rgba(248, 113, 113, 0.02));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.follower-actions .btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.18), rgba(248, 113, 113, 0.06));
  color: #fecaca;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
}
.follower-actions .btn-danger:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.7);
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.28), rgba(248, 113, 113, 0.10));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(248, 113, 113, 0.22);
}
.follower-actions .btn-danger:disabled { opacity: 0.6; cursor: progress; }
.follower-actions .btn-danger.is-loading::after {
  content: '';
  width: 12px; height: 12px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  margin-left: 4px;
  animation: cp-spin 0.7s linear infinite;
}
.follower-actions-hint {
  margin: 0;
  flex: 1 1 280px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cp-text-soft);
}
@keyframes cp-spin { to { transform: rotate(360deg); } }

/* ========== Toast (复用 plaza-toast 样式) ========== */
.plaza-toast { position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 12px; background: linear-gradient(135deg, rgba(11,16,27,0.95), rgba(20,27,42,0.95)); border: 1px solid rgba(0,212,255,0.3); color: #f8fbff; font-size: 13px; font-weight: 700; box-shadow: 0 18px 48px rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; z-index: 2200; }
.plaza-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.plaza-toast.is-error { border-color: rgba(248,113,113,0.45); color: #fecaca; }
.plaza-toast.is-success { border-color: rgba(52,211,153,0.45); color: #bbf7d0; }

/* ========== Light theme overrides ========== */
html[data-theme='light'] .follower-summary {
  background:
    radial-gradient(circle at 0% 0%, rgba(8, 145, 178, 0.10), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(2, 185, 119, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
  border-color: rgba(8, 145, 178, 0.18);
  box-shadow: 0 18px 44px rgba(100, 116, 139, 0.18);
}
html[data-theme='light'] .follower-summary-title { color: #0f172a; }
html[data-theme='light'] .follower-info-value { color: #0f172a; }
html[data-theme='light'] .follower-info-block { border-left-color: rgba(8, 145, 178, 0.24); }
html[data-theme='light'] .metric-card,
html[data-theme='light'] .follower-curve-section,
html[data-theme='light'] .follower-trades-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
  border-color: rgba(8, 145, 178, 0.16);
  box-shadow: 0 16px 40px rgba(100, 116, 139, 0.16);
}
html[data-theme='light'] .metric-card--primary {
  background:
    linear-gradient(180deg, rgba(8, 145, 178, 0.08), rgba(2, 185, 119, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
  border-color: rgba(8, 145, 178, 0.28);
}
html[data-theme='light'] .metric-value { color: #0f172a; }
html[data-theme='light'] .follower-section-title { color: #0f172a; }
html[data-theme='light'] .trades-table thead th {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  color: #475569;
  border-bottom-color: rgba(8, 145, 178, 0.2);
}
html[data-theme='light'] .trades-table tbody td { color: #0f172a; border-bottom-color: rgba(148, 163, 184, 0.18); }
html[data-theme='light'] .trades-table tbody tr:hover { background: rgba(8, 145, 178, 0.05); }
html[data-theme='light'] .trades-table-wrap { border-color: rgba(148, 163, 184, 0.22); }
html[data-theme='light'] .page-btn {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.94);
  color: #475569;
}
html[data-theme='light'] .page-btn:hover:not(:disabled) {
  color: #0f172a;
  border-color: rgba(8, 145, 178, 0.35);
  background: rgba(8, 145, 178, 0.08);
}
html[data-theme='light'] .follower-actions { background: linear-gradient(180deg, rgba(254, 226, 226, 0.6), rgba(254, 242, 242, 0.4)); border-color: rgba(248, 113, 113, 0.22); }
html[data-theme='light'] .follower-actions-hint { color: #64748b; }
html[data-theme='light'] .follower-actions .btn-danger { color: #b91c1c; background: linear-gradient(180deg, rgba(254, 226, 226, 0.95), rgba(254, 242, 242, 0.92)); }

/* ========== 风控设置区 ========== */
.risk-settings-section {
  margin: 24px 0 0;
  padding: 22px 24px 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 212, 255, 0.10), transparent 55%),
    radial-gradient(circle at 92% 100%, rgba(255, 184, 0, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(13, 18, 27, 0.95), rgba(20, 27, 42, 0.92));
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.risk-settings-section .follower-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.risk-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.risk-setting-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.risk-setting-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.78);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.risk-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.risk-input-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 184px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.32);
  background: linear-gradient(180deg, rgba(11, 16, 27, 0.92), rgba(20, 27, 42, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 212, 255, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.risk-input-group:focus-within {
  border-color: rgba(0, 212, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 3px rgba(0, 212, 255, 0.18);
}
.risk-input-group input[type="number"] {
  flex: 1 1 auto;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fbff;
  font-size: 18px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.02em;
  -moz-appearance: textfield;
}
.risk-input-group input[type="number"]::-webkit-outer-spin-button,
.risk-input-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.risk-input-group input[disabled] {
  color: rgba(148, 163, 184, 0.6);
  cursor: not-allowed;
}
.risk-unit {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.82);
}
.risk-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(2, 185, 119, 0.45);
  background: linear-gradient(180deg, rgba(2, 185, 119, 0.22), rgba(2, 185, 119, 0.08));
  color: #d4f7e8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s ease;
}
.risk-save-btn:hover:not(:disabled) {
  border-color: rgba(2, 185, 119, 0.78);
  background: linear-gradient(180deg, rgba(2, 185, 119, 0.34), rgba(2, 185, 119, 0.14));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 185, 119, 0.22);
  transform: translateY(-1px);
}
.risk-save-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.risk-save-btn.is-loading::after {
  content: '';
  width: 12px; height: 12px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  margin-left: 4px;
  animation: cp-spin 0.7s linear infinite;
}
.risk-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.78);
  max-width: 640px;
}
.risk-status { display: inline-flex; align-items: center; }
.risk-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(11, 16, 27, 0.7);
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.8);
  letter-spacing: 0.02em;
}
.risk-status-pill .iconify { font-size: 16px; }
.risk-status-pill.is-normal {
  border-color: rgba(52, 211, 153, 0.45);
  color: #bbf7d0;
  background: linear-gradient(180deg, rgba(2, 185, 119, 0.16), rgba(2, 185, 119, 0.04));
}
.risk-status-pill.is-triggered {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.20), rgba(248, 113, 113, 0.06));
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.10);
}
.risk-status-pill.is-unavailable {
  color: rgba(148, 163, 184, 0.78);
}
.risk-status-pill.is-loading {
  color: rgba(148, 163, 184, 0.78);
}
.risk-status-sep {
  width: 1px; height: 12px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 2px;
}
.risk-status-yield.positive { color: #34d399; }
.risk-status-yield.negative { color: #f87171; }

/* 风控区块 - 充足空间适配 */
@media (max-width: 640px) {
  .risk-settings-section { padding: 18px 16px; }
  .risk-input-row { flex-direction: column; align-items: stretch; }
  .risk-input-group { width: 100%; }
  .risk-save-btn { width: 100%; justify-content: center; }
}

/* ========== Light theme overrides for Risk panel ========== */
html[data-theme='light'] .risk-settings-section {
  background:
    radial-gradient(circle at 0% 0%, rgba(8, 145, 178, 0.10), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(245, 158, 11, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
  border-color: rgba(8, 145, 178, 0.18);
  box-shadow: 0 18px 44px rgba(100, 116, 139, 0.18);
}
html[data-theme='light'] .risk-setting-label { color: #475569; }
html[data-theme='light'] .risk-input-group {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(8, 145, 178, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 22px rgba(100, 116, 139, 0.12);
}
html[data-theme='light'] .risk-input-group:focus-within {
  border-color: rgba(8, 145, 178, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 3px rgba(8, 145, 178, 0.18);
}
html[data-theme='light'] .risk-input-group input[type="number"] { color: #0f172a; }
html[data-theme='light'] .risk-unit { color: #0891b2; }
html[data-theme='light'] .risk-save-btn {
  color: #047857;
  border-color: rgba(2, 185, 119, 0.4);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(240, 253, 244, 0.92));
}
html[data-theme='light'] .risk-hint { color: #64748b; }
html[data-theme='light'] .risk-status-pill {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.3);
  color: #475569;
}
html[data-theme='light'] .risk-status-pill.is-normal {
  color: #047857;
  border-color: rgba(2, 185, 119, 0.45);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(240, 253, 244, 0.85));
}
html[data-theme='light'] .risk-status-pill.is-triggered {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.5);
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.95), rgba(254, 242, 242, 0.85));
}
html[data-theme='light'] .risk-status-yield.positive { color: #15803d; }
html[data-theme='light'] .risk-status-yield.negative { color: #b91c1c; }
