/* 股票选股页面样式 */
#header{
    background: #fff !important;
}
.wrap-white{
    background: #fafafa !important;
}
/* 整体容器 */
.stock-selection-container {
    display: flex;
    margin-top: 20px;
    border-radius:5px;
    min-height: 600px;
    gap: 20px;
}

/* 右侧内容 */
.right-content {
    flex: 1;
    background: #fff;
    border-radius: 0 5px 5px 0;
    display: flex;
    flex-direction: column;
    width: 1180px;
    min-height: 0;
}

.content-header {
    background: #7f75fffa;
    border-radius: 4px;
    padding: 15px 20px;
    color: #fff;
    flex-shrink: 0;
    width: 1180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.header-desc {
    font-size: 13px;
    opacity: 0.9;
}

.content-header .update-time {
    padding: 0;
    border-top: none;
    margin-top: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}
.update-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.export-btn {
    padding: 5px 14px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}
.export-btn:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.6);
}
.frequency-select {
    padding: 5px 8px;
    font-size: 13px;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    outline: none;
}
.frequency-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.frequency-select option {
    color: #333;
    background: #fff;
}
/* 左侧导航样式 */
.left-nav {
    width: 200px;
    background: #fff;
    border-radius: 5px 0 0 5px;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 69.99px;
    height: fit-content;
    align-self: flex-start;
}

.nav-title {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
}

.nav-menu {
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f8f8f8;
    color: #f34e4d;
}

