@charset "utf-8";
/* modules.css - 从 dashboard-v2.html 提取的模块样式 */
/* ===== 页面级样式 ===== */
body, html {
    overflow: hidden;
    user-select: none;
    height: 100%;
}

/* ===== 顶部导航 ===== */
.top-bar {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 16px;
    background: var(--bg-app);
    border-bottom: 1px solid var(--bg-border);
    position: relative;
    z-index: 10;
}

.top-bar .logo {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: bold;
    margin-right: 30px;
    white-space: nowrap;
}

.nav-tabs {
    display: flex;
    gap: 16px;
    height: 100%;
    align-items: flex-end;
    padding-left: 8px;
}

.nav-tabs .tab {
    cursor: pointer;
    padding: 4px 12px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: normal;
    transition: all .1s;
    border-bottom: 2px solid transparent;
}

.nav-tabs .tab:hover {
    color: var(--text-primary);
}

.nav-tabs .tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: bold;
}

.status-dot {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

.dot.ok {
    background: var(--down-color);
}

.dot.busy {
    background: var(--broken-color);
}

.dot.dead {
    background: var(--up-color);
}

/* ===== 面板容器 ===== */
.panel-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 28px);
    overflow: hidden;
}

.panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-app);
    pointer-events: none;
    z-index: 0;
    visibility: hidden;
    contain: layout style paint;
    opacity: 0;
    transition: opacity 60ms ease-out;
}

.panel.active {
    pointer-events: auto;
    z-index: 2;
    visibility: visible;
    opacity: 1;
}

/* ===== 工作区布局 ===== */
.workspace-layout {
    display: flex;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
    background: var(--bg-app);
}

.ws-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ws-col-left {
    background: var(--bg-panel);
}

.ws-sub-title {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-secondary);
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 600px) {
    .workspace-layout {
        flex-direction:column;
        overflow-y: auto;
    }

    .ws-col {
        flex: none !important;
        width: 100% !important;
        height: auto;
        min-height: 300px;
    }
}

/* ★ 窄屏适配：通达信副图面板可能很窄 */
@media (max-width: 1100px) {
    /* 涨停复盘表格：隐藏次要列，防溢出 */ .ml-td-reason {
        display:none;
    }

    .ml-zt-table th:last-child {
        display: none;
    }

    .ml-td-plate {
        width: 70px !important;
        padding: 4px 4px !important;
    }

    .ml-plate-name {
        font-size: 11px;
    }
}

@media (max-width: 900px) {
    /* 进一步隐藏主力净额列 */ .ml-zt-table td:nth-child(7), .ml-zt-table th:nth-child(7) {
        display:none;
    }
}

/* ===== 模块内部布局 ===== */
/* theme 模块 */
#mod-theme {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 4px;
}

.mt-back-btn {
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
    display: none;
}

.mt-search-bar {
    display: flex;
    gap: 6px;
    padding: 2px 0 6px;
    align-items: center;
}

.mt-search-input {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 2px;
    font-size: 12px;
    outline: none;
}

.mt-search-btn {
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 16px;
    border-radius: 2px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.mt-rank-section {
    margin: 4px 0;
}

.mt-rank-title {
    font-size: 14px;
    color: var(--text-primary);
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mt-fire {
    color: var(--broken-color);
    font-size: 12px;
}

.mt-rank-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
    font-family: Arial,Consolas,sans-serif;
}

.mt-rank-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mt-rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    cursor: pointer;
    transition: all .1s;
}

.mt-rank-item:hover {
    background: var(--bg-hover);
}

.mt-rank-num {
    width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-muted);
    font-family: Arial,Consolas,sans-serif;
}

.mt-rank-item:nth-child(1) .mt-rank-num {
    color: var(--up-color);
    font-size: 16px;
}

.mt-rank-item:nth-child(2) .mt-rank-num {
    color: var(--broken-color);
}

.mt-rank-item:nth-child(3) .mt-rank-num {
    color: var(--accent);
}

.mt-rank-info {
    flex: 1;
    min-width: 0;
}

.mt-rank-name {
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mt-rank-children {
    font-size: 11px;
    color: var(--text-secondary);
}

.mt-rank-children span {
    cursor: pointer;
}

.mt-rank-children span:hover {
    color: var(--accent);
}

.mt-badge-zt {
    display: inline-block;
    font-size: 10px;
    color: var(--up-color);
    border: 1px solid var(--up-color);
    border-radius: 2px;
    background: var(--up-bg);
    padding: 0 4px;
}

.mt-badge-hot {
    display: inline-block;
    font-size: 9px;
    color: var(--broken-color);
    background: var(--broken-bg);
    border: 1px solid var(--broken-color);
    border-radius: 2px;
    padding: 0 4px;
}

.mt-badge-new {
    display: inline-block;
    font-size: 9px;
    color: var(--accent);
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 0 4px;
}

.mt-rank-change {
    font-size: 11px;
    color: var(--up-color);
    min-width: 30px;
    text-align: right;
    font-family: Arial,Consolas,sans-serif;
    font-weight: bold;
}

.mt-rank-change.down {
    color: var(--down-color);
}

.mt-theme-header {
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    padding: 12px;
    margin: 4px 0;
}

.mt-theme-name {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.mt-theme-intro {
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.5;
}

.mt-theme-meta {
    color: var(--text-muted);
    font-size: 10px;
    margin-top: 6px;
}

.mt-theme-meta span {
    margin-right: 12px;
}

.mt-stock-count {
    color: var(--accent);
}

.mt-cat-section {
    margin: 4px 0;
}

.mt-cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 2px 2px 0 0;
}

.mt-cat-name {
    font-size: 12px;
    color: var(--broken-color);
}

.mt-cat-count {
    font-size: 10px;
    color: var(--text-muted);
}

.mt-cat-zs {
    font-size: 10px;
    color: var(--text-secondary);
}

.mt-cat-body {
    border: 1px solid var(--bg-border);
    border-top: none;
    border-radius: 0 0 2px 2px;
    padding: 6px;
}

.mt-sub-title {
    font-size: 11px;
    color: var(--accent);
    padding: 4px 6px 2px;
    border-bottom: 1px solid var(--bg-border);
    margin-bottom: 4px;
}

.mt-sub-highlight {
    background: rgba(255,170,0,0.15);
    border-left: 3px solid var(--accent);
    animation: mt-hl-fade 2s ease-out forwards;
}

@keyframes mt-hl-fade {
    0% {
        background: rgba(255,170,0,0.3)
    }

    100% {
        background: transparent
    }
}

.mt-stock-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px 0;
}

.mt-stock-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: var(--bg-app);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    font-size: 11px;
    cursor: pointer;
    transition: all .1s;
}

.mt-stock-chip:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

.mt-chip-code {
    color: var(--text-muted);
    font-size: 10px;
    font-family: Arial,Consolas,sans-serif;
}

.mt-chip-name {
    color: var(--text-primary);
}

.mt-stock-chip.hot {
    border-color: var(--up-color);
}

.mt-stock-chip.hot .mt-chip-name {
    color: var(--up-color);
}

.mt-stock-chip.new::after {
    content: 'NEW';
    font-size: 8px;
    color: var(--bg-app);
    background: var(--up-color);
    border-radius: 2px;
    padding: 0 2px;
    margin-left: 2px;
    font-weight: bold;
}

.mt-reason-tip {
    display: none;
    position: fixed;
    background: var(--bg-panel);
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 8px 10px;
    max-width: 300px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-primary);
    z-index: 999;
}

/* interact 模块 - 简化版 */
#mod-interact {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mi-list-wrap {
    flex: 1;
    overflow-y: auto;
}

.mi-stock-header {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
}

.mi-sh-name {
    font-size: 12px;
    color: var(--text-primary);
}

.mi-sh-cnt {
    color: var(--text-secondary);
}

.mi-search-box {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    margin-bottom: 4px;
}

.mi-search-box input {
    background: var(--bg-app);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    color: var(--text-primary);
    padding: 2px 8px;
    font-size: 11px;
    width: 100px;
    outline: none;
    height: 20px;
}

.mi-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.mi-card-company {
    font-size: 12px;
    color: var(--text-primary);
}

.mi-card-code {
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    cursor: pointer;
    padding: 1px 4px;
    background: var(--bg-app);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
}

.mi-card-code:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.mi-card-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
}

.mi-card-ask {
    background: var(--accent-bg);
    border-left: 2px solid var(--accent);
    border-radius: 0 2px 2px 0;
    padding: 4px 8px;
    margin-bottom: 4px;
}

.mi-card-ask-label {
    font-size: 9px;
    color: var(--accent);
    margin-bottom: 2px;
}

.mi-card-ask-text {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.4;
}

.mi-card-reply {
    background: var(--down-bg);
    border-left: 2px solid var(--down-color);
    border-radius: 0 2px 2px 0;
    padding: 4px 8px;
}

.mi-card-reply-label {
    font-size: 9px;
    color: var(--down-color);
    margin-bottom: 2px;
}

.mi-card-reply-text {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.4;
}

.mi-card-no-reply {
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 0;
}

.mi-reply-date {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

.mi-tab-bar {
    display: flex;
    gap: 16px;
    height: 100%;
    align-items: flex-end;
}

.mi-tb-btn {
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-secondary);
    font-size: 12px;
    border-bottom: 2px solid transparent;
    transition: all .1s;
}

.mi-tb-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

/* premarket 模块 - 由于布局复杂，内联关键样式 */
#mod-premarket {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mp-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.mp-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-app);
    border-right: 1px solid var(--bg-border);
}

.mp-col:last-child {
    border-right: none;
}

.mp-col-king {
    flex: 2.5;
    min-width: 0;
}

.mp-col-pzld {
    flex: 2.5;
    min-width: 0;
}

.mp-col-ydbk {
    flex: 2;
    min-width: 0;
}

.mp-col-ydgg {
    flex: 2;
    min-width: 0;
}

.mp-col.mp-col-empty {
    flex: 0 0 78px;
    min-width: 72px;
}

.mp-col.mp-col-empty .mp-col-header {
    padding-left: 4px;
    padding-right: 4px;
    gap: 2px;
}

.mp-col.mp-col-empty .mp-col-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-col.mp-col-empty .mp-col-body {
    overflow: hidden;
}

