:root{--bg: #f5f7fb;--panel: #ffffff;--text: #1f2937;--muted: #6b7280;--accent: #2563eb;--accent-2: #0ea5e9;--danger: #dc2626}*{box-sizing:border-box}body{margin:0;font-family:Noto Sans SC,PingFang SC,Microsoft YaHei,sans-serif;background:linear-gradient(180deg,#f7f8fb,#eef1f6);color:var(--text)}.app-layout{min-height:100vh;background:var(--bg)}.app-body{min-width:0}.app-header{position:sticky;top:0;z-index:900;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 1px 8px #0f172a0f}.header-left{display:flex;align-items:center;gap:10px;min-width:0}.header-left .title{font-size:20px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-left .muted{font-size:12px;color:var(--muted)}.header-right{display:flex;align-items:center;gap:16px;min-width:0}.profile-tag{max-width:220px}.profile-tag .el-tag__content{min-width:0;overflow:hidden;text-overflow:ellipsis}.mobile-menu-btn{flex:0 0 auto}.drawer-title{padding:18px 18px 12px;font-size:16px;font-weight:700;color:var(--text)}.price-strip{display:flex;gap:8px;align-items:center}.price-tag{display:inline-flex;align-items:center;gap:8px;padding:6px 10px}.price-tag.clickable{cursor:pointer}.price-exchange{font-weight:600;color:var(--text)}.price-source{font-size:11px;font-weight:600;color:#0ea5e9;background:#0ea5e91f;border-radius:999px;padding:2px 8px}.price-value{font-size:16px;font-weight:700;color:#0f172a}.price-change{margin-left:4px;font-weight:600;color:var(--muted)}.price-change.price-up{color:#16a34a}.price-change.price-down{color:#dc2626}.price-change.price-flat{color:var(--muted)}.app-aside{background:#fff;border-right:1px solid #e5e7eb;height:calc(100vh - 60px);overflow-y:auto}.app-menu{border-right:none}.app-main{padding:20px;min-width:0;overflow-x:hidden}.panel-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 10px 24px #0f172a12;overflow:hidden}.panel-title{font-weight:600}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.header-actions{display:flex;align-items:center;gap:10px}.filter-bar{margin-bottom:12px;flex-wrap:wrap;gap:0 8px}.pagination-row{margin-top:16px;display:flex;justify-content:flex-end}.countdown{font-size:12px;color:var(--muted)}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#cbd5f5;box-shadow:0 0 0 2px #2563eb1f}.status-dot.on{background:#22c55e;box-shadow:0 0 0 2px #22c55e33}.status-dot.off{background:#ef4444;box-shadow:0 0 0 2px #ef444433}.detail-meta{margin-bottom:16px}.rule-panel{width:100%}.detail-hint{margin-top:10px;font-size:12px;color:var(--muted)}.detail-actions{margin-top:16px;display:flex;justify-content:flex-end}.side-buy{color:#16a34a!important;font-weight:600}.side-sell{color:#dc2626!important;font-weight:600}.price-market{color:#0ea5e9!important;font-weight:600}.price-limit{color:#111827!important;font-weight:600}.status-success{color:#16a34a!important;font-weight:600}.status-warn{color:#d97706!important;font-weight:600}.status-fail{color:#dc2626!important;font-weight:600}.status-muted{color:#6b7280!important;font-weight:600}.detail-split{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:10px 0}.asset-block{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:12px}.asset-title{font-size:13px;font-weight:700;color:var(--text);margin-bottom:8px}.asset-group{padding:8px 10px;border-radius:10px;background:#fff;margin-bottom:8px;border:1px solid #eef2f7}.asset-group:last-child{margin-bottom:0}.action-stack{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:76px;margin:0 auto;text-align:center}.action-stack .el-button{width:100%;justify-content:center;margin:0 auto}.action-stack .el-button .el-button__content{width:100%;justify-content:center}.group-title{font-size:12px;color:var(--accent);margin-bottom:6px}.group-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding:2px 0}.loading-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#ffffffb3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;z-index:9999}.spinner{width:36px;height:36px;border-radius:50%;border:3px solid rgba(37,99,235,.2);border-top-color:var(--accent);animation:spin .9s linear infinite}.loading-text{font-size:13px;color:var(--muted)}.page-loading{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--muted)}.page-spinner{width:28px;height:28px}.mobile-card-list{display:flex;flex-direction:column;gap:10px}.mobile-data-card{border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:12px}.mobile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}.mobile-card-title{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:700;color:#111827}.mobile-card-title .el-checkbox{flex:0 0 auto;height:18px}.mobile-card-title span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-card-id{flex:0 0 auto;color:var(--muted);font-size:12px;font-weight:600}.mobile-card-subtitle{margin-top:4px;color:var(--muted);font-size:12px}.mobile-card-note{margin-top:8px;color:#dc2626;font-size:12px;line-height:1.4}.mobile-status{flex:0 0 auto;font-size:12px;font-weight:700}.mobile-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:12px}.mobile-field{display:flex;flex-direction:column;gap:3px;min-width:0}.mobile-field-wide{grid-column:1 / -1}.mobile-field .label{color:#7b8496;font-size:11px}.mobile-field .value{min-width:0;color:#1f2a44;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-card-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 8px;margin-top:12px;padding-top:10px;border-top:1px solid #eef2f7}.mobile-card-actions .el-button{margin-left:0}@keyframes spin{to{transform:rotate(360deg)}}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(180deg,#f7f8fb,#eef1f6)}.login-card{width:420px;padding:26px;border-radius:16px}.login-title{font-size:22px;font-weight:700}.login-subtitle{font-size:12px;color:var(--muted);margin:6px 0 14px}.login-btn{width:100%}.balance-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.single-form{max-width:560px}.single-order-grid{align-items:flex-start}.order-amount-row{width:100%}.el-form-item__content{max-width:420px}.rule-item .el-form-item__content{max-width:none;width:100%}.proxy-form-item .el-form-item__content{display:flex;align-items:center;gap:12px}.proxy-form-item .el-select{flex:1 1 220px;min-width:0}.random-range-fields{display:flex;gap:8px;width:100%}.random-range-fields .el-date-editor,.random-range-fields .el-date-editor.el-input__wrapper{flex:1 1 0;min-width:0;max-width:none}.rule-empty{color:var(--muted);font-size:12px;padding:6px 0}.batch-tabs{margin-top:16px}.upload-row{display:flex;align-items:center;gap:12px}.batch-actions{flex-wrap:wrap;gap:10px}.upload-inline{display:inline-flex}.el-menu-item.is-active{color:var(--accent)}.el-menu--inline{background:#fff}.el-table{border-radius:10px;max-width:100%}.el-tag--dark{background:#eef2ff;color:#1e3a8a}.el-dialog{border-radius:14px}.el-dialog__header{border-bottom:1px solid #e5e7eb;margin-right:0;padding-bottom:16px;margin-bottom:12px}.el-dialog__footer{border-top:1px solid #e5e7eb;padding-top:16px;margin-top:12px}.el-button--primary{background:var(--accent);border-color:var(--accent)}.el-button--primary.is-plain{color:var(--accent)}.btn-contrast.el-button--primary.is-plain{color:#fff;background:var(--accent);border-color:var(--accent)}.btn-contrast.el-button--primary.is-plain.is-disabled,.btn-contrast.el-button--primary.is-plain.is-disabled:hover,.btn-contrast.el-button--primary.is-plain.is-disabled:focus{color:#fff;background:#94a3b8;border-color:#94a3b8;opacity:1}.el-select,.el-date-editor.el-input,.el-date-editor.el-input__wrapper{max-width:100%}.el-card__header{min-width:0}.el-form--inline .el-form-item{margin-right:8px}.app-main .el-form--inline{flex-wrap:wrap}.el-table .cell{word-break:break-word}.el-dialog{max-width:calc(100vw - 32px)}.mobile-nav-drawer .el-drawer__body{padding:0}.mobile-nav-drawer .app-menu{width:100%}.mobile-nav-drawer .el-menu{border-right:none}@media (max-width: 1200px){.app-aside{width:224px!important}.app-main{padding:16px}.header-actions{flex-wrap:wrap;justify-content:flex-end}}@media (max-width: 900px){.detail-split{grid-template-columns:1fr}.panel-header{align-items:flex-start}}@media (max-width: 768px){body{background:var(--bg)}.app-header{height:auto;min-height:56px;padding:8px 12px;gap:8px;box-shadow:0 1px 8px #0f172a14}.header-left{flex:1 1 auto}.header-left .title{font-size:16px}.header-right{flex:0 0 auto;gap:8px}.profile-tag{display:none}.app-main{padding:12px;width:100%}.panel-card{border-radius:8px;box-shadow:none}.panel-header{flex-direction:column;align-items:stretch;gap:10px}.panel-title{font-size:15px}.header-actions{width:100%;justify-content:flex-start;gap:8px}.header-actions .el-button{margin-left:0}.filter-bar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-main .el-form--inline:not(.filter-bar){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.filter-bar.el-form--inline .el-form-item,.filter-bar .el-form-item,.app-main .el-form--inline:not(.filter-bar) .el-form-item{display:block;margin:0;min-width:0}.filter-bar .el-form-item__label,.app-main .el-form--inline:not(.filter-bar) .el-form-item__label{display:block;width:auto;padding:0 0 4px;line-height:1.3}.filter-bar .el-form-item__content,.filter-bar .el-select,.filter-bar .el-input,.filter-bar .el-date-editor,.filter-bar .el-date-editor.el-input__wrapper,.filter-bar .el-button,.app-main .el-form--inline:not(.filter-bar) .el-form-item__content,.app-main .el-form--inline:not(.filter-bar) .el-select,.app-main .el-form--inline:not(.filter-bar) .el-input,.app-main .el-form--inline:not(.filter-bar) .el-date-editor,.app-main .el-form--inline:not(.filter-bar) .el-date-editor.el-input__wrapper,.app-main .el-form--inline:not(.filter-bar) .el-button{width:100%!important;max-width:none}.single-form{max-width:none;width:100%}.single-form .el-form-item,.el-dialog .el-form .el-form-item{display:block}.single-form .el-form-item__label,.el-dialog .el-form .el-form-item__label{display:block;width:auto!important;text-align:left;margin-bottom:4px;line-height:1.3}.single-form .el-form-item__content,.el-dialog .el-form .el-form-item__content,.el-form-item__content{max-width:none;width:100%;flex-wrap:wrap;gap:8px}.single-form .el-form-item__content>.el-select,.single-form .el-form-item__content>.el-input,.single-form .el-form-item__content>.el-date-editor,.single-form .el-form-item__content>.el-input-number{width:100%!important;max-width:none}.single-form .el-form-item__content>.el-select,.el-dialog .el-form .el-form-item__content>.el-select{margin-left:0!important}.el-dialog .el-form .el-select,.el-dialog .el-form .el-input,.el-dialog .el-form .el-input-number,.el-dialog .el-form .el-date-editor,.el-dialog .el-form .el-date-editor.el-input__wrapper,.el-dialog .el-form .el-textarea{width:100%!important;max-width:none}.proxy-form-item .el-form-item__content{align-items:stretch;flex-direction:column}.proxy-form-item .el-switch{align-self:flex-start}.random-range-fields{flex-direction:column}.random-range-fields .el-date-editor,.random-range-fields .el-date-editor.el-input__wrapper{width:100%!important}.single-order-grid{display:flex;flex-direction:column;gap:12px}.single-order-grid>.el-col{width:100%;max-width:100%;flex:0 0 100%}.order-amount-row{row-gap:10px}.order-amount-row>.el-col{width:100%;max-width:100%;flex:0 0 100%}.balance-inline,.upload-row,.batch-actions,.inline-row,.preview-meta,.preset-group,.risk-summary-text{flex-wrap:wrap}.inline-row>.el-input,.inline-row>.el-select,.inline-row>.el-input-number,.inline-row>.el-date-editor{flex:1 1 160px;width:auto!important}.el-radio-group{flex-wrap:wrap;gap:6px 0}.el-descriptions{overflow-x:auto}.el-dialog{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px);margin:12px auto!important}.el-dialog__body{max-height:calc(100vh - 160px);overflow:auto}.pagination-row{justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.pagination-row .el-pagination{min-width:max-content}.account-line,.order-line,.position-line,.task-line,.history-line,.rule-line{grid-template-columns:repeat(2,minmax(0,1fr))!important}.account-item,.order-item,.position-item,.task-item,.history-item,.rule-item{align-items:flex-start!important}.account-item .label,.account-item .value,.order-item .label,.order-item .value,.position-item .label,.position-item .value,.task-item .label,.task-item .value,.history-item .label,.history-item .value,.rule-item .label,.rule-item .value{text-align:left!important}.history-pagination{justify-content:flex-start!important;overflow-x:auto}.stats-header,.toolbar{align-items:flex-start!important;flex-wrap:wrap;gap:10px}.toolbar .el-select,.toolbar .el-input,.toolbar .el-button{max-width:100%}.depth-book{overflow-x:auto!important}.depth-book-head,.depth-book-row{min-width:680px}.pair-exchange-grid,.pair-grid{grid-template-columns:1fr!important}.pair-exchange-item{align-items:flex-start!important;gap:8px}.pair-exchange-price{flex-wrap:wrap;justify-content:flex-end}.action-buttons,.account-actions,.action-stack{white-space:normal!important}.el-table__fixed-right{box-shadow:-4px 0 10px #0f172a14}}@media (max-width: 520px){.app-header{align-items:center}.header-right .el-button{padding-left:10px;padding-right:10px}.filter-bar{grid-template-columns:1fr}.app-main .el-form--inline:not(.filter-bar){grid-template-columns:1fr}.header-actions .el-button,.batch-actions .el-button{flex:1 1 auto;min-width:0}.account-line,.order-line,.position-line,.task-line,.history-line,.rule-line{grid-template-columns:1fr!important}.el-card__body,.el-card__header{padding:14px}.el-table{font-size:12px}.el-table .cell{padding:0 8px}.login-card{width:100%;padding:20px}.mobile-field-grid{grid-template-columns:1fr}.mobile-card-actions{justify-content:flex-start}.mobile-card-actions .el-button{flex:1 1 auto;min-width:0}}