.nav-item.active {
    background: linear-gradient(to right, #f9e2e2, #fff);
    color: #f34e4d;
    border-left: 3px solid #f34e4d;
    font-weight: bold;
}

.nav-item.active .nav-icon {
    color: #f34e4d;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
    color: #999;
}

.nav-text {
    font-size: 15px;
}

.vip-tag {
    background: #ffebee;
    color: #e53935;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: bold;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-group-title .vip-tag {
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 6px;
}

/* 右侧主体内容 */
.right-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 股票列表 */
.stock-list {
    background: #fff;
    border-radius: 4px;
    overflow: auto;
    flex: 1 1 0;
    height: 0;
    position: relative;
    cursor: grab;
    user-select: none;
}

/* 隐藏滚动条 */
.stock-list::-webkit-scrollbar {
    display: none;
}

.stock-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.stock-header {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
    min-width: 2500px !important;
    cursor: default;
    position: sticky;
    top: 0;
    z-index: 100;
}

.stock-body {
    /*max-height: 600px;*/
    /*overflow-y: auto;*/
    min-width: 2500px !important;
}

.stock-row {
    display: flex;
    border-bottom: 1px solid #f5f5f5;
    min-width: 1180px;
    align-items: stretch;
}

/* 固定列样式 */
.fixed-col-1 {
    position: sticky;
    left: 0;
    z-index: 50;
    background: #fff;
}

.stock-header .fixed-col-1 {
    background: #fff;
    z-index: 110;
}

.fixed-col-2 {
    position: sticky;
    left: 50px;
    z-index: 50;
    background: #fff;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
}

.stock-header .fixed-col-2 {
    background: #fff;
    z-index: 110;
}

.stock-row:hover .fixed-col-1,
.stock-row:hover .fixed-col-2 {
    background: #fafafa;
}

.stock-row:hover {
    background: #fafafa;
}

.stock-cell {
    padding: 15px 8px;
    font-size: 14px;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-header .stock-cell {
    font-weight: bold;
}

/* 可排序的表头 */
.stock-header .stock-cell.sortable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stock-header .stock-cell.tech-col {
    color: #6c758c;
}

.stock-header .stock-cell.sortable:hover {
    background: #f34e4d;
    color: #fff;
}

.stock-header .stock-cell.sortable.active {
    background: #f34e4d;
    color: #fff !important;
}

.sort-icon {
    margin-left: 3px;
    font-size: 12px;
}

/* 排序三角形箭头 */
.sort-arrow {
    display: block;
    text-align: center;
    font-size: 10px;
    line-height: 1;
    margin-top: 2px;
    color: #fff;
}

.sort-arrow.sort-arrow-default {
    color: #999;
}

.stock-code, .stock-name {
    color: #3b5998;
    text-decoration: none;
}

/* 股票名称单元格 */
.stock-name-cell {
    flex-direction: column;
    align-items: center !important;
    cursor: pointer;
}

.stock-name-cell:hover {
    color: inherit;
}

.stock-name-cell .stock-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.stock-name-cell .stock-code {
    font-size: 12px;
    color: #999;
}

.stock-name-cell .stock-code:hover {
    color: #999;
}

/* 涨跌颜色 */
.text-red {
    color: #f34e4d !important;
}

.text-green {
    color: #14a871 !important;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .left-nav {
        width: 180px;
    }

    .nav-text {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .stock-selection-container {
        flex-direction: column;
    }

    .left-nav {
        width: 100%;
        border-radius: 5px 5px 0 0;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }

    .nav-item {
        width: 50%;
        padding: 17px 15px;
    }

    .right-content {
        border-radius: 0 0 5px 5px;
    }

    .stock-list {
        overflow-x: auto;
    }

    .stock-header,
    .stock-row {
        min-width: 800px;
    }
}

/* 技术选股子标签栏 */
.tsc-sub-tabs {
    display: flex;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tsc-sub-tab {
    padding: 12px 20px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}

.tsc-sub-tab:hover {
    color: #f34e4d;
}

.tsc-sub-tab.active {
    color: #f34e4d;
    font-weight: bold;
}

.tsc-sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f34e4d;
    border-radius: 2px;
}

/* 导航分隔线 */
.nav-divider {
    height: 1px;
    background: #eee;
    margin: 10px 15px;
}

/* 我的策略分组标题 - 与通用策略标题保持一致 */
.nav-group-title {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.nav-group-title:hover {
    color: #f34e4d;
}

/* 我的策略列表 */
.my-strategies-list {
    padding-left: 18px;
}

.my-strategy-item {
    justify-content: space-between;
}

.my-strategy-item .nav-text {
    flex: 1;
}

/* 策略操作按钮 */
.strategy-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.my-strategy-item:hover .strategy-actions {
    opacity: 1;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f0f0f0;
}

.edit-btn svg {
    stroke: #666;
}

.edit-btn:hover svg {
    stroke: #3b5998;
}

.delete-btn svg {
    stroke: #666;
}

.delete-btn:hover svg {
    stroke: #f34e4d;
}

.create-strategy-btn {
    margin: 5px 10px;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

.create-strategy-btn:hover {
    border-color: #f34e4d;
    background: #fff5f5;
}

/* 技术选股子类型按钮栏 */
.tsc-type-buttons {
    display: flex;
    padding: 12px 20px;
    background: #fff;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.tsc-type-buttons a {
    padding: 5px 15px;
    font-size: 13px;
    color: #999;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.tsc-type-buttons a:hover {
    color: #f34e4d;
}

.tsc-type-buttons a.current {
    color: #fff;
    background: #f34e4d;
}

/* Tab切换组件 */
.tab-container {
    display: flex;
    padding: 0 20px;
    margin-bottom: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    gap: 0;
    flex-shrink: 0;
}
.tab-item {
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}
.tab-item:hover {
    color: #f34e4d;
}
.tab-item.active {
    color: #f34e4d;
    font-weight: bold;
}
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f34e4d;
    border-radius: 2px;
}

/* 历史记录 */
.history-container {
    padding: 20px;
    background: #fff;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.history-date-group {
    margin-bottom: 24px;
}
.history-date-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding-left: 12px;
    border-left: 4px solid #f34e4d;
    margin-bottom: 16px;
}
.history-section-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.history-added-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.history-added-card {
    background: #F5F7FB;
    border-radius: 8px;
    padding: 10px 14px;
    width: 132px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.history-added-card:hover {
    background: #eef0f5;
}
.added-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
.added-info {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 18px;
}
.added-code {
    color: #999;
    font-size: 12px;
}
.market-tag {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #fff;
}
.market-tag.hu { background: #f34e4d; }
.market-tag.shen { background: #6A8BFF; }
.history-removed-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.history-removed-card {
    background: #F5F7FB;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 290px;
}
.removed-left {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.removed-left:hover .removed-name {
    color: #3b5998;
}
.removed-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
.removed-code {
    color: #999;
    font-size: 12px;
}
.removed-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.removed-change {
    font-weight: bold;
    font-size: 14px;
}
.removed-days {
    color: #999;
    font-size: 13px;
}
.removed-reason {
    display: inline-block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    width: 80%;
    box-sizing: border-box;
    margin-left: 19px;
    text-align: center;
}
.history-empty-day {
    color: #999;
    font-size: 14px;
    padding: 10px 0;
}
.history-no-data {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 50px 0;
}

/* 策略创建/编辑抽屉 */
.strategy-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.strategy-drawer {
    width: 700px;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.drawer-close {
    cursor: pointer;
    padding: 5px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.drawer-close:hover {
    opacity: 1;
}

.drawer-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* 步骤指示器 */
.steps-indicator {
    display: flex;
    margin-bottom: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px;
}

.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 6px;
    color: #999;
    font-size: 14px;
    transition: all 0.3s;
}

.step-item.active {
    background: #fff;
    color: #f34e4d;
    font-weight: bold;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    font-size: 12px;
    margin-right: 8px;
}

.step-text {
    display: inline-block;
}

.step-content {
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 条件构建器 */
.condition-builder {
    margin-top: 10px;
}

.condition-select-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.select-group label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.select-group select,
.select-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 120px;
    background: #fff;
}

.select-group input {
    min-width: 100px;
}

.select-group select:focus,
.select-group input:focus {
    border-color: #f34e4d;
    outline: none;
}

.btn-group {
    display: flex;
}

.add-btn {
    padding: 8px 20px;
    background: #f34e4d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.add-btn:hover:not(:disabled) {
    background: #e03e3d;
}

.add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.condition-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
}

.condition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 180px;
    overflow-y: auto;
    padding-bottom: 50px;
}

.condition-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f0f4ff;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #dce4f2;
}

.condition-tag:hover {
    border-color: #3b5998;
}

.cond-label {
    color: #333;
    font-weight: 500;
}

.cond-op {
    color: #f34e4d;
}

.cond-value {
    color: #3b5998;
    font-weight: 500;
}

.cond-stat {
    color: #888;
}

.cond-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(243, 78, 77, 0.1);
    color: #f34e4d;
    font-size: 14px;
    line-height: 1;
    margin-left: 4px;
}

.cond-delete:hover {
    background: #f34e4d;
    color: #fff;
}

.condition-empty {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 2px dashed #eee;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #f34e4d;
    outline: none;
}

.hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    margin-bottom: 0;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* 抽屉底部按钮 */
.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafafa;
}

.drawer-footer .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-back {
    background: #fff;
    color: #666;
    border: 1px solid #ddd !important;
}

.btn-back:hover {
    background: #f5f5f5;
}

.btn-next, .btn-save {
    background: #f34e4d;
    color: #fff;
}

.btn-next:hover:not(:disabled), .btn-save:hover:not(:disabled) {
    background: #e03e3d;
}

.btn-next:disabled, .btn-save:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-next.blocked {
    background: #fde2e2 !important;
    color: #f56c6c !important;
    cursor: not-allowed !important;
}

.btn-next.blocked:hover {
    background: #fde2e2 !important;
}

/* 删除确认弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 400px;
    max-width: 90vw;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.btn-confirm {
    background: #f34e4d;
    color: #fff;
}

.btn-confirm:hover {
    background: #e03e3d;
}

/* ========== 新条件构建器：指标按钮网格 ========== */
.condition-builder-new {
    margin-top: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.indicator-categories {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-top: 16px;
    margin-bottom: 0;
    overscroll-behavior: auto;
    scroll-behavior: smooth;
}

.indicator-category {
    margin-bottom: 20px;
}

.indicator-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    padding-left: 4px;
    border-left: 3px solid #f34e4d;
}

.indicator-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.indicator-btn {
    padding: 8px 12px;
    font-size: 13px;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    line-height: 1.4;
}

.indicator-btn:hover {
    border-color: #f34e4d;
    background: #fff5f5;
    color: #f34e4d;
}

.indicator-btn.selected {
    border-color: #f34e4d;
    background: #f34e4d;
    color: #fff;
}

.cond-count {
    color: #3b5998;
    font-weight: 500;
}

/* ========== 范围选择弹窗 ========== */
.range-select-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.range-select-modal {
    width: 500px;
    max-width: 90vw;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.range-select-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-select-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.range-select-close {
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.range-select-close:hover {
    opacity: 1;
}

.range-select-body {
    padding: 24px;
}

.indicator-desc {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.desc-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.desc-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.desc-unit {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.stat-select {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-select label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.stat-select select {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.range-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.range-input-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-input-item label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.range-input-item input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.range-input-item input:focus {
    border-color: #f34e4d;
    outline: none;
}

/* 双滑块 */
.slider-container {
    margin-bottom: 24px;
}

.slider-track {
    position: relative;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    cursor: pointer;
}

.slider-filled {
    position: absolute;
    top: 0;
    height: 100%;
    background: #f34e4d;
    border-radius: 3px;
}

.slider-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #f34e4d;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.slider-handle:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.slider-handle:active {
    cursor: grabbing;
}

.range-preview {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.count-display {
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 8px;
}

.count-display strong {
    color: #f34e4d;
    font-size: 16px;
}

.range-select-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafafa;
}

.range-select-footer .btn {
    padding: 8px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

/* ========== 响应式 ========== */
@media screen and (max-width: 576px) {
    .indicator-buttons {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .range-inputs {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========== 查看更多按钮 ========== */
.show-more-btn {
    color: #09ebc3;
    cursor: pointer;
    margin-left: 8px;
    font-weight: 500;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* ========== 策略描述弹窗 ========== */
.desc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.desc-modal {
    width: 500px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.desc-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desc-modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.desc-modal-close {
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.desc-modal-close:hover {
    opacity: 1;
}

.desc-modal-body {
    padding: 24px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    max-height: 60vh;
    overflow-y: auto;
}

/* ========== 已选条件按钮 ========== */
.btn-cond-list {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
    margin-right: 10px;
}

.btn-cond-list:hover {
    background: #fde2e2;
}

/* ========== 已选条件弹窗 ========== */
.condition-list-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.condition-list-modal {
    width: 560px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.condition-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.condition-modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.condition-modal-close {
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.condition-modal-close:hover {
    opacity: 1;
}

.condition-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    min-height: 100px;
}

.condition-list-popup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.condition-tag-popup {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 16px;
    background: #f5f7fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.condition-tag-popup:hover {
    background: #eef1f5;
}

.condition-tag-popup .cond-label {
    font-weight: 500;
    color: #333;
}

.condition-tag-popup .cond-stat {
    color: #666;
    font-size: 13px;
}

.condition-tag-popup .cond-op {
    color: #999;
}

.condition-tag-popup .cond-value {
    color: #3b5998;
    font-weight: 500;
}

.condition-tag-popup .cond-delete {
    margin-left: auto;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff4d4f;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.condition-tag-popup .cond-delete:hover {
    opacity: 1;
}

.condition-empty-popup {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* TSC 字段级过滤器（技术选股自定义策略） */
.tsc-field-filters { max-height: 360px; overflow-y: auto; }
.tsc-field-item { padding: 10px 0; border-bottom: 1px solid #eee; }
.tsc-field-item:last-child { border-bottom: none; }
.tsc-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #333; }
.tsc-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.tsc-range-inline { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-left: 24px; }
.tsc-range-inline .range-input-item { flex: 1; }
.tsc-range-inline .range-input-item input { width: 100%; padding: 4px 8px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; }
.tsc-range-inline .range-sep { color: #999; flex-shrink: 0; }