.mp-col.mp-col-empty .empty {
    padding: 8px 3px;
    font-size: 9px;
    line-height: 1.4;
}

.lm-cell[data-mod-id="premarket"].lm-w-xs .mp-col.mp-col-empty {
    display: none;
}

.mp-col-header {
    padding: 4px 8px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.mp-col-title {
    font-size: 11px;
    color: var(--text-secondary);
}

.mp-col-body {
    flex: 1;
    overflow-y: auto;
}

.mp-king-card {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    gap: 4px;
    transition: background .1s;
}

.mp-king-card:hover {
    background: var(--bg-hover);
}

.mp-king-rank {
    width: 16px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.mp-king-rank.r1 {
    color: var(--up-color);
}

.mp-king-rank.r2 {
    color: var(--broken-color);
}

.mp-king-rank.r3 {
    color: var(--text-secondary);
}

.mp-king-rank.rn {
    color: var(--text-muted);
    font-size: 10px;
}

.mp-king-info {
    flex: 1;
    min-width: 0;
}

.mp-king-name {
    font-size: 12px;
    color: var(--text-primary);
}

.mp-king-code {
    font-size: 10px;
    color: var(--text-muted);
}

.mp-king-right {
    text-align: right;
}

.mp-king-vol {
    font-size: 11px;
    font-weight: bold;
}

.mp-king-vol-label {
    font-size: 9px;
    color: var(--text-muted);
}

.mp-pz-row {
    padding: 4px 8px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    transition: background .1s;
}

.mp-pz-row:hover {
    background: var(--bg-hover);
}

.mp-pz-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.mp-pz-name {
    font-size: 11px;
    color: var(--text-primary);
}

.mp-pz-code {
    font-size: 10px;
    color: var(--text-muted);
}

.mp-pz-status {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid;
}

.mp-pz-status-zt {
    background: var(--up-bg);
    border-color: var(--up-color);
    color: var(--up-color);
}

.mp-pz-status-da {
    background: var(--down-bg);
    border-color: var(--down-color);
    color: var(--down-color);
}

.mp-pz-status-df {
    background: var(--broken-bg);
    border-color: var(--broken-color);
    color: var(--broken-color);
}

.mp-pz-content {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.mp-pz-time {
    font-size: 9px;
    color: var(--text-muted);
}

.mp-bk-row {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    gap: 3px;
}

.mp-bk-row:hover {
    background: var(--bg-hover);
}

.mp-bk-rank {
    width: 14px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

.mp-bk-name {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.mp-bk-pct {
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;
}

.mp-bk-vol {
    display: none;
}

.mp-gg-row {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    gap: 3px;
}

.mp-gg-row:hover {
    background: var(--bg-hover);
}

.mp-gg-rank {
    width: 14px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

.mp-gg-name {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.mp-gg-code {
    display: none;
}

.mp-gg-pct {
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
    white-space: nowrap;
}

.mp-cnt {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-app);
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid var(--bg-border);
}

/* 通用模块容器 */
#mod-heatmap {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mh-btn {
    padding: 1px 6px;
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 10px;
    transition: all .1s;
}

.mh-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.mh-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

#mod-radar {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

#mod-ladder {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#mod-bidding {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* bidding表格 */
#mod-bidding table {
    width: 100%;
    border-collapse: collapse;
}

#mod-bidding th {
    background: var(--bg-panel);
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 10px;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    white-space: nowrap;
    text-align: right;
    position: sticky;
    top: 0;
    z-index: 2;
}

#mod-bidding th.sort-asc::after {
    content: " ▲";
    color: var(--accent);
    font-size: 8px;
}

#mod-bidding th.sort-desc::after {
    content: " ▼";
    color: var(--accent);
    font-size: 8px;
}

#mod-bidding td {
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
    font-family: Arial,Consolas,sans-serif;
    white-space: nowrap;
    text-align: right;
}

#mod-bidding tr {
    cursor: pointer;
}

#mod-bidding tr:hover td {
    background: var(--bg-hover);
}

.mb-col-fav {
    width: 16px!important;
    text-align: center!important;
    padding: 3px 2px!important;
    cursor: default;
}

.mb-sector-tag {
    color: var(--accent);
    font-size: 10px;
    cursor: pointer;
}

.mb-mod-tab {
    cursor: pointer;
    padding: 2px 6px;
    font-size: 11px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all .1s;
}

.mb-mod-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.mb-mod-tab:hover:not(.active) {
    color: var(--text-primary);
}

.mb-filter-btn, .mb-mkt-btn {
    cursor: pointer;
    padding: 1px 6px;
    font-size: 10px;
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    color: var(--text-secondary);
    background: transparent;
    transition: all .1s;
}

.mb-filter-btn:hover, .mb-mkt-btn:hover {
    border-color: var(--text-muted) !important;
    color: var(--text-primary) !important;
}

.mb-filter-btn.active, .mb-mkt-btn.active {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--accent-bg) !important;
}

/* ladder表格 */
#mod-ladder .ml-main {
    flex: 1;
    background: var(--bg-app);
    overflow-y: overlay;
    overflow-y: auto;
}

#mod-ladder .ml-main::-webkit-scrollbar {
    width: 4px;
}

#mod-ladder .ml-main::-webkit-scrollbar-track {
    background: var(--bg-app);
}

#mod-ladder .ml-main::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.ml-zt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
}

.ml-zt-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-panel);
}

.ml-zt-table th {
    padding: 4px 4px;
    text-align: center;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: normal;
    border-bottom: 1px solid var(--bg-border);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-zt-table td {
    padding: 3px 4px;
    vertical-align: middle;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-zt-table tbody tr {
    border-bottom: 1px solid var(--bg-border);
    background: var(--bg-app);
}

.ml-zt-table tbody tr:hover {
    background: var(--bg-hover);
}

.ml-td-plate {
    width: 80px;
    padding: 4px 6px !important;
    vertical-align: top;
    border-right: 2px solid var(--accent);
    background: var(--bg-panel);
}

.ml-plate-name {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ml-plate-count {
    font-size: 10px;
    color: var(--text-muted);
}

.ml-plate-reason {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 3px;
}

.ml-pr-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.ml-pr-kw {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    background: var(--up-bg);
    color: var(--up-color);
    border: 1px solid rgba(230,65,58,0.3);
    font-weight: bold;
}

.ml-expand-btn {
    display: inline-block;
    margin-top: 3px;
    font-size: 9px;
    color: var(--accent);
    cursor: pointer;
    padding: 1px 6px;
    border: 1px solid var(--accent);
    background: var(--accent-bg);
    border-radius: 2px;
}

.ml-expand-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* 板块原因弹窗 */
.ml-plate-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ml-pp-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.ml-pp-box {
    position: relative;
    width: 520px;
    max-width: 90vw;
    max-height: 80vh;
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ml-pp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--bg-border);
    background: var(--bg-app);
}

.ml-pp-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.ml-pp-close {
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.ml-pp-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.ml-pp-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
}

.ml-pp-seg {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg-border);
}

.ml-pp-seg:last-child {
    border-bottom: none;
}

.ml-pp-seg-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--broken-color);
    margin-bottom: 4px;
}

