[v-cloak]{display:none}
* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --primary: #f0b90b;
  --primary-light: #fcd535;
  --primary-dark: #d9a406;
  --success: #0ecb81;
  --warning: #f0b90b;
  --danger: #f6465d;
  --bg: #0b0e11;
  --card-bg: #1e2530;
  --card-bg2: #283040;
  --card-bg3: #333d50;
  --text: #f4f6f8;
  --text-secondary: #d0d6df;
  --text-third: #c0c8d3;
  --border: #2c3546;
  --border-light: #3a465c;
  --shadow: none;
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --skeleton: #2c3546;
  --hi: #ffffff;
  --th: #d0d6df;
  --ic-bg: rgba(240,185,11,.1);
  --ic-line: rgba(240,185,11,.18);
  --long-bg: rgba(14,203,129,.1);
  --short-bg: rgba(246,70,93,.1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  min-height: 100vh;
}

/* ===== 登录页 ===== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  padding: 20px;
}

.login-card {
  width: 390px;
  padding: 42px 36px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}

.login-card h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--primary-light);
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12.5px;
  margin-bottom: 28px;
}

/* ===== 主布局 ===== */
.app-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ===== 顶栏 ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50% + 24px);
  padding-right: calc(50vw - 50% + 24px);
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.app-header .logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0b90b, var(--primary-light));
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(240,185,11,.3);
}

.app-header .menu {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.app-header .menu button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 20px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: .15s;
  font-family: inherit;
}

.app-header .menu button:hover { color: var(--text); }

.app-header .menu button.on {
  background: var(--card-bg3);
  color: var(--primary-light);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--ic-line);
}

.app-header .fill { flex: 1; }

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.membership-badge {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.membership-badge.admin { background: rgba(240,185,11,.15); color: var(--warning-text); border: 1px solid rgba(240,185,11,.3); }
.membership-badge.monthly { background: rgba(14,203,129,.12); color: var(--success-text); border: 1px solid rgba(14,203,129,.25); }
.membership-badge.yearly { background: rgba(14,203,129,.12); color: var(--success-text); border: 1px solid rgba(14,203,129,.25); }
.membership-badge.trial { background: rgba(164,173,185,.12); color: var(--text-secondary); border: 1px solid rgba(164,173,185,.2); }

/* ===== ghost按钮 ===== */
.ghost-btn {
  background: var(--card-bg2);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12.5px;
  transition: .15s;
  font-family: inherit;
  white-space: nowrap;
}

.ghost-btn:hover {
  color: var(--primary-light);
  border-color: var(--primary);
}

.ghost-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ===== 滚动行情条 ===== */
.ticker-bar {
  overflow: hidden;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: tickerScroll 45s linear infinite;
}

.ticker-bar:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0 24px;
}

.ticker-sym { font-weight: 600; color: var(--text); }
.ticker-price { color: var(--text-secondary); }
.ticker-change { font-weight: 600; }

/* ===== 状态栏 ===== */
.status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.status-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.status-card .icon {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: var(--ic-bg);
  border: 1px solid var(--ic-line);
}

.status-card .icon.blue { color: var(--info-text); }
.status-card .icon.green { color: var(--success-text); }
.status-card .icon.red { color: var(--danger-text); }
.status-card .icon.orange { color: var(--warning-text); }
.status-card .icon.purple { color: var(--warning-text); }

.status-card .info .label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 9px;
}

.status-card .info .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--hi);
}

.status-card .info .value.profit { color: var(--success-text); }
.status-card .info .value.loss { color: var(--danger-text); }

/* ===== 连接状态 ===== */
.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online { background: var(--success); box-shadow: 0 0 6px rgba(14,203,129,.6); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 6px rgba(246,70,93,.6); }
.status-dot.pending { background: var(--warning); box-shadow: 0 0 6px rgba(240,185,11,.6); }

/* ===== 卡片 ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--hi);
}

.card-body { padding: 14px 18px; }

/* ===== 双列网格 ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ===== 表单 ===== */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: .15s;
  font-family: inherit;
}

.form-input::placeholder { color: var(--text-third); }

.form-input:focus {
  border-color: var(--primary);
}

.form-hint {
  font-size: 13px;
  color: var(--text-third);
  margin-top: 4px;
}

