:root {
    --ink: #172033;
    --muted: #718096;
    --line: #e8edf3;
    --table-line: #d9dee7;
    --paper: #ffffff;
    --canvas: #f5f7fa;
    --brand: #009688;
    --brand-dark: #007d71;
    --success: #0c9b65;
    --danger-bg: #e74c3c;
    --danger-ink: #000000;
    --blue-bg: #1abc9c;
    --blue-ink: #000000;
    --shadow: 0 10px 34px rgba(23, 32, 51, .07);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
button, input { font-family: inherit; }

.topbar {
    height: 66px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 34px;
    background: #111827;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.brand-mark {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--brand); font-size: 23px;
}
.main-nav { display: flex; align-items: stretch; height: 100%; flex: 1; }
.main-nav a {
    position: relative; display: flex; align-items: center; padding: 0 18px;
    color: #aeb8c8; font-size: 14px; transition: .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a.active::after {
    content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px;
    background: #4f8cff; border-radius: 3px 3px 0 0;
}
.account-area { display: flex; align-items: center; gap: 14px; }
.account-area form { margin: 0; }
.account-name { color: #dce3ed; font-size: 13px; white-space: nowrap; }
.account-expiry { color: #f6c453; font-variant-numeric: tabular-nums; }
.membership-expiry-alert { min-width: 250px; padding: 3px 2px 2px; line-height: 1.7; }
.membership-expiry-alert strong { display: block; color: #d97706; font-size: 16px; }
.membership-expiry-alert p { margin: 7px 0 4px; color: #344054; font-size: 14px; }
.membership-expiry-alert small { color: #667085; font-size: 12px; }
.link-button { padding: 4px 0; border: 0; background: none; color: #8fb5ff; cursor: pointer; }
.theme-picker { display: inline-flex; align-items: center; gap: 6px; color: #aeb8c8; font-size: 12px; white-space: nowrap; }
.theme-select { height: 30px; padding: 0 26px 0 9px; border: 1px solid #38465a; border-radius: 7px; outline: 0; background: #1c2636; color: #e6edf7; cursor: pointer; }
.theme-select:focus { border-color: #6298ff; box-shadow: 0 0 0 2px rgba(98,152,255,.16); }

.page-container { width: min(1680px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 56px; }
.narrow-container { width: min(960px, calc(100% - 48px)); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading h1 { margin: 4px 0 8px; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 12px; letter-spacing: 1.5px; }
.status-card { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.status-card strong, .status-card small { display: block; }
.status-card strong { font-size: 13px; }
.status-card strong.has-errors { color: #d92d20; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.status-card small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 5px rgba(245,158,11,.12); }
.live-dot.ok { background: #12b76a; box-shadow: 0 0 0 5px rgba(18,183,106,.12); }
.live-dot.bad { background: #f04438; box-shadow: 0 0 0 5px rgba(240,68,56,.12); }
.market-error-list { min-width: 320px; max-height: 360px; padding: 10px 16px 14px; overflow-y: auto; }
.market-error-item { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid #eef1f5; line-height: 20px; }
.market-error-item:last-child { border-bottom: 0; }
.market-error-item strong { flex: 0 0 72px; color: #1f2937; }
.market-error-item span { color: #667085; word-break: break-word; }
html[data-theme="dark"] .status-card strong.has-errors { color: #ff7770; }

.filter-card, .table-card, .simple-card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.filter-card { margin-bottom: 18px; padding: 18px 20px; }
.filter-main { display: flex; align-items: flex-end; gap: 14px; }
.field-group { min-width: 170px; }
.field-group.wide-field { flex: 1; min-width: 230px; }
.field-group.refresh-field { min-width: 145px; }
.field-group.toggle-field { min-width: 130px; }
.field-group label { display: block; margin-bottom: 7px; color: #526075; font-size: 12px; font-weight: 700; }
.field-group .layui-input { height: 38px; border-color: #dfe5ec; border-radius: 7px; }
.field-group .layui-input:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(23,107,255,.08); }
.filter-actions { display: flex; gap: 7px; padding-bottom: 1px; }
.primary-button { background: var(--brand); border-radius: 7px; }
.primary-button:hover { background: var(--brand-dark); }
.filter-actions .layui-btn { height: 38px; line-height: 38px; }
.filter-toggle { display: flex !important; align-items: center; gap: 7px; height: 38px; margin: 0 !important; padding: 0 11px; border: 1px solid #dfe5ec; border-radius: 7px; background: #f9fafb; cursor: pointer; white-space: nowrap; }
.filter-toggle input { accent-color: var(--brand); }
.filter-toggle-disabled { justify-content: center; color: #98a2b3; cursor: not-allowed; }
.pause-button.paused { border-color: #f5b8b3; background: #fff1f0; color: #b42318; }
.exchange-filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.exchange-filter-row.single-row { grid-template-columns: 1fr; }
.exchange-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; }
.exchange-title { margin-right: 3px; color: #475467; font-size: 12px; font-weight: 700; }
.exchange-filter label { display: inline-flex; align-items: center; gap: 5px; color: #667085; font-size: 12px; cursor: pointer; }
.exchange-filter input { accent-color: var(--brand); }

.table-card { overflow: hidden; padding: 0 16px 14px; }
.table-legend { display: flex; align-items: center; gap: 20px; min-height: 48px; padding: 10px 4px; border-bottom: 1px solid var(--line); color: #667085; font-size: 12px; }
.legend-box { display: inline-block; width: 12px; height: 12px; margin-right: 4px; border-radius: 3px; vertical-align: -2px; }
.legend-box.level-high { background: var(--danger-bg); border: 1px solid #f8b4b0; }
.legend-box.level-mid { background: var(--blue-bg); border: 1px solid #a9cdfc; }
.legend-note { margin-left: auto; color: #98a2b3; }
.layui-table-view { margin: 0; border: 0; }
.layui-table-header { border-width: 0 0 1px !important; border-color: var(--table-line) !important; }
.layui-table th { font-size: 12px; color: #526075; font-weight: 700; text-align: center; }
.layui-table th,
.layui-table td { border-color: var(--table-line) !important; }
.layui-table td { text-align: center; }
.table-card .layui-table-page { border-top-color: var(--table-line) !important; }
.layui-table-cell { height: auto; min-height: 26px; line-height: 18px; padding: 4px 8px; text-align: center; }
.favorite-button { display: block; margin: 0 auto; padding: 0; border: 0; background: none; color: #a8b0be; font-size: 25px; cursor: pointer; line-height: 1; }
.favorite-button.active { color: #ff0000; filter: drop-shadow(0 2px 4px rgba(255,0,0,.22)); }
.layui-table-main td[data-field="symbol"], .layui-table-main td[data-field="symbol"] .layui-table-cell { cursor: copy; }
.symbol-cell { display: flex; align-items: center; justify-content: center; min-height: 24px; }
.copy-symbol { padding: 0; border: 0; background: none; color: #152238; font-size: 13px; font-weight: 700; cursor: copy; }
.copy-symbol:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.spread-value { color: #d92d20; font-weight: 700; }
.exchange-pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #f0f4f9; color: #344054; font-size: 12px; font-weight: 700; }
.exchange-cell { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.exchange-trade-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 24px; color: inherit; text-decoration: none; cursor: pointer; }
.exchange-trade-link:hover .exchange-pill { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.margin-badge { display: inline-block; padding: 1px 4px; border: 1px solid #b7ddc9; border-radius: 4px; background: #edf9f2; color: #087a50; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; white-space: nowrap; }
.legend-margin { margin-right: 4px; vertical-align: 1px; }
.price-value { font-variant-numeric: tabular-nums; color: #253247; }
.qty-box { padding: 4px 8px; border-radius: 0; font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 400; }
.qty-box.level-high { background: var(--danger-bg); color: var(--danger-ink); }
.qty-box.level-mid { background: var(--blue-bg); color: var(--blue-ink); }
.layui-table-main td.qty-level-high { border-color: #fff !important; background: var(--danger-bg) !important; color: #000 !important; }
.layui-table-main td.qty-level-mid { border-color: #fff !important; background: var(--blue-bg) !important; color: #000 !important; }
.layui-table-main td.qty-level-high .qty-box,
.layui-table-main td.qty-level-mid .qty-box { min-height: 100%; background: transparent; color: #000; }
.qty-box small { display: block; margin-top: 1px; opacity: .78; font-size: 10px; }
.note-input { width: 100%; height: 24px; padding: 2px 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #101828; font-weight: 700; text-align: center; }
.note-input::placeholder { color: #c8cfd9; font-weight: 400; opacity: 1; }
.note-input::-webkit-input-placeholder { color: #c8cfd9; font-weight: 400; opacity: 1; }
.note-input::-moz-placeholder { color: #c8cfd9; font-weight: 400; opacity: 1; }
.note-input:-ms-input-placeholder { color: #c8cfd9; font-weight: 400; }
.note-input:hover { border-color: #d8e0e9; background: #fff; }
.note-input:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 2px rgba(23,107,255,.08); }
.delay { font-variant-numeric: tabular-nums; color: #667085; }
.delay.stale { color: #d92d20; font-weight: 700; }
.transfer-channel { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; font-size: 11px; line-height: 16px; white-space: nowrap; }
.transfer-channel i { display: inline-flex; flex: 0 0 17px; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; font-style: normal; font-weight: 700; }
.transfer-channel span { overflow: hidden; text-overflow: ellipsis; }
.transfer-ok { color: #087a50; }
.transfer-ok i, .transfer-legend.ok { background: #e8f7f0; color: #087a50; }
.transfer-unknown, .transfer-locked { color: #7b8493; }
.transfer-unknown i, .transfer-locked i, .transfer-legend.locked { background: #eef2f6; color: #667085; }
.transfer-withdraw_closed, .transfer-deposit_closed, .transfer-no_common, .transfer-contract_mismatch { color: #b42318; }
.transfer-withdraw_closed i, .transfer-deposit_closed i, .transfer-no_common i, .transfer-contract_mismatch i { background: #feeceb; color: #b42318; }
.transfer-legend { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-right: 4px; border-radius: 50%; font-style: normal; font-weight: 700; }
.row-actions { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.row-actions button { padding: 2px 0; border: 0; background: none; color: var(--brand); font-size: 11px; cursor: pointer; }
.row-actions button.permanent-block { color: #d92d20; }
.row-actions button:disabled { color: #a8b0be; cursor: wait; }
.spotarb-live-none { margin-top: -1px; }

.simple-card { padding: 20px; }
.empty-state { padding: 65px 20px; text-align: center; color: var(--muted); }
.empty-state > span { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #e9f8f1; color: var(--success); font-size: 22px; }
.empty-state strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 0; }
.block-list { display: grid; gap: 10px; }
.block-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.block-item strong, .block-item small { display: block; }
.block-route { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; color: #344054; font-size: 13px; font-weight: 700; }
.block-route b { color: var(--brand); font-size: 15px; }
.legacy-route { color: #b54708; }
.block-item small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.add-user-card { margin-bottom: 18px; }
.password-card { width: min(520px, 100%); padding: 24px; }
.password-form .field-group { width: 100%; margin-bottom: 17px; }
.password-form .layui-input { height: 40px; }
.password-actions { display: flex; align-items: center; gap: 9px; padding-top: 3px; }
.password-actions .layui-btn { height: 38px; line-height: 38px; margin: 0; }
.is-hidden { display: none; }
.inline-form { display: flex; align-items: flex-end; gap: 14px; }
.inline-form .field-group { flex: 1; }
.inline-form .user-type-select { display: block; width: 100%; height: 38px; padding: 0 30px 0 10px; cursor: pointer; }
.inline-form .layui-btn { height: 38px; line-height: 38px; }
.user-table { margin: 0; }
.user-table th { color: #526075; }
.role-badge, .status-badge { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #eef2f6; color: #526075; font-size: 11px; }
.role-badge.admin { background: #eee8ff; color: #6938ef; }
.membership-badge { display: inline-block; padding: 3px 8px; border-radius: 99px; background: #eef2f6; color: #526075; font-size: 11px; }
.membership-badge.premium { background: #e9f8f1; color: #087a50; }
.membership-level, .user-type, .membership-expiry { min-width: 112px; height: 32px !important; padding: 0 8px; border: 1px solid #dfe5ec; border-radius: 2px; background: var(--paper); color: var(--ink); }
.membership-expiry { min-width: 142px; }
.status-badge.enabled { background: #e8f7f0; color: #087a50; }
.status-badge.disabled { background: #feeceb; color: #b42318; }
.muted { color: #98a2b3; }

.login-page { min-height: 100vh; background: radial-gradient(circle at 18% 12%, #dff7f3 0, transparent 34%), linear-gradient(135deg, #f7fafc, #e9eff6); }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-theme-picker { position: fixed; top: 22px; right: 24px; z-index: 2; }
.login-card { width: min(410px, 100%); padding: 40px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: 0 26px 80px rgba(0,0,0,.32); }
.login-logo { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 30px; box-shadow: 0 10px 25px rgba(23,107,255,.25); }
.login-card h1 { margin: 0; text-align: center; font-size: 24px; }
.login-subtitle { margin: 8px 0 28px; text-align: center; color: var(--muted); font-size: 13px; }
.login-label { display: block; margin-bottom: 7px; color: #475467; font-size: 13px; font-weight: 700; }
.login-form .layui-input { height: 43px; border-radius: 8px; }
.login-remember { display: flex; align-items: center; gap: 7px; min-height: 26px; margin: -2px 0 8px; color: #475467; font-size: 13px; cursor: pointer; user-select: none; }
.login-remember input { display: inline-block !important; width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.login-remember small { margin-left: auto; color: var(--muted); font-size: 11px; }
.login-form .primary-button { height: 44px; line-height: 44px; margin-top: 8px; }
.form-error { margin-bottom: 18px; padding: 10px 12px; border: 1px solid #f8b4b0; border-radius: 7px; background: #fff2f1; color: #b42318; font-size: 12px; }

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e7edf6;
    --muted: #91a0b5;
    --line: #273449;
    --table-line: #334158;
    --paper: #141d2c;
    --canvas: #0b1220;
    --brand: #16baaa;
    --brand-dark: #0ea394;
    --success: #35d399;
    --danger-bg: #e74c3c;
    --danger-ink: #000000;
    --blue-bg: #1abc9c;
    --blue-ink: #000000;
    --shadow: 0 12px 38px rgba(0, 0, 0, .24);
}
html[data-theme="dark"] .topbar { background: #080e19; border-bottom: 1px solid #1e2a3d; }
html[data-theme="dark"] .membership-expiry-alert p { color: #dce5f1; }
html[data-theme="dark"] .membership-expiry-alert small { color: #91a0b5; }

/* 平台服务：TRC-20 USDT账号续费 */
.renewal-container { max-width: 1240px; }
.renewal-lock-notice { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 15px 18px; border: 1px solid #fed7aa; border-left: 4px solid #f59e0b; background: #fff7ed; color: #9a3412; }
.renewal-lock-notice strong { font-size: 15px; }
.renewal-lock-notice span { color: #7c2d12; }
.renewal-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.renewal-plan-card { position: relative; display: flex; flex-direction: column; min-height: 360px; padding: 24px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.renewal-plan-card.featured { border-color: #14b8a6; box-shadow: 0 10px 30px rgba(13, 148, 136, .13); }
.renewal-plan-tag { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; }
.renewal-plan-card h2 { margin: 16px 0 12px; font-size: 22px; font-weight: 700; color: var(--ink); }
.renewal-plan-price { display: flex; align-items: baseline; gap: 9px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.renewal-plan-price strong { color: #0f9f8f; font-size: 34px; line-height: 1; }
.renewal-plan-price span { color: var(--muted); font-size: 13px; }
.renewal-plan-card ul { flex: 1; margin: 20px 0; }
.renewal-plan-card li { position: relative; margin: 11px 0; padding-left: 22px; color: var(--muted); }
.renewal-plan-card li::before { content: '✓'; position: absolute; left: 0; color: #0f9f8f; font-weight: 700; }
.renewal-plan-card .layui-btn { width: 100%; margin: 0; }
.renewal-manual-card { margin-top: 22px; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.renewal-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.renewal-section-heading span { color: #7c3aed; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.renewal-section-heading h2 { margin-top: 3px; color: var(--ink); font-size: 20px; font-weight: 700; }
.renewal-section-heading p { max-width: 620px; color: var(--muted); text-align: right; }
.renewal-manual-form { display: grid; grid-template-columns: 180px minmax(320px, 1fr) auto; gap: 12px; align-items: end; }
.renewal-manual-form label > span, .renewal-address-field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.renewal-manual-form select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.renewal-manual-rules { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; color: #667085; font-size: 12px; }
.renewal-manual-rules span::before { content: '•'; margin-right: 7px; color: #7c3aed; }
.renewal-payment-layer { padding: 22px; color: #24324a; }
.renewal-payment-alert { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid #fecaca; background: #fff1f2; color: #b91c1c; }
.renewal-payment-alert b { font-size: 15px; }
.renewal-payment-alert span { font-size: 13px; }
.renewal-payment-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; margin-top: 20px; }
.renewal-payment-qr { display: flex; flex-direction: column; align-items: center; padding: 10px; border: 1px solid #dfe7ef; background: #fff; }
.renewal-payment-qr img { display: block; max-width: 100%; height: auto; }
.renewal-payment-qr small { margin-top: 5px; color: #667085; }
.renewal-payment-details > div { position: relative; min-height: 48px; padding: 7px 84px 7px 0; border-bottom: 1px dashed #dbe4ee; }
.renewal-payment-details span { display: block; color: #667085; font-size: 12px; }
.renewal-payment-details strong { display: block; margin-top: 2px; color: #152238; font-size: 16px; }
.renewal-payment-details .payment-amount strong { color: #e11d48; font-size: 25px; }
.renewal-payment-details .payment-amount i { font-size: 14px; font-style: normal; }
.renewal-payment-details code { display: block; margin-top: 3px; color: #152238; word-break: break-all; }
.renewal-payment-details button { position: absolute; right: 0; top: 14px; padding: 4px 9px; border: 1px solid #cbd5e1; background: #fff; color: #334155; cursor: pointer; }
.renewal-payment-wait { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 13px 15px; background: #f0fdfa; }
.renewal-payment-wait i { width: 12px; height: 12px; border: 2px solid #99f6e4; border-top-color: #0d9488; border-radius: 50%; animation: renewal-spin .9s linear infinite; }
.renewal-payment-wait div { display: flex; flex-direction: column; }
.renewal-payment-wait b { color: #0f766e; }
.renewal-payment-wait b.expired { color: #dc2626; }
.renewal-payment-wait span { color: #53657b; font-size: 12px; line-height: 1.6; }
.renewal-payment-rules { display: flex; justify-content: center; gap: 26px; margin-top: 14px; color: #64748b; font-size: 12px; }
.renewal-payment-rules span::before { content: '✓'; margin-right: 5px; color: #0d9488; }
.renewal-success { min-width: 270px; line-height: 1.8; }
.renewal-success strong { display: block; color: #047857; font-size: 20px; }
.renewal-success p { margin-top: 6px; }
.renewal-success small { color: #667085; }
@keyframes renewal-spin { to { transform: rotate(360deg); } }

.renewal-admin-container { max-width: 780px; }
.renewal-settings-card { padding: 24px; }
.renewal-setting-switch { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.renewal-setting-switch div { display: flex; flex-direction: column; }
.renewal-setting-switch strong { color: var(--ink); font-size: 16px; }
.renewal-setting-switch small { margin-top: 5px; color: var(--muted); }
.renewal-setting-switch input { width: 22px; height: 22px; accent-color: #0d9488; }
.renewal-price-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.renewal-price-fields label > span { display: block; margin-bottom: 6px; color: var(--muted); }
.renewal-price-fields label > div { position: relative; }
.renewal-price-fields input { padding-right: 58px; }
.renewal-price-fields b { position: absolute; right: 10px; top: 8px; color: #64748b; font-weight: 400; }
.renewal-address-field { display: block; }
.renewal-address-field small { display: block; margin-top: 7px; color: #667085; }
.renewal-settings-safety { display: flex; gap: 12px; margin: 18px 0; padding: 12px 14px; border-left: 3px solid #f59e0b; background: #fffbeb; color: #7c5d12; }
.renewal-settings-safety strong { flex: none; }
.renewal-records-container { max-width: none; }
.renewal-records-card { padding: 0; overflow: hidden; }
.renewal-records-scroll { overflow: auto; }
.renewal-records-table { min-width: 1350px; margin: 0; }
.renewal-records-table td { vertical-align: middle; }
.renewal-tx-hash { color: #475569; font-size: 12px; }
.renewal-record-status { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; }
.renewal-record-status.redeemed { background: #dcfce7; color: #15803d; }
.renewal-record-status.unmatched { background: #fff7ed; color: #c2410c; }

html[data-theme="dark"] .renewal-lock-notice { border-color: #854d0e; background: #2b200f; color: #fbbf24; }
html[data-theme="dark"] .renewal-lock-notice span { color: #fcd34d; }
html[data-theme="dark"] .renewal-plan-card, html[data-theme="dark"] .renewal-manual-card { box-shadow: none; }
html[data-theme="dark"] .renewal-plan-tag { background: #0b2d29; color: #5eead4; }
html[data-theme="dark"] .renewal-manual-form select { border-color: #334158; background: #101827; }
html[data-theme="dark"] .renewal-settings-safety { background: #2b200f; color: #fde68a; }
html[data-theme="dark"] .renewal-manual-rules, html[data-theme="dark"] .renewal-address-field small { color: #91a0b5; }
html[data-theme="dark"] .renewal-payment-layer { color: #dce5f1; }
html[data-theme="dark"] .renewal-payment-details > div { border-color: #334158; }
html[data-theme="dark"] .renewal-payment-details span, html[data-theme="dark"] .renewal-payment-qr small { color: #91a0b5; }
html[data-theme="dark"] .renewal-payment-details strong, html[data-theme="dark"] .renewal-payment-details code { color: #edf3fa; }
html[data-theme="dark"] .renewal-payment-details button { border-color: #42516a; background: #101827; color: #dce5f1; }
html[data-theme="dark"] .renewal-payment-wait { background: #122d29; }
html[data-theme="dark"] .renewal-payment-wait span { color: #9bb9b4; }
html[data-theme="dark"] .renewal-payment-rules, html[data-theme="dark"] .renewal-success small, html[data-theme="dark"] .renewal-tx-hash { color: #9eacc0; }

@media (max-width: 760px) {
    .renewal-plan-grid { grid-template-columns: 1fr; gap: 12px; }
    .renewal-plan-card { min-height: 0; padding: 19px; }
    .renewal-section-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
    .renewal-section-heading p { text-align: left; }
    .renewal-manual-form { grid-template-columns: 1fr; }
    .renewal-payment-layer { padding: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
    .renewal-payment-alert, .renewal-lock-notice { align-items: flex-start; flex-direction: column; gap: 5px; }
    .renewal-payment-main { grid-template-columns: 1fr; gap: 14px; }
    .renewal-payment-qr { width: 220px; max-width: 100%; margin: 0 auto; }
    .renewal-payment-rules { flex-wrap: wrap; gap: 7px 16px; }
    .renewal-price-fields { grid-template-columns: 1fr; }
    .renewal-setting-switch { align-items: flex-start; }
}
html[data-theme="dark"] .field-group label,
html[data-theme="dark"] .exchange-title,
html[data-theme="dark"] .layui-table th,
html[data-theme="dark"] .user-table th,
html[data-theme="dark"] .login-label { color: #aab7ca; }
html[data-theme="dark"] .field-group .layui-input,
html[data-theme="dark"] .login-form .layui-input {
    border-color: #334158;
    background: #101827;
    color: #e7edf6;
}
html[data-theme="dark"] .layui-input::placeholder { color: #64748b; }
html[data-theme="dark"] .filter-toggle { border-color: #334158; background: #101827; color: #c4cfdd; }
html[data-theme="dark"] .filter-toggle-disabled { color: #64748b; }
html[data-theme="dark"] .pause-button.paused { border-color: #6b3439; background: #351d23; color: #ff9b96; }
html[data-theme="dark"] .exchange-filter label,
html[data-theme="dark"] .table-legend { color: #97a6ba; }
html[data-theme="dark"] .legend-note,
html[data-theme="dark"] .muted { color: #718096; }
html[data-theme="dark"] .layui-table-view,
html[data-theme="dark"] .layui-table,
html[data-theme="dark"] .layui-table-header,
html[data-theme="dark"] .layui-table-body,
html[data-theme="dark"] .layui-table-main,
html[data-theme="dark"] .layui-table-page {
    border-color: #273449 !important;
    background: #141d2c !important;
    color: #dce5f1;
}
html[data-theme="dark"] .layui-table thead tr,
html[data-theme="dark"] .layui-table-header table,
html[data-theme="dark"] .layui-table-header th { background: #182335 !important; }
html[data-theme="dark"] .layui-table tbody tr { background: #141d2c; color: #dce5f1; }
html[data-theme="dark"] .layui-table tbody tr:hover,
html[data-theme="dark"] .layui-table-hover { background: #1a273a !important; }
html[data-theme="dark"] .layui-table th,
html[data-theme="dark"] .layui-table td { border-color: var(--table-line) !important; }
html[data-theme="dark"] .layui-table-main td.qty-level-high,
html[data-theme="dark"] .layui-table-main td.qty-level-mid { border-color: #fff !important; }
html[data-theme="dark"] .layui-table-page { border-top-color: #273449 !important; }
html[data-theme="dark"] .layui-laypage a,
html[data-theme="dark"] .layui-laypage span,
html[data-theme="dark"] .layui-laypage button,
html[data-theme="dark"] .layui-laypage input,
html[data-theme="dark"] .layui-laypage select {
    border-color: #334158 !important;
    background: #101827 !important;
    color: #aebcd0 !important;
}
html[data-theme="dark"] .layui-laypage .layui-laypage-curr .layui-laypage-em { background: var(--brand); }
html[data-theme="dark"] .layui-btn-primary { border-color: #3a4960; background: #172234; color: #c8d3e2; }
html[data-theme="dark"] .copy-symbol { color: #e4ebf5; }
html[data-theme="dark"] .spread-value { color: #ff7770; }
html[data-theme="dark"] .exchange-pill { background: #223047; color: #d6e0ed; }
html[data-theme="dark"] .margin-badge { border-color: #27654f; background: #153a30; color: #66e0b2; }
html[data-theme="dark"] .price-value { color: #d7e1ee; }
html[data-theme="dark"] .note-input { color: #f1f5f9; }
html[data-theme="dark"] .note-input::placeholder,
html[data-theme="dark"] .note-input::-webkit-input-placeholder,
html[data-theme="dark"] .note-input::-moz-placeholder { color: #56657a; }
html[data-theme="dark"] .note-input:hover,
html[data-theme="dark"] .note-input:focus { border-color: #3e506b; background: #0f1827; }
html[data-theme="dark"] .delay { color: #93a4ba; }
html[data-theme="dark"] .transfer-ok { color: #66e0b2; }
html[data-theme="dark"] .transfer-ok i, html[data-theme="dark"] .transfer-legend.ok { background: #153a30; color: #66e0b2; }
html[data-theme="dark"] .transfer-unknown, html[data-theme="dark"] .transfer-locked { color: #91a0b5; }
html[data-theme="dark"] .transfer-unknown i, html[data-theme="dark"] .transfer-locked i, html[data-theme="dark"] .transfer-legend.locked { background: #26334a; color: #b9c6d8; }
html[data-theme="dark"] .transfer-withdraw_closed, html[data-theme="dark"] .transfer-deposit_closed, html[data-theme="dark"] .transfer-no_common, html[data-theme="dark"] .transfer-contract_mismatch { color: #ff9690; }
html[data-theme="dark"] .transfer-withdraw_closed i, html[data-theme="dark"] .transfer-deposit_closed i, html[data-theme="dark"] .transfer-no_common i, html[data-theme="dark"] .transfer-contract_mismatch i { background: #4a2229; color: #ff9690; }
html[data-theme="dark"] .empty-state > span { background: #153a30; }
html[data-theme="dark"] .block-item { background: #111a29; }
html[data-theme="dark"] .password-card { background: #141d2c; }
html[data-theme="dark"] .block-route { color: #c8d3e2; }
html[data-theme="dark"] .legacy-route { color: #fdbd74; }
html[data-theme="dark"] .role-badge,
html[data-theme="dark"] .status-badge { background: #26334a; color: #b9c6d8; }
html[data-theme="dark"] .role-badge.admin { background: #352b59; color: #c5b5ff; }
html[data-theme="dark"] .status-badge.enabled { background: #153a30; color: #66e0b2; }
html[data-theme="dark"] .status-badge.disabled { background: #4a2229; color: #ff9690; }
html[data-theme="dark"] .membership-badge { background: #26334a; color: #b9c6d8; }
html[data-theme="dark"] .membership-badge.premium { background: #153a30; color: #66e0b2; }
html[data-theme="dark"] .membership-level,
html[data-theme="dark"] .user-type,
html[data-theme="dark"] .membership-expiry { border-color: #334158; background: #101827; color: #e7edf6; }
html[data-theme="dark"] .login-page { background: radial-gradient(circle at 20% 10%, #1d3765 0, transparent 35%), linear-gradient(135deg, #070c15, #111b2d); }
html[data-theme="dark"] .login-card { border-color: #28354a; background: rgba(20,29,44,.98); }
html[data-theme="dark"] .login-remember { color: #c4cfdd; }
html[data-theme="dark"] .form-error { border-color: #6b3439; background: #351d23; color: #ff9b96; }
html[data-theme="dark"] .layui-layer { background: #172234; color: #e2e8f0; }
html[data-theme="dark"] .layui-layer-msg { border-color: #334158; box-shadow: 0 8px 28px rgba(0,0,0,.35); }

/* Layui 管理台布局 */
.admin-sidebar {
    position: fixed !important;
    z-index: 1002;
    top: 0 !important;
    bottom: 0 !important;
    left: 0;
    width: 170px !important;
    overflow: hidden;
    background: #20222a !important;
    transition: transform .2s ease;
}
.admin-sidebar .layui-side-scroll { width: 190px; padding-bottom: 24px; }
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 170px;
    height: 60px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #191b22;
    color: #f1f3f6;
    font-size: 15px;
}
.sidebar-brand .brand-mark { width: 30px; height: 30px; border-radius: 3px; background: #009688; font-size: 20px; }
.sidebar-nav,
.sidebar-nav.layui-nav-tree { width: 170px; padding: 10px 0; background: transparent; }
.sidebar-nav .layui-nav-item > a { height: 46px; line-height: 46px; padding: 0 18px; color: #c2c2c2; }
.sidebar-nav .layui-nav-child { padding: 0; background: #16181d !important; }
.sidebar-nav .layui-nav-child dd a { height: 42px; line-height: 42px; padding-left: 45px; color: #aeb3be; }
.sidebar-nav .layui-nav-child dd.layui-this,
.sidebar-nav .layui-nav-child dd.layui-this a { background: #009688 !important; color: #fff; }
.sidebar-nav .layui-nav-more { right: 16px; }
.nav-icon { display: inline-block; width: 23px; color: #8d97a6; font-size: 15px; }

.admin-header.topbar {
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    left: 170px;
    height: 60px;
    gap: 18px;
    padding: 0 20px;
    border-bottom: 1px solid #252b36;
    background: #191b22;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: left .2s ease;
}
.sidebar-toggle { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 2px; background: transparent; color: #c7ccd5; font-size: 20px; cursor: pointer; }
.sidebar-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.header-title { display: flex; align-items: baseline; gap: 11px; min-width: 220px; }
.header-title strong { color: #f1f3f6; font-size: 15px; }
.header-title span { color: #8e96a3; font-size: 12px; }
.header-market-strip { display: flex; align-self: stretch; gap: 0; margin-left: 12px; }
.header-market-strip > span { display: flex; align-items: center; gap: 9px; padding: 0 16px; border-left: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.header-market-strip b { color: #e3e7ed; font-size: 13px; }
.header-market-strip em { min-width: 74px; color: #31c9a9; font-size: 15px; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.header-market-strip small { font-size: 11px; font-variant-numeric: tabular-nums; }
.ticker-change { min-width: 55px; color: #9aa4b2; }
.ticker-change.up { color: #31c9a9; }
.ticker-change.down { color: #ff7770; }
.ticker-change.flat { color: #aeb8c8; }
.header-market-strip > .ticker-source { gap: 6px; padding-right: 8px; color: #8e96a3; }
.ticker-state { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.ticker-state.live { background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.14); }
.ticker-state.offline { background: #f04438; box-shadow: 0 0 0 3px rgba(240,68,56,.13); }
.admin-header .account-area { margin-left: auto; }

.app-page .page-container {
    width: auto;
    max-width: none;
    margin: 0 0 0 170px;
    padding: 76px 18px 34px;
    transition: margin-left .2s ease;
}
.app-page .narrow-container { width: auto; max-width: none; }
.sidebar-collapsed .admin-sidebar { transform: translateX(-170px); }
.sidebar-collapsed .admin-header { left: 0; }
.sidebar-collapsed .page-container { margin-left: 0; }

.market-notice {
    margin: -16px -18px 14px;
    padding: 8px 18px;
    border-bottom: 1px solid #e4c746;
    background: #fff3a6;
    color: #b45f06;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
}
.market-page-heading { align-items: center; margin-bottom: 12px; }
.market-page-heading .eyebrow { display: none; }
.market-page-heading h1 { margin: 0 0 3px; font-size: 18px; font-weight: 600; }
.market-page-heading p { font-size: 12px; }
.market-page-heading .status-card { min-width: 215px; padding: 7px 11px; border-radius: 2px; box-shadow: none; }

.filter-card,
.table-card,
.simple-card { border-radius: 2px; box-shadow: none; }
.filter-card { margin-bottom: 12px; padding: 12px 14px; }
.filter-main { gap: 10px; }
.field-group { min-width: 135px; }
.field-group.wide-field { min-width: 190px; }
.field-group.refresh-field { min-width: 125px; }
.field-group.toggle-field { min-width: 120px; }
.field-group label { margin-bottom: 5px; font-weight: 400; }
.field-group .layui-input { height: 34px; border-radius: 2px; }
.filter-toggle { height: 34px; border-radius: 2px; }
.filter-actions .layui-btn { height: 34px; line-height: 34px; border-radius: 2px; }
.primary-button { border-radius: 2px; }
.exchange-filter-row { margin-top: 11px; padding-top: 10px; }
.exchange-filter { gap: 6px 12px; }

.table-card { padding: 0; }
.table-legend { min-height: 39px; padding: 7px 14px; gap: 18px; }
.table-card .layui-table-view { border: 0; }
.layui-table th { background: #f2f2f2; font-weight: 400; }
.layui-table-cell { min-height: 24px; padding: 3px 8px; }
.layui-table-main td[data-field="buy_qty"] .layui-table-cell,
.layui-table-main td[data-field="sell_qty"] .layui-table-cell { height: 100%; padding: 0; }
.layui-table-main td.qty-level-high,
.layui-table-main td.qty-level-mid { padding-top: 0 !important; padding-bottom: 0 !important; }
.qty-box { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 30px; margin: 0; padding: 3px 8px; border-radius: 0; text-align: center; }
.favorite-button { font-size: 25px; }
.copy-symbol { color: #007d71; }
.exchange-pill { padding: 2px 6px; border-radius: 2px; background: transparent; font-weight: 700; }
.margin-badge { border-radius: 2px; }
.note-input { border-radius: 2px; }
.row-actions { gap: 8px; }
.row-actions button { padding: 2px 3px; }
.simple-card { padding: 14px; }
.block-item { border-radius: 2px; }

html[data-theme="dark"] .market-notice { border-color: #6b5d20; background: #403816; color: #f2c96d; }
html[data-theme="dark"] .layui-table th { background: #182335 !important; }
html[data-theme="dark"] .copy-symbol { color: #7edbd1; }
html[data-theme="dark"] .exchange-pill { background: transparent; }

@media (max-width: 960px) {
    .admin-sidebar { transform: translateX(-170px); box-shadow: 6px 0 24px rgba(0,0,0,.28); }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-header.topbar { left: 0; height: 60px; padding: 0 12px; flex-wrap: nowrap; }
    .app-page .page-container { margin-left: 0; padding: 74px 12px 28px; }
    .header-market-strip { display: none; }
    .header-title { min-width: 0; }
    .header-title span { display: none; }
    .filter-main { flex-wrap: wrap; }
    .field-group, .field-group.wide-field { flex: 1 1 200px; }
    .exchange-filter-row { grid-template-columns: 1fr; }
    .table-card { overflow-x: auto; }
    .table-card > .layui-table-view { min-width: 1540px; }
}

@media (max-width: 620px) {
    .admin-header .account-name { display: none; }
    .admin-header .theme-picker > span { display: none; }
    .admin-header .account-area { gap: 8px; }
    .theme-select { width: 65px; padding-left: 6px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .status-card { width: 100%; }
    .filter-actions { width: 100%; }
    .filter-actions .layui-btn { flex: 1; }
    .table-legend { align-items: flex-start; flex-direction: column; gap: 6px; }
    .legend-note { margin-left: 0; }
    .inline-form { flex-direction: column; align-items: stretch; }
    .inline-form .field-group { width: 100%; }
    .password-card { width: 100%; }
    .table-responsive { overflow-x: auto; }
    .user-table { min-width: 760px; }
    .login-card { padding: 30px 24px; }
    .market-notice { margin-top: -14px; }
}

/* 汇率对冲：延续 Layui 管理台的浅色、紧凑和低学习成本布局。 */
.compact-heading { align-items: center; margin-bottom: 14px; }
.compact-heading h1 { margin-bottom: 5px; font-size: 21px; }
.rate-page { padding-bottom: 44px !important; }
.rate-explain-card { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; padding: 12px 15px; border-color: #d9eee9; background: #f4fbf9; }
.rate-explain-icon { display: grid; flex: 0 0 42px; place-items: center; height: 34px; border-radius: 2px; background: #009688; color: #fff; font-size: 12px; font-weight: 700; }
.rate-explain-card strong { display: block; margin-bottom: 3px; color: #176b61; font-size: 13px; }
.rate-explain-card p { margin: 0; color: #5c716e; font-size: 12px; line-height: 19px; }
.rate-query-card { padding: 11px 14px; }
.rate-query-form { display: flex; align-items: flex-end; gap: 10px; }
.rate-query-form .field-group { flex: 0 0 180px; }
.rate-query-form .layui-input { text-transform: uppercase; font-weight: 700; }
.rate-divider { padding-bottom: 7px; color: #98a2b3; font-size: 19px; }
.rate-query-actions { display: flex; align-items: center; gap: 7px; }
.rate-query-actions .layui-btn { margin: 0; white-space: nowrap; }
.rate-search-button { height: 34px; line-height: 34px; }
.rate-copy-button { height: 34px; line-height: 32px; }
.rate-periods { display: inline-flex; align-items: center; margin-left: auto; overflow: hidden; border: 1px solid #d8dee8; border-radius: 2px; }
.period-button { min-width: 58px; height: 32px; padding: 0 13px; border: 0; border-left: 1px solid #e6eaf0; background: #fff; color: #526075; cursor: pointer; }
.period-button:first-child { border-left: 0; }
.period-button:hover { background: #f4f8fa; color: #009688; }
.period-button.active { background: #009688; color: #fff; }

.rate-chart-card { margin-top: 12px; overflow: hidden; border: 1px solid #dfe5ec; border-radius: 2px; background: var(--paper); }
.chart-card-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 82px; padding: 13px 18px 11px; border-bottom: 1px solid var(--line); }
.chart-kicker { color: #7b8da5; font-size: 10px; letter-spacing: 1.5px; }
.chart-card-header h2 { margin: 4px 0 3px; color: var(--ink); font-size: 17px; line-height: 23px; }
.chart-card-header p { margin: 0; color: var(--muted); font-size: 11px; }
.rate-chart-header-tools { display: flex; align-items: flex-end; flex: 0 0 auto; flex-direction: column; gap: 8px; }
.rate-chart-header-tools .rate-periods { margin-left: 0; }
.chart-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px 22px; color: #667085; font-size: 11px; }
.chart-summary b { margin-left: 4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.positive-color { color: #009688 !important; }
.negative-color { color: #e74c3c !important; }
.rate-asset-profile-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 12px 0 0; }
.rate-asset-profile-card { box-sizing: border-box; min-width: 0; padding: 12px 14px; border: 1px solid #dfe5ec; border-top: 3px solid #00a78f; background: var(--paper); }
.rate-asset-profile-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.rate-asset-profile-card > header > span { color: #7b8493; font-size: 10px; letter-spacing: .6px; }
.rate-asset-profile-card > header > b { flex: 0 0 auto; padding: 3px 8px; border-radius: 99px; background: #eef1f5; color: #5f6b7a; font-size: 10px; }
.rate-asset-profile-card h2 { margin: 0 0 6px; color: var(--ink); font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.rate-asset-profile-card p { min-height: 36px; margin: 0 0 5px; color: #526075; font-size: 11px; line-height: 18px; }
.rate-asset-profile-card small { display: block; color: #8a96a8; font-size: 9px; line-height: 16px; }
.rate-asset-profile-panel.loading .rate-asset-profile-card { border-top-color: #98a2b3; background: #f8fafc; }
.rate-asset-profile-card > header > b.category-crypto { background: #e4f7f3; color: #007f6f; }
.rate-asset-profile-card > header > b.category-stock, .rate-asset-profile-card > header > b.category-etf { background: #e8f1ff; color: #2563a7; }
.rate-asset-profile-card > header > b.category-metal, .rate-asset-profile-card > header > b.category-metal_token { background: #fff2c7; color: #976400; }
.rate-asset-profile-card > header > b.category-commodity { background: #fff0e6; color: #a44b12; }
.rate-asset-profile-card > header > b.category-index { background: #efe9ff; color: #6246b3; }
.rate-asset-profile-card > header > b.category-forex { background: #e9f6ff; color: #176b95; }
.rate-depth-panel { box-sizing: border-box; width: 100%; margin: 12px 0 0; padding: 12px 14px 14px; border: 1px solid #dfe5ec; background: #f8fafc; }
.rate-depth-panel-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.rate-depth-panel-header span { color: #7b8da5; font-size: 9px; letter-spacing: 1.3px; }
.rate-depth-panel-header h2 { margin: 3px 0 0; color: var(--ink); font-size: 14px; }
.rate-depth-panel-header p { margin: 0; color: #7b8493; font-size: 10px; }
.rate-depth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rate-depth-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.rate-depth-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 35px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.rate-depth-card > header strong { color: var(--ink); font-size: 12px; }
.rate-depth-card > header span { color: #8a96a8; font-size: 9px; }
.rate-depth-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.rate-depth-totals > div { padding: 8px 10px; }
.rate-depth-totals > div + div { border-left: 1px solid var(--line); }
.rate-depth-totals span, .rate-depth-totals b { display: block; }
.rate-depth-totals span { margin-bottom: 3px; color: #7b8493; font-size: 9px; }
.rate-depth-totals b { font-size: 14px; font-variant-numeric: tabular-nums; }
.rate-depth-totals .bid b { color: #009688; }
.rate-depth-totals .ask b { color: #e74c3c; }
.rate-depth-table { padding: 5px 10px 7px; }
.rate-depth-row { display: grid; grid-template-columns: 26px minmax(72px, 1.2fr) minmax(62px, 1fr) minmax(72px, 1.2fr) minmax(62px, 1fr); align-items: center; min-height: 25px; border-bottom: 1px dashed #edf0f4; color: #526075; font-size: 10px; font-variant-numeric: tabular-nums; }
.rate-depth-row span { min-width: 0; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.rate-depth-row span:first-child { text-align: left; color: #98a2b3; }
.rate-depth-row .bid-price, .rate-depth-row .bid-usdt { color: #008675; }
.rate-depth-row .ask-price, .rate-depth-row .ask-usdt { color: #d94133; }
.rate-depth-row.head { color: #98a2b3; font-size: 9px; }
.rate-depth-row.head span { color: inherit; }
.rate-depth-empty { display: grid; min-height: 125px; place-items: center; color: #98a2b3; font-size: 10px; }
.rate-depth-card > small { display: block; padding: 0 10px 8px; color: #8a96a8; font-size: 9px; line-height: 15px; }
.rate-depth-card.stale > header span, .rate-depth-card.stale > small { color: #ad7200; }
.rate-fair-panel { box-sizing: border-box; width: 100%; margin: 12px 0 0; padding: 11px 13px; border: 1px solid #dfe5ec; border-left: 3px solid #98a2b3; background: #f8fafc; }
.rate-fair-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.rate-fair-panel > header > div { display: flex; align-items: baseline; gap: 8px; }
.rate-fair-panel > header span { color: #8a96a8; font-size: 9px; letter-spacing: 1px; }
.rate-fair-panel > header strong { color: var(--ink); font-size: 13px; }
.rate-fair-panel > header > b { padding: 3px 8px; border-radius: 99px; background: #eef1f5; color: #667085; font-size: 10px; }
.rate-fair-panel.stable { border-left-color: #00a78f; background: #f3fbf9; }
.rate-fair-panel.stable > header > b { background: #dff6f0; color: #007d6d; }
.rate-fair-panel.weakening { border-left-color: #f2b01e; background: #fffbef; }
.rate-fair-panel.weakening > header > b { background: #fff0bf; color: #946200; }
.rate-fair-panel.broken { border-left-color: #e74c3c; background: #fff6f5; }
.rate-fair-panel.broken > header > b { background: #ffe2df; color: #b83228; }
.rate-fair-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper); }
.rate-fair-metrics > div { min-width: 0; padding: 8px 10px; border-left: 1px solid var(--line); }
.rate-fair-metrics > div:first-child { border-left: 0; }
.rate-fair-metrics span, .rate-fair-metrics strong { display: block; }
.rate-fair-metrics span { margin-bottom: 3px; color: #7b8493; font-size: 10px; }
.rate-fair-metrics strong { overflow-wrap: anywhere; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.rate-fair-panel.stable .rate-fair-metrics .relation strong { color: #008675; }
.rate-fair-panel.weakening .rate-fair-metrics .relation strong { color: #ad7200; }
.rate-fair-panel.broken .rate-fair-metrics .relation strong { color: #d33d32; }
.rate-fair-panel > p { margin: 8px 0 3px; color: #526075; font-size: 11px; line-height: 18px; }
.rate-fair-panel > small { display: block; color: #8a96a8; font-size: 9px; line-height: 16px; }
.rate-chart { position: relative; width: 100%; height: 310px; overflow: hidden; background: var(--paper); }
.chart-loading, .chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #98a2b3; font-size: 12px; }
.rate-chart-svg { display: block; width: 100%; height: 100%; }
.chart-grid { stroke: #e7ecf2; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: #8491a4; font-size: 10px; font-family: "Microsoft YaHei", Arial, sans-serif; }
.chart-series { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-reference { stroke: #e74c3c; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart-reference-label { fill: #d94133; font-size: 10px; font-family: "Microsoft YaHei", Arial, sans-serif; }
.chart-extrema-point { fill: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-extrema-point.high { stroke: #e74c3c; }
.chart-extrema-point.low { stroke: #009688; }
.chart-extrema-label { font-size: 10px; font-weight: 700; font-family: "Microsoft YaHei", Arial, sans-serif; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.chart-extrema-label.high { fill: #e74c3c; }
.chart-extrema-label.low { fill: #009688; }
.chart-cursor { display: none; stroke: #667085; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart-tooltip { position: absolute; z-index: 3; display: none; min-width: 168px; padding: 9px 11px; border: 1px solid #d9e1ea; border-radius: 3px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(16,24,40,.13); color: #344054; pointer-events: none; }
.chart-tooltip strong { display: block; margin-bottom: 5px; color: #667085; font-size: 10px; }
.chart-tooltip span { display: flex; align-items: center; gap: 6px; min-width: 145px; line-height: 21px; font-size: 11px; }
.chart-tooltip span i { width: 7px; height: 7px; border-radius: 50%; }
.chart-tooltip span b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-tooltip span.tooltip-deviation { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.chart-tooltip span.tooltip-deviation i { background: transparent; }
.chart-card-footer { display: flex; align-items: center; gap: 7px; min-height: 35px; padding: 6px 18px; border-top: 1px solid var(--line); color: #667085; font-size: 10px; }
.legend-line { display: inline-block; width: 18px; height: 2px; margin-left: 11px; background: #1e9fff; }
.legend-line:first-child { margin-left: 0; }
.midline-line { background: #e74c3c; }
.fair-ratio-line { height: 3px; background: #f2b01e; }
.asset-a-line { background: #16b8c9; }
.asset-b-line { background: #ff5a78; }
.chart-footnote { margin-left: auto; color: #98a2b3; }
.rate-candle-section { margin-top: 12px; }
.rate-candle-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; padding: 0 2px; }
.rate-candle-section-header h2 { margin: 3px 0 0; color: var(--ink); font-size: 15px; }
.rate-candle-section-header p { margin: 0; color: #8a94a3; font-size: 10px; }
.rate-candle-toolbar { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
.rate-candle-periods { display: inline-flex; overflow: hidden; border: 1px solid #d8dee8; border-radius: 2px; background: var(--paper); }
.candle-period-button { min-width: 58px; height: 30px; padding: 0 11px; border: 0; border-left: 1px solid #e6eaf0; background: transparent; color: #526075; font-size: 11px; cursor: pointer; }
.candle-period-button:first-child { border-left: 0; }
.candle-period-button:hover { background: #f4f8fa; color: #009688; }
.candle-period-button.active { background: #009688; color: #fff; }
.rate-candle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rate-candle-card { min-width: 0; overflow: hidden; border: 1px solid #dfe5ec; border-radius: 2px; background: var(--paper); }
.rate-candle-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.rate-candle-card-header > div:first-child > span { color: #8a96a8; font-size: 9px; letter-spacing: 1px; }
.rate-candle-card-header h3 { margin: 3px 0 0; color: var(--ink); font-size: 14px; }
.rate-candle-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px 14px; color: #7b8493; font-size: 10px; }
.rate-candle-summary b { margin-left: 3px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rate-candle-chart { position: relative; width: 100%; height: 290px; overflow: hidden; background: var(--paper); cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rate-candle-chart.dragging { cursor: grabbing; }
.rate-candle-svg { display: block; width: 100%; height: 100%; }
.candle-wick { stroke-width: 1; vector-effect: non-scaling-stroke; }
.candle-body { stroke-width: .7; vector-effect: non-scaling-stroke; }
.candle-wick.up, .candle-body.up { stroke: #009688; fill: #009688; }
.candle-wick.down, .candle-body.down { stroke: #e74c3c; fill: #e74c3c; }
.candle-viewport-status { position: absolute; z-index: 2; top: 7px; right: 8px; display: flex; align-items: center; gap: 7px; padding: 4px 7px; border: 1px solid rgba(216,222,232,.88); border-radius: 2px; background: rgba(255,255,255,.88); color: #667085; font-size: 9px; line-height: 14px; pointer-events: none; }
.candle-viewport-status span { color: #344054; font-variant-numeric: tabular-nums; }
.candle-viewport-status em { color: #98a2b3; font-style: normal; }
.rate-candle-footer { display: flex; align-items: center; gap: 13px; min-height: 33px; padding: 5px 13px; border-top: 1px solid var(--line); color: #7b8493; font-size: 9px; }
.rate-candle-footer span { display: inline-flex; align-items: center; gap: 4px; }
.rate-candle-footer i { display: inline-block; width: 7px; height: 11px; background: #009688; }
.rate-candle-footer i.down { background: #e74c3c; }
.rate-candle-footer > em { margin-left: auto; color: #98a2b3; font-style: normal; }
.rate-candle-controls { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.rate-candle-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 58px; height: 27px; padding: 0 7px; border: 1px solid #d8dee8; border-radius: 2px; background: #fff; color: #526075; font-size: 12px; line-height: 25px; cursor: pointer; touch-action: manipulation; }
.rate-candle-controls button:hover:not(:disabled) { border-color: #009688; background: #eef9f7; color: #007d71; }
.rate-candle-controls button:active:not(:disabled) { transform: translateY(1px); }
.rate-candle-controls button:disabled { background: #f3f5f7; color: #b2bac5; cursor: not-allowed; opacity: .65; }
.rate-candle-controls button em { margin: 0; color: inherit; font-size: 9px; font-style: normal; }

.rate-table-card { min-height: 0; }
.watch-fair-status { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 2px 7px; border-radius: 99px; font-size: 11px; line-height: 18px; }
.watch-fair-status.stable { background: #dff6f0; color: #007d6d; }
.watch-fair-status.weakening { background: #fff0bf; color: #946200; }
.watch-fair-status.broken { background: #ffe2df; color: #b83228; }
.watch-fair-status.unavailable { background: #eef1f5; color: #667085; }
.rate-pair-name { color: #007d71; letter-spacing: .3px; }
.position-history-pair-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.position-history-pair-link > span { color: #98a2b3; font-size: 10px; line-height: 1; transition: color .15s ease, transform .15s ease; }
.position-history-pair-link:hover .rate-pair-name { color: #009688; text-decoration: underline; text-underline-offset: 3px; }
.position-history-pair-link:hover > span { color: #009688; transform: translate(1px, -1px); }
.square-tip { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; border-left: 3px solid #009688; color: #667085; }
.square-tip strong { color: #176b61; }
.leaderboard-button { color: #9a6700 !important; }
.copy-leaderboard { display: flex; flex-direction: column; height: 100%; padding: 14px; color: var(--ink); }
.leaderboard-month-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 9px 12px; border: 1px solid var(--line); background: #f8fafc; }
.leaderboard-month-toolbar label { color: #344054; font-size: 12px; font-weight: 600; white-space: nowrap; }
.leaderboard-month-toolbar .layui-input { width: 156px; height: 34px; }
.leaderboard-month-loading { margin-left: auto; color: #7b8493; font-size: 11px; white-space: nowrap; }
.leaderboard-content { display: flex; flex: 1; min-height: 0; flex-direction: column; transition: opacity .15s ease; }
.leaderboard-content.loading { opacity: .5; pointer-events: none; }
.leaderboard-note { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border-left: 3px solid #e5a50a; background: #fff9e8; color: #667085; font-size: 11px; line-height: 19px; }
.leaderboard-note strong { flex: 0 0 auto; color: #8a5b00; font-size: 13px; }
.leaderboard-formulas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
.leaderboard-formulas > div { min-width: 0; padding: 8px 9px; border: 1px solid var(--line); background: #f8fafc; }
.leaderboard-formulas b, .leaderboard-formulas span { display: block; }
.leaderboard-formulas b { margin-bottom: 3px; color: #344054; font-size: 11px; }
.leaderboard-formulas span { color: #7b8493; font-size: 10px; line-height: 16px; }
.leaderboard-table-wrap { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); }
.copy-leaderboard table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 12px; }
.copy-leaderboard th, .copy-leaderboard td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.copy-leaderboard th { position: sticky; top: 0; z-index: 1; background: #f5f7fa; color: #526075; font-weight: 600; }
.copy-leaderboard tbody tr:first-child { background: #fffaf0; }
.leaderboard-rank { min-width: 68px; }
.leaderboard-champion { display: inline-block; margin-right: 6px; font-size: 18px; line-height: 1; vertical-align: -2px; }
.leaderboard-empty { height: 120px; color: var(--muted); }
.recommendation-status-card { min-width: 250px; padding: 9px 13px; border-radius: 2px; box-shadow: none; }
.recommendation-heading-actions { flex-wrap: nowrap; }
#recommendation-manual-refresh { min-width: 132px; margin: 0; }
#recommendation-manual-refresh:disabled { border-color: #d8dee8; background: #eef2f6; color: #7b8493; cursor: not-allowed; opacity: 1; }
.recommendation-rules { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; padding: 11px 14px; border-left: 3px solid #009688; color: #667085; font-size: 11px; }
.recommendation-rules strong { color: #176b61; }
.recommendation-rules span { white-space: nowrap; }
.recommendation-tier-rules { display: grid; gap: 8px; }
.recommendation-tier-rules > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.recommendation-tier-badge { display: inline-block; min-width: 72px; box-sizing: border-box; padding: 3px 8px; border: 1px solid; border-radius: 10px; text-align: center; font-size: 10px; line-height: 14px; }
.recommendation-tier-badge.strict { border-color: #75cfc1; background: #eaf9f6; color: #087a6d; }
.recommendation-tier-badge.relaxed { border-color: #e5c06c; background: #fff9e8; color: #9a6700; }
.recommendation-tier-badge.extreme { border-color: #ef8f85; background: #fff0ee; color: #c53628; }
.recommendation-method-note { margin: -5px 2px 12px; color: #8a94a3; font-size: 10px; line-height: 18px; }
.recommendation-filter-card { padding: 10px 14px; }
.recommendation-scan-summary { margin-left: auto; color: #7b8493; font-size: 11px; }
.recommendation-table-card { min-height: 0; }
.recommendation-table-card .layui-table td .layui-table-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-height: 56px;
    line-height: 18px;
    overflow: hidden;
}
.recommendation-table-card .layui-table td .layui-btn { flex: 0 0 auto; }
.recommendation-table-card .layui-table td .layui-btn + .layui-btn { margin: 3px 0 0; }
.recommendation-table-card b { font-size: 11px; font-weight: 700; }
.recommendation-sub { display: block; margin-top: 2px; color: #7b8493; font-size: 10px; font-style: normal; white-space: nowrap; }
.recommendation-table-card.extreme-recommendation-mode .layui-table td .layui-table-cell {
    box-sizing: border-box;
    height: auto;
    min-height: 96px;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: visible;
}
.recommendation-table-card.extreme-recommendation-mode .recommendation-sub {
    max-width: 100%;
    line-height: 15px;
    white-space: normal;
    overflow-wrap: anywhere;
}
.recommendation-sub em { font-style: normal; }
.recommendation-score { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid #1abc9c; border-radius: 50%; background: #eaf9f6; color: #087a6d; font-size: 15px; font-weight: 700; }
.recommendation-table-card .recommendation-live-value { font-size: 15px; font-weight: 700; }
.direction-badge { display: inline-block; padding: 2px 7px; border: 1px solid; border-radius: 2px; font-size: 11px; font-weight: 700; }
.direction-badge.high { border-color: #f1b4ae; background: #fff4f2; color: #c8372b; }
.direction-badge.low { border-color: #9ddfd5; background: #edfaf7; color: #087a6d; }
.login-page .login-theme-picker { color: #526075; }
.login-page .login-theme-picker .theme-select { border-color: #cfd8e3; background: #fff; color: #344054; }
.user-action-buttons { display: flex; align-items: center; flex-wrap: nowrap; gap: 5px; white-space: nowrap; }
.user-action-buttons .layui-btn { margin: 0; }
.user-password-reset-layer { padding: 18px 20px 6px; }
.user-password-reset-layer .field-group { margin-bottom: 13px; }
.user-password-reset-tip { margin-bottom: 15px; padding: 9px 11px; border-left: 3px solid #e5a50a; background: #fff9e8; color: #667085; font-size: 12px; line-height: 20px; }
.user-password-reset-tip strong { color: #344054; }
.admin-wecom-bind-layer { box-sizing: border-box; height: 100%; padding: 18px 20px 12px; overflow: hidden; display: flex; flex-direction: column; }
.admin-wecom-bind-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.admin-wecom-bind-form .field-group { margin: 0; }
.admin-wecom-bind-form .layui-btn { margin: 0; }
.admin-wecom-members-tip { margin: 10px 0 7px; color: #7b8493; font-size: 11px; }
.admin-wecom-members { min-height: 180px; flex: 1; overflow: auto; border: 1px solid #e3e9f0; background: #fbfcfe; }
.admin-wecom-members-head, .admin-wecom-member { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(150px, 1.2fr) 54px; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid #e8edf3; }
.admin-wecom-members-head { position: sticky; top: 0; z-index: 1; background: #f2f5f8; color: #667085; font-size: 11px; }
.admin-wecom-member strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #344054; }
.admin-wecom-member code { min-width: 0; overflow-wrap: anywhere; color: #576b95; font-size: 12px; }
.admin-wecom-member .layui-btn { margin: 0; }
.admin-wecom-members-empty { padding: 48px 16px; color: #98a2b3; text-align: center; line-height: 22px; }
.admin-hedge-profit-layer { min-height: 500px; box-sizing: border-box; padding: 18px 20px 42px; }
.admin-hedge-profit-user { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; padding: 9px 11px; border-left: 3px solid #009688; background: #f2fbf9; }
.admin-hedge-profit-user span, .admin-hedge-profit-user small { color: #7b8493; font-size: 11px; }
.admin-hedge-profit-user strong { color: #172033; font-size: 14px; }
.admin-hedge-profit-user small { margin-left: auto; }
.admin-hedge-profit-filter { display: flex; align-items: flex-end; gap: 10px; }
.admin-hedge-profit-filter .field-group { flex: 1; min-width: 0; }
.admin-hedge-profit-filter .layui-btn { flex: 0 0 auto; height: 34px; line-height: 34px; }
.admin-hedge-profit-range { margin: 13px 0 8px; color: #7b8493; font-size: 11px; }
.admin-hedge-profit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; min-height: 70px; }
.admin-hedge-profit-summary > div:not(.admin-hedge-profit-loading) { min-width: 0; padding: 11px 12px; border: 1px solid #e1e7ee; background: #fafbfc; }
.admin-hedge-profit-summary span { display: block; margin-bottom: 5px; color: #7b8493; font-size: 10px; white-space: nowrap; }
.admin-hedge-profit-summary strong { color: #172033; font-size: 16px; font-variant-numeric: tabular-nums; }
.admin-hedge-profit-summary small { margin-left: 4px; color: #98a2b3; font-size: 9px; }
.admin-hedge-profit-summary strong.positive-color { color: #009688; }
.admin-hedge-profit-summary strong.negative-color { color: #e74c3c; }
.admin-hedge-profit-loading { grid-column: 1 / -1; display: grid; place-items: center; min-height: 70px; border: 1px dashed #d7dee8; color: #7b8493; }
.admin-hedge-profit-loading.error { color: #e74c3c; }
.admin-hedge-profit-formulas { display: grid; gap: 4px; margin-top: 12px; color: #8a94a3; font-size: 10px; line-height: 17px; }

html[data-theme="dark"] .rate-explain-card { border-color: #28554e; background: #122d29; }
html[data-theme="dark"] .rate-explain-card strong { color: #73dbcc; }
html[data-theme="dark"] .rate-explain-card p { color: #9bb9b4; }
html[data-theme="dark"] .period-button { border-color: #334158; background: #101827; color: #b9c6d8; }
html[data-theme="dark"] .period-button:hover { background: #172638; color: #73dbcc; }
html[data-theme="dark"] .period-button.active { background: #009688; color: #fff; }
html[data-theme="dark"] .rate-periods, html[data-theme="dark"] .rate-chart-card, html[data-theme="dark"] .rate-candle-card { border-color: #2b394e; }
html[data-theme="dark"] .rate-candle-periods { border-color: #334158; }
html[data-theme="dark"] .candle-period-button { border-color: #334158; color: #b9c6d8; }
html[data-theme="dark"] .candle-period-button:hover { background: #172638; color: #73dbcc; }
html[data-theme="dark"] .candle-period-button.active { background: #009688; color: #fff; }
html[data-theme="dark"] .candle-viewport-status { border-color: rgba(58,73,96,.9); background: rgba(17,26,41,.9); color: #b9c6d8; }
html[data-theme="dark"] .candle-viewport-status span { color: #e4ebf4; }
html[data-theme="dark"] .rate-candle-controls button { border-color: #334158; background: #172132; color: #b9c6d8; }
html[data-theme="dark"] .rate-candle-controls button:hover:not(:disabled) { border-color: #2aa997; background: #153a34; color: #73dbcc; }
html[data-theme="dark"] .rate-candle-controls button:disabled { background: #111a29; color: #657389; }
html[data-theme="dark"] .chart-grid { stroke: #334158; }
html[data-theme="dark"] .chart-axis-label { fill: #7f90a7; }
html[data-theme="dark"] .chart-tooltip { border-color: #3a4960; background: rgba(17,26,41,.97); color: #c8d3e2; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
html[data-theme="dark"] .rate-fair-panel { border-color: #334158; background: #141e2d; }
html[data-theme="dark"] .rate-asset-profile-card { border-color: #334158; background: #101827; }
html[data-theme="dark"] .rate-asset-profile-panel.loading .rate-asset-profile-card { background: #141e2d; }
html[data-theme="dark"] .rate-asset-profile-card p { color: #b8c4d5; }
html[data-theme="dark"] .rate-depth-panel { border-color: #334158; background: #141e2d; }
html[data-theme="dark"] .rate-depth-card { border-color: #334158; background: #101827; }
html[data-theme="dark"] .rate-depth-card > header, html[data-theme="dark"] .rate-depth-totals, html[data-theme="dark"] .rate-depth-totals > div + div { border-color: #334158; }
html[data-theme="dark"] .rate-depth-row { border-color: #283449; color: #b8c4d5; }
html[data-theme="dark"] .rate-fair-panel.stable { border-left-color: #18b99f; background: #122b29; }
html[data-theme="dark"] .rate-fair-panel.weakening { border-left-color: #f2b01e; background: #2c2515; }
html[data-theme="dark"] .rate-fair-panel.broken { border-left-color: #ef6a61; background: #321c20; }
html[data-theme="dark"] .rate-fair-metrics { border-color: #334158; background: #101827; }
html[data-theme="dark"] .rate-fair-metrics > div { border-color: #334158; }
html[data-theme="dark"] .rate-fair-panel > p { color: #b8c4d5; }
html[data-theme="dark"] .watch-fair-status.stable { background: #173d38; color: #73dbcc; }
html[data-theme="dark"] .watch-fair-status.weakening { background: #3b3018; color: #f2c45e; }
html[data-theme="dark"] .watch-fair-status.broken { background: #442328; color: #ff9189; }
html[data-theme="dark"] .watch-fair-status.unavailable { background: #263246; color: #aab7ca; }
html[data-theme="dark"] .rate-pair-name { color: #73dbcc; }
html[data-theme="dark"] .square-tip strong { color: #73dbcc; }
html[data-theme="dark"] .leaderboard-button { color: #f2c45e !important; }
html[data-theme="dark"] .leaderboard-month-toolbar { border-color: #334158; background: #131d2c; }
html[data-theme="dark"] .leaderboard-month-toolbar label { color: #e4ebf5; }
html[data-theme="dark"] .leaderboard-month-toolbar .layui-input { border-color: #334158; background: #101827; color: #e7edf6; color-scheme: dark; }
html[data-theme="dark"] .leaderboard-note { border-color: #d79a17; background: #2d2517; color: #b9c4d3; }
html[data-theme="dark"] .leaderboard-note strong { color: #f2c45e; }
html[data-theme="dark"] .leaderboard-formulas > div { border-color: #334158; background: #131d2c; }
html[data-theme="dark"] .leaderboard-formulas b { color: #e4ebf5; }
html[data-theme="dark"] .leaderboard-formulas span { color: #9cabc0; }
html[data-theme="dark"] .copy-leaderboard th { background: #182233; color: #c4cfde; }
html[data-theme="dark"] .copy-leaderboard tbody tr:first-child { background: #292417; }
html[data-theme="dark"] .recommendation-rules strong { color: #73dbcc; }
html[data-theme="dark"] .recommendation-tier-badge.strict { border-color: #28685e; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .recommendation-tier-badge.relaxed { border-color: #725c2d; background: #3b321e; color: #f0ca72; }
html[data-theme="dark"] .recommendation-tier-badge.extreme { border-color: #88483f; background: #442724; color: #ff9e91; }
html[data-theme="dark"] .recommendation-score { border-color: #1abc9c; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .direction-badge.high { border-color: #6e3337; background: #3c2026; color: #ff9690; }
html[data-theme="dark"] .direction-badge.low { border-color: #28685e; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .login-page .login-theme-picker { color: #aeb8c8; }
html[data-theme="dark"] .login-page .login-theme-picker .theme-select { border-color: #38465a; background: #1c2636; color: #e6edf7; }
html[data-theme="dark"] .user-password-reset-tip { border-color: #d79a17; background: #2d2517; color: #b9c4d3; }
html[data-theme="dark"] .user-password-reset-tip strong { color: #edf3fa; }
html[data-theme="dark"] .admin-wecom-members { border-color: #334158; background: #131d2c; }
html[data-theme="dark"] .admin-wecom-members-head { border-color: #334158; background: #1c283a; color: #aeb8c8; }
html[data-theme="dark"] .admin-wecom-member { border-color: #2b394e; }
html[data-theme="dark"] .admin-wecom-member strong { color: #edf3fa; }
html[data-theme="dark"] .admin-wecom-member code { color: #91a9c7; }
html[data-theme="dark"] .admin-hedge-profit-user { border-color: #1abc9c; background: #153a34; }
html[data-theme="dark"] .admin-hedge-profit-user strong { color: #edf3fa; }
html[data-theme="dark"] .admin-hedge-profit-summary > div:not(.admin-hedge-profit-loading) { border-color: #334158; background: #131d2c; }
html[data-theme="dark"] .admin-hedge-profit-summary strong { color: #edf3fa; }
html[data-theme="dark"] .admin-hedge-profit-summary strong.positive-color { color: #69dfcf; }
html[data-theme="dark"] .admin-hedge-profit-summary strong.negative-color { color: #ff9690; }

@media (max-width: 680px) {
    .admin-hedge-profit-layer { min-height: 0; padding: 14px 12px 34px; }
    .admin-hedge-profit-user { flex-wrap: wrap; }
    .admin-hedge-profit-user small { width: 100%; margin-left: 0; }
    .admin-hedge-profit-filter { flex-wrap: wrap; }
    .admin-hedge-profit-filter .field-group { flex: 1 1 calc(50% - 5px); }
    .admin-hedge-profit-filter .layui-btn { width: 100%; }
    .admin-hedge-profit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 交易数据：表格信息密度与 Layui 管理台保持一致，实盘操作集中在 layer 弹窗。 */
.trading-page { padding-bottom: 42px !important; }
.security-tip, .strategy-tip { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 11px 14px; border-left: 3px solid #009688; color: #667085; font-size: 12px; }
.security-tip strong, .strategy-tip strong { flex: 0 0 auto; color: #176b61; }
.strategy-data-summary { display: grid; grid-template-columns: 126px minmax(0, 1fr); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-left: 3px solid #009688; background: var(--paper); }
.strategy-data-summary-heading { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; min-width: 0; padding: 10px 13px; border-right: 1px solid var(--line); background: rgba(0, 150, 136, .035); }
.strategy-data-summary-heading strong, .strategy-data-summary-heading small { display: block; }
.strategy-data-summary-heading strong { color: #176b61; font-size: 13px; }
.strategy-data-summary-heading small { overflow: hidden; width: 100%; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.strategy-data-summary-heading small.error-text { color: #d84f4f; }
.strategy-data-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; margin: 0; }
.strategy-data-summary-grid > div { min-width: 0; padding: 9px 12px; border-left: 1px solid var(--line); }
.strategy-data-summary-grid > div:first-child { border-left: 0; }
.strategy-data-summary-grid dt { overflow: hidden; margin-bottom: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.strategy-data-summary-grid dd { overflow: hidden; margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.strategy-data-summary-grid dd.positive { color: #009688; }
.strategy-data-summary-grid dd.negative { color: #e64b45; }
.strategy-data-summary-grid small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.trading-table-card { min-height: 260px; }
.trading-table-card .layui-table-cell { min-height: 36px; height: auto; line-height: 18px; white-space: normal; }
.position-history-filter { margin-bottom: 10px; }
.position-history-filter .field-group { min-width: 170px; }
.position-history-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.position-history-summary > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); background: var(--paper); }
.position-history-summary span { display: block; overflow: hidden; margin-bottom: 4px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.position-history-summary strong { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.position-history-summary small { margin-left: 4px; color: var(--muted); font-size: 10px; }
.position-profit-calendar-layer { box-sizing: border-box; height: 100%; overflow-y: auto; padding: 14px; background: var(--canvas); color: var(--ink); }
.position-profit-calendar-toolbar { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--line); background: var(--paper); }
.position-profit-calendar-toolbar label { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--muted); font-size: 11px; }
.position-profit-calendar-toolbar input { width: 150px; height: 34px; color: var(--ink); }
.position-profit-calendar-toolbar button { width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 3px; background: var(--paper); color: #087a6d; font-size: 22px; line-height: 28px; cursor: pointer; }
.position-profit-calendar-toolbar button:disabled { cursor: not-allowed; opacity: .35; }
.position-profit-calendar-summary { display: grid; grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.position-profit-calendar-summary > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); background: var(--paper); }
.position-profit-calendar-summary span, .position-profit-calendar-summary strong { display: block; }
.position-profit-calendar-summary span { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.position-profit-calendar-summary strong { overflow: hidden; color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.position-profit-calendar-summary .main strong { font-size: 20px; }
.position-profit-calendar-weekdays, .position-profit-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.position-profit-calendar-weekdays { border: 1px solid var(--line); border-bottom: 0; background: var(--paper); }
.position-profit-calendar-weekdays span { padding: 8px 4px; color: var(--muted); font-size: 10px; text-align: center; }
.position-profit-calendar-grid { overflow: hidden; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--line); }
.position-profit-calendar-day { display: flex; align-items: center; justify-content: flex-start; flex-direction: column; box-sizing: border-box; min-width: 0; min-height: 76px; padding: 7px 4px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); text-align: center; }
.position-profit-calendar-day strong { align-self: flex-start; min-width: 21px; color: var(--ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.position-profit-calendar-day b { overflow: hidden; max-width: 100%; margin-top: 6px; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.position-profit-calendar-day small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.position-profit-calendar-day.profit { background: #edf9f6; }
.position-profit-calendar-day.profit b { color: #079581; }
.position-profit-calendar-day.loss { background: #fff0f1; }
.position-profit-calendar-day.loss b { color: #e34f5f; }
.position-profit-calendar-day.flat { background: #f7f8fa; }
.position-profit-calendar-day.outside { background: #f5f7fa; }
.position-profit-calendar-day.today strong { border-radius: 50%; background: #009688; color: #fff; text-align: center; line-height: 21px; }
.position-profit-calendar-day .no-trade { margin-top: 8px; color: #c0c7d2; }
.position-profit-calendar-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 17px; }
.position-operation-button { margin: 0 !important; }
.position-operation-layer { box-sizing: border-box; height: 100%; overflow: auto; padding: 14px; background: var(--canvas); color: var(--ink); }
.position-operation-loading, .position-operation-empty { display: flex; align-items: center; justify-content: center; min-height: 210px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); text-align: center; }
.position-operation-loading i { margin-right: 7px; color: #009688; }
.position-operation-summary { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr .65fr 1.2fr; gap: 8px; margin-bottom: 9px; }
.position-operation-summary > div { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); background: var(--paper); }
.position-operation-summary span, .position-operation-summary strong { display: block; }
.position-operation-summary span { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.position-operation-summary strong { overflow-wrap: anywhere; font-size: 12px; font-variant-numeric: tabular-nums; }
.position-operation-note { margin-bottom: 9px; padding: 8px 10px; border-left: 3px solid #1abc9c; background: #effaf7; color: #53716d; font-size: 10px; line-height: 17px; }
.position-operation-list { display: grid; gap: 10px; }
.position-operation-card { overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 3px 10px rgba(23,32,51,.04); }
.position-operation-card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.position-operation-card-header > div:first-child small, .position-operation-card-header > div:first-child strong { display: block; }
.position-operation-card-header > div:first-child small { margin-bottom: 2px; color: var(--muted); font-size: 9px; }
.position-operation-card-header > div:first-child strong { font-size: 13px; }
.position-operation-card-header > div:last-child { display: flex; align-items: center; gap: 9px; }
.position-operation-card-header time { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.position-operation-status { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 3px 7px; border: 1px solid #b9c3d0; border-radius: 99px; background: #f5f7fa; color: #667085; font-size: 9px; white-space: nowrap; }
.position-operation-status.filled { border-color: #9ddfd5; background: #eaf8f5; color: #087a6d; }
.position-operation-status.partial, .position-operation-status.compensated { border-color: #efd29d; background: #fff8e9; color: #a06409; }
.position-operation-status.failed { border-color: #f0b5ba; background: #fff1f2; color: #c83745; }
.position-operation-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); border-bottom: 1px solid var(--line); }
.position-operation-metrics > div { min-width: 0; padding: 8px 10px; border-left: 1px solid var(--line); }
.position-operation-metrics > div:first-child { border-left: 0; }
.position-operation-metrics span, .position-operation-metrics b { display: block; }
.position-operation-metrics span { overflow: hidden; margin-bottom: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.position-operation-metrics b { overflow-wrap: anywhere; font-size: 11px; font-variant-numeric: tabular-nums; }
.position-operation-source { color: #b86800 !important; }
.position-operation-legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
.position-operation-leg { min-width: 0; border: 1px solid var(--line); background: #fbfcfd; }
.position-operation-leg > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.position-operation-leg > header > div { min-width: 0; }
.position-operation-leg > header b, .position-operation-leg > header small { display: block; }
.position-operation-leg > header b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.position-operation-leg > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.position-operation-leg.missing { display: flex; align-items: center; justify-content: center; min-height: 105px; border-style: dashed; color: var(--muted); }
.position-operation-leg.missing > header { border: 0; }
.position-operation-leg.missing > header span { margin-left: 8px; font-size: 10px; }
.position-operation-leg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 3px 9px 7px; }
.position-operation-leg-grid > div { min-width: 0; padding: 6px 4px; border-bottom: 1px dashed var(--line); }
.position-operation-leg-grid span, .position-operation-leg-grid b { display: block; }
.position-operation-leg-grid span { margin-bottom: 2px; color: var(--muted); font-size: 9px; }
.position-operation-leg-grid b { overflow-wrap: anywhere; font-size: 10px; font-variant-numeric: tabular-nums; }
.position-operation-leg-grid .position-operation-order { grid-column: 1 / -1; border-bottom: 0; }
.position-operation-error { margin: 0 10px 10px; padding: 8px 9px; border-left: 3px solid #e74c3c; background: #fff1f1; color: #c8372b; font-size: 10px; line-height: 17px; overflow-wrap: anywhere; }
.strategy-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 320px)); align-items: stretch; gap: 12px; min-height: 180px; }
.strategy-cards-loading, .strategy-cards-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 180px; border: 1px solid var(--line); background: var(--paper); color: #7b8493; }
.strategy-cards-loading i { margin-right: 7px; color: #009688; }
.strategy-mobile-view-switch { display: none; }
.strategy-card { display: flex; overflow: hidden; flex-direction: column; height: 100%; border: 1px solid #dfe5ec; border-top: 3px solid #1abc9c; border-radius: 7px; background: #fff; box-shadow: 0 4px 14px rgba(31,45,61,.07); color: #344054; transition: border-color .15s ease, box-shadow .15s ease; }
.strategy-card:hover { border-color: #b9dcd6; box-shadow: 0 7px 20px rgba(31,45,61,.11); }
.strategy-card.status-paused { border-top-color: #98a2b3; }
.strategy-card.status-entering, .strategy-card.status-closing { border-top-color: #e6a23c; }
.strategy-card.status-error { border-top-color: #e74c3c; }
.strategy-card.liquidation-warning { border-top-color: #f59e0b; box-shadow: 0 5px 18px rgba(245,158,11,.18); }
.strategy-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 11px 12px 9px; border-bottom: 1px solid #edf0f4; background: #fafbfc; }
.strategy-card-header strong, .strategy-card-header small { display: block; }
.strategy-card-header strong { color: #172033; font-size: 14px; letter-spacing: .2px; }
.strategy-card-title-row { display: flex; align-items: center; gap: 6px; }
.strategy-pair-link { display: inline-block; text-decoration: none; }
.strategy-pair-link:hover strong { color: #009688; text-decoration: underline; text-underline-offset: 3px; }
.strategy-ai-button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 18px; padding: 0; border: 1px solid rgba(112,87,219,.35); border-radius: 9px; background: rgba(112,87,219,.09); color: #7057db; font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; line-height: 16px; cursor: pointer; transition: .15s ease; }
.strategy-ai-button:hover { border-color: #7057db; background: #7057db; color: #fff; box-shadow: 0 2px 7px rgba(112,87,219,.24); transform: translateY(-1px); }
.strategy-ai-button:focus-visible { outline: 2px solid rgba(112,87,219,.32); outline-offset: 2px; }
.strategy-card-header small { margin-top: 2px; color: #8a94a3; font-size: 10px; }
.strategy-card-compact-details { display: none; }
.strategy-card-quote { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1px; border-bottom: 1px solid #edf0f4; background: #edf0f4; }
.strategy-card-quote > div { padding: 8px 11px; background: #fff; }
.strategy-card-quote span, .strategy-card-quote b { display: block; }
.strategy-card-quote span { margin-bottom: 2px; color: #8a94a3; font-size: 10px; }
.strategy-card-quote b { overflow: hidden; color: #087a6d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strategy-card-direction-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 11px; border-bottom: 1px solid #edf0f4; color: #7b8493; font-size: 10px; }
.strategy-card-direction-row > span:last-child { white-space: nowrap; }
.strategy-card-direction { display: inline-block; padding: 2px 6px; border: 1px solid; border-radius: 3px; font-weight: 700; }
.strategy-card-direction.high { border-color: #f2b8b2; background: #fff4f2; color: #c8372b; }
.strategy-card-direction.low { border-color: #9ddfd5; background: #edfaf7; color: #087a6d; }
.strategy-card-stage-pair { display: grid; flex: 1 0 auto; grid-template-columns: 1fr 1fr; align-items: stretch; border-bottom: 1px solid #edf0f4; }
.strategy-card-stage { min-width: 0; padding: 7px 8px 6px; }
.strategy-card-stage + .strategy-card-stage { border-left: 1px solid #edf0f4; }
.strategy-card-stage label { display: block; margin-bottom: 4px; color: #667085; font-size: 10px; }
.strategy-card-stage label small { float: right; color: #98a2b3; font-size: 8px; font-weight: 400; }
.strategy-card-stage > div { display: grid; gap: 3px; min-height: 21px; }
.strategy-stage-line { display: grid; grid-template-columns: 21px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3px; min-height: 21px; padding: 2px 4px; border: 1px solid #cce7e2; border-radius: 3px; background: transparent; color: #16786d; font-size: 9px; line-height: 15px; }
.strategy-stage-line b { font-size: 9px; }
.strategy-stage-line span { text-align: center; font-variant-numeric: tabular-nums; }
.strategy-stage-line em { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-variant-numeric: tabular-nums; }
.strategy-card-stage label .strategy-exit-total { max-width: 92px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.strategy-card-stage label .strategy-exit-total span { font-variant-numeric: tabular-nums; }
.strategy-card-stage label .strategy-exit-total .positive { color: #008f82; font-weight: 700; }
.strategy-card-stage label .strategy-exit-total .negative { color: #e5484d; font-weight: 700; }
.strategy-stage-line.exit { border-color: #f0d0d3; background: transparent; color: #ba4050; }
.strategy-stage-line.completed { border-color: #1abc9c; background: #dff6f1; font-weight: 700; }
.strategy-stage-line.exit.completed { border-color: #e67d8b; background: #fdecef; }
.strategy-card:not(.stages-expanded) .strategy-stage-collapsed-hidden { display: none; }
.strategy-card-stage-toggle-wrap { padding: 5px 8px; border-bottom: 1px solid #edf0f4; background: #fbfcfd; text-align: center; }
.strategy-card-stage-toggle-wrap:empty { display: none; }
.strategy-card-stage-toggle { width: 100%; padding: 3px 7px; border: 1px dashed #b8c4d4; border-radius: 3px; background: transparent; color: #667085; font-size: 9px; line-height: 17px; cursor: pointer; }
.strategy-card-stage-toggle:hover { border-color: #16a394; color: #087a6d; }
.strategy-card-finance { padding: 7px 11px 8px; border-bottom: 1px solid #dce6ef; background: #f4fbf9; }
.strategy-card-finance.waiting { background: #f8fafc; color: #7b8493; }
.strategy-card-finance.error { border-left: 2px solid #e6a23c; background: #fffaf0; }
.strategy-finance-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 7px; min-height: 27px; color: #344054; font-size: 10px; }
.strategy-finance-summary > span { min-width: 0; font-weight: 700; }
.strategy-finance-summary > span small { display: block; overflow: hidden; margin-top: 1px; color: #8a94a3; font-size: 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.strategy-finance-summary-value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strategy-finance-toggle { padding: 2px 6px; border: 1px solid #9ddfd5; border-radius: 3px; background: #fff; color: #087a6d; font-size: 8px; line-height: 16px; white-space: nowrap; cursor: pointer; }
.strategy-finance-toggle:hover { border-color: #16a394; background: #edfaf7; }
.strategy-finance-details { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #cfe2dd; }
.strategy-card:not(.finance-expanded) .strategy-finance-details { display: none; }
.strategy-finance-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: #344054; font-size: 10px; font-weight: 700; }
.strategy-finance-title em { color: #087a6d; font-size: 8px; font-style: normal; font-weight: 400; }
.strategy-card-finance.partial .strategy-finance-title em, .strategy-card-finance.error .strategy-finance-title em { color: #b86500; }
.strategy-card-finance dl { margin: 0; }
.strategy-card-finance dl > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 21px; border-bottom: 1px dashed #dcebe7; font-size: 9px; }
.strategy-card-finance dt { color: #667085; }
.strategy-card-finance dd { margin: 0; color: #344054; text-align: right; font-variant-numeric: tabular-nums; }
.strategy-finance-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 5px; color: #344054; font-size: 9px; }
.strategy-finance-total.projected { margin-top: 4px; padding-top: 4px; border-top: 1px solid #dcebe7; }
.strategy-finance-total span small { color: #8a94a3; font-size: 8px; font-weight: 400; }
.strategy-finance-total-value { text-align: right; white-space: nowrap; font-weight: 700; }
.strategy-finance-details > p { margin: 5px 0 0; color: #7b8493; font-size: 8px; line-height: 13px; overflow-wrap: anywhere; }
.strategy-stage-chip { display: inline-block; padding: 2px 5px; border: 1px solid #cce7e2; border-radius: 3px; background: #f4fbf9; color: #16786d; font-size: 9px; line-height: 15px; white-space: nowrap; }
.strategy-stage-chip.exit { border-color: #f0d0d3; background: #fff7f8; color: #ba4050; }
.strategy-stage-chip.completed { border-color: #1abc9c; background: #dff6f1; font-weight: 700; }
.strategy-stage-chip.exit.completed { border-color: #e67d8b; background: #fdecef; }
.strategy-card-evaluation { padding: 7px 11px; border-bottom: 1px solid #dce6ef; background: #f6f9fc; }
.strategy-card-evaluation > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #526075; font-size: 10px; }
.strategy-card-evaluation > div span { font-weight: 700; }
.strategy-card-evaluation time { color: #7b8493; font-size: 9px; font-variant-numeric: tabular-nums; }
.strategy-card-evaluation p { margin: 5px 0 3px; color: #176b61; font-size: 10px; line-height: 16px; overflow-wrap: anywhere; }
.strategy-card-evaluation small { display: block; color: #7b8493; font-size: 9px; line-height: 14px; font-variant-numeric: tabular-nums; }
.strategy-card-funding { position: relative; padding: 7px 11px; border-bottom: 1px solid #edf0f4; background: #fbfdfd; }
.strategy-card-funding > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #667085; font-size: 10px; }
.strategy-card-funding > div strong { color: #344054; font-size: 10px; white-space: nowrap; }
.strategy-card-funding > small { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 4px; padding-right: 74px; color: #7b8493; font-size: 9px; }
.strategy-card-funding > small > span:last-child { text-align: right; }
.strategy-card-funding time { position: absolute; right: 11px; bottom: 7px; color: #087a6d; font-size: 9px; font-style: normal; font-variant-numeric: tabular-nums; }
.strategy-card-metrics { margin: 7px 11px 8px; padding-top: 5px; border-top: 1px solid #edf0f4; }
.strategy-card-metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 25px; border-bottom: 1px dashed #edf0f4; font-size: 10px; }
.strategy-card-metrics dt { color: #7b8493; }
.strategy-card-metrics dd { margin: 0; color: #344054; text-align: right; font-variant-numeric: tabular-nums; }
.strategy-card-liquidation-warning { margin: 0 11px 8px; padding: 6px 7px; border-left: 2px solid #f59e0b; background: #fff8e8; color: #b86500; font-size: 9px; font-weight: 700; line-height: 15px; overflow-wrap: anywhere; }
.strategy-card-error { margin: 0 11px 8px; padding: 5px 7px; border-left: 2px solid #e74c3c; background: #fff4f2; color: #c8372b; font-size: 9px; line-height: 15px; overflow-wrap: anywhere; white-space: normal; }
.strategy-card-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 9px 10px 10px; border-top: 1px solid #edf0f4; background: #fafbfc; }
.strategy-card-button { height: 28px; border: 1px solid #ccd5df; border-radius: 4px; background: #fff; color: #526075; font-size: 10px; cursor: pointer; }
.strategy-card-button:hover { border-color: #1abc9c; color: #087a6d; }
.strategy-card-button.edit, .strategy-card-button.resume { border-color: #69cbbb; color: #087a6d; }
.strategy-card-button.cancel-partial { grid-column: 1 / -1; border-color: #e6a23c; background: #fffaf0; color: #a86405; font-weight: 700; }
.strategy-card-button.danger { border-color: #efb6b2; color: #c8372b; }
.strategy-card-button:disabled { border-color: #e2e7ed; background: #f3f5f7; color: #a8b0bc; cursor: not-allowed; }
.cell-sub { display: block; margin-top: 2px; color: #7b8493; font-size: 10px; line-height: 15px; white-space: normal; }
.position-table-sub { font-size: inherit; line-height: inherit; }
.muted-text { color: #98a2b3; }
.error-text { color: #d94b40 !important; }
.point-red { color: #e74c3c; }
.mode-badge, .status-badge, .strategy-status { display: inline-block; padding: 2px 7px; border-radius: 2px; font-size: 11px; line-height: 18px; }
.mode-badge { border: 1px solid #9edfd5; background: #edfaf7; color: #087a6d; }
.status-badge.running, .strategy-status.monitoring { background: #e9f8f1; color: #087a50; }
.strategy-status.holding { background: #e74c3c; color: #fff; }
.status-badge.waiting, .strategy-status.paused { background: #f1f3f6; color: #667085; }
.status-badge.error, .strategy-status.error { background: #fff0ef; color: #c8372b; }
.strategy-status.entering, .strategy-status.closing { background: #fff7e6; color: #ad6800; }
.layer-form { box-sizing: border-box; padding: 18px 22px 8px; color: #344054; }
.layer-form > label, .layer-grid label { display: block; margin: 12px 0 5px; color: #526075; font-size: 12px; }
.layer-form .layui-input { height: 34px; border-color: #dfe5ec; }
.layer-form-note { padding: 10px 12px; border-left: 3px solid #009688; background: #f4fbf9; color: #526075; font-size: 12px; line-height: 19px; }
.layer-form-note.warning-note { border-left-color: #e6a23c; background: #fffaf0; }
.strategy-close-confirm-note { margin: 2px 0 12px; padding: 10px 12px; border-left: 3px solid #e24b4b; background: #fff4f4; color: #7b3333; font-size: 12px; line-height: 18px; }
.strategy-close-confirm-note b, .strategy-close-confirm-note span { display: block; }
.strategy-close-confirm-note b { margin-bottom: 3px; color: #c93535; }
.layer-confirm { display: flex !important; align-items: flex-start; gap: 7px; margin: 16px 0 4px !important; line-height: 19px; cursor: pointer; }
.layer-confirm input { margin-top: 3px; }
.layer-grid { display: grid; gap: 0 14px; }
.layer-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strategy-editor-layer { display: flex !important; overflow: hidden; flex-direction: column; }
.strategy-editor-layer .layui-layer-title { flex: 0 0 42px; box-sizing: border-box; }
.strategy-editor-layer .layui-layer-content { flex: 1 1 0; overflow-y: auto; min-height: 0; height: auto !important; -webkit-overflow-scrolling: touch; }
.strategy-editor-layer .layui-layer-btn { position: static; display: flex; flex: 0 0 auto; justify-content: flex-end; box-sizing: border-box; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.strategy-editor-layer .layui-layer-btn a { min-width: 88px; margin-top: 0; text-align: center; }
.strategy-editor-layer .strategy-layer-form { padding-bottom: 10px; }
.strategy-field-hint { margin-left: 6px; color: #98a2b3; font-size: 10px; font-weight: 400; }
.upper-input { text-transform: uppercase; }
.strategy-pair-label-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.layer-grid .strategy-pair-label-row > label { margin-right: 0; }
.strategy-pair-paste-button { height: 25px; margin: 8px 0 4px; padding: 0 9px; border: 1px solid #9edfd5; border-radius: 2px; background: #f4fbf9; color: #087a6d; font-size: 11px; line-height: 23px; cursor: pointer; }
.strategy-pair-paste-button:hover { border-color: #009688; background: #e9f8f5; color: #006b61; }
.strategy-pair-paste-layer .layui-layer-content { overflow: visible; }
.strategy-pair-paste-layer .layui-layer-btn { position: static; display: flex; justify-content: flex-end; box-sizing: border-box; padding: 9px 12px; border-top: 1px solid var(--line); background: var(--paper); }
.strategy-pair-paste-layer .layui-layer-btn a { min-width: 88px; margin-top: 0; text-align: center; }
.strategy-pair-paste-form { padding: 16px 18px 14px; }
.strategy-pair-paste-form label { display: block; margin-bottom: 7px; color: #526075; font-size: 12px; }
.strategy-pair-paste-form .layui-input { height: 38px; border-color: #dfe5ec; font-weight: 700; }
.strategy-pair-paste-form p { margin: 8px 0 0; color: #7b8493; font-size: 10px; line-height: 17px; }
.strategy-level-title { margin: 17px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #edf0f4; color: #176b61; font-weight: 700; }
.strategy-level-title small { margin-left: 7px; color: #98a2b3; font-weight: 400; }
.strategy-level-grid { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 7px 10px; }
.strategy-level-grid b { color: #009688; text-align: center; }
.strategy-level-grid span { color: #98a2b3; font-size: 11px; }
.exits-grid { grid-template-columns: 38px minmax(0, 1fr) 70px; }
.server-ip-value { display: inline-block; margin: 0 3px; padding: 1px 7px; border: 1px solid #9ddfd5; background: #edfaf7; color: #087a6d; font-weight: 700; }
.gate-client-promo { display: grid; grid-template-columns: minmax(0, 1fr) 204px; align-items: center; gap: 24px; margin-top: 12px; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid #009688; border-radius: 5px; background: var(--paper); box-shadow: 0 4px 14px rgba(31,45,61,.05); }
.gate-client-promo-main { min-width: 0; }
.gate-client-promo-label { display: inline-block; margin-bottom: 7px; padding: 3px 8px; border-radius: 99px; background: #e9f8f5; color: #087a6d; font-size: 10px; font-weight: 700; }
.gate-client-promo h2 { margin: 0; color: var(--ink); font-size: 18px; line-height: 28px; }
.gate-client-promo p { max-width: 680px; margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 20px; }
.gate-invite-code { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 7px 9px 7px 11px; border: 1px solid #9ddfd5; border-radius: 4px; background: #edfaf7; color: #526075; font-size: 11px; }
.gate-invite-code code { color: #087a6d; font-family: Consolas, Monaco, monospace; font-size: 14px; font-weight: 700; letter-spacing: .8px; }
.gate-invite-code button { padding: 3px 8px; border: 1px solid #7bcfc3; border-radius: 3px; background: #fff; color: #087a6d; cursor: pointer; font-size: 10px; }
.gate-invite-code button:hover { border-color: #009688; background: #e2f7f3; }
.gate-client-promo-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.gate-client-promo-actions .layui-btn { min-width: 126px; margin: 0; }
.gate-client-promo-main > small { display: block; margin-top: 11px; color: #98a2b3; font-size: 10px; line-height: 17px; }
.gate-client-qr { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: #087a6d; font-size: 11px; font-weight: 700; text-decoration: none; }
.gate-client-qr img { display: block; box-sizing: border-box; width: 180px; height: 180px; padding: 6px; border: 1px solid #dfe5ec; border-radius: 5px; background: #fff; }
.gate-client-qr:hover { color: #006b61; }
.strategy-leverage-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.layer-grid .strategy-leverage-choice { position: relative; margin: 0; cursor: pointer; }
.strategy-leverage-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.strategy-leverage-choice span { display: flex; align-items: center; justify-content: center; height: 34px; border: 1px solid #dfe5ec; background: #fff; color: #526075; font-size: 12px; transition: .15s ease; }
.strategy-leverage-choice:hover span { border-color: #7bcfc3; color: #087a6d; }
.strategy-leverage-choice input:checked + span { border-color: #009688; background: #e9f8f5; color: #007d71; font-weight: 700; box-shadow: inset 0 0 0 1px #009688; }
.strategy-leverage-choice.high-risk span { color: #c8372b; }
.strategy-leverage-choice.high-risk input:checked + span { border-color: #e6a23c; background: #fff7e6; color: #b35b00; box-shadow: inset 0 0 0 1px #e6a23c; }
.strategy-midline-preview { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(185px, auto) minmax(170px, 1fr) minmax(330px, auto); align-items: center; gap: 18px; min-height: 48px; margin-top: 14px; padding: 9px 12px; border: 1px solid #d9eee9; border-left: 3px solid #009688; background: #f4fbf9; }
.strategy-deviation-primary { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.strategy-deviation-primary span { color: #526075; font-size: 12px; white-space: nowrap; }
.strategy-deviation-primary strong { color: #e74c3c; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strategy-reference-values { display: flex; align-items: baseline; justify-content: flex-end; gap: 24px; min-width: 0; color: #171c26; font-size: 13px; }
.strategy-reference-values span { white-space: nowrap; }
.strategy-reference-values b { margin-left: 7px; color: #171c26; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.strategy-midline-preview > small { color: #7b8493; font-size: 11px; text-align: center; }
.strategy-direction-hint { margin: 14px 0 8px; padding: 8px 11px; border: 1px solid #d9eee9; background: #f4fbf9; color: #526075; font-size: 11px; line-height: 18px; }
.strategy-stage-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strategy-stage-panel { overflow: hidden; border: 1px solid #dfe5ec; border-radius: 3px; background: #fff; }
.strategy-stage-heading, .strategy-stage-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 10px; padding: 8px; }
.strategy-stage-heading { min-height: 20px; border-bottom: 1px solid #dfe5ec; background: #f7f9fb; color: #526075; font-size: 10px; }
.strategy-stage-row + .strategy-stage-row { border-top: 1px solid #edf0f4; }
.strategy-stage-row b { color: #008f82; font-size: 12px; white-space: nowrap; }
.exit-stage-panel .strategy-stage-row b { color: #d94355; }
.strategy-value-input { position: relative; display: block; margin: 0 !important; }
.strategy-value-input .layui-input { width: 100%; padding-right: 28px; }
.strategy-value-input i { position: absolute; top: 0; right: 10px; color: #7b8493; font-size: 11px; font-style: normal; line-height: 34px; pointer-events: none; }
.strategy-setting-input { position: relative; display: block; margin: 0 !important; }
.strategy-setting-input .layui-input { padding-right: 30px; }
.strategy-setting-input i { position: absolute; top: 0; right: 10px; color: #7b8493; font-size: 11px; font-style: normal; line-height: 34px; pointer-events: none; }
.strategy-stage-row.locked { background: #f6f7f9; opacity: .7; }
.strategy-stage-row.locked .layui-input { cursor: not-allowed; }
.strategy-stage-extra { display: none; }
.strategy-extra-expanded .strategy-stage-extra { display: grid; }
.strategy-toggle-extra-stages { display: block; width: 100%; margin: 10px 0 0; padding: 8px 12px; border: 1px dashed #7bcfc3; border-radius: 3px; background: #f4fbf9; color: #087a6d; font-size: 11px; line-height: 20px; cursor: pointer; }
.strategy-toggle-extra-stages:hover { border-color: #009688; background: #e9f8f5; }
.strategy-manual-note { margin: 8px 1px 2px; color: #7b8493; font-size: 10px; line-height: 18px; }
.strategy-settings-form { padding-bottom: 16px; }
.strategy-settings-layer .layui-layer-content { max-height: calc(100vh - 160px); overflow-y: auto; }
.strategy-setting-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 14px; border: 1px solid #dfe5ec; border-radius: 4px; background: #fff; }
.strategy-setting-item.vertical { align-items: flex-end; }
.strategy-setting-item strong { color: #172033; font-size: 13px; }
.strategy-setting-item p { margin: 5px 0 0; color: #7b8493; font-size: 11px; line-height: 18px; }
.strategy-setting-toggle { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; margin: 0 !important; color: #526075; font-size: 12px; cursor: pointer; white-space: nowrap; }
.strategy-setting-toggle input { display: inline-block; width: 17px; height: 17px; margin: 0; accent-color: #009688; cursor: pointer; }
.strategy-settings-number { position: relative; display: block; flex: 0 0 130px; margin: 0 !important; }
.strategy-settings-number .layui-input { padding-right: 32px; text-align: center; }
.strategy-settings-number i { position: absolute; top: 0; right: 10px; color: #7b8493; font-size: 11px; font-style: normal; line-height: 34px; pointer-events: none; }
.strategy-setting-item.card-position-setting { display: block; }
.strategy-card-position-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.strategy-card-position-fields > label { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 8px 12px; margin: 0; color: #526075; font-size: 11px; }
.strategy-card-position-fields .strategy-settings-number { width: 150px; }
.strategy-card-position-fields small { grid-column: 1 / -1; color: #98a2b3; font-size: 10px; }
.strategy-setting-item.auto-entry-setting { display: block; }
.strategy-auto-entry-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.strategy-auto-entry-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; transition: opacity .15s ease; }
.strategy-auto-entry-fields.disabled { opacity: .48; }
.strategy-auto-entry-fields > label { display: flex; flex-direction: column; gap: 6px; margin: 0; color: #526075; font-size: 11px; }
.strategy-auto-entry-fields .strategy-settings-number { flex: 0 0 auto; width: 100%; }
.strategy-auto-entry-example { margin-top: 10px !important; padding: 8px 10px; border-left: 3px solid #16baaa; background: #f2fbf9; color: #46635f !important; }
.strategy-settings-current { margin: 12px 2px 0; color: #667085; font-size: 11px; }
.strategy-settings-current span { color: #087a6d; font-weight: 700; }
.strategy-setting-item.risk-action-setting { display: block; }
.strategy-risk-setting-heading p { max-width: none; }
.strategy-risk-action-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.strategy-risk-action-options label { display: flex; align-items: center; gap: 8px; min-height: 38px; margin: 0; padding: 8px 10px; border: 1px solid #dfe5ec; border-radius: 4px; color: #344054; font-size: 12px; cursor: pointer; }
.strategy-risk-action-options label:has(input:checked) { border-color: #00a896; background: #f0fbf9; color: #087a6d; font-weight: 700; }
.strategy-risk-action-options input { display: inline-block !important; flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #009688; }
.strategy-risk-action-explanation { min-height: 52px; margin-top: 10px; padding: 10px 12px; border-left: 3px solid #f0a020; background: #fff8eb; color: #6f4b09; font-size: 11px; line-height: 18px; }
html[data-theme="dark"] .security-tip strong, html[data-theme="dark"] .strategy-tip strong,
html[data-theme="dark"] .strategy-level-title { color: #73dbcc; }
html[data-theme="dark"] .strategy-data-summary-heading { background: rgba(22, 186, 170, .08); }
html[data-theme="dark"] .strategy-data-summary-heading strong { color: #73dbcc; }
html[data-theme="dark"] .position-profit-calendar-day.profit { background: #12312d; }
html[data-theme="dark"] .position-profit-calendar-day.loss { background: #351d22; }
html[data-theme="dark"] .position-profit-calendar-day.flat,
html[data-theme="dark"] .position-profit-calendar-day.outside { background: #17202e; }
html[data-theme="dark"] .layer-form { color: #d6deea; }
html[data-theme="dark"] .layer-form > label, html[data-theme="dark"] .layer-grid label { color: #aeb8c8; }
html[data-theme="dark"] .layer-form .layui-input { border-color: #334158; background: #101827; color: #e7edf6; }
html[data-theme="dark"] .strategy-pair-paste-button { border-color: #28685e; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .strategy-pair-paste-button:hover { border-color: #16baaa; background: #1a453e; color: #8cebdd; }
html[data-theme="dark"] .strategy-pair-paste-form label { color: #aeb8c8; }
html[data-theme="dark"] .strategy-pair-paste-form .layui-input { border-color: #334158; background: #101827; color: #e7edf6; }
html[data-theme="dark"] .strategy-pair-paste-form p { color: #91a0b5; }
html[data-theme="dark"] .layer-form-note { border-color: #28685e; background: #122d29; color: #9bb9b4; }
html[data-theme="dark"] .layer-form-note.warning-note { border-color: #805d20; background: #302817; color: #d5bd8d; }
html[data-theme="dark"] .strategy-close-confirm-note { border-color: #934343; background: #351d20; color: #e6b6ba; }
html[data-theme="dark"] .strategy-close-confirm-note b { color: #ff8c94; }
html[data-theme="dark"] .mode-badge { border-color: #28685e; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .status-badge.waiting, html[data-theme="dark"] .strategy-status.paused { background: #26334a; color: #b9c6d8; }
html[data-theme="dark"] .status-badge.error, html[data-theme="dark"] .strategy-status.error { background: #3c2026; color: #ff9690; }
html[data-theme="dark"] .strategy-level-title { border-color: #334158; }
html[data-theme="dark"] .server-ip-value { border-color: #28685e; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .gate-client-promo { border-color: #334158; border-left-color: #16baaa; background: #101827; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
html[data-theme="dark"] .gate-client-promo-label { background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .gate-invite-code { border-color: #28685e; background: #153a34; color: #aeb8c8; }
html[data-theme="dark"] .gate-invite-code code { color: #69dfcf; }
html[data-theme="dark"] .gate-invite-code button { border-color: #438b80; background: #101827; color: #69dfcf; }
html[data-theme="dark"] .gate-client-qr { color: #69dfcf; }
html[data-theme="dark"] .gate-client-qr img { border-color: #334158; }
html[data-theme="dark"] .strategy-leverage-choice span { border-color: #334158; background: #101827; color: #b9c6d8; }
html[data-theme="dark"] .strategy-leverage-choice:hover span { border-color: #438b80; color: #73dbcc; }
html[data-theme="dark"] .strategy-leverage-choice input:checked + span { border-color: #16baaa; background: #153a34; color: #69dfcf; box-shadow: inset 0 0 0 1px #16baaa; }
html[data-theme="dark"] .strategy-leverage-choice.high-risk span { color: #ff9690; }
html[data-theme="dark"] .strategy-leverage-choice.high-risk input:checked + span { border-color: #b77b2d; background: #382916; color: #ffc46b; box-shadow: inset 0 0 0 1px #b77b2d; }
html[data-theme="dark"] .strategy-midline-preview { border-color: #28554e; border-left-color: #16baaa; background: #122d29; }
html[data-theme="dark"] .strategy-deviation-primary span { color: #aeb8c8; }
html[data-theme="dark"] .strategy-deviation-primary strong { color: #ff746d; }
html[data-theme="dark"] .strategy-reference-values, html[data-theme="dark"] .strategy-reference-values b { color: #edf3fa; }
html[data-theme="dark"] .strategy-midline-preview > small { color: #91a0b5; }
html[data-theme="dark"] .strategy-direction-hint { border-color: #28554e; background: #122d29; color: #9bb9b4; }
html[data-theme="dark"] .strategy-stage-panel { border-color: #334158; background: #101827; }
html[data-theme="dark"] .strategy-stage-heading { border-color: #334158; background: #172132; color: #9eacc0; }
html[data-theme="dark"] .strategy-stage-row + .strategy-stage-row { border-color: #26354a; }
html[data-theme="dark"] .strategy-stage-row b { color: #69dfcf; }
html[data-theme="dark"] .exit-stage-panel .strategy-stage-row b { color: #ff8998; }
html[data-theme="dark"] .strategy-value-input i, html[data-theme="dark"] .strategy-manual-note { color: #91a0b5; }
html[data-theme="dark"] .strategy-card { border-color: #334158; border-top-color: #1abc9c; background: #101827; box-shadow: 0 5px 18px rgba(0,0,0,.25); color: #d6deea; }
html[data-theme="dark"] .strategy-card.liquidation-warning { border-top-color: #f59e0b; box-shadow: 0 5px 20px rgba(245,158,11,.2); }
html[data-theme="dark"] .strategy-card-liquidation-warning { border-left-color: #f59e0b; background: #3a2a12; color: #ffc766; }
html[data-theme="dark"] .strategy-card-header, html[data-theme="dark"] .strategy-card-actions { border-color: #26354a; background: #172132; }
html[data-theme="dark"] .strategy-card-header strong { color: #edf3fa; }
html[data-theme="dark"] .strategy-card-quote, html[data-theme="dark"] .strategy-card-quote > div { border-color: #26354a; background: #101827; }
html[data-theme="dark"] .strategy-card-direction-row, html[data-theme="dark"] .strategy-card-metrics, html[data-theme="dark"] .strategy-card-metrics > div { border-color: #26354a; }
html[data-theme="dark"] .strategy-card-metrics dd { color: #d6deea; }
html[data-theme="dark"] .strategy-card-stage-pair, html[data-theme="dark"] .strategy-card-stage + .strategy-card-stage, html[data-theme="dark"] .strategy-card-funding { border-color: #26354a; }
html[data-theme="dark"] .strategy-card-funding { background: #111b2a; }
html[data-theme="dark"] .strategy-card-funding > div, html[data-theme="dark"] .strategy-card-funding > small { color: #9eacc0; }
html[data-theme="dark"] .strategy-card-funding > div strong { color: #d6deea; }
html[data-theme="dark"] .strategy-stage-line { border-color: #28685e; background: transparent; color: #69dfcf; }
html[data-theme="dark"] .strategy-stage-line.exit { border-color: #6e3337; background: transparent; color: #ff9690; }
html[data-theme="dark"] .strategy-stage-line.completed { background: #153a34; }
html[data-theme="dark"] .strategy-stage-line.exit.completed { background: #3c2026; }
html[data-theme="dark"] .strategy-card-stage label small, html[data-theme="dark"] .strategy-card-stage label .strategy-exit-total .muted { color: #7f8da3; }
html[data-theme="dark"] .strategy-card-stage label .strategy-exit-total .positive { color: #69dfcf; }
html[data-theme="dark"] .strategy-card-stage label .strategy-exit-total .negative { color: #ff8998; }
html[data-theme="dark"] .strategy-card-stage-toggle-wrap { border-color: #26354a; background: #111b2a; }
html[data-theme="dark"] .strategy-card-stage-toggle { border-color: #42516a; color: #9eacc0; }
html[data-theme="dark"] .strategy-card-stage-toggle:hover { border-color: #4a9e92; color: #69dfcf; }
html[data-theme="dark"] .strategy-card-finance { border-color: #26354a; background: #13251f; }
html[data-theme="dark"] .strategy-card-finance.waiting { background: #111b2a; }
html[data-theme="dark"] .strategy-card-finance.error { background: #2d2415; }
html[data-theme="dark"] .strategy-finance-summary, html[data-theme="dark"] .strategy-finance-title, html[data-theme="dark"] .strategy-card-finance dd { color: #d6deea; }
html[data-theme="dark"] .position-operation-card-header, html[data-theme="dark"] .position-operation-leg { background: #172132; }
html[data-theme="dark"] .position-operation-note { background: #153a34; color: #9ed8cf; }
html[data-theme="dark"] .position-operation-status { border-color: #42516a; background: #202c3d; color: #b9c6d8; }
html[data-theme="dark"] .position-operation-status.filled { border-color: #28685e; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .position-operation-status.partial, html[data-theme="dark"] .position-operation-status.compensated { border-color: #765922; background: #332917; color: #f1c879; }
html[data-theme="dark"] .position-operation-status.failed { border-color: #74363d; background: #3c2026; color: #ff9690; }
html[data-theme="dark"] .position-operation-error { background: #3c2026; color: #ff9690; }
html[data-theme="dark"] .strategy-finance-toggle { border-color: #315f5d; background: #101827; color: #69dfcf; }
html[data-theme="dark"] .strategy-finance-toggle:hover { border-color: #4a9e92; background: #142c2b; }
html[data-theme="dark"] .strategy-finance-details, html[data-theme="dark"] .strategy-card-finance dl > div, html[data-theme="dark"] .strategy-finance-total.projected { border-color: #315048; }
html[data-theme="dark"] .strategy-stage-chip { border-color: #28685e; background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .strategy-stage-chip.exit { border-color: #6e3337; background: #3c2026; color: #ff9690; }
html[data-theme="dark"] .strategy-card-button { border-color: #42516a; background: #101827; color: #b9c6d8; }
html[data-theme="dark"] .strategy-card-button.cancel-partial { border-color: #805d20; background: #302817; color: #fbc36a; }
html[data-theme="dark"] .strategy-setting-input i { color: #91a0b5; }
html[data-theme="dark"] .strategy-stage-row.locked { background: #172132; }
html[data-theme="dark"] .strategy-toggle-extra-stages { border-color: #315f5d; background: #142c2b; color: #69dfcf; }
html[data-theme="dark"] .strategy-setting-item { border-color: #334158; background: #101827; }
html[data-theme="dark"] .strategy-setting-item strong { color: #edf3fa; }
html[data-theme="dark"] .strategy-setting-item p, html[data-theme="dark"] .strategy-setting-toggle, html[data-theme="dark"] .strategy-settings-current { color: #9eacc0; }
html[data-theme="dark"] .strategy-card-position-fields > label { color: #aeb8c8; }
html[data-theme="dark"] .strategy-card-position-fields small { color: #7f8da3; }
html[data-theme="dark"] .strategy-auto-entry-fields > label { color: #aeb8c8; }
html[data-theme="dark"] .strategy-auto-entry-example { border-left-color: #16baaa; background: #122d29; color: #9bb9b4 !important; }
html[data-theme="dark"] .strategy-settings-current span { color: #69dfcf; }
html[data-theme="dark"] .strategy-risk-action-options label { border-color: #334158; color: #c9d4e3; }
html[data-theme="dark"] .strategy-risk-action-options label:has(input:checked) { border-color: #2ac6b2; background: #12312f; color: #7ce9db; }
html[data-theme="dark"] .strategy-risk-action-explanation { border-color: #d58a17; background: #2d2415; color: #f1c879; }

@media (max-width: 1100px) {
    .rate-query-form { flex-wrap: wrap; }
    .rate-periods { margin-left: 0; }
    .chart-card-header { align-items: flex-start; flex-direction: column; }
    .rate-chart-header-tools { align-items: flex-start; width: 100%; }
    .chart-summary { justify-content: flex-start; }
    .rate-candle-section-header { align-items: flex-start; flex-direction: column; gap: 6px; }
    .rate-candle-toolbar { width: 100%; justify-content: space-between; }
    .strategy-stage-panels { grid-template-columns: 1fr; }
    .position-history-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .rate-query-form .field-group { flex: 1 1 120px; min-width: 120px; }
    .rate-divider { display: none; }
    .rate-query-actions { width: 100%; }
    .rate-query-actions .layui-btn { flex: 1; }
    .rate-search-button { width: auto; }
    .rate-periods { width: 100%; }
    .rate-chart-header-tools { gap: 7px; }
    .period-button { flex: 1; min-width: 0; padding: 0 5px; }
    .rate-explain-card { align-items: flex-start; }
    .rate-chart { height: 270px; overflow-x: auto; }
    .rate-chart-svg { min-width: 620px; }
    .rate-fair-panel { margin: 9px 0 0; padding: 9px; }
    .rate-asset-profile-panel { grid-template-columns: 1fr; gap: 8px; margin: 9px 0 0; }
    .rate-asset-profile-card { padding: 10px 11px; }
    .rate-asset-profile-card p { min-height: 0; }
    .rate-depth-panel { margin: 9px 0 0; padding: 10px 9px; }
    .rate-depth-panel-header { align-items: flex-start; flex-direction: column; gap: 4px; }
    .rate-depth-grid { grid-template-columns: 1fr; gap: 8px; }
    .rate-depth-row { grid-template-columns: 22px minmax(60px, 1.2fr) minmax(55px, 1fr) minmax(60px, 1.2fr) minmax(55px, 1fr); }
    .rate-fair-panel > header { align-items: flex-start; }
    .rate-fair-panel > header > div { align-items: flex-start; flex-direction: column; gap: 1px; }
    .rate-fair-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rate-fair-metrics > div { border-top: 1px solid var(--line); }
    .rate-fair-metrics > div:nth-child(1), .rate-fair-metrics > div:nth-child(2) { border-top: 0; }
    .rate-fair-metrics > div:nth-child(odd) { border-left: 0; }
    .rate-fair-metrics > div:last-child { grid-column: 1 / -1; }
    .chart-card-footer { flex-wrap: wrap; }
    .rate-candle-grid { grid-template-columns: 1fr; }
    .rate-candle-toolbar { align-items: flex-start; flex-direction: column; }
    .rate-candle-periods { width: 100%; }
    .candle-period-button { flex: 1; min-width: 0; }
    .rate-candle-card-header { align-items: flex-start; flex-direction: column; }
    .rate-candle-summary { justify-content: flex-start; }
    .rate-candle-chart { height: 255px; }
    .candle-viewport-status em { display: none; }
    .rate-candle-footer { flex-wrap: wrap; }
    .rate-candle-footer > em { width: 100%; margin-left: 0; }
    .rate-candle-controls { width: 100%; margin: 3px 0 0; }
    .rate-candle-controls button { flex: 1 1 0; min-width: 0; height: 32px; }
    .rate-candle-controls button em { font-size: 10px; }
    .chart-footnote { width: 100%; margin-left: 0; }
    .square-tip { align-items: flex-start; flex-direction: column; gap: 4px; }
    .copy-leaderboard { padding: 9px; }
    .leaderboard-month-toolbar { flex-wrap: wrap; padding: 8px 9px; }
    .leaderboard-month-loading { margin-left: 0; }
    .leaderboard-note { flex-direction: column; gap: 2px; padding: 8px 9px; }
    .leaderboard-formulas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .leaderboard-formulas > div { padding: 7px; }
    .copy-leaderboard th, .copy-leaderboard td { padding: 10px 7px; font-size: 11px; }
    .security-tip, .strategy-tip { align-items: flex-start; flex-direction: column; gap: 4px; }
    .strategy-data-summary { grid-template-columns: 1fr; }
    .strategy-data-summary-heading { align-items: center; justify-content: space-between; flex-direction: row; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
    .strategy-data-summary-heading small { width: auto; margin: 0 0 0 12px; text-align: right; }
    .strategy-data-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .strategy-data-summary-grid > div:nth-child(4) { border-left: 0; }
    .layer-grid.two-columns { grid-template-columns: 1fr; }
    .strategy-leverage-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .strategy-midline-preview { grid-template-columns: 1fr; gap: 4px; }
    .strategy-reference-values { justify-content: flex-start; flex-wrap: wrap; gap: 4px 18px; }
    .strategy-midline-preview > small { text-align: left; }
    .strategy-stage-heading, .strategy-stage-row { grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 7px 6px; }
    .strategy-stage-heading { font-size: 9px; }
    .strategy-card-grid { grid-template-columns: 1fr; }
    .strategy-card { width: 100%; max-width: none; }
    .strategy-setting-item, .strategy-setting-item.vertical { align-items: flex-start; flex-direction: column; gap: 10px; }
    .strategy-settings-number { flex-basis: auto; width: 150px; }
    .strategy-card-position-fields { grid-template-columns: 1fr; width: 100%; }
    .strategy-card-position-fields > label { grid-template-columns: minmax(0, 1fr) 150px; }
    .strategy-auto-entry-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .strategy-auto-entry-fields { grid-template-columns: 1fr; width: 100%; }
    .strategy-auto-entry-fields .strategy-settings-number { width: 100%; }
    .strategy-risk-action-options { grid-template-columns: 1fr; }
    .position-history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .position-history-summary > div { padding: 9px 10px; }
    .position-history-summary strong { font-size: 14px; }
    .position-profit-calendar-layer { padding: 9px; }
    .position-profit-calendar-toolbar { justify-content: space-between; gap: 6px; padding: 8px; }
    .position-profit-calendar-toolbar label { gap: 6px; }
    .position-profit-calendar-toolbar input { width: 132px; }
    .position-profit-calendar-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
    .position-profit-calendar-summary .main { grid-column: 1 / -1; }
    .position-profit-calendar-summary > div { padding: 8px; }
    .position-profit-calendar-day { min-height: 63px; padding: 5px 2px 4px; }
    .position-profit-calendar-day b { margin-top: 4px; font-size: 10px; }
    .position-profit-calendar-day small { font-size: 8px; }
    .position-profit-calendar-day .no-trade { display: none; }
    .position-operation-layer { padding: 9px; }
    .position-operation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .position-operation-card-header { align-items: flex-start; }
    .position-operation-card-header > div:last-child { align-items: flex-end; flex-direction: column; gap: 4px; }
    .position-operation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .position-operation-metrics > div { border-top: 1px solid var(--line); }
    .position-operation-metrics > div:nth-child(1), .position-operation-metrics > div:nth-child(2) { border-top: 0; }
    .position-operation-metrics > div:nth-child(odd) { border-left: 0; }
    .position-operation-legs { grid-template-columns: 1fr; padding: 8px; }
}
.heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mobile-data-panel { display: none; }
.hedge-mobile .desktop-data-panel { display: none; }
.hedge-mobile .mobile-data-panel { display: block; }
.mobile-data-list { display: grid; gap: 10px; }
.mobile-data-loading, .mobile-data-empty { padding: 46px 15px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); text-align: center; }
.mobile-data-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); box-shadow: 0 3px 12px rgba(23,32,51,.05); }
.mobile-data-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 11px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.mobile-data-card-header strong { color: var(--ink); font-size: 14px; }
.mobile-data-card-header small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.mobile-data-card-badge { flex: 0 0 auto; padding: 3px 7px; border-radius: 99px; background: #eaf8f5; color: #087a6d; font-size: 10px; }
.recommendation-mobile-badges { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.mobile-data-card-main { padding: 4px 11px; }
.mobile-data-row { display: grid; grid-template-columns: minmax(78px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 10px; min-height: 31px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 11px; line-height: 17px; }
.mobile-data-row:last-child { border-bottom: 0; }
.mobile-data-row > span:first-child { color: var(--muted); }
.mobile-data-row > span:last-child { overflow-wrap: anywhere; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.mobile-data-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.mobile-data-split > div { padding: 9px 10px; background: var(--paper); text-align: center; }
.mobile-data-split small, .mobile-data-split b, .mobile-data-split > div > span { display: block; }
.mobile-data-split small { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.mobile-data-split b { font-size: 12px; font-variant-numeric: tabular-nums; }
.mobile-data-card-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 7px; padding: 9px 10px; border-top: 1px solid var(--line); background: #fafbfc; }
.mobile-data-card-actions .layui-btn { height: 34px; margin: 0; padding: 0 8px; line-height: 34px; font-size: 11px; }
.mobile-data-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.mobile-data-pager span { color: var(--muted); font-size: 11px; }
.mobile-data-pager button { min-width: 78px; height: 34px; border: 1px solid #dfe5ec; border-radius: 3px; background: var(--paper); color: var(--ink); }
.mobile-data-pager button:disabled { opacity: .45; }
.mobile-data-pager select { height: 34px; padding: 0 8px; border: 1px solid #dfe5ec; border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 12px; }
html[data-theme="dark"] .mobile-data-card-header, html[data-theme="dark"] .mobile-data-card-actions { background: #172132; }
html[data-theme="dark"] .mobile-data-card-badge { background: #153a34; color: #69dfcf; }
html[data-theme="dark"] .mobile-data-pager button { border-color: #334158; }
html[data-theme="dark"] .mobile-data-pager select { border-color: #334158; }
html[data-theme="dark"] .hedge-mobile .strategy-mobile-view-options { border-color: #334158; }
html[data-theme="dark"] .hedge-mobile .strategy-mobile-view-options button { border-color: #334158; background: #172132; color: #b5c0d0; }
html[data-theme="dark"] .hedge-mobile .strategy-mobile-view-options button.active { background: #009688; color: #fff; }

/* 对冲账号的手机入口：后端接口不变，只切换为触摸友好的展示层。 */
.hedge-mobile-nav { display: none; }
@media (max-width: 1200px) {
    .hedge-mobile { --mobile-nav-height: 58px; }
    .hedge-mobile .desktop-data-panel { display: none; }
    .hedge-mobile .mobile-data-panel { display: block; }
    .hedge-mobile .admin-header.topbar { height: 54px; padding: 0 9px; gap: 8px; }
    .hedge-mobile .sidebar-toggle { width: 34px; flex: 0 0 34px; }
    .hedge-mobile .header-title { flex: 1; min-width: 0; }
    .hedge-mobile .header-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
    .hedge-mobile .header-title span, .hedge-mobile .header-market-strip,
    .hedge-mobile .account-name { display: none; }
    .hedge-mobile .theme-picker > span { display: none; }
    .hedge-mobile .theme-select { width: 62px; padding: 0 18px 0 5px; }
    .hedge-mobile .account-area { margin-left: 0; }
    .hedge-mobile .link-button { min-width: 42px; min-height: 34px; }
    .hedge-mobile.app-page .page-container { margin-left: 0; padding: 66px 9px calc(var(--mobile-nav-height) + 20px); }
    .hedge-mobile[data-page="hedge-strategies"] .page-container.trading-page { padding-bottom: calc(var(--mobile-nav-height) + 40px + env(safe-area-inset-bottom)) !important; }
    .hedge-mobile .page-heading { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 11px; }
    .hedge-mobile .page-heading h1 { margin: 2px 0 4px; font-size: 20px; }
    .hedge-mobile .page-heading p { font-size: 11px; line-height: 18px; }
    .hedge-mobile .heading-actions { width: 100%; justify-content: space-between; gap: 7px; }
    .hedge-mobile .heading-actions .layui-btn { flex: 1; margin: 0; }
    .hedge-mobile .recommendation-heading-actions { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
    .hedge-mobile #recommendation-manual-refresh { width: 100%; min-width: 0; height: auto; padding: 0 5px; white-space: normal; line-height: 18px; }
    .hedge-mobile .recommendation-heading-actions .recommendation-status-card { box-sizing: border-box; width: 100%; min-width: 0; }
    .hedge-mobile .status-card { width: 100%; min-width: 0; padding: 8px 10px; }
    .hedge-mobile .simple-card { padding: 10px; }
    .hedge-mobile .gate-client-promo { grid-template-columns: 1fr; gap: 16px; padding: 16px 14px; }
    .hedge-mobile .gate-client-promo h2 { font-size: 16px; line-height: 24px; }
    .hedge-mobile .gate-invite-code { box-sizing: border-box; width: 100%; justify-content: space-between; }
    .hedge-mobile .gate-client-promo-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .hedge-mobile .gate-client-promo-actions .layui-btn { min-width: 0; padding: 0 8px; }
    .hedge-mobile .gate-client-qr { justify-self: center; }
    .hedge-mobile .security-tip, .hedge-mobile .strategy-tip,
    .hedge-mobile .square-tip, .hedge-mobile .rate-explain-card { font-size: 11px; line-height: 18px; }
    .hedge-mobile .strategy-data-summary { margin-bottom: 9px; }
    .hedge-mobile .strategy-data-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hedge-mobile .strategy-data-summary-grid > div { padding: 7px 9px; }
    .hedge-mobile .strategy-data-summary-grid > div:nth-child(3),
    .hedge-mobile .strategy-data-summary-grid > div:nth-child(5) { border-left: 0; }
    .hedge-mobile .strategy-data-summary-grid > div:nth-child(4) { border-left: 1px solid var(--line); }
    .hedge-mobile .strategy-data-summary-grid > div:last-child { grid-column: 1 / -1; }
    .hedge-mobile .strategy-data-summary-grid dd { font-size: 14px; }
    .hedge-mobile .filter-card { padding: 9px; }
    .hedge-mobile .filter-main { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .hedge-mobile .field-group, .hedge-mobile .field-group.wide-field { min-width: 0; width: auto; }
    .hedge-mobile .filter-actions { grid-column: 1 / -1; width: 100%; }
    .hedge-mobile .filter-actions .layui-btn { flex: 1; margin: 0; }
    .hedge-mobile .recommendation-scan-summary { grid-column: 1 / -1; }
    .hedge-mobile .recommendation-rules { display: flex; overflow-x: auto; flex-wrap: nowrap; gap: 6px; white-space: nowrap; }
    .hedge-mobile .recommendation-tier-rules { display: grid; overflow: visible; white-space: normal; }
    .hedge-mobile .recommendation-tier-rules > div { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
    .hedge-mobile .recommendation-method-note { margin: 8px 0; font-size: 10px; line-height: 16px; }
    .hedge-mobile .rate-query-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .hedge-mobile .rate-query-form .field-group { min-width: 0; }
    .hedge-mobile .rate-query-actions, .hedge-mobile .rate-periods { grid-column: 1 / -1; width: 100%; }
    .hedge-mobile .chart-card { margin-top: 10px; }
    .hedge-mobile .chart-card-header { padding: 10px; }
    .hedge-mobile .chart-card-title h2 { font-size: 15px; }
    .hedge-mobile .chart-summary { gap: 7px 12px; padding: 8px 10px; font-size: 10px; }
    .hedge-mobile .rate-fair-panel { margin: 8px 0 0; }
    .hedge-mobile .rate-chart { height: 250px; }
    .hedge-mobile .rate-chart { overflow: hidden; }
    .hedge-mobile .rate-chart-svg { width: 100%; min-width: 0; }
    .hedge-mobile .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hedge-mobile .table-card > .layui-table-view { min-width: 720px; }
    .hedge-mobile .rate-table-card > .layui-table-view { min-width: 540px; }
    .hedge-mobile .recommendation-table-card > .layui-table-view { min-width: 980px; }
    .hedge-mobile .trading-table-card > .layui-table-view { min-width: 920px; }
    .hedge-mobile[data-page="hedge-positions"] .trading-table-card > .layui-table-view { min-width: 685px; }
    .hedge-mobile .table-legend { min-width: 100%; padding: 7px 9px; font-size: 10px; }
    .hedge-mobile .strategy-mobile-view-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 10px; padding: 8px 9px; border: 1px solid var(--line); border-left: 3px solid #009688; background: var(--paper); }
    .hedge-mobile .strategy-mobile-view-switch strong, .hedge-mobile .strategy-mobile-view-switch span { display: block; }
    .hedge-mobile .strategy-mobile-view-switch strong { color: var(--ink); font-size: 11px; }
    .hedge-mobile .strategy-mobile-view-switch span { margin-top: 2px; color: var(--muted); font-size: 9px; }
    .hedge-mobile .strategy-mobile-view-options { display: grid; flex: 0 0 116px; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #ccd5df; border-radius: 3px; }
    .hedge-mobile .strategy-mobile-view-options button { height: 30px; padding: 0 8px; border: 0; border-left: 1px solid #ccd5df; background: #fff; color: #667085; font-size: 11px; cursor: pointer; }
    .hedge-mobile .strategy-mobile-view-options button:first-child { border-left: 0; }
    .hedge-mobile .strategy-mobile-view-options button.active { background: #009688; color: #fff; font-weight: 700; }
    .hedge-mobile .strategy-card-grid { grid-template-columns: 1fr; align-items: start; gap: 9px; }
    .hedge-mobile .strategy-card { overflow: visible; width: 100%; max-width: none; height: auto; min-height: 0; }
    .hedge-mobile .strategy-card-header { padding: 10px; }
    .hedge-mobile .strategy-card-quote b { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; white-space: normal; }
    .hedge-mobile .strategy-card-direction-row { align-items: flex-start; flex-wrap: wrap; }
    .hedge-mobile .strategy-card-direction-row > span:last-child { margin-left: auto; text-align: right; white-space: normal; }
    .hedge-mobile .strategy-card-stage { padding: 7px 6px; }
    .hedge-mobile .strategy-stage-line em { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; white-space: normal; }
    .hedge-mobile .strategy-card-evaluation small { overflow-wrap: anywhere; }
    .hedge-mobile .strategy-card-funding { padding: 8px 9px; }
    .hedge-mobile .strategy-card-funding time { right: 9px; }
    .hedge-mobile .strategy-card-metrics > div { align-items: flex-start; min-height: 25px; padding: 5px 0; }
    .hedge-mobile .strategy-card-metrics dt { flex: 0 0 42%; }
    .hedge-mobile .strategy-card-metrics dd { min-width: 0; max-width: 58%; overflow-wrap: anywhere; white-space: normal; }
    .hedge-mobile .strategy-card-error, .hedge-mobile .strategy-card-liquidation-warning { overflow: visible; text-overflow: clip; overflow-wrap: anywhere; white-space: normal; }
    .hedge-mobile .strategy-card-actions { position: sticky; bottom: var(--mobile-nav-height); }
    .hedge-mobile .strategy-card-button { min-height: 34px; font-size: 11px; }
    .hedge-mobile.strategy-mobile-compact .strategy-tip { display: none; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-grid { gap: 6px; min-height: 0; }
    .hedge-mobile.strategy-mobile-compact .strategy-card { overflow: hidden; border-top-width: 2px; border-radius: 4px; box-shadow: 0 2px 8px rgba(31,45,61,.06); }
    .hedge-mobile.strategy-mobile-compact .strategy-card:hover { box-shadow: 0 2px 8px rgba(31,45,61,.06); }
    .hedge-mobile.strategy-mobile-compact .strategy-card > :not(.strategy-card-header):not(.strategy-card-compact-details) { display: none !important; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-header { align-items: center; min-height: 34px; padding: 6px 9px; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-header > div > small,
    .hedge-mobile.strategy-mobile-compact .strategy-ai-button,
    .hedge-mobile.strategy-mobile-compact .strategy-auto-follow-label { display: none; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-header strong { font-size: 13px; }
    .hedge-mobile.strategy-mobile-compact .strategy-status { padding: 3px 7px; font-size: 9px; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-details { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); background: #edf0f4; gap: 1px; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-details > div { min-width: 0; min-height: 42px; padding: 6px 7px; background: var(--paper); }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-deviation,
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-position { grid-column: span 5; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-profit { grid-column: span 2; padding-right: 4px; padding-left: 4px; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-stage { grid-column: span 6; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-details > div > span { display: block; overflow: hidden; margin-bottom: 3px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-details strong,
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-pnl { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; color: var(--ink); font-size: 10px; line-height: 14px; font-variant-numeric: tabular-nums; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-details strong em { color: #087a6d; font-style: normal; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-details strong i { color: #98a2b3; font-style: normal; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-deviation strong,
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-position-value { flex-wrap: nowrap; gap: 2px; white-space: nowrap; font-size: 9px; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-stage strong b { color: var(--ink); }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-stage strong.empty i { color: var(--muted); }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-profit > span { font-size: 8px; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-pnl { font-size: 9px; }
    .hedge-mobile.strategy-mobile-compact .strategy-card-compact-pnl b { font-size: 10px; white-space: nowrap; }
    .hedge-mobile .layui-layer { max-width: calc(100vw - 12px) !important; left: 6px !important; }
    .hedge-mobile .layui-layer-content { max-height: calc(100vh - 145px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .hedge-mobile .layui-layer-page .layui-layer-btn { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; padding: 9px 10px; border-top: 1px solid var(--line); background: var(--paper); }
    .hedge-mobile .layui-layer-page .layui-layer-btn a { min-width: 88px; height: 36px; margin: 0 0 0 8px; line-height: 36px; }
    .hedge-mobile .layui-layer-page.strategy-close-prompt { top: 50vh !important; top: 50dvh !important; left: 50% !important; display: flex; overflow: hidden; flex-direction: column; box-sizing: border-box; width: calc(100vw - 24px) !important; max-width: 420px !important; height: auto !important; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); transform: translate(-50%, -50%); }
    .hedge-mobile .layui-layer-page.strategy-close-prompt .layui-layer-title { flex: 0 0 42px; box-sizing: border-box; }
    .hedge-mobile .layui-layer-page.strategy-close-prompt .layui-layer-content { flex: 1 1 auto; overflow-y: auto; box-sizing: border-box; width: 100%; min-height: 0; height: auto !important; max-height: none; padding: 14px; -webkit-overflow-scrolling: touch; }
    .hedge-mobile .layui-layer-page.strategy-close-prompt .layui-layer-input { box-sizing: border-box; width: 100%; height: 42px; margin: 0; padding: 0 12px; font-size: 16px; line-height: 40px; }
    .hedge-mobile .layui-layer-page.strategy-close-prompt .strategy-close-confirm-note { margin: 0 0 12px; }
    .hedge-mobile .layui-layer-page.strategy-close-prompt .layui-layer-btn { position: static; display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 8px; box-sizing: border-box; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
    .hedge-mobile .layui-layer-page.strategy-close-prompt .layui-layer-btn a { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; margin: 0; padding: 0 6px; text-align: center; line-height: 40px; }
    .hedge-mobile .layer-form { padding: 10px 10px 66px; }
    .hedge-mobile .strategy-editor-layer { position: fixed !important; top: 6px !important; bottom: 6px !important; bottom: calc(6px + env(safe-area-inset-bottom)) !important; display: flex !important; overflow: hidden; flex-direction: column; height: auto !important; max-height: none !important; }
    .hedge-mobile .strategy-editor-layer .layui-layer-title { flex: 0 0 42px; box-sizing: border-box; }
    .hedge-mobile .strategy-editor-layer .layui-layer-content { flex: 1 1 0; overflow-y: auto; min-height: 0; height: auto !important; max-height: none; -webkit-overflow-scrolling: touch; }
    .hedge-mobile .strategy-editor-layer .layui-layer-btn { position: static; display: flex; flex: 0 0 auto; justify-content: flex-end; box-sizing: border-box; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); }
    .hedge-mobile .strategy-editor-layer .layui-layer-btn a { flex: 1; box-sizing: border-box; margin: 0 0 0 8px; text-align: center; }
    .hedge-mobile .strategy-editor-layer .layui-layer-btn a:first-child { margin-left: 0; }
    .hedge-mobile .strategy-editor-layer .strategy-layer-form { padding-bottom: 10px; }
    .hedge-mobile .strategy-pair-paste-layer { top: 24px !important; right: 10px !important; left: 10px !important; width: auto !important; max-width: none !important; height: auto !important; }
    .hedge-mobile .strategy-pair-paste-layer .layui-layer-content { height: auto !important; max-height: none; overflow: visible; }
    .hedge-mobile .strategy-pair-paste-layer .layui-layer-btn { position: static; display: flex; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); }
    .hedge-mobile .strategy-pair-paste-layer .layui-layer-btn a { flex: 1; box-sizing: border-box; min-width: 0; margin: 0 0 0 8px; text-align: center; }
    .hedge-mobile .strategy-pair-paste-layer .layui-layer-btn a:first-child { margin-left: 0; }
    .hedge-mobile .strategy-pair-paste-form { padding: 13px 12px; }
    .hedge-mobile .layer-grid.two-columns, .hedge-mobile .strategy-stage-panels { grid-template-columns: 1fr; }
    .hedge-mobile .strategy-leverage-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hedge-mobile .strategy-stage-heading, .hedge-mobile .strategy-stage-row { grid-template-columns: 66px minmax(0, 1fr) minmax(0, 1fr); gap: 5px; padding: 6px 5px; }
    .hedge-mobile-nav { position: fixed; z-index: 1200; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6, 1fr); height: var(--mobile-nav-height); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -5px 18px rgba(23,32,51,.09); backdrop-filter: blur(9px); }
    .hedge-mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: #7b8493; font-size: 10px; }
    .hedge-mobile-nav a i { font-size: 17px; font-style: normal; line-height: 20px; }
    .hedge-mobile-nav a.active { color: #009688; font-weight: 700; }
    html[data-theme="dark"] .hedge-mobile-nav { border-color: #273449; background: rgba(16,24,39,.97); box-shadow: 0 -5px 18px rgba(0,0,0,.3); }
}

@media (max-width: 380px) {
    .hedge-mobile .strategy-stage-line { grid-template-columns: 19px minmax(0, .9fr) minmax(0, 1.1fr); padding: 2px; font-size: 8px; }
    .hedge-mobile .strategy-card-funding > small { padding-right: 0; flex-direction: column; align-items: flex-start; }
    .hedge-mobile .strategy-card-funding time { position: static; display: block; margin-top: 4px; }
    .hedge-mobile .strategy-card-finance dl > div { align-items: flex-start; }
    .hedge-mobile .strategy-card-finance dd { max-width: 62%; overflow-wrap: anywhere; white-space: normal; }
    .hedge-mobile .strategy-finance-total { align-items: flex-start; }
    .hedge-mobile .strategy-finance-total-value { max-width: 45%; white-space: normal; }
}

/* 平台服务：对冲教程 */
.tutorial-page { max-width: 1500px; }
.tutorial-start-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 18px 22px; border: 1px solid rgba(26,188,156,.35); border-left: 4px solid #1abc9c; background: linear-gradient(90deg, rgba(26,188,156,.1), rgba(26,188,156,.025)); }
.tutorial-start-card div { display: flex; flex-direction: column; gap: 5px; }
.tutorial-start-card b { color: #008f7a; font-size: 12px; }
.tutorial-start-card strong { color: var(--ink); font-size: 17px; }
.tutorial-start-card p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 20px; }
.tutorial-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 18px; }
.tutorial-toc { position: sticky; top: 82px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.tutorial-toc strong { display: block; padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.tutorial-toc a { display: block; padding: 8px 15px; border-left: 2px solid transparent; color: var(--muted); font-size: 12px; }
.tutorial-toc a:hover { border-left-color: #1abc9c; background: rgba(26,188,156,.06); color: #008f7a; }
.tutorial-content { display: grid; gap: 16px; min-width: 0; }
.tutorial-section { scroll-margin-top: 78px; padding: 22px; border: 1px solid var(--line); background: var(--paper); }
.tutorial-section > header { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tutorial-section > header > span { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 50%; background: #1abc9c; color: #fff; font-size: 12px; font-weight: 700; }
.tutorial-section h2 { margin: 0 0 4px; color: var(--ink); font-size: 20px; }
.tutorial-section > header p { margin: 0; color: var(--muted); font-size: 12px; }
.tutorial-step-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tutorial-step-grid article { position: relative; min-height: 150px; padding: 16px 13px 13px; border: 1px solid var(--line); background: var(--canvas); }
.tutorial-step-grid i { position: absolute; top: 10px; right: 10px; color: rgba(26,188,156,.22); font-size: 30px; font-style: normal; font-weight: 800; }
.tutorial-step-grid h3 { margin: 0 0 9px; color: #008f7a; font-size: 14px; }
.tutorial-step-grid p { margin: 0 0 8px; color: var(--muted); font-size: 11px; line-height: 18px; }
.tutorial-step-grid a { color: #009688; font-size: 11px; }
.tutorial-formula { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 13px; }
.tutorial-formula div { padding: 15px; border: 1px solid var(--line); background: var(--canvas); }
.tutorial-formula small { display: block; margin-bottom: 6px; color: var(--muted); }
.tutorial-formula b { color: var(--ink); font-size: 14px; }
.tutorial-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tutorial-direction, .tutorial-example-card { padding: 16px; border: 1px solid rgba(231,76,60,.28); border-top: 3px solid #e74c3c; background: rgba(231,76,60,.025); }
.tutorial-direction.low, .tutorial-example-card.low { border-color: rgba(26,188,156,.32); border-top-color: #1abc9c; background: rgba(26,188,156,.025); }
.tutorial-direction h3, .tutorial-example-card h3 { margin: 0 0 8px; color: #d94436; font-size: 15px; }
.tutorial-direction.low h3, .tutorial-example-card.low h3 { color: #008f7a; }
.tutorial-direction p, .tutorial-direction div, .tutorial-example-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 21px; }
.tutorial-direction div { margin-top: 8px; }
.tutorial-callout { margin-top: 13px; padding: 13px 15px; border-left: 3px solid #1abc9c; background: rgba(26,188,156,.07); }
.tutorial-callout.important { border-left-color: #e6a23c; background: rgba(230,162,60,.09); }
.tutorial-callout.warning { border-left-color: #e74c3c; background: rgba(231,76,60,.07); }
.tutorial-callout b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; }
.tutorial-callout p { margin: 0; color: var(--muted); font-size: 12px; line-height: 21px; }
.tutorial-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.tutorial-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.tutorial-table th, .tutorial-table td { padding: 11px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; line-height: 20px; }
.tutorial-table th:last-child, .tutorial-table td:last-child { border-right: 0; }
.tutorial-table tr:last-child td { border-bottom: 0; }
.tutorial-table th { background: var(--canvas); color: var(--muted); font-weight: 600; }
.tutorial-table td { color: var(--ink); }
.tutorial-table td:first-child { color: #008f7a; font-weight: 600; white-space: nowrap; }
.example-table td:nth-child(2) { color: #e74c3c; font-weight: 700; }
.tutorial-rules { display: grid; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.tutorial-rules li { position: relative; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 20px; }
.tutorial-rules li::before { position: absolute; top: 7px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: #1abc9c; content: ''; }
.tutorial-example-card .direction { margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.tutorial-example-card dl { display: grid; gap: 8px; margin: 0 0 10px; }
.tutorial-example-card dl div { display: grid; grid-template-columns: 46px 1fr; gap: 9px; padding: 8px; background: var(--paper); }
.tutorial-example-card dt { color: var(--muted); font-size: 11px; }
.tutorial-example-card dd { margin: 0; color: var(--ink); font-size: 12px; line-height: 20px; }
.tutorial-card-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.tutorial-card-guide article { padding: 12px 14px; background: var(--paper); }
.tutorial-card-guide b { display: block; margin-bottom: 4px; color: #008f7a; font-size: 12px; }
.tutorial-card-guide p { margin: 0; color: var(--muted); font-size: 11px; line-height: 18px; }
.tutorial-status-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.tutorial-status-row span { padding: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 17px; }
.tutorial-status-row i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #e6a23c; }
.tutorial-status-row i.holding { background: #e74c3c; }.tutorial-status-row i.paused { background: #9aa5b5; }.tutorial-status-row i.processing { background: #3498db; }.tutorial-status-row i.error { background: #c0392b; }
.tutorial-status-row b { color: var(--ink); }
.tutorial-operation-list, .tutorial-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tutorial-operation-list article, .tutorial-checklist div { padding: 12px 14px; border: 1px solid var(--line); background: var(--canvas); }
.tutorial-operation-list b, .tutorial-checklist b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; }
.tutorial-operation-list p, .tutorial-checklist p { margin: 0; color: var(--muted); font-size: 11px; line-height: 19px; }
.tutorial-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tutorial-safety-list { display: grid; gap: 8px; margin: 0; padding-left: 28px; }
.tutorial-safety-list li { padding: 8px 10px; color: var(--muted); font-size: 12px; line-height: 20px; }
.tutorial-safety-list b { color: var(--ink); }
.tutorial-finish { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 16px; border: 1px solid rgba(26,188,156,.3); background: rgba(26,188,156,.06); }
.tutorial-finish b { color: var(--ink); }.tutorial-finish p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
html[data-theme="dark"] .tutorial-start-card { background: linear-gradient(90deg, rgba(26,188,156,.14), rgba(26,188,156,.035)); }
html[data-theme="dark"] .tutorial-direction, html[data-theme="dark"] .tutorial-example-card { background: rgba(231,76,60,.05); }
html[data-theme="dark"] .tutorial-direction.low, html[data-theme="dark"] .tutorial-example-card.low { background: rgba(26,188,156,.05); }

/* 跟单动态、私信与 Telegram 通知 */
.private-message-button { position: relative; }
.private-message-badge { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--paper); border-radius: 10px; background: #e74c3c; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-sizing: border-box; }
.strategy-card-button.follow-updates { grid-column: 1 / -1; border-color: rgba(52,152,219,.45); color: #2574a9; }
.strategy-card-button.follow-updates.active { border-color: #3498db; background: rgba(52,152,219,.1); color: #1d6fa5; }
.strategy-card-button.recover { border-color: #e6a23c; background: rgba(230,162,60,.08); color: #b56f08; }
.strategy-card.auto-follow-card { border-top-color: #7c3aed; box-shadow: 0 5px 18px rgba(124,58,237,.14); }
.strategy-card.auto-follow-manual { border-top-color: #f59e0b; box-shadow: 0 5px 18px rgba(245,158,11,.14); }
.strategy-auto-follow-label { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; font-size: 9px; line-height: 16px; }
.strategy-auto-follow-label b, .strategy-auto-follow-label i { padding: 1px 6px; border-radius: 10px; font-style: normal; }
.strategy-auto-follow-label b { background: #7c3aed; color: #fff; letter-spacing: .4px; }
.strategy-auto-follow-label em { max-width: 110px; overflow: hidden; color: #5b21b6; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-weight: 700; }
.strategy-auto-follow-label i { background: #f0e9ff; color: #6d28d9; }
.strategy-auto-follow-label.manual b { background: #f59e0b; }
.strategy-auto-follow-label.manual em { color: #b45309; }
.strategy-auto-follow-label.manual i { background: #fff3d6; color: #9a5a00; }
.strategy-card-button.auto-follow-control { grid-column: 1 / -1; min-height: 30px; border-color: #8b5cf6; background: #f6f2ff; color: #6d28d9; font-weight: 700; }
.strategy-card-button.auto-follow-control.takeover { border-color: #f0a020; background: #fff8eb; color: #a75b00; }

.auto-follow-rule-card { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; padding: 14px 16px; border-left: 4px solid #7c3aed; }
.auto-follow-rule-card strong { flex: 0 0 auto; color: #5b21b6; }
.auto-follow-rule-card span { color: var(--muted); font-size: 12px; line-height: 20px; }
.auto-follow-create-card, .auto-follow-list-card { padding: 18px; }
.auto-follow-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.auto-follow-section-title strong { color: var(--ink); font-size: 15px; }
.auto-follow-section-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 18px; }
.auto-follow-form-grid { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(145px, .7fr)) auto; align-items: end; gap: 12px; }
.auto-follow-form-grid .field-group label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.auto-follow-form-action .layui-btn { min-width: 120px; margin: 0; }
.auto-follow-user-field { position: relative; }
.auto-follow-user-results { position: absolute; z-index: 40; top: calc(100% + 3px); right: 0; left: 0; overflow-y: auto; max-height: 220px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); box-shadow: 0 10px 24px rgba(15,23,42,.16); }
.auto-follow-user-results button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.auto-follow-user-results button:hover { background: #f3f0ff; }
.auto-follow-user-results small, .auto-follow-search-empty { color: var(--muted); font-size: 10px; }
.auto-follow-search-empty { padding: 12px; }
.auto-follow-form-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 18px; }
.auto-follow-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; margin-top: 12px; }
.auto-follow-list { display: grid; gap: 9px; }
.auto-follow-list-item { padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.auto-follow-list-item header, .auto-follow-list-item footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auto-follow-list-item header strong { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.auto-follow-list-item > div { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.auto-follow-list-item > div b { color: var(--ink); }
.auto-follow-list-item footer { margin-top: 10px; }
.auto-follow-list-item footer small { color: var(--muted); font-size: 9px; }
.auto-follow-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.auto-follow-actions .layui-btn { margin: 0; }
.auto-follow-state { flex: 0 0 auto; padding: 2px 7px; border-radius: 10px; font-size: 9px; }
.auto-follow-state.active { background: #e9f8f1; color: #087a50; }
.auto-follow-state.manual { background: #fff3d6; color: #9a5a00; }
.auto-follow-empty { padding: 28px 12px; color: var(--muted); text-align: center; }
html[data-theme="dark"] .strategy-card.auto-follow-card { border-top-color: #9f7aea; box-shadow: 0 5px 18px rgba(124,58,237,.24); }
html[data-theme="dark"] .strategy-card.auto-follow-manual { border-top-color: #f59e0b; box-shadow: 0 5px 18px rgba(245,158,11,.22); }
html[data-theme="dark"] .strategy-auto-follow-label em { color: #c4b5fd; }
html[data-theme="dark"] .strategy-auto-follow-label i { background: #30244d; color: #c4b5fd; }
html[data-theme="dark"] .strategy-auto-follow-label.manual em { color: #fbc36a; }
html[data-theme="dark"] .strategy-auto-follow-label.manual i { background: #3c2d13; color: #fbc36a; }
html[data-theme="dark"] .strategy-card-button.auto-follow-control { border-color: #7656b9; background: #251d3d; color: #c4b5fd; }
html[data-theme="dark"] .strategy-card-button.auto-follow-control.takeover { border-color: #805d20; background: #302817; color: #fbc36a; }
html[data-theme="dark"] .auto-follow-user-results button:hover { background: #251d3d; }

@media (max-width: 980px) {
    .auto-follow-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auto-follow-user-field { grid-column: 1 / -1; }
    .auto-follow-form-action { grid-column: 1 / -1; }
    .auto-follow-form-action .layui-btn { width: 100%; }
}
@media (max-width: 620px) {
    .auto-follow-rule-card { display: block; }
    .auto-follow-rule-card span { display: block; margin-top: 6px; }
    .auto-follow-create-card, .auto-follow-list-card { padding: 13px; }
    .auto-follow-form-grid, .auto-follow-columns { grid-template-columns: 1fr; }
    .auto-follow-user-field, .auto-follow-form-action { grid-column: auto; }
    .auto-follow-list-item footer { align-items: flex-start; flex-direction: column; }
    .auto-follow-actions { width: 100%; justify-content: stretch; }
    .auto-follow-list-item footer .auto-follow-actions .layui-btn { flex: 1 1 0; width: auto; margin: 0; }
}
.notification-embed-page { min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
.notification-message-page { box-sizing: border-box; min-height: 100vh; padding: 14px; }
.notification-message-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); }
.notification-message-toolbar strong { display: block; color: var(--ink); font-size: 15px; }
.notification-message-toolbar small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.notification-message-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.notification-message-actions .layui-btn { margin: 0; }
.notification-list { overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.notification-list-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.notification-list-item:last-child { border-bottom: 0; }
.notification-list-item:hover { background: rgba(26,188,156,.045); }
.notification-list-item.unread { background: rgba(231,76,60,.035); }
.notification-read-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b5; }
.notification-list-item.unread .notification-read-dot { background: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.1); }
.notification-list-item > span { min-width: 0; }
.notification-list-item strong, .notification-list-item > span small, .notification-list-item > em small { display: block; }
.notification-list-item strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.notification-list-item > span small { overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notification-list-item > em { color: var(--muted); font-size: 10px; font-style: normal; text-align: right; white-space: nowrap; }
.notification-list-item > em small { margin-top: 5px; color: #8492a6; }
.notification-list-empty { padding: 50px 15px; color: var(--muted); text-align: center; }
.notification-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; color: var(--muted); font-size: 11px; }
.notification-pager button { min-width: 74px; padding: 6px 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.notification-pager button:disabled { opacity: .45; cursor: default; }
.notification-detail { box-sizing: border-box; height: 100%; overflow-y: auto; padding: 18px; color: var(--ink); }
.notification-detail time { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.notification-detail div { font-size: 13px; line-height: 24px; }
.notification-settings-card { display: grid; gap: 18px; padding: 20px; }
.notification-channel-block { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); background: rgba(247,249,251,.52); }
.notification-channel-block > .layui-btn { justify-self: start; margin: 0; }
.notification-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.notification-setting-row strong { color: var(--ink); font-size: 14px; }
.notification-setting-row p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 18px; }
.native-switch-label { display: flex; align-items: center; gap: 7px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.native-switch-label input { width: 18px; height: 18px; accent-color: #009688; }
.notification-settings-card .field-group small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 18px; }
.notification-bot-status { padding: 10px 12px; border-left: 3px solid #e6a23c; background: rgba(230,162,60,.08); color: #9a620c; font-size: 11px; }
.notification-bot-status.ready { border-left-color: #1abc9c; background: rgba(26,188,156,.08); color: #008f7a; }
.notification-bot-status.error { border-left-color: #e74c3c; background: rgba(231,76,60,.07); color: #c0392b; }
.notification-settings-actions { display: flex; gap: 10px; }
html[data-theme="dark"] .notification-list-item.unread { background: rgba(231,76,60,.07); }
html[data-theme="dark"] .notification-channel-block { background: rgba(16,24,39,.45); }

/* AI配置与汇率分析是独立只读功能，不复用任何策略编辑样式。 */
.rate-ai-button { height: 34px; border: 0; background: linear-gradient(135deg, #6f52d9, #1e9fff); color: #fff; line-height: 34px; }
.rate-ai-button:hover { color: #fff; filter: brightness(1.06); }
.rate-ai-button:disabled { opacity: .6; cursor: wait; }
.ai-settings-card { display: grid; gap: 18px; padding: 20px; }
.ai-isolation-note { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-left: 3px solid #7057db; background: rgba(112,87,219,.07); }
.ai-isolation-note strong { color: #5135bd; font-size: 13px; white-space: nowrap; }
.ai-isolation-note span { color: var(--muted); font-size: 11px; line-height: 18px; }
.ai-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-settings-card .field-group small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.ai-key-status.configured { color: #008f7a !important; }
.ai-settings-actions { display: flex; gap: 10px; }
.ai-settings-actions .layui-btn { margin: 0; }
.ai-register-button { min-width: 190px; margin: 0; text-align: center; }
.ai-settings-help { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 19px; }
.rate-ai-dialog { box-sizing: border-box; min-height: 100%; padding: 25px 28px; background: var(--paper); color: var(--ink); }
.rate-ai-dialog[data-ai-view="loading"] { display: flex; align-items: center; flex-direction: column; min-height: 440px; text-align: center; }
.rate-ai-loader { position: relative; width: 76px; height: 76px; margin: 32px auto 16px; }
.rate-ai-loader span { position: absolute; inset: 0; border: 3px solid rgba(112,87,219,.14); border-top-color: #7057db; border-right-color: #1e9fff; border-radius: 50%; animation: rate-ai-spin 1.2s linear infinite; }
.rate-ai-loader i { position: absolute; inset: 13px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #7057db, #1e9fff); color: #fff; font-size: 15px; font-style: normal; font-weight: 700; box-shadow: 0 7px 22px rgba(79,62,178,.24); }
@keyframes rate-ai-spin { to { transform: rotate(360deg); } }
.rate-ai-dialog h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 29px; }
.rate-ai-stage { min-height: 20px; margin: 8px 0 17px; color: #7057db; font-size: 12px; }
.rate-ai-progress { width: min(430px, 90%); height: 8px; overflow: hidden; border-radius: 99px; background: #edf0f5; }
.rate-ai-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7057db, #1e9fff, #16b8c9); transition: width .4s ease; }
.rate-ai-progress-meta { display: flex; justify-content: space-between; width: min(430px, 90%); margin-top: 7px; color: var(--muted); font-size: 10px; }
.rate-ai-loading-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 30px 0 15px; padding: 0; list-style: none; }
.rate-ai-loading-notes li { position: relative; padding: 0 15px; color: #526075; font-size: 11px; line-height: 18px; }
.rate-ai-loading-notes li + li { border-left: 1px solid var(--line); }
.rate-ai-loading-notes li::before { display: block; width: 7px; height: 7px; margin: 0 auto 8px; border-radius: 50%; background: #7057db; content: ''; box-shadow: 0 0 0 4px rgba(112,87,219,.1); }
.rate-ai-dialog[data-ai-view="loading"] > small { margin-top: auto; color: var(--muted); font-size: 10px; }
.rate-ai-history { min-height: 440px; }
.rate-ai-history-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 380px; color: var(--muted); font-size: 12px; }
.rate-ai-history-loading i { color: #7057db; font-size: 22px; }
.rate-ai-history-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rate-ai-history-head small { color: #7057db; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.rate-ai-history-head h2 { margin-top: 3px; }
.rate-ai-history-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.rate-ai-history-head .layui-btn { flex: 0 0 auto; margin: 0; }
.rate-ai-history-note { margin: 12px 0; padding: 9px 11px; border-left: 3px solid #7057db; background: rgba(112,87,219,.07); color: #526075; font-size: 10px; line-height: 17px; }
.rate-ai-history-list { display: grid; gap: 8px; }
.rate-ai-history-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: .15s ease; }
.rate-ai-history-item:hover { border-color: #9b8bea; background: rgba(112,87,219,.035); box-shadow: 0 4px 12px rgba(54,45,98,.07); }
.rate-ai-history-state { color: #ad6800; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rate-ai-history-state.reversion { color: #008f7a; }.rate-ai-history-state.trend-up { color: #d94336; }.rate-ai-history-state.trend-down { color: #187fc4; }.rate-ai-history-state.wait { color: #ad6800; }
.rate-ai-history-item > strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rate-ai-history-item > small { color: var(--muted); font-size: 10px; text-align: right; white-space: nowrap; }
.rate-ai-history-item > small b, .rate-ai-history-item > small em { display: block; font-style: normal; }.rate-ai-history-item > small b { color: var(--ink); font-size: 11px; }.rate-ai-history-item > small em { margin-top: 3px; }
.rate-ai-history-item.running { border-color: #cfc6fa; background: rgba(112,87,219,.045); }
.rate-ai-history-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 260px; color: var(--muted); text-align: center; }
.rate-ai-history-empty i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 10px; border-radius: 50%; background: rgba(112,87,219,.1); color: #7057db; font-style: normal; font-weight: 700; }
.rate-ai-history-empty strong { color: var(--ink); font-size: 13px; }.rate-ai-history-empty span { margin-top: 5px; font-size: 10px; }
.rate-ai-result { overflow-y: auto; padding: 18px; }
.rate-ai-result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rate-ai-result-toolbar .layui-btn { height: 31px; margin: 0; line-height: 29px; }
.rate-ai-report-time { display: flex; align-items: center; justify-content: center; flex: 1; flex-direction: column; min-height: 42px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 3px; background: #f7f9fb; box-sizing: border-box; }
.rate-ai-report-time small { color: var(--muted); font-size: 10px; line-height: 14px; }.rate-ai-report-time b { margin-top: 2px; color: var(--ink); font-size: 14px; letter-spacing: .2px; line-height: 18px; }
.rate-ai-beginner { margin-bottom: 13px; padding: 15px; border: 1px solid #d9e8e4; border-left: 4px solid #009688; border-radius: 4px; background: linear-gradient(135deg, #f1fbf8 0%, #f8fcfb 100%); }
.rate-ai-beginner.trend-up { border-color: #f0d6d2; border-left-color: #e74c3c; background: linear-gradient(135deg, #fff7f6 0%, #fffafa 100%); }
.rate-ai-beginner.trend-down { border-color: #d7e7f5; border-left-color: #1e9fff; background: linear-gradient(135deg, #f4f9ff 0%, #fafcff 100%); }
.rate-ai-beginner.wait, .rate-ai-beginner.legacy { border-color: #f0e2c5; border-left-color: #e6a23c; background: linear-gradient(135deg, #fffaf0 0%, #fffdf8 100%); }
.rate-ai-beginner > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.rate-ai-beginner > header small { color: #008675; font-size: 9px; font-weight: 700; letter-spacing: 1px; }.rate-ai-beginner > header h3 { margin: 3px 0 0; color: var(--ink); font-size: 18px; }
.rate-ai-beginner > header > span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }.rate-ai-beginner > header > span b { margin-left: 4px; color: #008675; font-size: 17px; }
.rate-ai-plain-conclusion { margin: 11px 0; padding: 10px 12px; border-radius: 3px; background: rgba(255,255,255,.78); color: #26364a; font-size: 13px; font-weight: 700; line-height: 21px; }
.rate-ai-strategy-basis { margin: 11px 0 0; padding: 10px 12px; border: 1px solid #9ec9f3; border-radius: 4px; background: #eef7ff; }
.rate-ai-strategy-basis > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.rate-ai-strategy-basis > header small { display: block; color: #2276bd; font-size: 8px; font-weight: 700; letter-spacing: 1px; }.rate-ai-strategy-basis > header b { display: block; margin-top: 2px; color: #163d62; font-size: 12px; }.rate-ai-strategy-basis > header em { padding: 3px 7px; border-radius: 99px; background: #d8ecff; color: #1769aa; font-size: 9px; font-style: normal; font-weight: 700; }
.rate-ai-strategy-basis > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 8px; }.rate-ai-strategy-basis > div span { padding: 7px 8px; background: rgba(255,255,255,.75); color: #607086; font-size: 9px; }.rate-ai-strategy-basis > div b { display: block; margin-top: 3px; color: #1769aa; font-size: 13px; }.rate-ai-strategy-basis > p { margin: 8px 0 0; color: #496178; font-size: 9px; line-height: 16px; }.rate-ai-strategy-basis.unavailable { display: flex; gap: 8px; color: #8a5c00; background: #fff8e8; border-color: #ecd39a; }.rate-ai-strategy-basis.unavailable span { font-size: 9px; }
.rate-ai-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rate-ai-path-grid article { padding: 10px; border: 1px solid rgba(120,140,160,.2); border-radius: 3px; background: rgba(255,255,255,.68); }
.rate-ai-path-grid small, .rate-ai-path-grid b, .rate-ai-path-grid p { display: block; }.rate-ai-path-grid small { color: var(--muted); font-size: 9px; }.rate-ai-path-grid b { margin-top: 4px; color: var(--ink); font-size: 13px; }.rate-ai-path-grid p { margin: 5px 0 0; color: #526075; font-size: 10px; line-height: 17px; }
.rate-ai-original-basis { display: block; margin-top: 3px; color: #6f7f91; font-size: 9px; font-style: normal; }
.rate-ai-target { display: flex; align-items: center; gap: 10px; margin-top: 9px; padding: 9px 11px; border: 1px dashed rgba(0,150,136,.42); background: rgba(255,255,255,.55); }.rate-ai-target span { color: var(--muted); font-size: 10px; }.rate-ai-target b { color: #008675; font-size: 18px; }.rate-ai-target small { margin-left: auto; color: var(--muted); font-size: 9px; }
.rate-ai-beginner dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 9px 0 0; }.rate-ai-beginner dl > div { padding: 9px 10px; background: rgba(255,255,255,.52); }.rate-ai-beginner dt { color: #526075; font-size: 9px; font-weight: 700; }.rate-ai-beginner dd { margin: 4px 0 0; color: #344054; font-size: 10px; line-height: 17px; }
.rate-ai-beginner > footer { margin-top: 9px; color: var(--muted); font-size: 9px; line-height: 15px; }
.rate-ai-calibration { margin: 12px 0; padding: 13px; border: 1px solid #d9e1f2; border-left: 4px solid #7057db; border-radius: 4px; background: #faf9ff; }
.rate-ai-calibration > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.rate-ai-calibration > header small { color: #7057db; font-size: 9px; font-weight: 700; letter-spacing: 1px; }.rate-ai-calibration > header h3 { margin: 2px 0 0; font-size: 14px; }.rate-ai-calibration > header > span { padding: 4px 8px; border-radius: 99px; background: #eef7f5; color: #008675; font-size: 10px; font-weight: 700; }.rate-ai-calibration > header > span.quality-fair { background: #fff7e8; color: #ad6800; }.rate-ai-calibration > header > span.quality-weak { background: #fff0ef; color: #c0392b; }
.rate-ai-calibration > p { margin: 8px 0 10px; color: #526075; font-size: 10px; line-height: 17px; }.rate-ai-quality-issues { display: flex; gap: 8px; margin-bottom: 9px; padding: 7px 9px; background: #fffaf0; color: #795500; font-size: 9px; line-height: 16px; }.rate-ai-quality-issues b { flex: 0 0 auto; }
.rate-ai-calibration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }.rate-ai-calibration-grid article { padding: 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }.rate-ai-calibration-grid article.ready { border-color: #cfc6fa; }.rate-ai-calibration-grid article > div { display: flex; align-items: center; justify-content: space-between; }.rate-ai-calibration-grid article b { font-size: 11px; }.rate-ai-calibration-grid article em { color: #7057db; font-size: 9px; font-style: normal; }.rate-ai-calibration-grid article.building em { color: var(--muted); }.rate-ai-calibration-grid article strong { display: block; margin-top: 6px; color: var(--ink); font-size: 12px; line-height: 18px; }.rate-ai-calibration-grid article small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.rate-ai-calibration-grid article p { margin: 5px 0 0; color: #526075; font-size: 9px; line-height: 15px; }
.rate-ai-review { margin-top: 10px; border-top: 1px dashed #d9e1f2; }.rate-ai-review h4 { margin: 9px 0 5px; font-size: 10px; }.rate-ai-review > div { display: grid; grid-template-columns: 55px 1fr 1.2fr 90px; gap: 7px; padding: 5px 0; border-top: 1px dotted var(--line); color: #526075; font-size: 9px; }.rate-ai-review > div:first-of-type { border-top: 0; }.rate-ai-review em { color: var(--muted); font-style: normal; text-align: right; }.rate-ai-review .reversion { color: #008f7a; }.rate-ai-review .trend-up { color: #d94336; }.rate-ai-review .trend-down { color: #187fc4; }.rate-ai-review .wait { color: #ad6800; }
.rate-ai-result-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; border: 1px solid #dfe5ec; border-left: 4px solid #7057db; border-radius: 4px; background: #f7f8fc; }
.rate-ai-result-head.reversion { border-left-color: #009688; background: #f1fbf8; }
.rate-ai-result-head.trend-up { border-left-color: #e74c3c; background: #fff7f6; }
.rate-ai-result-head.trend-down { border-left-color: #1e9fff; background: #f4f9ff; }
.rate-ai-result-head.wait { border-left-color: #e6a23c; background: #fffaf0; }
.rate-ai-result-head small { color: var(--muted); font-size: 10px; }
.rate-ai-result-head h2 { margin-top: 3px; font-size: 21px; }
.rate-ai-result-head p { margin: 4px 0 0; color: #526075; font-size: 12px; }
.rate-ai-confidence { display: flex; align-items: center; justify-content: center; flex: 0 0 90px; flex-direction: column; height: 76px; border-radius: 50%; background: var(--paper); box-shadow: 0 5px 18px rgba(16,24,40,.09); }
.rate-ai-confidence b { color: #7057db; font-size: 25px; line-height: 29px; }
.rate-ai-confidence span { color: var(--muted); font-size: 9px; }
.rate-ai-summary { margin: 12px 0; padding: 11px 13px; border: 1px solid var(--line); background: var(--paper); color: #344054; font-size: 12px; line-height: 21px; }
.rate-ai-result section { margin-top: 13px; }
.rate-ai-result section h3 { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.rate-ai-horizons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rate-ai-horizons article { padding: 11px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.rate-ai-horizons article > span, .rate-ai-horizons article > b, .rate-ai-horizons article > em { display: block; }
.rate-ai-horizons article > span { color: var(--muted); font-size: 10px; }
.rate-ai-horizons article > b { margin-top: 4px; color: #7057db; font-size: 12px; }
.rate-ai-horizons article > b.reversion { color: #008f7a; }.rate-ai-horizons article > b.trend-up { color: #d94336; }.rate-ai-horizons article > b.trend-down { color: #187fc4; }.rate-ai-horizons article > b.wait { color: #ad6800; }
.rate-ai-horizons article > em { margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; }
.rate-ai-horizons article > p { margin: 7px 0 0; color: #526075; font-size: 11px; line-height: 18px; }
.rate-ai-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.rate-ai-evidence article { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-left: 3px solid #98a2b3; background: #f7f9fb; }
.rate-ai-evidence article.impact-reversion { border-color: #009688; }.rate-ai-evidence article.impact-trend_up { border-color: #e74c3c; }.rate-ai-evidence article.impact-trend_down { border-color: #1e9fff; }.rate-ai-evidence article.impact-risk { border-color: #e6a23c; }
.rate-ai-evidence span { color: var(--muted); font-size: 10px; }.rate-ai-evidence b { color: var(--ink); font-size: 11px; text-align: right; }
.rate-ai-observation dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.rate-ai-observation dl > div { padding: 10px; border: 1px solid var(--line); }
.rate-ai-observation dt { color: #7057db; font-size: 10px; font-weight: 700; }.rate-ai-observation dd { margin: 5px 0 0; color: #526075; font-size: 11px; line-height: 18px; }
.rate-ai-risks ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rate-ai-risks li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-left: 3px solid #e6a23c; background: #fffaf0; }
.rate-ai-risks li.risk-high { border-color: #e74c3c; background: #fff5f4; }
.rate-ai-risks li.risk-low { border-color: #98a2b3; background: #f7f9fb; }
.rate-ai-risks b { font-size: 11px; }.rate-ai-risks span { color: #526075; font-size: 11px; line-height: 18px; }
.rate-ai-result footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.rate-ai-result footer strong { color: #c0392b; font-size: 10px; text-align: right; }
.rate-ai-failed { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 330px; text-align: center; }
.rate-ai-failed > i { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 13px; border-radius: 50%; background: #fff0ef; color: #e74c3c; font-size: 25px; font-style: normal; font-weight: 700; }
.rate-ai-failed p { max-width: 560px; color: #c0392b; font-size: 12px; line-height: 21px; }.rate-ai-failed small { color: var(--muted); font-size: 10px; }
.rate-ai-failed > div { display: flex; gap: 8px; margin-top: 17px; }.rate-ai-failed > div .layui-btn { margin: 0; }
html[data-theme="dark"] .ai-isolation-note { background: rgba(112,87,219,.13); } html[data-theme="dark"] .ai-isolation-note strong { color: #b7a8ff; }
html[data-theme="dark"] .rate-ai-dialog { background: #101827; } html[data-theme="dark"] .rate-ai-progress { background: #26354a; }
html[data-theme="dark"] .rate-ai-loading-notes li { color: #b9c6d8; }
html[data-theme="dark"] .rate-ai-result-head, html[data-theme="dark"] .rate-ai-horizons article, html[data-theme="dark"] .rate-ai-summary, html[data-theme="dark"] .rate-ai-observation dl > div { border-color: #334158; background: #142033; }
html[data-theme="dark"] .rate-ai-result-head p, html[data-theme="dark"] .rate-ai-summary, html[data-theme="dark"] .rate-ai-horizons article > p, html[data-theme="dark"] .rate-ai-observation dd, html[data-theme="dark"] .rate-ai-risks span { color: #b9c6d8; }
html[data-theme="dark"] .rate-ai-confidence { background: #101827; } html[data-theme="dark"] .rate-ai-evidence article, html[data-theme="dark"] .rate-ai-risks li { background: #172132; }
html[data-theme="dark"] .rate-ai-history-note { background: rgba(112,87,219,.13); color: #b9c6d8; }
html[data-theme="dark"] .rate-ai-history-item { background: #101827; } html[data-theme="dark"] .rate-ai-history-item:hover, html[data-theme="dark"] .rate-ai-history-item.running { background: #172132; }
html[data-theme="dark"] .rate-ai-report-time { background: #172132; }
html[data-theme="dark"] .rate-ai-beginner, html[data-theme="dark"] .rate-ai-beginner.trend-up, html[data-theme="dark"] .rate-ai-beginner.trend-down, html[data-theme="dark"] .rate-ai-beginner.wait, html[data-theme="dark"] .rate-ai-beginner.legacy { border-color: #334158; background: #142033; }
html[data-theme="dark"] .rate-ai-plain-conclusion, html[data-theme="dark"] .rate-ai-path-grid article, html[data-theme="dark"] .rate-ai-target, html[data-theme="dark"] .rate-ai-beginner dl > div { background: rgba(16,24,39,.65); } html[data-theme="dark"] .rate-ai-plain-conclusion, html[data-theme="dark"] .rate-ai-path-grid p, html[data-theme="dark"] .rate-ai-beginner dd { color: #c1ccda; }
html[data-theme="dark"] .rate-ai-strategy-basis { border-color: #315f87; background: #13283d; } html[data-theme="dark"] .rate-ai-strategy-basis > header b, html[data-theme="dark"] .rate-ai-strategy-basis > div b { color: #69b8ff; } html[data-theme="dark"] .rate-ai-strategy-basis > div span { background: rgba(16,24,39,.5); color: #b9c6d8; } html[data-theme="dark"] .rate-ai-strategy-basis > p { color: #b9c6d8; }
html[data-theme="dark"] .rate-ai-calibration { border-color: #334158; background: #142033; } html[data-theme="dark"] .rate-ai-calibration-grid article { border-color: #334158; background: #101827; } html[data-theme="dark"] .rate-ai-calibration > p, html[data-theme="dark"] .rate-ai-calibration-grid article p { color: #b9c6d8; } html[data-theme="dark"] .rate-ai-quality-issues { background: rgba(173,104,0,.14); color: #efc36d; }

@media (max-width: 620px) {
    .admin-wecom-bind-layer { padding: 14px 12px 8px; }
    .admin-wecom-bind-form { grid-template-columns: 1fr; align-items: stretch; }
    .admin-wecom-members-head, .admin-wecom-member { grid-template-columns: minmax(80px, .8fr) minmax(120px, 1.2fr) 46px; gap: 6px; padding: 8px 7px; }
    .notification-message-page { padding: 7px; }
    .notification-message-toolbar { align-items: flex-start; padding: 10px; }
    .notification-message-toolbar small { max-width: 220px; }
    .notification-message-actions { gap: 5px; }
    .notification-list-item { grid-template-columns: 10px minmax(0, 1fr); padding: 12px 9px; }
    .notification-list-item > em { grid-column: 2; text-align: left; }
    .notification-list-item > em small { display: inline; margin-left: 8px; }
    .notification-setting-row { align-items: flex-start; }
    .notification-settings-actions { flex-direction: column; }
    .notification-settings-actions .layui-btn { margin: 0; }
    .ai-settings-grid { grid-template-columns: 1fr; }
    .ai-isolation-note { align-items: flex-start; flex-direction: column; gap: 5px; }
    .ai-settings-actions { flex-direction: column; }
    .ai-register-button { box-sizing: border-box; width: 100%; min-width: 0; }
    .rate-ai-dialog { padding: 16px 12px; }
    .rate-ai-dialog[data-ai-view="loading"] { min-height: 390px; }
    .rate-ai-loading-notes { grid-template-columns: 1fr; margin-top: 22px; text-align: left; }
    .rate-ai-loading-notes li { padding: 7px 5px 7px 26px; }
    .rate-ai-loading-notes li + li { border: 0; }
    .rate-ai-loading-notes li::before { position: absolute; top: 12px; left: 7px; margin: 0; }
    .rate-ai-result-head { align-items: flex-start; padding: 13px; }
    .rate-ai-confidence { flex-basis: 72px; height: 66px; }
    .rate-ai-confidence b { font-size: 21px; }
    .rate-ai-horizons, .rate-ai-observation dl { grid-template-columns: 1fr; }
    .rate-ai-evidence { grid-template-columns: 1fr; }
    .rate-ai-risks li { grid-template-columns: 1fr; gap: 4px; }
    .rate-ai-result footer { align-items: flex-start; flex-direction: column; }
    .rate-ai-result footer strong { text-align: left; }
    .rate-ai-history { padding: 13px 10px; }
    .rate-ai-history-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .rate-ai-history-head .layui-btn { width: 100%; }
    .rate-ai-history-item { grid-template-columns: 1fr; gap: 5px; padding: 11px; }
    .rate-ai-history-item > strong { overflow: visible; line-height: 18px; text-overflow: clip; white-space: normal; }
    .rate-ai-history-item > small { text-align: left; white-space: normal; }
    .rate-ai-result-toolbar { flex-wrap: wrap; }
    .rate-ai-result-toolbar .layui-btn { flex: 1; padding: 0 8px; }
    .rate-ai-report-time { order: 3; flex-basis: 100%; width: 100%; }
    .rate-ai-beginner { padding: 12px 10px; }
    .rate-ai-beginner > header { align-items: flex-start; flex-direction: column; gap: 6px; }
    .rate-ai-path-grid, .rate-ai-beginner dl { grid-template-columns: 1fr; }
    .rate-ai-strategy-basis > div { grid-template-columns: 1fr; }
    .rate-ai-target { align-items: flex-start; flex-wrap: wrap; }.rate-ai-target small { width: 100%; margin: 0; }
    .rate-ai-calibration > header { align-items: flex-start; flex-direction: column; }.rate-ai-calibration-grid { grid-template-columns: 1fr; }.rate-ai-review > div { grid-template-columns: 45px 1fr; }.rate-ai-review > div span:nth-of-type(2), .rate-ai-review > div em { text-align: left; }
}

@media (max-width: 1100px) {
    .tutorial-layout { grid-template-columns: 1fr; }
    .tutorial-toc { position: static; display: flex; overflow-x: auto; padding: 7px; white-space: nowrap; }
    .tutorial-toc strong { padding: 7px 10px; border: 0; }.tutorial-toc a { padding: 7px 10px; border: 0; }
    .tutorial-step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tutorial-status-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .tutorial-page { padding-right: 9px !important; padding-left: 9px !important; }
    .tutorial-start-card { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px; }
    .tutorial-start-card strong { font-size: 14px; line-height: 22px; }
    .tutorial-section { padding: 13px; }
    .tutorial-section h2 { font-size: 17px; }
    .tutorial-step-grid, .tutorial-two-column, .tutorial-formula, .tutorial-card-guide, .tutorial-operation-list, .tutorial-checklist { grid-template-columns: 1fr; }
    .tutorial-step-grid article { min-height: 0; }
    .tutorial-status-row { grid-template-columns: 1fr 1fr; }
    .tutorial-finish { align-items: stretch; flex-direction: column; }
    .tutorial-finish .layui-btn { margin: 0; }
}