.ml-pp-seg-body {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.ml-td-stock {
    white-space: nowrap;
    cursor: pointer;
}

.ml-td-sname {
    font-size: 12px;
    color: var(--text-primary);
    display: block;
}

.ml-td-scode {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

.ml-board-tag {
    display: inline-block;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
    border: 1px solid;
}

.ml-board-high {
    background: var(--up-bg);
    border-color: var(--up-color);
    color: var(--up-color);
}

.ml-board-mid {
    background: var(--broken-bg);
    border-color: var(--broken-color);
    color: var(--broken-color);
}

.ml-board-low {
    background: var(--bg-app);
    border-color: var(--bg-border);
    color: var(--text-secondary);
}

.ml-plate-sep td {
    padding: 0;
    height: 3px;
    background: var(--bg-border);
}

.ml-row-high-board {
    background: var(--up-bg) !important;
}

.ml-row-high-board .ml-td-sname {
    color: var(--up-color);
    font-weight: bold;
}

.ml-row-zb {
    opacity: 0.7;
}

.ml-row-zb .ml-td-sname {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.ml-td-reason {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-reason-text {
    font-size: 10px;
    line-height: 1.4;
    color: var(--text-secondary);
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ml-reason-text.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.ml-detail-btn {
    display: inline-block;
    margin-top: 2px;
    font-size: 9px;
    color: var(--accent);
    cursor: pointer;
    padding: 1px 4px;
    border: 1px solid var(--accent);
    background: var(--accent-bg);
    border-radius: 2px;
}

.ml-detail-box {
    margin-top: 4px;
    border-radius: 2px;
    background: var(--bg-panel);
    padding: 4px 6px;
}

.ml-stat-chip {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
}

.ml-sc-label {
    color: var(--text-secondary);
}

.ml-sc-val {
    font-weight: bold;
    font-family: Arial,sans-serif;
}

.ml-sc-red {
    color: var(--up-color);
}

.ml-sc-green {
    color: var(--down-color);
}

.ml-sc-yellow {
    color: var(--broken-color);
}

.ml-sc-gray {
    color: var(--text-muted);
}

.ml-mood-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 2px;
    border: 1px solid;
}

.ml-mood-hot {
    color: var(--up-color);
    border-color: var(--up-color);
    background: var(--up-bg);
}

.ml-mood-warm {
    color: var(--broken-color);
    border-color: var(--broken-color);
    background: var(--broken-bg);
}

.ml-mood-mid {
    color: var(--text-secondary);
    border-color: var(--bg-border);
}

.ml-mood-cold {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
}

.ml-pc0 .ml-td-plate {
    border-right-color: var(--up-color);
}

.ml-pc0 .ml-plate-name {
    color: var(--up-color);
}

.ml-pc1 .ml-td-plate {
    border-right-color: var(--broken-color);
}

.ml-pc1 .ml-plate-name {
    color: var(--broken-color);
}

.ml-pc2 .ml-td-plate {
    border-right-color: var(--down-color);
}

.ml-pc2 .ml-plate-name {
    color: var(--down-color);
}

.ml-pc3 .ml-td-plate {
    border-right-color: var(--accent);
}

.ml-pc3 .ml-plate-name {
    color: var(--accent);
}

/* radar新闻 */
.mr-hotword-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-border);
    gap: 4px;
}

.mr-hotword-item:hover {
    background: var(--bg-hover);
}

.mr-hw-rank {
    width: 16px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
}

.mr-top3 {
    color: var(--broken-color) !important;
}

.mr-hw-word {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
}

.mr-hw-count {
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
}

.mr-hw-bar {
    height: 4px;
    min-width: 4px;
    border-radius: 1px;
}

.mr-bar-pos {
    background: var(--up-color);
}

.mr-bar-neg {
    background: var(--down-color);
}

.mr-bar-neu {
    background: var(--text-muted);
}

.mr-news-item {
    display: flex;
    padding: 4px 6px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    font-size: 10px;
}

.mr-news-item:hover {
    background: var(--bg-hover);
}

.mr-src-col {
    width: 50px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 6px;
    border-right: 1px solid var(--bg-border);
    padding-right: 4px;
}

.mr-src {
    font-size: 9px;
    text-align: center;
    padding: 1px 2px;
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    color: var(--text-secondary);
    word-break: break-all;
}

.mr-ntime {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
}

.mr-body {
    flex: 1;
    min-width: 0;
}

.mr-ntitle {
    color: var(--text-primary);
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.mr-ntitle:hover {
    color: var(--accent);
}

.mr-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.mr-sent-tag {
    font-size: 9px;
    padding: 0 3px;
    border-radius: 2px;
}

.mr-sent-pos {
    background: var(--up-bg);
    color: var(--up-color);
    border: 1px solid var(--up-color);
}

.mr-sent-neg {
    background: var(--down-bg);
    color: var(--down-color);
    border: 1px solid var(--down-color);
}

.mr-sent-neu {
    background: var(--bg-app);
    color: var(--text-secondary);
    border: 1px solid var(--bg-border);
}

.mr-cat-tag {
    font-size: 9px;
    padding: 0 3px;
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    color: var(--text-secondary);
}

.mr-st-tag {
    font-size: 9px;
    padding: 0 3px;
    border-radius: 2px;
    background: var(--bg-panel);
    color: var(--text-secondary);
    border: 1px solid var(--bg-border);
    cursor: pointer;
}

.mr-st-tag:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.mr-rel-stocks {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* radar分类tab */
.mr-cat-btn {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    background: var(--bg-app);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .1s;
}

.mr-cat-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.mr-cat-btn.active {
    border-color: var(--accent) !important;
    background: var(--accent-bg) !important;
    color: var(--accent) !important;
}

/* heatmap弹窗内部 */
.mh-sec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 0;
}

.mh-sec-item-name {
    font-size: 10px;
    color: var(--text-secondary);
    width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-sec-item-chg {
    font-size: 10px;
    font-family: Arial,sans-serif;
    font-weight: 600;
    text-align: right;
    min-width: 45px;
}

.mh-sec-item-bar {
    flex: 1;
    margin: 0 6px;
    height: 5px;
    border-radius: 2px;
    background: var(--bg-border);
}

.mh-sec-item-bar-fill {
    height: 5px;
    border-radius: 2px;
    min-width: 2px;
}

.mh-sec-sub-title {
    font-size: 9px;
    color: var(--accent);
    padding: 3px 0 1px;
    border-top: 1px solid var(--bg-border);
    margin-top: 2px;
    font-weight: bold;
}

/* ===== mod-sector 模块 ===== */
#mod-sector {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ms-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

/* 顶部市场概况栏 */
.ms-market-overview {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 8px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    gap: 6px;
    flex-shrink: 0;
}

.ms-idx-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: var(--bg-app);
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    min-width: 80px;
    height: 28px;
}

.ms-idx-card .idx-name {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: normal;
}

.ms-idx-card .idx-val {
    font-size: 11px;
    font-weight: bold;
    font-family: Arial,sans-serif;
}

.ms-idx-card .idx-chg {
    font-size: 9px;
    font-family: Arial,sans-serif;
}

.ms-overview-divider {
    width: 1px;
    height: 20px;
    background: var(--bg-border);
    margin: 0 4px;
}

.ms-updown-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    background: var(--bg-app);
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    height: 28px;
}

.ms-updown-bar .ud-label {
    font-size: 9px;
    color: var(--text-secondary);
}

.ms-updown-bar .ud-val {
    font-size: 11px;
    font-weight: bold;
    font-family: Arial,sans-serif;
}

.ms-updown-bar .ud-bar {
    display: flex;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    width: 60px;
    background: var(--bg-border);
}

.ms-updown-bar .ud-bar-up {
    background: var(--up-color);
    height: 100%;
}

.ms-updown-bar .ud-bar-dn {
    background: var(--down-color);
    height: 100%;
}

.ms-north-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 8px;
    background: var(--bg-app);
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    height: 28px;
}

.ms-north-card .nc-label {
    font-size: 9px;
    color: var(--text-secondary);
}

.ms-north-card .nc-val {
    font-size: 11px;
    font-weight: bold;
    font-family: Arial,sans-serif;
}

/* 概念异动飘屏 */
.ms-concept-ticker {
    background: var(--bg-app);
    border-bottom: 1px solid var(--bg-border);
    overflow: hidden;
    height: 22px;
    position: relative;
    flex-shrink: 0;
}

.ms-concept-ticker-inner {
    display: flex;
    gap: 24px;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    position: absolute;
    top: 2px;
}

.ms-concept-ticker-inner:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

.ct-item {
    font-size: 10px;
    color: var(--text-secondary);
}

.ct-item[onclick] {
    cursor: pointer;
}

.ct-item[onclick]:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.ct-item .ct-plate {
    font-weight: normal;
    margin-right: 4px;
}

.ct-item .ct-up {
    color: var(--up-color);
}

.ct-item .ct-down {
    color: var(--down-color);
}

.ct-item .ct-time {
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    font-size: 9px;
    margin-left: 3px;
}

.ct-tag {
    font-size: 8px;
    padding: 0 3px;
    border-radius: 2px;
    margin-right: 3px;
    background: var(--up-bg);
    color: var(--up-color);
    border: 1px solid var(--up-color);
    vertical-align: 1px;
}

.ct-radar .ct-plate {
    font-size: 10px;
}

/* 主布局三栏 */
.ms-main-layout {
    display: flex;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

/* 左侧：风口+板块 */
.ms-left-panel {
    width: 220px;
    min-width: 200px;
    border-right: 1px solid var(--bg-border);
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
}

.ms-section-title {
    padding: 6px 8px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ms-fengkou-area {
    padding: 4px 8px;
    border-bottom: 1px solid var(--bg-border);
    background: var(--bg-app);
    flex-shrink: 0;
}

.ms-fengkou-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.ms-fk-tag {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid var(--bg-border);
    background: var(--bg-app);
    color: var(--text-secondary);
}

.ms-fk-tag:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.ms-fk-tag.hot {
    background: var(--up-bg);
    color: var(--up-color);
    border-color: var(--up-color);
}

.ms-fk-tag .fk-count {
    font-size: 9px;
    color: var(--text-muted);
    margin-left: 2px;
    font-family: Arial,sans-serif;
}

.ms-strength-area {
    padding: 4px 8px;
    border-bottom: 1px solid var(--bg-border);
    background: var(--bg-app);
    flex-shrink: 0;
    max-height: 80px;
    overflow-y: auto;
}

.ms-strength-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.str-tag {
    padding: 1px 5px;
    font-size: 10px;
    border-radius: 2px;
    border: 1px solid;
    white-space: nowrap;
}

.str-tag.up {
    background: var(--up-bg);
    color: var(--up-color);
    border-color: rgba(230,65,58,0.3);
}

.str-tag.down {
    background: var(--down-bg);
    color: var(--down-color);
    border-color: rgba(40,167,69,0.3);
}

.str-tag.new-high {
    background: var(--broken-bg);
    color: var(--broken-color);
    border-color: rgba(217,164,0,0.3);
}

.ms-sort-tabs {
    display: flex;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-app);
    border-bottom: 1px solid var(--bg-border);
}

.ms-sort-tab {
    cursor: pointer;
    padding: 2px 6px;
    font-size: 10px;
    background: var(--bg-app);
    color: var(--text-secondary);
    border-radius: 2px;
    border: 1px solid var(--bg-border);
}

.ms-sort-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.ms-sort-tab.active {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
}

.ms-sector-list {
    flex: 1;
    overflow-y: auto;
    padding: 2px 4px;
}

.ms-sector-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-border);
    border-radius: 2px;
    margin: 1px 0;
    gap: 4px;
}

.ms-sector-item:hover {
    background: var(--bg-hover);
}

.ms-sector-item.active {
    background: var(--accent-bg);
    border-left: 2px solid var(--accent);
}

.ms-rank {
    min-width: 20px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    text-align: center;
}

.ms-rank.top3 {
    color: var(--accent);
    font-weight: bold;
}

.ms-sname {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-change {
    font-size: 11px;
    font-weight: bold;
    font-family: Arial,sans-serif;
    min-width: 40px;
    text-align: right;
}

.ms-change.up {
    color: var(--up-color);
}

.ms-change.down {
    color: var(--down-color);
}

/* 自选功能 */
.ms-fav-btn {
    font-size: 11px;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
    transition: color .15s;
}

.ms-fav-btn:hover {
    color: #e6a700;
}

.ms-fav-btn.fav-active {
    color: #e6a700;
}

.ms-fav-section {
    padding: 6px 8px;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-secondary);
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
}

.ms-fav-stock-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 6px;
    cursor: pointer;
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
}

.ms-fav-stock-row:hover {
    background: var(--bg-hover);
}

.ms-fav-sname {
    flex: 1;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-fav-schg {
    width: 50px;
    text-align: right;
    font-family: Arial,sans-serif;
    font-weight: bold;
}

.ms-fav-snet {
    width: 52px;
    text-align: right;
    font-family: Arial,sans-serif;
    font-size: 10px;
}

/* 中间：图表+成分股 */
.ms-middle-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-app);
    overflow: hidden;
}

.ms-chart-area {
    height: 360px;
    border-bottom: 1px solid var(--bg-border);
    background: var(--bg-panel);
    position: relative;
}

.ms-sector-chart {
    width: 100%;
    height: 100%;
}