/* ===== 表格 ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--th);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .6px;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover { background: var(--card-bg2); }

.data-table .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.tag-buy { background: var(--long-bg); color: var(--success-text); }
.tag-sell { background: var(--short-bg); color: var(--danger-text); }
.tag-filled { background: rgba(90,169,255,.12); color: var(--info-text); }
.tag-failed { background: var(--short-bg); color: var(--danger-text); }
.tag-pending { background: var(--ic-bg); color: var(--warning-text); }
.tag-skipped { background: rgba(143,153,170,0.15); color: var(--text-third); }

/* ===== 按钮 ===== */
.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.btn-primary { background: var(--primary); color: #111; }
.btn-primary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: #111; }
.btn-success:hover { background: #0ba678; }
.btn-danger { background: rgba(246,70,93,.1); color: var(--danger-text); border: 1px solid rgba(246,70,93,.3); }
.btn-danger:hover { filter: brightness(.95); }
.btn-outline { background: var(--card-bg2); border: 1px solid var(--border-light); color: var(--text); border-radius: 7px; }
.btn-outline:hover { color: var(--primary-light); border-color: var(--primary); }

/* ===== 带单员按钮 ===== */
.trader-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.trader-btn {
  cursor: pointer;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 7px;
  border: 1px solid var(--border-light);
  background: var(--card-bg2);
  color: var(--text);
  transition: .15s;
  font-family: inherit;
}
.trader-btn:hover { color: var(--primary-light); border-color: var(--primary); }
.trader-btn.active {
  background: var(--primary);
  color: #111;
  border-color: transparent;
  font-weight: 600;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 26px 0;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.empty-state .icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state p { font-size: 12.5px; }

/* ===== 骨架屏 ===== */
.skeleton { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.skeleton-line {
  height: 16px;
  border-radius: 8px;
  background: var(--skeleton);
  position: relative;
  overflow: hidden;
}
.skeleton-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  animation: shimmer 1.5s infinite;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.skeleton-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--skeleton);
  flex-shrink: 0;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;          /* 内容多时在弹窗内滚动，不超出屏幕 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 14px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 { font-size: 18px; font-weight: 700; color: var(--text); }

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover { color: var(--text); }

.modal-body { padding: 16px 20px; overflow-y: auto; }

.troubleshoot-section { margin-bottom: 14px; }
.troubleshoot-section h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.troubleshoot-section p { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 4px; line-height: 1.55; }
.troubleshoot-section.important { padding: 14px; background: var(--ic-bg); border-radius: 8px; border: 1px solid var(--ic-line); }
.troubleshoot-section.important h3 { color: var(--warning-text); }

/* ===== ElementPlus深色适配 ===== */
.el-tabs__item { color: var(--text-secondary) !important; font-weight: 500 !important; }
.el-tabs__item.is-active { color: var(--warning-text) !important; font-weight: 600 !important; }
.el-tabs__active-bar { background-color: var(--primary) !important; }
.el-tabs__nav-wrap::after { background-color: var(--border) !important; }
.el-input__inner, .el-input__wrapper { background-color: var(--bg) !important; color: var(--text) !important; }
.el-message-box { background: var(--card-bg) !important; border: 1px solid var(--border) !important; border-radius: 12px !important; }
.el-message-box__title { color: var(--text) !important; }
.el-message-box__content { color: var(--text-secondary) !important; }
.el-message-box__headerbtn .el-message-box__close { color: var(--text-secondary) !important; }
.el-message-box__headerbtn:hover .el-message-box__close { color: var(--text) !important; }
.el-overlay { background: rgba(0,0,0,.6) !important; }
.el-button--text { color: var(--warning-text) !important; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .status-bar { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .app-header { padding: 0 14px; gap: 12px; height: auto; flex-wrap: wrap; }
  .app-header .menu { order: 3; width: 100%; }
  .app-container { padding: 14px 14px 50px; }
}
@media (max-width: 600px) {
  .status-bar { grid-template-columns: 1fr; }
  .app-header .brand { white-space: nowrap; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 6px; }
  .login-card { padding: 28px 20px; width: 100%; }
  .ghost-btn { padding: 6px 10px; font-size: 12px; }
  .membership-badge { font-size: 12px; padding: 2px 8px; }
}

/* ===== H5 移动端自适应增强 ===== */

/* 平板及以下：表格容器允许横向滚动，避免溢出裁剪 */
@media (max-width: 980px) {
  .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 560px; }
  .status-bar { gap: 8px; }
}

/* 手机端：单列布局优化 */
@media (max-width: 768px) {
  .app-container { padding: 12px 10px 60px; }
  .app-header { padding: 8px 10px; gap: 8px; }
  .app-header .menu { gap: 4px; }
  .app-header .menu button,
  .app-header .menu .ghost-btn { padding: 6px 8px; font-size: 13px; }
  .status-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .status-bar .stat-item { padding: 8px 10px; }
  .content-grid { grid-template-columns: 1fr; }
  .card-header { padding: 12px 14px; }
  .card-header h3 { font-size: 14px; }
  .card-body { padding: 12px; }
  .ticker-bar { font-size: 12px; }
  .form-group input, .form-input { font-size: 16px; } /* 16px 防止 iOS 聚焦自动放大 */
  .login-card { max-width: 100%; margin: 0 12px; }
}

/* 小屏手机：进一步压缩 */
@media (max-width: 480px) {
  .status-bar { grid-template-columns: 1fr 1fr; }
  .status-bar .stat-item .stat-label { font-size: 12px; }
  .status-bar .stat-item .stat-value { font-size: 14px; }
  .data-table { font-size: 12px; min-width: 520px; }
  .data-table th, .data-table td { padding: 6px 5px; white-space: nowrap; }
  .app-header .brand { font-size: 14px; }
  .section-title { font-size: 13px; flex-wrap: wrap; }
  .btn-primary, .btn-success, .btn-danger, .btn-outline { padding: 7px 10px; font-size: 13px; }
  .modal, .el-dialog { width: 94% !important; max-width: 94vw; }
  .el-message-box { width: 90% !important; max-width: 90vw; }
}

/* 超小屏：状态栏完全单列 */
@media (max-width: 360px) {
  .status-bar { grid-template-columns: 1fr; }
  .app-header .menu button,
  .app-header .menu .ghost-btn { padding: 5px 6px; font-size: 12px; }
}


/* ===== 2026-10 优化：提醒条 / API 提示 / 手机端表格变卡片 ===== */

/* 顶部提醒条（会员到期、连接问题） */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.notice b { font-weight: 700; }
.notice .notice-fix { color: inherit; opacity: 1; }
.notice-warning { background: rgba(240,185,11,.10); border: 1px solid rgba(240,185,11,.35); color: var(--warning-text); }
.notice-error { background: rgba(246,70,93,.10); border: 1px solid rgba(246,70,93,.35); color: var(--danger-text); }
.notice-info { background: rgba(90,169,255,.10); border: 1px solid rgba(90,169,255,.30); color: var(--info-text); }

/* 绑定 API 时的提示框 */
.api-tips { padding: 10px 12px; margin-bottom: 12px; border-radius: 8px; background: rgba(240,185,11,.06); border: 1px solid rgba(240,185,11,.22); font-size: 13px; line-height: 1.8; color: var(--text-secondary); }
.api-tips b { color: var(--text); }
.api-tips .no { color: var(--danger-text); font-weight: 700; }
.api-tips .ip-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.api-tips .ip { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14px; font-weight: 700; color: var(--warning-text); letter-spacing: .5px; }
.api-tips .copy-btn { cursor: pointer; padding: 3px 10px; font-size: 13px; border-radius: 6px; border: 1px solid rgba(240,185,11,.4); background: transparent; color: var(--warning-text); }
.api-tips .copy-btn:hover { background: rgba(240,185,11,.12); }

/* 手机端：带 m-cards 的表格变成一行一张卡片（td 用 data-label 显示列名），电脑端不变 */
@media (max-width: 640px) {
  .data-table.m-cards { min-width: 0; table-layout: auto; }
  .data-table.m-cards, .data-table.m-cards tbody, .data-table.m-cards tr, .data-table.m-cards td { display: block; width: 100%; }
  .data-table.m-cards thead { display: none; }
  .data-table.m-cards tr { margin-bottom: 10px; padding: 4px 12px; border: 1px solid var(--border, var(--border)); border-radius: 10px; background: var(--card-bg2, var(--card-bg2)); }
  .data-table.m-cards tbody tr:hover { background: var(--card-bg2, var(--card-bg2)); }
  .data-table.m-cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--hairline); font-size: 13px; white-space: normal; word-break: normal; text-align: right; }
  .data-table.m-cards td:last-child { border-bottom: 0; }
  .data-table.m-cards td::before { content: attr(data-label); flex: none; color: var(--text-secondary, var(--text-secondary)); font-size: 13px; text-align: left; }
  .data-table.m-cards td[data-label=""]::before { content: none; }
  .data-table.m-cards td[data-label=""] { justify-content: flex-end; }
}

/* ===== 2026-10 全面优化：新组件 ===== */

/* 新用户引导卡 */
.card.onboard { border-color: rgba(240,185,11,.35); background: linear-gradient(0deg, rgba(240,185,11,.04), rgba(240,185,11,.04)), var(--card-bg); }
.onboard-title { font-size: 16px; font-weight: 700; color: var(--hi); margin-bottom: 14px; }
.onboard-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.onboard-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--card-bg2); border: 1px solid var(--border); }
.onboard-step .no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #111; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.onboard-step b { color: var(--text); font-size: 14px; }
.onboard-step p { margin-top: 4px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

/* 数据更新时间 */
.updated-at { margin-left: auto; color: var(--text-third); font-size: 13px; }

/* 带单者信息：电脑两列，手机一列 */
.trader-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .trader-grid { grid-template-columns: 1fr; } }