.ms-stock-list-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ms-stock-header {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    gap: 8px;
}

.ms-stock-header .title {
    color: var(--text-secondary);
    font-size: 11px;
}

.ms-stock-header .sector-name {
    color: var(--text-primary);
    font-size: 12px;
    margin-left: 8px;
}

.ms-fav-stock-tab {
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 1px 6px;
    border: 1px solid var(--bg-border);
    border-radius: 3px;
    margin-left: 8px;
}

.ms-fav-stock-tab:hover {
    color: #e6a700;
    border-color: #e6a700;
}

.ms-fav-stock-tab.active {
    color: #e6a700;
    border-color: #e6a700;
    background: rgba(230,167,0,0.1);
}

.ms-stock-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    background: var(--bg-app);
}

.ms-board-tag, .ms-plate-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10px;
    color: var(--text-secondary);
    background: var(--bg-app);
    border: 1px solid var(--bg-border);
    border-radius: 3px;
    cursor: pointer;
    line-height: 16px;
}

.ms-board-tag:hover, .ms-plate-tag:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.ms-board-tag.active, .ms-plate-tag.active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.ms-stock-table-header {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    font-size: 10px;
    color: var(--text-secondary);
    overflow: hidden;
    white-space: nowrap;
}

.ms-stock-table-header .th-inner {
    display: flex;
    align-items: center;
    min-width: 1316px;
}

.ms-stock-table-header span {
    text-align: right;
    font-family: Arial,sans-serif;
    cursor: pointer;
    flex-shrink: 0;
}

.ms-stock-table-header span:hover {
    color: var(--text-primary);
}

.ms-th-active {
    color: var(--accent) !important;
}

.ms-stock-scroll .th-inner {
    display: flex;
    flex-direction: column;
    min-width: 1316px;
}

.stock-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
    color: inherit;
    min-width: 1316px;
    white-space: nowrap;
    background: var(--bg-panel);
}

.stock-item:hover {
    background: var(--bg-hover);
}

.stock-item.stale {
    opacity: 0.4;
}

.stock-item:nth-child(odd) {
    background: var(--bg-app);
}

.stock-item span {
    flex-shrink: 0;
    font-family: Arial,Consolas,sans-serif;
    text-align: right;
}

.th-fav {
    width: 16px;
    text-align: center!important;
    color: var(--text-muted);
    cursor: default;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--bg-panel);
}

.stock-item .ms-fav-btn {
    width: 16px;
    text-align: center;
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--bg-panel);
}

.th-code,.s-code {
    width: 48px;
    text-align: left!important;
    font-size: 10px;
    color: var(--text-muted);
    position: sticky;
    left: 16px;
    z-index: 3;
    background: var(--bg-panel);
}

.th-name,.s-name {
    width: 52px;
    text-align: left!important;
    font-family: "Microsoft YaHei",sans-serif;
    color: var(--text-primary);
    position: sticky;
    left: 64px;
    z-index: 3;
    background: var(--bg-panel);
    box-shadow: 2px 0 4px rgba(0,0,0,0.4);
}

/* sticky列各状态背景强制不透明 */
.stock-item:nth-child(odd) > .ms-fav-btn, .stock-item:nth-child(odd) > .s-code, .stock-item:nth-child(odd) > .s-name {
    background: var(--bg-app)!important;
}

.stock-item:nth-child(even) > .ms-fav-btn, .stock-item:nth-child(even) > .s-code, .stock-item:nth-child(even) > .s-name {
    background: var(--bg-panel)!important;
}

.stock-item:hover > .ms-fav-btn, .stock-item:hover > .s-code, .stock-item:hover > .s-name {
    background: var(--bg-hover)!important;
}

.th-chg,.s-chg {
    width: 50px;
}

.th-zt,.s-zt {
    width: 42px;
    text-align: center!important;
    font-family: "Microsoft YaHei",sans-serif;
}

.th-spd,.s-spd {
    width: 40px;
}

.th-drg,.s-drg {
    width: 32px;
    text-align: center!important;
    font-family: "Microsoft YaHei",sans-serif;
}

.th-lc,.s-lc {
    width: 28px;
    text-align: center!important;
}

.th-prc,.s-prc {
    width: 44px;
}

.th-bidlbi,.s-bidlbi {
    width: 36px;
}

.th-bidamt,.s-bidamt {
    width: 50px;
}

.th-bidchg,.s-bidchg {
    width: 42px;
}

.th-mnet,.s-mnet {
    width: 52px;
}

.th-min,.s-min {
    width: 52px;
}

.th-mout,.s-mout {
    width: 52px;
}

.th-amt,.s-amt {
    width: 52px;
}

.th-ichg,.s-ichg {
    width: 42px;
}

.th-bnet,.s-bnet {
    width: 52px;
}

.th-rflt,.s-rflt {
    width: 52px;
}

.th-turn,.s-turn {
    width: 38px;
}

.th-nfp,.s-nfp {
    width: 40px;
}

.th-lbi,.s-lbi {
    width: 32px;
}

.th-seal,.s-seal {
    width: 48px;
}

.th-mseal,.s-mseal {
    width: 50px;
}

.th-tags,.s-tags {
    width: 80px;
    text-align: left!important;
    font-family: "Microsoft YaHei",sans-serif;
}

.th-pop,.s-pop {
    width: 40px;
}

.th-pchg,.s-pchg {
    width: 36px;
}

.s-prc {
    color: var(--text-primary);
}

.s-amt,.s-min,.s-mout,.s-seal,.s-mseal,.s-rflt,.s-bidamt,.s-bnet {
    color: var(--text-muted);
}

.s-turn {
    color: var(--text-secondary);
}

.s-tags {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-pop {
    color: var(--broken-color);
}

.s-chg {
    font-weight: bold;
}

.s-up {
    color: var(--up-color)!important;
}

.s-down {
    color: var(--down-color)!important;
}

.s-zt-tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    background: var(--up-color);
    color: var(--bg-app);
    font-family: "Microsoft YaHei",sans-serif;
}

.s-zt-tag.cb {
    background: var(--broken-color);
}

.s-drg-tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    font-family: "Microsoft YaHei",sans-serif;
}

.s-drg-tag.d1 {
    color: var(--up-color);
    background: var(--up-bg);
}

.s-drg-tag.d2 {
    color: var(--broken-color);
    background: var(--broken-bg);
}

.s-drg-tag.dn {
    color: var(--text-muted);
    background: var(--bg-app);
}

.s-lbi-hot {
    color: var(--up-color)!important;
    font-weight: bold;
}

.ms-sub-tag {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    font-size: 10px;
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid var(--bg-border);
    color: var(--text-secondary);
    background: var(--bg-app);
}

.ms-sub-tag:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.ms-sub-tag.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

.ms-sub-str {
    font-size: 9px;
    margin-left: 2px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
}

/* 右侧：市场脉搏 */
.ms-right-panel {
    width: 280px;
    min-width: 240px;
    border-left: 1px solid var(--bg-border);
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    overflow-y: auto;
}

.le-item {
    display: flex;
    align-items: center;
    padding: 6px 6px;
    margin: 2px 0;
    background: var(--bg-app);
    border-radius: 2px;
    border-left: 2px solid var(--down-color);
    font-size: 11px;
}

.le-item.profit {
    border-left-color: var(--up-color);
}

.le-item .le-name {
    flex: 1;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.le-item .le-chg {
    font-weight: bold;
    font-family: Arial,sans-serif;
    min-width: 50px;
    text-align: right;
}

.le-item .le-reason {
    font-size: 10px;
    color: var(--text-muted);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 6px;
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    margin: 2px 0;
    background: var(--bg-app);
    border-radius: 2px;
    cursor: pointer;
    font-size: 11px;
    gap: 4px;
}

.hot-item:hover {
    background: var(--bg-hover);
}

.hot-rank {
    width: 16px;
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    text-align: center;
}

.hot-rank.top3 {
    color: var(--accent);
    font-weight: bold;
}

.hot-item .hot-name {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-item .hot-chg {
    font-weight: bold;
    font-family: Arial,sans-serif;
    min-width: 40px;
    text-align: right;
}

.anomaly-item {
    padding: 10px 8px;
    margin: 2px 0;
    background: var(--bg-app);
    border-radius: 2px;
    cursor: pointer;
    border: 1px solid var(--bg-border);
}

.anomaly-item:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.anomaly-item.active {
    background: var(--accent-bg);
    border-color: var(--accent);
}

.anomaly-item .stock-info {
    display: flex;
    align-items: flex-end;
    margin-bottom: 4px;
    gap: 6px;
}

.anomaly-item .stock-name {
    font-size: 12px;
    color: var(--text-primary);
}

.anomaly-item .stock-code {
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
}

.anomaly-item .tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.anomaly-item .tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
}

.tag-zt {
    background: var(--up-bg);
    color: var(--up-color);
    border: 1px solid var(--up-color);
}

.tag-lb {
    background: var(--broken-bg);
    color: var(--broken-color);
    border: 1px solid var(--broken-color);
}

.tag-sector {
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.anomaly-item .detail {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

/* 明天炒什么 */
.tm-day-label {
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    padding: 2px 0;
    border-bottom: 1px solid var(--bg-border);
    margin-bottom: 2px;
}

.tm-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 6px;
    margin: 2px 0;
    background: var(--bg-app);
    border-radius: 2px;
    cursor: pointer;
    border-left: 2px solid var(--broken-color);
}

.tm-item:hover {
    background: var(--bg-hover);
    border-left-color: var(--accent);
}

.tm-item .tm-title {
    flex: 1;
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tm-item .tm-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 6px;
    flex-shrink: 0;
    gap: 2px;
}

.tm-item .tm-hot {
    font-size: 10px;
    color: var(--broken-color);
    font-family: Arial,sans-serif;
    white-space: nowrap;
}

.tm-vote-tag {
    font-size: 8px;
    padding: 1px 2px;
    border-radius: 2px;
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.tm-new-tag {
    font-size: 8px;
    padding: 1px 2px;
    border-radius: 2px;
    background: var(--up-bg);
    color: var(--up-color);
    border: 1px solid var(--up-color);
}

/* K线弹窗 */
#ms-klinePopup {
    position: fixed;
    z-index: 9999;
    display: none;
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    padding: 8px;
    width: 400px;
    pointer-events: auto;
}

#ms-klinePopup .kp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4px;
    padding: 0 2px;
}

#ms-klinePopup .kp-name {
    color: var(--text-primary);
    font-size: 12px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#ms-klinePopup .kp-price {
    font-size: 14px;
    font-weight: bold;
    font-family: Arial,Consolas,sans-serif;
}

#ms-klinePopup .kp-change {
    font-size: 12px;
    font-family: Arial,Consolas,sans-serif;
    margin-left: 6px;
    font-weight: bold;
}

#ms-klinePopup .kp-chart {
    width: 100%;
    height: 280px;
}

#ms-klinePopup .kp-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    padding: 0 2px;
}

#ms-klineDaysBar {
    display: none;
}

/* 已移到成分股标题栏 */
#ms-klineDaysBar label {
    color: var(--text-secondary);
    white-space: nowrap;
}

.ms-kdb-presets {
    display: flex;
    gap: 2px;
}

.ms-kdb-btn {
    padding: 1px 6px;
    font-size: 10px;
    background: var(--bg-app);
    color: var(--text-secondary);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    cursor: pointer;
    font-family: Arial,sans-serif;
}

.ms-kdb-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.ms-kdb-btn.active {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
}

.ms-kp-days-input {
    width: 40px;
    padding: 1px 4px;
    font-size: 10px;
    text-align: center;
    background: var(--bg-app);
    color: var(--text-primary);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    outline: none;
    font-family: Arial,Consolas,sans-serif;
}

.ms-kp-days-input:focus {
    border-color: var(--accent);
}

/* 文章弹窗 v4.1: 添加淡入动画 */
.ms-article-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-app);
    z-index: 9999;
    opacity: 0;
}

.ms-article-overlay.show {
    display: flex;
    flex-direction: column;
    animation: amFadeIn .15s ease-out forwards;
}

@keyframes amFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ms-article-modal {
    background: var(--bg-panel);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 骨架屏加载动画 */
.am-skeleton {
    padding: 16px;
}

.am-skeleton-line {
    height: 12px;
    background: var(--bg-border);
    border-radius: 2px;
    margin: 10px 0;
    animation: amPulse 1.2s ease-in-out infinite;
}

.am-skeleton-line:nth-child(1) {
    width: 85%;
}

.am-skeleton-line:nth-child(2) {
    width: 70%;
    animation-delay: .15s;
}

.am-skeleton-line:nth-child(3) {
    width: 90%;
    animation-delay: .3s;
}

.am-skeleton-line:nth-child(4) {
    width: 60%;
    animation-delay: .45s;
}

.am-skeleton-line:nth-child(5) {
    width: 75%;
    animation-delay: .6s;
}

@keyframes amPulse {
    0%,100% {
        opacity: .4;
    }

    50% {
        opacity: .8;
    }
}

.ms-article-modal .am-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
}

.ms-article-modal .am-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.ms-am-close {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.ms-am-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.ms-article-modal .am-meta {
    padding: 4px 12px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
    font-family: Arial,sans-serif;
}

.ms-am-tabs {
    display: flex;
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
    background: var(--bg-app);
    gap: 16px;
    padding: 0 12px;
}

.ms-am-tab {
    padding: 6px 4px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.ms-am-tab:hover {
    color: var(--text-primary);
}

.ms-am-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.ms-am-tab .tab-badge {
    position: absolute;
    top: 2px;
    right: -10px;
    font-size: 8px;
    background: var(--up-color);
    color: var(--bg-app);
    border-radius: 2px;
    padding: 0 2px;
    min-width: 12px;
    text-align: center;
    line-height: 12px;
    font-weight: bold;
}

.ms-am-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.ms-am-tab-content.active {
    display: flex;
    flex-direction: column;
}

#ms-tab-article.active {
    flex-direction: row;
}

.ms-article-modal .am-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.6;
    min-width: 0;
}

.ms-article-modal .am-body p {
    margin: 6px 0;
}

.am-stocks-panel {
    width: 170px;
    flex-shrink: 0;
    border-left: 1px solid var(--bg-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.am-sp-header {
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-border);
    background: var(--bg-app);
    flex-shrink: 0;
}

.am-sp-list {
    flex: 1;
    overflow-y: auto;
}

.am-sp-item {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
    gap: 3px;
}

.am-sp-item:hover {
    background: var(--bg-hover);
}

.am-sp-item .ms-fav-btn {
    font-size: 10px;
    flex-shrink: 0;
}

.am-sp-item .am-sp-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    cursor: pointer;
}

.am-sp-item .am-sp-name:hover {
    color: var(--accent);
    text-decoration: underline;
}

.am-sp-item .am-sp-chg {
    font-family: Arial,sans-serif;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
    min-width: 38px;
    text-align: right;
}

.am-sp-item .am-sp-chg.up {
    color: var(--up-color);
}

.am-sp-item .am-sp-chg.dn {
    color: var(--down-color);
}

.am-sp-item .am-sp-chg.flat {
    color: var(--text-secondary);
}

.lh-stock-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
}

.lh-stock-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
    font-size: 11px;
    gap: 4px;
}

.lh-stock-item:hover {
    background: var(--bg-hover);
}

.lh-stock-item .lh-rank {
    width: 16px;
    color: var(--text-muted);
    font-size: 10px;
    text-align: center;
    font-family: Arial,sans-serif;
}

.lh-stock-item .lh-rank.top3 {
    color: var(--accent);
    font-weight: bold;
}

.lh-stock-item .lh-name {
    color: var(--text-primary);
    min-width: 50px;
}

.lh-stock-item .lh-code {
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    font-size: 10px;
    min-width: 40px;
}

.lh-stock-item .lh-change {
    font-family: Arial,sans-serif;
    font-size: 11px;
    font-weight: bold;
    min-width: 48px;
    text-align: right;
    margin-left: auto;
}

.lh-stock-item .lh-change.up {
    color: var(--up-color);
}

.lh-stock-item .lh-change.dn {
    color: var(--down-color);
}

.lh-stock-item .lh-change.flat {
    color: var(--text-secondary);
}

.lh-stock-item .lh-trad {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    min-width: 32px;
    text-align: center;
}

.lh-stock-item .lh-trad.zt {
    background: var(--up-bg);
    color: var(--up-color);
    border: 1px solid var(--up-color);
}

.lh-stock-item .lh-trad.normal {
    background: transparent;
    color: transparent;
    border: none;
}

.lh-stock-item .lh-hot {
    color: var(--broken-color);
    font-size: 10px;
    font-family: Arial,sans-serif;
    min-width: 40px;
    text-align: right;
}

.vote-area {
    padding: 8px 12px;
}

.vote-title {
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.vote-option {
    display: flex;
    align-items: center;
    margin: 4px 0;
    gap: 8px;
}

.vote-label {
    flex: 1;
    font-size: 11px;
    color: var(--text-secondary);
}

.vote-bar-wrap {
    flex: 2;
    height: 12px;
    background: var(--bg-app);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--bg-border);
}

.vote-bar {
    height: 100%;
    border-radius: 2px;
    min-width: 2px;
}

.vote-bar.win {
    background: var(--broken-color);
}

.vote-bar.lose {
    background: var(--text-muted);
}

.vote-pct {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: Arial,sans-serif;
    min-width: 36px;
    text-align: right;
}

.vote-count {
    font-size: 9px;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
    font-family: Arial,sans-serif;
}

.vote-total {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: right;
}

/* ===== ws3 三栏布局 ===== */
/* 新版复盘主控布局 v3 */
.rp-layout-v3 {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--bg-app);
}

.rp-topbar {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    height: 32px;
    flex-shrink: 0;
}

.rp-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rp-top-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 上半区 (高度50%) — v4.2黄金比例优化 */
.rp-hero-zone {
    flex: 50;
    display: flex;
    border-bottom: 2px solid var(--bg-border);
    overflow: hidden;
    min-height: 340px;
}

.rp-hero-left {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--bg-border);
    background: var(--bg-panel);
    overflow: hidden;
}

.rp-hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    overflow: hidden;
}

/* 资金主线阵型网格 */
.rp-plate-grid {
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    overflow-y: auto;
    align-content: flex-start;
}

.rp-plate-card {
    flex: 1 1 calc(25% - 4px);
    min-width: 155px;
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    background: var(--bg-app);
    padding: 5px 7px;
    cursor: pointer;
    transition: all .15s;
}

.rp-plate-card:hover {
    border-color: var(--text-muted);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.rp-plate-card.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    background: var(--accent-bg);
}

.rp-pc-head {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--bg-border);
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.rp-pc-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-primary);
}

.rp-pc-count {
    font-size: 11px;
    color: var(--up-color);
    margin-left: 6px;
    font-family: Arial,sans-serif;
}

.rp-pc-stk {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-size: 10px;
}