/* 交易所标签：统一中性色（绿/红只用来表示盈亏和多空，避免误会） */
.ex-tag { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 5px; background: rgba(252,213,53,.12); color: var(--warning-text); border: 1px solid rgba(252,213,53,.35); font-weight: 700; }

/* 分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px 0 2px; }
.pager button { cursor: pointer; font-size: 13px; padding: 6px 16px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--card-bg2); color: var(--text-secondary); font-family: inherit; }
.pager button:hover:not(:disabled) { color: var(--primary-light); border-color: var(--primary); }
.pager button:disabled { opacity: .7; cursor: not-allowed; }
.pager .info { font-size: 13px; color: var(--text-secondary); }

/* 杠杆：滑块 + 数字 */
.lev-row { display: flex; align-items: center; gap: 12px; }
.lev-range { flex: 1; accent-color: var(--primary); height: 28px; cursor: pointer; }
.lev-num { width: 84px !important; flex: none; text-align: center; }

/* 跟单设置预估 */
.estimate { margin: 4px 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--card-bg2); border: 1px solid var(--border); }
.estimate-title { font-size: 13px; font-weight: 700; color: var(--warning-text); margin-bottom: 6px; }
.estimate-line { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; }

/* 颜色细节：状态卡图标统一为金色淡底，状态点光晕减弱，"已成交"用提示蓝 */
.status-card .icon { background: var(--card-bg2); border-color: var(--border-light); }
.status-dot.online { box-shadow: 0 0 0 3px rgba(14,203,129,.15); }
.status-dot.offline { box-shadow: 0 0 0 3px rgba(246,70,93,0.10); }
.status-dot.pending { box-shadow: 0 0 0 3px rgba(240,185,11,.15); }
.tag-filled { background: rgba(90,169,255,.12); color: var(--info-text); }