.rp-pc-label {
    font-size: 9px;
    color: var(--text-muted);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

.rp-pc-name {
    color: var(--text-primary);
    font-weight: bold;
    cursor: pointer;
}

.rp-pc-name:hover {
    text-decoration: underline;
}

.rp-pc-tag {
    font-size: 9px;
    background: var(--up-bg);
    color: var(--up-color);
    padding: 1px 3px;
    border-radius: 2px;
    border: 1px solid var(--up-color);
    margin-left: 4px;
}

/* 晋级生死门矩阵 */
.rp-matrix-board {
    padding: 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rp-mx-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    overflow: hidden;
    min-height: 40px;
    cursor: pointer;
}

.rp-mx-row:hover {
    background: var(--bg-hover);
}

.rp-mx-row.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.rp-mx-lv {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.rp-mx-lv.lv-high {
    background: linear-gradient(135deg, #e6413a, #ff6b5a);
}

.rp-mx-lv.lv-mid {
    background: linear-gradient(135deg, #e89a3e, #f0b85a);
}

.rp-mx-lv.lv-low {
    background: var(--bg-panel);
    color: var(--text-secondary);
    border-right: 1px solid var(--bg-border);
    text-shadow: none;
}

.rp-mx-live {
    flex: 0 0 45%;
    padding: 6px 8px;
    border-right: 1px solid var(--bg-border);
    background: var(--bg-app);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-mx-dead {
    flex: 1;
    padding: 6px 8px;
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rp-mx-header {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.rp-mx-stks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.rp-mx-stk {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .1s;
}

.rp-mx-stk:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.rp-mx-stk.live {
    background: var(--up-color);
    color: #fff;
    font-weight: bold;
    border: 1px solid var(--up-color);
}

.rp-mx-stk.dead-mild {
    background: transparent;
    color: var(--text-secondary);
    border: 1px dashed var(--text-muted);
}

.rp-mx-stk.dead-hard {
    background: rgba(40,167,69,0.15);
    color: var(--down-color);
    font-weight: bold;
    border: 1px solid rgba(40,167,69,0.4);
}

.rp-mx-stk.dead-nuclear {
    background: var(--down-color);
    color: #fff;
    font-weight: bold;
    border: 1px solid var(--down-color);
}

/* 下半区 (高度50%) — v4.2 左右固定缩窄，中间表格更宽 */
.rp-detail-zone {
    flex: 50;
    display: flex;
    overflow: hidden;
    min-height: 280px;
}

.rp-detail-left {
    flex: 0 0 220px;
    border-right: 1px solid var(--bg-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--bg-panel);
}

.rp-detail-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--bg-border);
    overflow: hidden;
    background: var(--bg-app);
}

.rp-detail-right {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-panel);
}

.emo-dashboard {
    padding: 6px 12px;
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
}

.emo-row {
    display: flex;
    align-items: center;
    margin: 2px 0;
    gap: 4px;
}

.emo-label {
    font-size: 10px;
    color: var(--text-muted);
    width: 40px;
    flex-shrink: 0;
    text-align: right;
}

.emo-bar-wrap {
    flex: 1;
    background: var(--bg-app);
    border-radius: 2px;
    height: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--bg-border);
}

.emo-bar {
    height: 100%;
    transition: width .5s ease;
}

.emo-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-primary);
}

.emo-val {
    font-size: 11px;
    font-family: Arial, sans-serif;
    width: 30px;
    flex-shrink: 0;
    text-align: right;
}

.emo-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 4px;
}

.emo-chip {
    flex: 1 1 45%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-app);
    border: 1px solid var(--bg-border);
    padding: 2px 4px;
    min-width: 0;
}

.emo-chip-label {
    font-size: 9px;
    color: var(--text-muted);
}

.emo-chip-val {
    font-size: 11px;
    font-family: Arial, sans-serif;
}

.emo-chip-red {
    color: var(--up-color);
}

.emo-chip-green {
    color: var(--down-color);
}

.emo-chip-yellow {
    color: var(--broken-color);
}

.emo-chip-blue {
    color: var(--accent);
}

.emo-ud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.emo-ud-item {
    font-size: 10px;
    font-family: Arial, sans-serif;
}

.emo-ud-up {
    color: var(--up-color);
}

.emo-ud-down {
    color: var(--down-color);
}

.zt-ladder-chart {
    padding: 6px 6px 2px;
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
}

.zt-lc-mood {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.zt-lc-mood-label {
    font-size: 10px;
    color: var(--text-muted);
}

.zt-lc-mood-val {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid;
}

.zt-lc-mood-hot {
    color: var(--up-color);
    border-color: var(--up-color);
    background: var(--up-bg);
}

.zt-lc-mood-warm {
    color: var(--broken-color);
    border-color: var(--broken-color);
    background: var(--broken-bg);
}

.zt-lc-mood-mid {
    color: var(--text-secondary);
    border-color: var(--bg-border);
    background: var(--bg-app);
}

.zt-lc-mood-cold {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
}

.zt-lc-row {
    display: flex;
    align-items: center;
    margin: 1px 0;
    gap: 4px;
    cursor: pointer;
    padding: 2px;
    transition: background .1s;
}

.zt-lc-row:hover {
    background: var(--bg-hover);
}

.zt-lc-row.active {
    background: var(--bg-hover);
    border-left: 2px solid var(--accent);
}

.zt-lc-lv {
    width: 24px;
    flex-shrink: 0;
    font-size: 10px;
    font-family: Arial, sans-serif;
    text-align: right;
}

.zt-lc-bar-wrap {
    flex: 1;
    background: var(--bg-app);
    border: 1px solid var(--bg-border);
    height: 12px;
    position: relative;
    overflow: hidden;
}

.zt-lc-bar {
    height: 100%;
    transition: width .4s ease;
    position: relative;
}

.zt-lc-names {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 2px;
    gap: 2px;
    overflow: hidden;
}

.zt-lc-name {
    font-size: 9px;
    white-space: nowrap;
    color: var(--text-primary);
    flex-shrink: 0;
}

.zt-lc-cnt {
    width: 30px;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--text-secondary);
    font-family: Arial, sans-serif;
    text-align: right;
}

.zt-lc-pass {
    width: 24px;
    flex-shrink: 0;
    font-size: 9px;
    text-align: center;
    color: var(--text-muted);
}

.zt-lc-pass.good {
    color: var(--down-color);
}

.zt-lc-pass.bad {
    color: var(--up-color);
}

.zt-ladder-nav {
    overflow-y: auto;
    padding: 2px 4px;
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
    max-height: 160px;
}

.zt-nav-item {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    margin: 1px 0;
    cursor: pointer;
    transition: all .1s;
    border: 1px solid transparent;
}

.zt-nav-item:hover {
    background: var(--bg-hover);
    border-color: var(--bg-border);
}

.zt-nav-item.active {
    background: var(--up-bg);
    border-color: var(--up-color);
}

.zt-nav-item .zt-ni-board {
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: var(--up-color);
    width: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.zt-nav-item .zt-ni-label {
    font-size: 10px;
    color: var(--text-secondary);
    flex: 1;
}

.zt-nav-item .zt-ni-cnt {
    font-size: 11px;
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}

.zt-nav-item .zt-ni-badge {
    font-size: 8px;
    padding: 1px 2px;
    border-radius: 2px;
    background: transparent;
    border: 1px solid var(--up-color);
    color: var(--up-color);
    margin-left: 2px;
    white-space: nowrap;
}

/* 隐藏旧版不需要的类 */
.rp-left, .rp-mid {
    display: none !important;
}

.zt-ladder-chart {
    display: none !important;
}

.zt-ladder-nav {
    display: none !important;
}

.rp-plate-list {
    display: none !important;
}

.idx-section {
    border-bottom: 1px solid var(--bg-border);
    padding: 6px 12px;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
}

.idx-title {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: bold;
}

.idx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0;
}

.idx-name {
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin-right: 4px;
}

.idx-val {
    font-size: 11px;
    font-family: Arial, sans-serif;
    flex-shrink: 0;
}

.idx-plate {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    text-align: right;
    margin-left: 6px;
    flex-shrink: 0;
}

.idx-state {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    text-align: right;
    flex-shrink: 0;
}

.idx-state-alert {
    color: var(--up-color);
    font-weight: bold;
}

.idx-state-normal {
    color: var(--text-muted);
}

.zt-toolbar {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 1px solid var(--bg-border);
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    background: var(--bg-panel);
}

.zt-toolbar-title {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: normal;
    flex-shrink: 0;
}

.zt-toolbar-sub {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.zt-filter-btn {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    color: var(--text-secondary);
    cursor: pointer;
    background: var(--bg-app);
    transition: all .1s;
    white-space: nowrap;
}

.zt-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.zt-filter-btn.active {
    background: var(--up-bg);
    border-color: var(--up-color);
    color: var(--up-color);
}

.zt-toolbar-right {
    margin-left: auto;
    display: flex;
    gap: 4px;
    align-items: center;
}

.zt-day-sel {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    position: relative;
}

.zt-day-nav {
    cursor: pointer;
    font-size: 10px;
    color: var(--text-muted);
    padding: 0 3px;
    user-select: none;
    line-height: 1;
}

.zt-day-nav:hover {
    color: var(--accent);
}

.zt-day-btn {
    cursor: pointer;
    padding: 1px 6px;
    background: var(--bg-app);
    border: 1px solid var(--bg-border);
    border-radius: 2px;
    color: var(--text-secondary);
    font-size: 10px;
    font-family: Arial,sans-serif;
    transition: all .1s;
    min-width: 68px;
    text-align: center;
    white-space: nowrap;
}

.zt-day-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.zt-day-btn.is-today {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-bg);
}

.zt-day-btn.is-history {
    color: var(--broken-color);
    border-color: var(--broken-color);
    background: var(--broken-bg);
}

.zt-day-dd {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 3px;
    max-height: 240px;
    overflow-y: auto;
    min-width: 110px;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

.zt-day-dd.show {
    display: block;
}

.zt-day-dd .dd-item {
    padding: 3px 10px;
    font-size: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: Arial,sans-serif;
    white-space: nowrap;
}

.zt-day-dd .dd-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.zt-day-dd .dd-item.active {
    color: var(--accent);
    background: var(--accent-bg);
}

.zt-table-wrap {
    flex: 1;
    overflow-y: auto;
}

.zt-table-wrap::-webkit-scrollbar {
    width: 4px;
}

.zt-table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.zt-table-wrap::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* ===== ws3 涨停明细表格 ===== */
.zt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.zt-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bg-panel);
}

.zt-table thead th {
    padding: 3px 4px;
    text-align: left;
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: normal;
    border-bottom: 1px solid var(--bg-border);
    white-space: nowrap;
}

.zt-table thead th.th-center {
    text-align: center;
}

.zt-table tbody tr {
    border-bottom: 1px solid var(--bg-border);
    transition: background .1s;
    cursor: pointer;
}

.zt-table tbody tr:hover {
    background: var(--bg-hover);
}

.zt-table tbody tr.row-yizi {
    background: var(--bg-app);
}

.zt-table tbody tr.row-yizi:hover {
    background: var(--bg-hover);
}

.zt-table tbody td {
    padding: 2px 4px;
    vertical-align: middle;
}

.td-stock {
    white-space: nowrap;
}

.td-sname {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: normal;
    display: block;
    line-height: 1.2;
}

.td-scode {
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    display: block;
}

.rank-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: normal;
    padding: 1px 4px;
    border-radius: 2px;
    white-space: nowrap;
}

.rank-1 {
    background: var(--up-bg);
    border: 1px solid var(--up-color);
    color: var(--up-color);
}

.rank-2 {
    background: var(--broken-bg);
    border: 1px solid var(--broken-color);
    color: var(--broken-color);
}

.rank-3 {
    background: var(--bg-app);
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

.rank-n {
    color: var(--text-muted);
    font-size: 10px;
}

.td-time {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.td-time.yizi-time {
    color: var(--up-color);
    font-weight: normal;
}

.status-tag {
    display: inline-block;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    white-space: nowrap;
    border: 1px solid;
}

.status-gufeng {
    background: var(--down-bg);
    border-color: var(--down-color);
    color: var(--down-color);
}

.status-putong {
    background: var(--bg-app);
    border-color: var(--bg-border);
    color: var(--text-secondary);
}

.status-yizi {
    background: var(--up-bg);
    border-color: var(--up-color);
    color: var(--up-color);
}

.type-tag {
    display: inline-block;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    white-space: nowrap;
    border: 1px solid;
}

.type-first {
    background: var(--bg-app);
    border-color: var(--bg-border);
    color: var(--text-secondary);
}

.type-multi {
    background: var(--up-bg);
    border-color: var(--up-color);
    color: var(--up-color);
}

.type-yizi {
    background: var(--up-bg);
    border-color: var(--up-color);
    color: var(--up-color);
}

.td-reason {
    padding: 2px 3px !important;
}

.reason-plates {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 2px;
}

.reason-plate-tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    background: var(--down-bg);
    border: 1px solid var(--down-color);
    color: var(--down-color);
    white-space: nowrap;
}

.reason-text {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
    word-break: break-all;
}

.reason-text.expanded {
}

.yizi-badge {
    font-size: 8px;
    padding: 1px 2px;
    border-radius: 2px;
    background: var(--up-color);
    color: var(--bg-app);
    margin-left: 2px;
    vertical-align: middle;
}

.row-yizi {
    background: var(--bg-app) !important;
}

.row-yizi:hover {
    background: var(--bg-hover) !important;
}

.row-zb {
    opacity: 0.8;
}

.row-zb:hover {
    opacity: 1;
}

.ths-expand-btn {
    font-size: 9px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    margin-left: 4px;
    vertical-align: top;
    border: none;
    background: transparent;
}

.ths-expand-btn:hover {
    color: var(--accent);
}

.ths-reason-box {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    padding: 4px;
    background: var(--bg-panel);
    border-radius: 2px;
    line-height: 1.4;
}

.td-plate-group {
    width: 24px;
    padding: 0 !important;
    text-align: center;
    vertical-align: middle;
    border-left: 1px solid var(--bg-border);
    position: relative;
}

.plate-group-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 24px;
    gap: 2px;
    padding: 2px;
    cursor: pointer;
    border-radius: 2px;
    transition: background .1s;
}

.plate-group-label:hover {
    background: var(--bg-hover);
}

.plate-group-label .pg-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 10px;
    font-weight: normal;
    letter-spacing: 0;
    white-space: nowrap;
    line-height: 1;
    color: var(--text-secondary);
}

.plate-group-label .pg-cnt {
    font-size: 9px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    white-space: nowrap;
}

.td-plate-group-solo {
    width: 24px;
    padding: 0 !important;
    border-left: 1px solid var(--bg-border);
}

.pg-c0 {
    border-left: 2px solid var(--up-color);
}

.pg-c0 .pg-name {
    color: var(--up-color);
}

.pg-c1 {
    border-left: 2px solid var(--broken-color);
}

.pg-c1 .pg-name {
    color: var(--broken-color);
}

.pg-c2 {
    border-left: 2px solid var(--down-color);
}

.pg-c2 .pg-name {
    color: var(--down-color);
}

.pg-c3 {
    border-left: 2px solid var(--accent);
}

.pg-c3 .pg-name {
    color: var(--accent);
}

.pg-c4 {
    border-left: 2px solid var(--text-secondary);
}

.pg-c4 .pg-name {
    color: var(--text-secondary);
}

.pg-c5 {
    border-left: 2px solid var(--up-color);
}

.pg-c5 .pg-name {
    color: var(--up-color);
}

.pg-c6 {
    border-left: 2px solid var(--broken-color);
}

.pg-c6 .pg-name {
    color: var(--broken-color);
}

.pg-c7 {
    border-left: 2px solid var(--down-color);
}

.pg-c7 .pg-name {
    color: var(--down-color);
}

.pg-c8 {
    border-left: 2px solid var(--accent);
}

.pg-c8 .pg-name {
    color: var(--accent);
}

.pg-c9 {
    border-left: 2px solid var(--text-secondary);
}

.pg-c9 .pg-name {
    color: var(--text-secondary);
}

.pg-c10 {
    border-left: 2px solid var(--up-color);
}

.pg-c10 .pg-name {
    color: var(--up-color);
}

.pg-c11 {
    border-left: 2px solid var(--broken-color);
}

.pg-c11 .pg-name {
    color: var(--broken-color);
}

/* ===== ws3 右栏: 龙虎榜/图表/回撤/统计/权重 ===== */
.ws-sub-title {
    padding: 4px 8px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    font-weight: bold;
}

.lhb-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--bg-border);
    flex-shrink: 0;
}

.lhb-tab {
    flex: 1;
    padding: 4px 0;
    text-align: center;
    font-size: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all .1s;
}

.lhb-tab:hover {
    color: var(--text-primary);
}

.lhb-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.lhb-body {
    flex: 1;
    overflow-y: auto;
}

.lhb-panel {
    display: none;
}

.lhb-panel.active {
    display: block;
}

.lhb-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
}

.lhb-stock {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    transition: background .1s;
    cursor: pointer;
}

.lhb-stock:hover {
    background: var(--bg-hover);
}

.lhb-stock.expanded {
    background: var(--bg-hover);
    border-bottom: none;
}

.lhb-s-rank {
    width: 16px;
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: center;
    font-family: Arial,sans-serif;
}

.lhb-s-rank.top3 {
    color: var(--broken-color);
    font-weight: 700;
}