/* 手机端顶栏：按钮只显示图标 */
@media (max-width: 600px) {
  .updated-at { margin-left: 0; width: 100%; }
}

/* 顶部提示条（成功/失败/提醒）改为深色，与页面统一 */
.el-message { background: var(--card-bg2) !important; border: 1px solid var(--border-light) !important; box-shadow: 0 6px 24px rgba(0,0,0,.45) !important; }
.el-message .el-message__content { color: var(--text) !important; }
.el-message--success { border-color: rgba(14,203,129,.45) !important; }
.el-message--error { border-color: rgba(246,70,93,.45) !important; }
.el-message--warning { border-color: rgba(240,185,11,.45) !important; }

/* ===== 2026-10 文字颜色统一 ===== */
:root { --danger-text: #f6465d; --trader: #bb86fc; }
.dir-tag { border: 1px solid transparent; }
.dir-long { background: rgba(14,203,129,.15); color: var(--success-text); }
.dir-short { background: rgba(246,70,93,0.10); color: var(--danger-text); }
.dir-long.dir-close { background: transparent; border-color: rgba(14,203,129,.65); }
.dir-short.dir-close { background: transparent; border-color: rgba(246,70,93,.7); }
.trader-name, .data-table td.trader-name { color: var(--trader); }
/* ===== 2026-10 文字清晰度 ===== */
:root { --success-text: #0ecb81; --warning-text: #fcd535; --info-text: #5aa9ff; }
/* 说明文字里的关键内容：币安黄加粗 */
.key-hl { color: var(--warning-text); font-weight: 600; white-space: nowrap; }
button, input, select, textarea { font-weight: inherit; }
.btn-del, .btn-close-pos, .btn-engine-stop, .btn-danger { font-weight: 700; }  /* 红字加粗，弥补币安红在深色底上偏暗 */

/* ===== 首页（未登录）：左边介绍 + 套餐，右边登录卡片 ===== */
.landing { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  background: radial-gradient(900px 500px at 15% 10%, rgba(240,185,11,.08), transparent 60%), var(--bg); }
.landing-inner { width: 100%; max-width: 1120px; display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: center; }
.landing-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 26px; }
.landing-brand .logo-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #f0b90b, var(--primary-light)); color: #111; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.landing-title { font-size: 40px; line-height: 1.25; font-weight: 800; color: var(--hi); letter-spacing: .5px; }
.landing-sub { font-size: 16px; color: var(--text-secondary); margin: 16px 0 22px; line-height: 1.7; }
.landing-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.landing-points li { font-size: 14px; color: var(--text-secondary); padding-left: 18px; position: relative; line-height: 1.6; }
.landing-points li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.landing-points b { color: var(--hi); }
.landing-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.landing-plans .lp { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px; }
@media (hover: hover) { .landing-plans .lp:hover { border-color: var(--primary); } }
.landing-plans .lp-name { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.landing-plans .lp-price { font-size: 24px; font-weight: 800; color: var(--primary-light); margin: 4px 0; }
.landing-plans .lp-price span { font-size: 13px; margin-left: 2px; color: var(--text-secondary); }
.landing-plans .lp-sub { font-size: 12px; color: var(--text-third); }
.landing .login-card { width: 100%; margin: 0; min-width: 0; }
.landing-inner > * { min-width: 0; }
.login-links { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: none; color: var(--primary-light); cursor: pointer; font-size: 13px; font-family: inherit; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.forgot-title { font-size: 20px; color: var(--hi); margin-bottom: 18px; }
a.ghost-btn { text-decoration: none; display: inline-flex; align-items: center; }
.vip-btn { color: var(--primary-light); border-color: rgba(240,185,11,.4); font-weight: 600; }
.membership-badge.quarterly, .membership-badge.lifetime { background: rgba(14,203,129,.12); color: var(--success-text); border: 1px solid rgba(14,203,129,.25); }
@media (max-width: 960px) {
  .landing-inner { grid-template-columns: 1fr; gap: 28px; }
  .landing-intro { order: 2; }
  .landing-title { font-size: 30px; }
}
@media (max-width: 560px) {
  .landing { padding: 24px 16px; }
  .landing-plans { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 策略广场 ===== */
.plaza-card .card-header { flex-wrap: wrap; gap: 8px; }
.plaza-tip { font-size: 13px; color: var(--text-third); }
.plaza-tip b { color: var(--primary-light); }
.plaza-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.st-card { cursor: pointer; background: var(--card-bg2); border: 1px solid var(--border-light); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; transition: .15s; }
.st-card:hover { border-color: var(--primary); }
.st-card.picked { border-color: var(--primary); box-shadow: 0 0 0 1px var(--ic-line); }
.st-head { display: flex; align-items: center; gap: 10px; }
.st-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--card-bg3); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary-light); font-size: 16px; }
.st-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-avatar.big { width: 52px; height: 52px; font-size: 20px; }
.st-title { min-width: 0; flex: 1; }
.st-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sub { font-size: 12.5px; color: var(--text-third); margin-top: 2px; }
.st-picked { font-size: 12px; font-weight: 700; color: #111; background: var(--primary); border-radius: 10px; padding: 2px 8px; }
.st-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-stats > div, .td-perf > div { background: var(--card-bg); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.st-stats .l, .td-perf .l { font-size: 12px; color: var(--text-third); }
.st-stats .v, .td-perf .v { font-size: 15px; font-weight: 700; color: var(--hi); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up { color: var(--success-text) !important; }
.down { color: var(--danger-text) !important; font-weight: 700; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-more { font-size: 13px; color: var(--primary-light); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.picked-line { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 30px; }
.trader-chip { display: inline-block; padding: 3px 10px; border-radius: 14px; background: rgba(187,134,252,.12); border: 1px solid rgba(187,134,252,.3); font-size: 13px; font-weight: 600; }
.home-trader-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); cursor: pointer; }
.home-trader-head .st-avatar { width: 32px; height: 32px; font-size: 14px; }

/* 策略详情弹窗 */
.td-modal { max-width: 760px; width: 94vw; }
.td-head { display: flex; align-items: center; gap: 12px; }
.td-head h2 { font-size: 18px; }
.td-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; }
.td-top { margin-bottom: 14px; }
.td-range { display: flex; gap: 6px; margin-bottom: 10px; }
.td-range .chip { cursor: pointer; padding: 5px 12px; border-radius: 14px; border: 1px solid var(--border-light); background: var(--card-bg2); color: var(--text-secondary); font-family: inherit; font-size: 13px; }
.td-range .chip.on { background: var(--primary); color: #111; border-color: transparent; font-weight: 700; }
.td-perf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.td-chart { background: var(--card-bg2); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.td-chart-title { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; display: flex; justify-content: space-between; }
.td-svg { width: 100%; height: 160px; display: block; }
.td-zero { stroke: var(--border-light); stroke-dasharray: 4 4; }
.line-up { stroke: var(--success); stroke-width: 2; }
.line-down { stroke: var(--danger); stroke-width: 2; }
.area-up { fill: rgba(14,203,129,.12); }
.area-down { fill: rgba(246,70,93,.12); }
.td-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-third); margin-top: 4px; }
.td-orders-title { font-size: 14px; font-weight: 700; color: var(--hi); margin: 4px 0 8px; }
.td-note { font-size: 12px; color: var(--text-third); margin-top: 12px; }
.td-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .td-perf { grid-template-columns: repeat(2, 1fr); }
  .st-stats .v { font-size: 14px; }
}

/* 提示里的重点词 */
.kw { color: var(--primary-light) !important; font-weight: 700; }
.kw-danger { color: var(--danger-text) !important; font-weight: 700; }
/* 顶部小提示：手机上不超出屏幕，文字正常换行居左 */
.el-message { max-width: calc(100vw - 24px); }
.el-message .el-message__content { line-height: 1.5; }
/* 按钮文字不折行、不被旁边的输入框挤窄（以前「复制链接」「全部」会被挤成两行） */
.btn, .ghost-btn, .chip, .chain-btn, .link-btn, .trader-btn, .hero-btn { white-space: nowrap; flex-shrink: 0; }

/* 页眉「帮助」菜单 */
.help-menu { position: relative; }
.help-mask { position: fixed; inset: 0; z-index: 150; }
.help-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 151; min-width: 160px; background: var(--card-bg2); border: 1px solid var(--border-light); border-radius: 10px; padding: 6px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.help-pop a, .help-pop button { text-align: left; padding: 9px 12px; border-radius: 7px; font-size: 13.5px; color: var(--text); background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: none; white-space: nowrap; }
.help-pop a:hover, .help-pop button:hover { background: var(--card-bg3); color: var(--primary-light); }

/* 手机：页眉按钮一行排开；收益卡片占满一行；首页带单员交易表保持表格、去掉「数量」列 */
@media (max-width: 760px) {
  .app-header .header-right { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .app-header .membership-badge { display: none; }
  .status-bar .pnl-card { grid-column: 1 / -1; }
  .lead-trades { font-size: 12.5px; }
  .lead-trades th, .lead-trades td { padding: 8px 4px; }
  .lead-trades th:nth-child(4), .lead-trades td:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .trader-grid { grid-template-columns: minmax(0, 1fr); }
  .data-table.lead-trades { min-width: 0; width: 100%; }
}
.el-message { width: max-content; }   /* 居中的提示只能用到半个屏幕宽，短文字也会被折成两行 */
/* 策略广场：电脑一行 3 张，平板 2 张，手机 1 张 */
.plaza-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .plaza-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plaza-grid { grid-template-columns: minmax(0, 1fr); } }
:root { --soft-bg: rgba(40,48,64,.55); --hairline: rgba(255,255,255,.07); }

/* ===== 币安浅色主题：页面右上角「浅色 / 深色」切换，选择记在浏览器里 ===== */
[data-theme="light"] {
  --bg: #f5f5f5; --card-bg: #ffffff; --card-bg2: #f5f5f5; --card-bg3: #eaecef;
  --text: #1e2329; --text-secondary: #474d57; --text-third: #5e6673; --hi: #1e2329; --th: #474d57;
  --border: #eaecef; --border-light: #d8dce1; --skeleton: #eaecef;
  --shadow-lg: 0 4px 20px rgba(0,0,0,.08);
  --primary-light: #9a7000;            /* 黄色当文字时白底上看不清，用比币安浅色版再深一点的金色 */
  --warning-text: #9a7000; --success-text: #02875a; --danger-text: #cf304a; --info-text: #1766c2; --trader: #8a3ffc;
  --ic-bg: rgba(240,185,11,.12); --ic-line: rgba(240,185,11,.4);
  --long-bg: rgba(14,203,129,.1); --short-bg: rgba(246,70,93,.08);
  --soft-bg: #f5f5f5; --hairline: rgba(0,0,0,.06);
  color-scheme: light;
}
.theme-float { position: fixed; top: 14px; right: 16px; z-index: 200; }
.landing-plans .lp-gift { margin-top: 6px; display: inline-block; font-size: 12px; font-weight: 700; color: #111; background: var(--primary); border-radius: 10px; padding: 1px 8px; }

/* ===== 2026-10-28 手机做成 App 样子：底部导航、帮助从底部弹出、按钮加大、按下有反馈（电脑不变） ===== */
.tabbar, .m-only { display: none; }
@media (max-width: 760px) {
  html { -webkit-tap-highlight-color: transparent; }
  .m-only { display: block; }
  .m-hide, .app-header .main-menu, .app-header .help-menu { display: none !important; }

  /* 页眉：一行，品牌 + 几个圆角小按钮（帮助菜单挪到底部后，不再需要左右滑动） */
  .app-header .header-right { overflow: visible; gap: 6px; }
  .app-header .ghost-btn { height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; }

  /* 底部导航 */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
    background: var(--card-bg); border-top: 1px solid var(--border);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }
  .tabbar > a, .tabbar > button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; padding: 4px 0; font-family: inherit; cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--text-third); text-decoration: none;
  }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on { color: var(--primary-light); }
  .tabbar .on svg { stroke-width: 2.2; }
  .tabbar > :active { transform: scale(.92); }
  .app-container { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }

  /* 帮助：从底部弹出的选项面板 */
  .sheet-mask { position: fixed; inset: 0; z-index: 160; background: rgba(0,0,0,.5); animation: sheet-fade .2s; }
  .sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 161; display: flex; flex-direction: column;
    background: var(--card-bg); border-radius: 18px 18px 0 0; padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg); animation: sheet-up .22s ease-out;
  }
  .sheet-title { text-align: center; font-size: 13px; color: var(--text-third); padding: 10px 0 8px; }
  .sheet a, .sheet button {
    display: flex; align-items: center; justify-content: center; min-height: 52px; font-size: 16px; font-weight: 600;
    color: var(--text); background: none; border: none; border-top: 1px solid var(--hairline); font-family: inherit; text-decoration: none; cursor: pointer;
  }
  .sheet a:active, .sheet button:active { background: var(--card-bg2); }
  .sheet .sheet-cancel { margin-top: 10px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--card-bg3); color: var(--text); font-weight: 700; }
  .sheet .sheet-cancel:active { background: var(--border-light); }

  /* 按钮：更大、更圆，手指好点 */
  .btn { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; justify-content: center; }
  .btn-sm { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
  .btn, .ghost-btn, .chip, .chain-btn, .trader-btn, .pager button { transition: transform .1s, filter .1s; }
  .btn:active, .ghost-btn:active, .chip:active, .chain-btn:active, .trader-btn:active, .pager button:active { transform: scale(.97); filter: brightness(.88); }
  .btn:disabled:active { transform: none; filter: none; }
  /* 几个主要操作在手机上占满一行 */
  .card-body > .btn:not(.btn-sm), .form-group + .btn:not(.btn-sm) { width: 100%; }
  /* 并排的两个按钮各占一半 */
  .td-actions .btn, .el-dialog__footer .btn { flex: 1; }
  .td-actions { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }

/* 手机登录页：顶栏放名字和主题按钮，登录框紧跟在下面；电脑不变 */
.landing-bar { display: none; }
@media (max-width: 760px) {
  .landing-bar {
    display: flex; position: sticky; top: 0; z-index: 100; align-items: center; justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--card-bg); border-bottom: 1px solid var(--border);
    font-size: 17px; font-weight: 700; color: var(--text);
  }
  .landing-bar .ghost-btn { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
  .theme-float, .landing-brand { display: none; }
  .landing { min-height: 0; align-items: flex-start; padding-top: 16px; }
  .login-links .link-btn { font-size: 15px; padding: 8px 0; }
}

/* ===== 2026-10-28 手机分页：首页 / 跟单 / 记录 / 我的（电脑不变） ===== */
@media (max-width: 760px) {
  /* 首页：5 个数字合成一张资产卡（权益最大，下面 2×2，已平仓收益占一行） */
  .status-bar:not(:has(.skeleton-card)) { grid-template-columns: 1fr 1fr; gap: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
  .status-bar .status-card { border: none; border-radius: 0; background: none; padding: 10px 16px; box-shadow: none; }
  .status-bar .status-card:first-child { grid-column: 1 / -1; padding-top: 16px; }
  .status-bar .status-card:first-child .value { font-size: 24px; }
  .status-bar .status-card .label { font-size: 12.5px; }
  .status-bar .status-card .value { font-size: 16px; }
  .status-bar .pnl-card { grid-column: auto; padding-bottom: 14px; }   /* 和其他三个数字排成 2×2 */
  .status-bar .pnl-card .value { font-size: 16px; }
  .me-head a.btn { text-decoration: none; }

  /* 运行状态：两列小字，引擎开关占一行 */
  .conn-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px 12px !important; padding: 14px 16px !important; border-radius: 14px !important; }
  .conn-row .connection-status { font-size: 13px; }
  .conn-row .updated-at, .conn-row .conn-engine { grid-column: 1 / -1; }
  .conn-row .conn-engine { width: 100%; min-height: 42px; border-radius: 12px; }

  /* 我的：头部（名字 + 会员） */
  .me-head .card-body { display: flex; align-items: center; gap: 12px; padding: 16px; }
  .me-head .st-avatar { width: 48px; height: 48px; font-size: 20px; }
  .me-info { flex: 1; min-width: 0; }
  .me-name { font-size: 17px; font-weight: 700; color: var(--hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .me-sub { font-size: 13px; color: var(--text-third); margin-top: 2px; }

  /* 我的：设置列表（像手机设置页那样一行一项） */
  .me-list { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
  .me-list > a, .me-list > button {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 16px;
    background: none; border: none; border-top: 1px solid var(--hairline); font-family: inherit; font-size: 15px; font-weight: 500;
    color: var(--text); text-decoration: none; text-align: left; cursor: pointer;
  }
  .me-list > :first-child { border-top: none; }
  .me-list > :active { background: var(--card-bg2); }
  .me-list span { flex: 1; }
  .me-list em { font-style: normal; font-size: 14px; color: var(--text-third); }
  .me-list i { font-style: normal; font-size: 20px; color: var(--text-third); }
  .me-logout { width: 100%; background: var(--card-bg); border: 1px solid var(--border); color: var(--danger-text); font-weight: 700; }
}

/* 点左上角名字回到顶部；用户默认头像（首字 + 固定底色） */
.app-header .brand { cursor: pointer; user-select: none; }
.user-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 20px; font-weight: 800; }
.user-avatar.sm { width: 30px; height: 30px; font-size: 14px; }
@media (max-width: 760px) {
  .tabbar > a, .tabbar > button { font-size: 12.5px; }
}

/* 引擎按钮点不了时（未绑定 API / API 未连接）明显变灰 */
.engine-start:disabled { background: var(--card-bg3) !important; color: var(--text-third) !important; border: 1px solid var(--border-light); opacity: 1; cursor: not-allowed; filter: none; transform: none; }

/* 手机滚到策略广场时留一点空（手机没有页眉了） */
.plaza-card { scroll-margin-top: 12px; }

/* ===== 手机文字排版：两行的排匀，段尾不剩单个字（较新浏览器生效，老浏览器照旧） ===== */
@media (max-width: 760px) {
  body { text-wrap: pretty; }
  /* 只给短提示排匀；长段落（如「跟单必读」）正常排，只保证段尾不剩单个字 */
  label, .form-hint, .notice, .acc-sub, .st-sub, .landing-sub, .landing-points li, .plaza-tip, .td-note, .g-safe, .g-pre, .faq-a, .onboard-step p { text-wrap: balance; }
  /* 新手三步：只差一个字就能一行放下，收一点边距 */
  .onboard-step { gap: 10px; padding: 12px 10px; }
}

/* ===== 2026-10-28 手机：去掉页眉、选交易所底部弹出、弹窗改成底部面板、API 提示一行（电脑不变） ===== */
.ex-pick { display: none; }
@media (max-width: 760px) {
  /* 页眉：首页整条不要；会员中心只留 6 个分页 */
  .app-header.main-header { display: none; }
  .app-header .brand, .app-header .fill, .app-header .header-right { display: none; }
  .app-header { position: static; margin-bottom: 14px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .app-container { padding-top: calc(12px + env(safe-area-inset-top)); }

  /* API 提示第一句不折行：窄屏自动把字缩小一点 */
  .api-tips .api-line { display: block; white-space: nowrap; font-size: clamp(10px, 3.2vw, 13px); }

  /* 选交易所：按钮 + 底部面板（6 个，两排三个） */
  .ex-pick { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-light); background: var(--card-bg2); color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .ex-pick span { font-size: 11px; color: var(--text-third); }
  .ex-sheet .ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 0 6px; }
  .ex-sheet .ex-grid .chain-btn { display: flex; align-items: center; justify-content: center; line-height: 1; min-height: 48px; border: 1px solid var(--border-light); border-radius: 12px; background: var(--card-bg2); font-size: 15px; font-weight: 600; color: var(--text); }
  .ex-sheet .ex-grid .chain-btn.on { border-color: var(--primary); color: var(--primary-light); background: var(--ic-bg); }

  /* 「跟单必读」「策略详情」这类弹窗：从底部滑出的面板 */
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal-overlay .modal-content { max-width: none; width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet-up .22s ease-out; position: relative; }
  .modal-overlay .modal-content::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--border-light); }

  /* 会员中心「开通」「付款」弹窗（Element 组件）：同样从底部滑出 */
  .el-overlay-dialog { display: flex; align-items: flex-end; }
  .el-overlay-dialog .el-dialog { margin: 0 !important; width: 100% !important; max-width: 100vw; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet-up .22s ease-out; }

  /* 确认框（启动 / 停止引擎、TG 频道）：留在中间，按钮改成整行大按钮 */
  .el-message-box { border-radius: 16px !important; padding-bottom: 16px; }
  .el-message-box__btns { display: flex; gap: 10px; padding-top: 14px; }
  .el-message-box__btns .el-button { flex: 1; height: 44px; margin: 0 !important; border-radius: 12px; font-size: 15px; font-weight: 700; }
  .el-message-box__btns .el-button--text { background: var(--card-bg3) !important; color: var(--text) !important; border: 1px solid var(--border-light) !important; }
}

/* 选交易所面板：底部「取消 / 确定」两个按钮各占一半 */
@media (max-width: 760px) {
  .ex-sheet .sheet-actions { display: flex; gap: 10px; margin-top: 10px; }
  .ex-sheet .sheet-actions .btn { flex: 1; min-height: 48px; border-radius: 12px; border-top: none; font-size: 16px; }
  .ex-sheet .sheet-actions .btn-outline { border: 1px solid var(--border-light); background: var(--card-bg2); color: var(--text); }
  .ex-sheet .sheet-actions .btn-primary { background: var(--primary); color: #111; }
}

/* 电脑也做文字排版：段尾不剩一两个字，短提示两行排匀（手机上已有，这里补到所有宽度） */
body { text-wrap: pretty; }
label, .form-hint, .notice, .acc-sub, .st-sub, .landing-sub, .landing-points li, .plaza-tip, .td-note, .g-safe, .g-pre, .faq-a, .onboard-step p { text-wrap: balance; }

/* ===== 策略广场：币安广场 / OKX 广场 切换；带单员「特点」标签（绿=优点，黄=要注意，红=风险） ===== */
.plaza-tabs { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--card-bg2); border: 1px solid var(--border); }
.plaza-tabs button { border: none; background: none; padding: 6px 14px; border-radius: 8px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.plaza-tabs button.on { background: var(--primary); color: #111; }
.plaza-tabs button:not(.on):hover { color: var(--text); }
.btn-soon, .btn-soon:disabled { background: var(--card-bg3); color: var(--text-third); border: 1px dashed var(--border-light); opacity: 1; cursor: not-allowed; }
.td-features { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--card-bg2); border: 1px solid var(--border); }
.td-features-title { font-size: 13px; font-weight: 700; color: var(--hi); margin-bottom: 8px; }
.td-feature-list { display: flex; flex-wrap: wrap; gap: 8px; }
.feat { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; border: 1px solid transparent; }
.feat-good { color: var(--success-text); background: rgba(14,203,129,.1); border-color: rgba(14,203,129,.3); }
.feat-warn { color: var(--warning-text); background: rgba(240,185,11,.1); border-color: rgba(240,185,11,.35); }
.feat-bad { color: var(--danger-text); background: rgba(246,70,93,.1); border-color: rgba(246,70,93,.35); font-weight: 700; }
.td-feature-legend { margin-top: 10px; font-size: 12px; color: var(--text-third); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.td-feature-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; padding: 0; margin-left: 6px; border: none; }
.td-feature-legend .dot:first-child { margin-left: 0; }
.td-feature-legend .dot.feat-good { background: var(--success-text); }
.td-feature-legend .dot.feat-warn { background: var(--warning-text); }
.td-feature-legend .dot.feat-bad { background: var(--danger-text); }
@media (max-width: 760px) {
  .plaza-tabs { width: 100%; }
  .plaza-tabs button { flex: 1; min-height: 38px; font-size: 14px; }
  .btn-soon { min-height: 36px; }
}
.td-features-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.td-features-date { font-size: 12px; font-weight: 500; color: var(--text-third); }
/* 策略广场页眉：两个广场按钮紧跟标题靠左，提示文字靠右 */
.plaza-card .card-header { justify-content: flex-start; gap: 8px 14px; }
.plaza-card .card-header .plaza-tip { margin-left: auto; }
@media (max-width: 760px) { .plaza-card .card-header .plaza-tip { margin-left: 0; } }