.lhb-s-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.lhb-s-name {
    font-size: 11px;
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.lhb-s-code {
    font-size: 9px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
}

.lhb-s-reason {
    font-size: 8px;
    color: var(--text-muted);
    margin-left: 4px;
}

.lhb-s-chg {
    width: 42px;
    text-align: right;
    font-size: 11px;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    flex-shrink: 0;
}

.lhb-s-buy {
    width: 50px;
    text-align: right;
    font-size: 10px;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.lhb-s-arrow {
    width: 12px;
    text-align: center;
    font-size: 8px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .15s;
}

.lhb-stock.expanded .lhb-s-arrow {
    transform: rotate(90deg);
}

.lhb-detail {
    display: none;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--bg-border);
    padding: 2px 4px 4px 20px;
}

.lhb-detail.show {
    display: block;
}

.lhb-detail-label {
    font-size: 9px;
    color: var(--text-muted);
    padding: 2px 0 1px;
    font-weight: 700;
}

.lhb-detail-seat {
    display: flex;
    align-items: center;
    padding: 1px 0;
    font-size: 10px;
}

.lhb-detail-sname {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.lhb-detail-youzi {
    font-size: 8px;
    color: #D9A400;
    margin-left: 3px;
    font-weight: 700;
}

.lhb-detail-val {
    width: 48px;
    text-align: right;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.lhb-seat {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    transition: background .1s;
}

.lhb-seat:hover {
    background: var(--bg-hover);
}

.lhb-seat-rank {
    width: 16px;
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: center;
    font-family: Arial,sans-serif;
}

.lhb-seat-rank.top3 {
    color: var(--broken-color);
    font-weight: 700;
}

.lhb-seat-name {
    flex: 1;
    font-size: 10px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.lhb-seat-val {
    width: 50px;
    text-align: right;
    font-size: 10px;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.lhb-seat-net {
    width: 50px;
    text-align: right;
    font-size: 10px;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    flex-shrink: 0;
}

.lhb-agency {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    transition: background .1s;
}

.lhb-agency:hover {
    background: var(--bg-hover);
}

.lhb-ag-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.lhb-ag-name {
    font-size: 11px;
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.lhb-ag-sub {
    font-size: 9px;
    color: var(--text-muted);
}

.lhb-ag-buy {
    width: 50px;
    text-align: right;
    font-size: 10px;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    flex-shrink: 0;
}

.rf-range-btn {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    color: var(--text-muted);
    cursor: pointer;
    background: var(--bg-app);
    transition: all .1s;
}

.rf-range-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.rf-range-btn.active {
    background: var(--accent-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.sw-list {
    max-height: 200px;
    overflow-y: auto;
}

.sw-item {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    transition: background .1s;
    cursor: pointer;
}

.sw-item:hover {
    background: var(--bg-hover);
}

.sw-item .sw-rank {
    width: 16px;
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: center;
    font-family: Arial,sans-serif;
}

.sw-item .sw-rank.top3 {
    color: var(--up-color);
    font-weight: 700;
}

.sw-item .sw-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sw-item .sw-name {
    font-size: 11px;
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.sw-item .sw-code {
    font-size: 9px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
}

.sw-item .sw-pct {
    width: 52px;
    text-align: right;
    font-size: 11px;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--down-color);
}

.sw-item .sw-tag {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid var(--broken-color);
    color: var(--broken-color);
    background: var(--broken-bg);
    flex-shrink: 0;
    margin-left: 4px;
    white-space: nowrap;
}

.stat-num-area {
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sn-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--bg-border);
    background: var(--bg-app);
    font-size: 10px;
}

.sn-chip .sn-label {
    color: var(--text-muted);
    font-weight: normal;
}

.sn-chip .sn-val {
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.sn-chip.sn-up .sn-val {
    color: var(--up-color);
}

.sn-chip.sn-down .sn-val {
    color: var(--down-color);
}

.sn-chip.sn-warn .sn-val {
    color: var(--broken-color);
}

.sn-chip.sn-info .sn-val {
    color: var(--accent);
}

.weight-perf-list {
    max-height: 200px;
    overflow-y: auto;
}

.wp-item {
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
}

.wp-item .wp-rank {
    width: 16px;
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: center;
    font-family: Arial,sans-serif;
}

.wp-item .wp-rank.top3 {
    color: var(--up-color);
    font-weight: 700;
}

.wp-item .wp-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.wp-item .wp-chg {
    width: 52px;
    text-align: right;
    font-size: 11px;
    font-family: Arial,sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    flex-shrink: 0;
}

.wp-item .wp-vol {
    width: 60px;
    text-align: right;
    font-size: 10px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    flex-shrink: 0;
}

/* ===== workspace-1 盘前作战室 三栏布局 ===== */
.ws1-grid {
    display: grid;
    grid-template-columns: 25fr 33fr 42fr;
    height: 100%;
    gap: 0;
    overflow: hidden;
}

.ws1-col {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--bg-border);
}

.ws1-col:last-child {
    border-right: none;
}

.ws1-title {
    display: flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
    color: var(--text-primary);
    font-weight: bold;
    flex-shrink: 0;
    gap: 6px;
}

.ws1-title .ws1-t-sub {
    font-weight: normal;
    font-size: 10px;
    color: var(--text-muted);
    margin-left: auto;
}

/* 昨日情绪仪表盘（紧凑版） */
.emo-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 3px 8px;
    gap: 1px 8px;
    flex-shrink: 0;
    font-size: 11px;
}

.emo-compact .emo-chip {
    white-space: nowrap;
    font-family: Arial,sans-serif;
}

.emo-compact .emo-chip b {
    font-size: 13px;
    margin: 0 1px;
}

.emo-compact .emo-chip .emo-clbl {
    font-size: 9px;
    color: var(--text-muted);
}

.emo-bar-row {
    display: flex;
    align-items: center;
    padding: 1px 8px 2px;
    gap: 4px;
    font-size: 10px;
    flex-shrink: 0;
}

.emo-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-border);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.emo-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .3s;
}

/* 连板天梯（增强版） — v10.1: 限高，为下方分时图留空间 */
.ladder-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 2px 0;
    min-height: 60px;
    max-height: calc(100vh - 560px);
}

.ladder-row {
    display: flex;
    align-items: flex-start;
    padding: 3px 6px;
    border-bottom: 1px solid var(--bg-border);
    gap: 4px;
    min-height: 22px;
}

.ladder-boards {
    width: 30px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
    font-family: Arial,sans-serif;
}

.ladder-boards.top {
    color: var(--up-color);
    font-size: 14px;
}

.ladder-rate {
    font-size: 9px;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    text-align: center;
    width: 30px;
    flex-shrink: 0;
}

.ladder-rate.good {
    color: var(--down-color);
}

.ladder-rate.bad {
    color: var(--up-color);
}

.ladder-stocks {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1px 4px;
    font-size: 11px;
    min-width: 0;
}

.ladder-stk {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    cursor: pointer;
    padding: 0 1px;
}

.ladder-stk:hover {
    color: var(--accent);
}

.ladder-stk .stk-dot {
    width: 3px;
    height: 10px;
    border-radius: 1px;
    flex-shrink: 0;
}

.ladder-stk .stk-name {
    color: var(--text-primary);
}

.ladder-stk.zb .stk-name {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.ladder-stk .stk-lhb {
    font-size: 8px;
    color: #fff;
    background: var(--up-color);
    border-radius: 2px;
    padding: 0 2px;
    line-height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.ladder-stk .stk-lhb:hover {
    background: #ff1744;
}

.ladder-stk .stk-plate {
    font-size: 9px;
    color: var(--text-muted);
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 天梯断板区 */
.ladder-break {
    padding: 3px 6px;
    border-top: 1px dashed var(--bg-border);
}

.ladder-break-title {
    font-size: 10px;
    color: var(--text-muted);
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ladder-break-row {
    display: flex;
    align-items: center;
    padding: 2px 0;
    gap: 4px;
    font-size: 11px;
}

.ladder-break-lv {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: Arial,sans-serif;
    width: 36px;
    flex-shrink: 0;
}

.ladder-break-stks {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1px 4px;
}

.ladder-break-stks span {
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
}

.ladder-break-stks span:hover {
    color: var(--accent);
}

/* 龙虎榜浮层 */
.lhb-popup {
    position: fixed;
    z-index: 9999;
    background: var(--bg-panel);
    border: 1px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.6);
    padding: 12px 14px;
    min-width: 360px;
    max-width: 440px;
    font-size: 12px;
    display: none;
}

.lhb-popup-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lhb-popup-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.lhb-popup-close:hover {
    color: var(--text-primary);
}

.lhb-popup-reason {
    font-size: 11px;
    color: var(--broken-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.lhb-popup-section {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-secondary);
    margin: 8px 0 4px;
}

.lhb-popup table {
    width: 100%;
    border-collapse: collapse;
}

.lhb-popup th {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
    text-align: left;
    padding: 4px 6px;
    border-bottom: 1px solid var(--bg-border);
}

.lhb-popup th:last-child {
    text-align: right;
}

.lhb-popup td {
    font-size: 11px;
    padding: 4px 6px;
    border-bottom: 1px solid var(--bg-border);
}

.lhb-popup td:last-child {
    text-align: right;
    font-family: Arial,sans-serif;
}

.lhb-popup .lhb-buy {
    color: var(--up-color);
}

.lhb-popup .lhb-sell {
    color: var(--down-color);
}

.lhb-popup .lhb-youzi {
    font-size: 9px;
    color: #fff;
    background: #e65100;
    border-radius: 2px;
    padding: 0 3px;
    margin-left: 3px;
}

/* 强势板块Top5 */
.sector-top-wrap {
    flex-shrink: 0;
    max-height: 140px;
    overflow-y: auto;
}

/* 资金分时走向 */
.ws1-flow-wrap {
    flex: 1;
    min-height: 140px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ws1-flow-chart {
    width: 100%;
    height: 140px;
    flex: 1;
}

.sector-top-row {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    border-bottom: 1px solid var(--bg-border);
    font-size: 11px;
    gap: 4px;
    cursor: pointer;
}

.sector-top-row:hover {
    background: var(--bg-hover);
}

.sector-top-row .st-rank {
    width: 16px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
    font-family: Arial,sans-serif;
}

.sector-top-row .st-rank.top3 {
    color: var(--up-color);
    font-weight: bold;
}

.sector-top-row .st-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.sector-top-row .st-val {
    width: 48px;
    text-align: right;
    font-family: Arial,sans-serif;
    font-size: 10px;
    flex-shrink: 0;
}

/* 明天炒什么 */
.tmr-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

.tmr-item {
    padding: 6px 10px;
    border-bottom: 1px solid var(--bg-border);
    cursor: pointer;
}

.tmr-item:hover {
    background: var(--bg-hover);
}

.tmr-title {
    font-size: 11px;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tmr-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: 10px;
    color: var(--text-muted);
}

.tmr-hot {
    color: var(--broken-color);
}

/* 历史天梯嵌入版 */
#ws1-lh-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#ws1-lh-table th {
    background: var(--bg-panel);
    color: var(--text-muted);
    font-size: 9px;
    padding: 2px 1px;
    border: 1px solid var(--bg-border);
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: center;
}

#ws1-lh-table td {
    border: 1px solid var(--bg-border);
    vertical-align: middle;
    padding: 2px 1px;
    font-size: 0;
}

#ws1-lh-table td.lh-rh {
    background: var(--bg-panel);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    width: 32px;
    position: sticky;
    left: 0;
    z-index: 1;
}

.lh-p {
    display: inline-block;
    padding: 1px 4px;
    margin: 1px;
    border-radius: 3px;
    font-size: 9px;
    white-space: nowrap;
    cursor: default;
    line-height: 1.4;
}

.lh-pf {
    background: #1c2333;
    color: #8b949e;
    font-size: 9px;
}

/* 题材热点Top3 */
.theme-top-wrap {
    flex-shrink: 0;
}

.theme-top-item {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    border-bottom: 1px solid var(--bg-border);
    gap: 6px;
}

.theme-top-rank {
    width: 18px;
    font-size: 14px;
    text-align: center;
    flex-shrink: 0;
}

.theme-top-info {
    flex: 1;
    min-width: 0;
}

.theme-top-name {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: bold;
}

.theme-top-desc {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 同花顺热榜样式（浏览器自动均匀分配列宽） */
.th-tab-bar .th-tab {
    padding: 3px 6px;
    font-size: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.th-tab-bar .th-tab:hover {
    color: var(--text-primary);
}

.th-tab-bar .th-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: bold;
}

.th-table {
    border-collapse: collapse;
    font-size: 11px;
    width: 100%;
}

.th-hdr {
    background: var(--bg-panel);
    color: var(--text-muted);
    font-size: 10px;
}

.th-hdr td {
    position: sticky;
    top: 0;
    background: var(--bg-panel);
    z-index: 1;
}

.th-row:hover {
    background: var(--bg-hover);
}

.th-row {
    cursor: default;
}

.th-table td {
    padding: 2px 6px;
    border-bottom: 1px solid var(--bg-border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    height: 22px;
}

.th-cf {
    width: 16px;
    text-align: center;
    padding: 2px 2px;
}

.th-fav-col {
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.th-fav-col:hover {
    color: var(--accent) !important;
}

.th-fav-col.fav-active {
    color: var(--accent) !important;
}

.th-c0 {
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    font-family: Arial,sans-serif;
    font-size: 10px;
    padding: 2px 2px;
}

.th-c0.top1 {
    color: var(--up-color);
    font-weight: bold;
    font-size: 12px;
}

.th-c0.top2 {
    color: var(--broken-color);
    font-weight: bold;
}

.th-c0.top3 {
    color: var(--accent);
    font-weight: bold;
}

.th-c1 {
    color: var(--text-primary);
    cursor: pointer;
    font-size: 11px;
}

.th-c1:hover {
    color: var(--accent);
}

.th-c2 {
    color: var(--text-secondary);
    font-size: 9px;
}

.th-c3 {
    text-align: right;
    color: var(--broken-color);
    font-family: Arial,sans-serif;
    font-size: 10px;
}

.th-c4 {
    text-align: right;
    font-family: Arial,sans-serif;
    font-size: 10px;
}

.th-c4.up {
    color: var(--up-color);
}

.th-c4.dn {
    color: var(--down-color);
}

.th-c4.flat {
    color: var(--text-muted);
}

.th-pop-tag {
    font-size: 9px;
    color: var(--broken-color);
    border: 1px solid var(--broken-color);
    border-radius: 2px;
    padding: 0 2px;
    margin-right: 3px;
}
/* CSS Document */

