/*竞价强度按钮*/
.action-button-container {
    text-align: right;
    margin-top: 15px;
}

.competition-btn {
    position: fixed;
    /* 内部定位（可按需调整）：比如父级右下角 */
    right: 480px;    /* 距离 DVhasBuy 右侧20px */
    bottom: 200px;   /* 距离 DVhasBuy 底部20px */
    /* 保证按钮在父级内部最上层（避免被父级内其他元素遮挡） */
    z-index: 1000;
    background: linear-gradient(to right, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.competition-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.4);
}

.competition-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
}

/*----------------------------------------------------竞价强度弹窗-----------------------------------------------------*/

.biddingWindow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* 防止弹窗内滚动影响底层页面 */
    overflow: hidden;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 900px;
    height: 640px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* 关键：设置为flex布局，固定header高度，body自动填充剩余空间 */
    display: flex;
    flex-direction: column;
    /* 防止内容溢出弹窗 */
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #dcdfe6;
    padding: 0 20px;
    position: relative;
    flex-shrink: 0;
    height: 48px;

}

.nav-tabs {
    display: flex;
    gap: 20px;
    /* 标签栏横向滚动优化 */
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    /* 隐藏横向滚动条但保留滚动功能 */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 隐藏Chrome/Safari横向滚动条 */
.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 15px 10px;
    cursor: pointer;
    color: #666;
    position: relative;
    font-size: 14px;
    /* 防止标签换行 */
    white-space: nowrap;
}

.nav-item.active {
    color: #333;
    font-weight: bold;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2e9bf4;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    /* 提升层级，避免被标签栏遮挡 */
    z-index: 10;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    position: relative;
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c0c4cc #f5f7fa;
    padding-right: 12px;
}

/* Chrome/Safari滚动条美化 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

.update-time {
    font-size: 15px;
    margin-bottom: 15px;
}

.form-section {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.radio-label, .checkbox-label {
    margin-right: 20px;
    cursor: pointer;
    font-size: 15px;
}

.search-box {
    position: relative;
    width: 320px;
    margin-left: 10px;
    flex-shrink: 0;
    z-index: 20;

}

.search-input {
    width: 320px;
    height: 33px;
    padding-left: 30px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;

}

.search-input:focus {
    border-color: #2e9bf4;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-results {
    position: absolute;
    top: 48px;
    left: 0;
    width: 320px;
    background: white;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    /* 搜索结果最大高度+滚动 */
    max-height: 200px;
    overflow-y: auto;
}

.search-results.show {
    display: block;
}

.result-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f5f7fa;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 15px;
    color: #333;
}

.cards-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    /* 防止卡片容器溢出 */
    overflow: visible;
}

.card {
    flex: 1;
    padding: 12px 16px 10px;
    background: linear-gradient(180deg, #F2F8FF, #FFFFFF);
    border-radius: 10px;
    border: 1px solid #EDEDED;
}

.card-header {
    display: block;
    position: relative;
    height: 40px;
    margin-bottom: 15px;
    line-height: 40px;
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: inline-block;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-tag.center-tag {
    position: absolute;
    left: 35%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
}

.submit-status {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 2;
}

.status-tag {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.header-right {
    flex: 1;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.status-gray {
    color: #909399;
}

.status-blue {
    color: #409eff;
}

.status-red {
    color: #f56c6c;
}

.main-strength {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    text-align: center;
}

.strength-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
}

.label {
    font-size: 15px;
}

.sub-strengths {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    text-align: center;
}

.sub-item {
    flex: 1;
}

.card-details {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.btn-delete {
    width: 80px;
    text-decoration: underline;
    padding: 6px;
    background: white;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 0 auto;
    flex-shrink: 0;

}

.btn-delete:hover {
    color: #4793f1;

}

.modal-footer {
    bottom: 0;
    right: 0;
    position: absolute;
    text-align: right;
    padding: 15px;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 20px;

}

.btn {
    padding: 5px 38px;
    border-radius: 28px;
    font-size: 18px;

}

.btn-outline {
    border: 1px solid #4793f1;
    cursor: pointer;
    background: #fff;
    color: #4793f1;
    margin-right: 30px;
}

.btn-outline:hover {
    border-color: #2e9bf4;
    color: #2e9bf4;
}

.btn-primary {
    background: #4793f1;
    color: white;
    border: 1px solid #4793f1;
}

.btn-primary:hover {
    background: #1b85d6;
}

btn:disabled,
.btn.disabled {
    background-color: #f5f7fa !important;
    color: #c0c4cc !important;
    border-color: #e4e7ed !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    box-shadow: none !important;
}

.btn-outline:disabled:hover,
.btn-outline.disabled:hover {
    border-color: #e4e7ed !important;
    color: #c0c4cc !important;
    background-color: #f5f7fa !important;
}

.btn-primary:disabled:hover,
.btn-primary.disabled:hover {
    background-color: #f5f7fa !important;
    color: #c0c4cc !important;
    border-color: #e4e7ed !important;
}

.text-red {
    color: #f56c6c;
}

.text-blue {
    color: #409eff;
}

/*--------------------------------------------------------板块详情-----------------------------------------------------*/
.bidding-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
    font-size: 14px;
    color: #606266;
}

.bidding-detail-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.bidding-detail-label {
    color: #606266;
}

.bidding-detail-value {
    color: #303133;
    font-weight: 500;
}

.bidding-detail-arrow {
    font-size: 10px;
    color: #409eff;
    margin-left: 2px;
}

.bidding-detail-btn-reset {
    padding: 5px 15px;
    font-size: 13px;
    color: #606266;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.bidding-detail-btn-reset:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background-color: #ecf5ff;
}

.bidding-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #606266;
    /* 表格超出时横向滚动 */
    display: block;
    overflow-x: auto;
    margin-bottom: 15px;
}

.bidding-detail-table th {
    text-align: left;
    padding: 12px 10px;
    color: #909399;
    font-weight: normal;
    border-bottom: 1px solid #ebeef5;
    background-color: #fff;
    /* 固定表头 */
    white-space: nowrap;
}

.bidding-detail-table td {
    padding: 16px 10px;
    border-bottom: 1px solid #f2f6fc;
    vertical-align: middle;
    white-space: nowrap;
}

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

.bidding-detail-table tr:hover {
    background-color: #f5f7fa;
}

.bidding-detail-stock-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bidding-detail-stock-name {
    font-weight: bold;
    color: #303133;
    font-size: 14px;
}

.bidding-detail-stock-code {
    font-size: 12px;
    color: #909399;
}

.bidding-detail-text-red {
    color: #f56c6c !important;
    font-weight: 500;
}

.bidding-detail-text-green {
    color: #67c23a !important;
    font-weight: 500;
}

/*--------------------------------------------------------历史记录-----------------------------------------------------*/
.bidding-history-record {
    width: 100%;
    display: block;
    padding-bottom: 8px;

}

.bidding-history-record:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bidding-history-record-header {
    display: flex;
    position: relative;
    gap: 40px;
    font-size: 14px;
    color: #606266;
    border-bottom: 1px solid #eee;

}

.bidding-history-info-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    padding-bottom: 8px;

}




.bidding-history-empty-card {
    width: calc(50% - 10px);
    max-width: 485px;
    height: 20px;
    justify-content: center;
    align-items: center;
    color: #909399;
    font-size: 14px;
}





/*--------------------------------------------------------竞价强度-----------------------------------------------------*/
.bidding-show-container * {
    box-sizing: border-box;
}

.bidding-show-record {
    width: 100%;
    display: block;
    padding-bottom: 8px;
}

.bidding-show-record:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bidding-show-info-bar {
    display: flex;
    position: relative;
    gap: 40px;
    font-size: 14px;
    color: #606266;
    border-bottom: 1px solid #eee;
}


.bidding-show-collapse-btn:hover {
    color: #40a9ff;
}

.collapse-icon {
    margin-right: 4px;
    display: inline-block;
}

.bidding-show-market-group {
    padding-left: 120px;
}

.bidding-show-date-group, .bidding-show-market-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    padding-bottom: 8px;
}

.bidding-show-cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
    padding: 10px;
    transition: all 0.3s ease;
}


.bidding-show-card {
    width: calc(50% - 10px);
    max-width: 475px;
    height: 180px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background: #ffffff;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    flex-grow: 0;
}

.bidding-show-card-title {
    font-size: 16px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 15px;
}

.bidding-show-stats-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex: 1;
    align-items: center;
}

.bidding-show-stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bidding-show-value {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 6px;
}

.bidding-show-value.red {
    color: #f56c6c;
}

.bidding-show-value.blue {
    color: #409eff;
}

.bidding-show-stat-label {
    font-size: 13px;
    color: #606266;
    line-height: 1.4;
}

.bidding-show-stat-label strong {
    font-weight: bold;
    color: #303133;
    margin-right: 4px;
}

.bidding-show-advice {
    font-size: 13px;
    color: #606266;
    line-height: 1.6;
    border-top: 1px dashed #ebeef5;
    padding-top: 10px;
}

.bidding-show-advice p {
    margin: 0;
}

.bidding-show-advice span {
    font-weight: bold;
    color: #303133;
    margin-right: 4px;
}

.bidding-show-empty-card {
    width: calc(50% - 10px);
    max-width: 475px;
    height: 40px;
    padding: 15px 20px;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    background-color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #909399;
    font-size: 14px;
    flex-shrink: 0;
    flex-grow: 0;
}

/* 空数据提示 */
.bidding-show-empty-record, .bidding-show-empty-card {
    text-align: center;
    padding: 50px 0;
    color: #909399;
    font-size: 14px;
}
/* 分页按钮禁用样式 */
.page-btn:disabled {
    cursor: not-allowed;
    background: #f5f7fa;
    color: #c0c4cc;
    border: 1px solid #e5e6eb;
}
.bidding-detail-input {
    padding: 4px 8px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 28px;
    box-sizing: border-box;
}
.bidding-detail-btn-search {
    padding: 4px 12px;
    margin-left: 8px;
    background: #409eff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.bidding-detail-btn-reset {
    padding: 4px 12px;
    background: #f56c6c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
.status-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 15px;
    margin-bottom: 20px;

}

tr:nth-child(even) {
    background: #f8f8f8;
}


.status-table th, .status-table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    text-align: left;
}
.status-table th {
    background-color: #f6faff;
    font-weight: normal;
    color: #333;

}

/* 策略表格样式 */
.strategy-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 14px;
}
.strategy-table th, .strategy-table td {
    border: 1px solid #eee;
    padding: 12px 10px;
    text-align: left;
}
.strategy-table th {
    background-color: #f6faff;
    font-weight: normal;
    color: #333;

}

/* 强度等级颜色 */
.level-hot {
    color: #ff4d4f;
    font-weight: bold;
    font-size: 20px;

}
.level-warm {
    color: #fa8c16;
    font-weight: bold;
    font-size: 20px;

}
.level-normal {
    color: #333;
    font-weight: bold;
    font-size: 20px;

}
.level-poor {
    color: #4080ff;
    font-weight: bold;
    font-size: 20px;

}
.level-very-poor {
    color: #2f54eb;
    font-weight: bold;
    font-size: 20px;

}

/* 子描述文本 */
.sub-desc { color: #666; font-size: 14px; margin-top: 4px; }

.bidding-show-collapse-btn {
    cursor: pointer;
    position: absolute;
    right: 10px;
    color: #999;
    font-size: 14px;
    margin-left: 15px;
    align-items: center;
}

/* 历史数据展开收起按钮样式 */
.bidding-history-collapse-btn {
    cursor: pointer;
    position: absolute;
    right: 10px;
    color: #999;
    font-size: 14px;
    margin-left: 15px;
    align-items: center;

}
.bidding-history-collapse-btn:hover {
    color: #40a9ff;
}

/*--------------------------------------------------------竞价强度卡片-----------------------------------------------------*/
:root {
    --blue: #1f80ff;
    --text: #222;
    --muted: #7c7c7c;
    --line: #e5e5e5;
    --bg: #f5f5f5;
    --danger: #ff2d2d;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: #666;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
}
.modal {
    width: 910px;
    margin: 8px auto;
    background: #fff;
    border-radius: 10px;
    padding: 18px 24px 22px;
    position: relative;
}
.close {
    position: absolute;
    right: 22px;
    top: 12px;
    font-size: 38px;
    line-height: 1;
    color: #222;
    cursor: pointer;
}
.tabs {
    display: flex;
    gap: 42px;
    font-size: 36px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-right: 54px;
}
.tab.active {
    color: #222;
    border-bottom: 6px solid #4f95ff;
    padding-bottom: 8px;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 34px;
    font-weight: 600;
}
.left-filters > div { margin-bottom: 14px; }
.radio {
    display: inline-flex;
    align-items: center;
    margin-right: 22px;
    font-weight: 500;
    color: #444;
}
.dot {
    width: 22px;
    height: 22px;
    border: 2px solid #aaa;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}
.radio.checked .dot::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
}

.panel {
    margin-top: 8px;
    border: 1px solid #d2d2d2;
    border-radius: 20px;
    background: #f8f8f8;
    padding: 14px 16px 12px;
}
.search {
    height: 48px;
    width: 300px;
    border: 2px solid #c7c7c7;
    border-radius: 25px;
    padding: 0 20px;
    color: #b6b6b6;
    font-size: 32px;
    display: flex;
    align-items: center;
    position: relative;
    background: #efefef;
}
.search::after {
    content: "○";
    position: absolute;
    right: 22px;
    color: #999;
    font-size: 36px;
}

.cards {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.card .top {
    display: flex;
    justify-content: space-between;
    font-size: 22px;
    margin-bottom: 8px;
}

.top {
    position: relative;
}

.card .name {
    font-size: 20px;
    font-weight: 700;
    margin-right: 12px;

}
.sub {
    font-size: 15px;
    color: #999;
}
.sub .ok { color: var(--danger); font-weight: 700; }
.blue { color: var(--blue); }
.line {
    margin: 8px 0;
    font-size: 15px;
}
.red { color: var(--danger); }
.big {
    font-size: 36px;
    font-weight: 700;
    vertical-align: middle;
    margin-right: 6px;

}
.desc {
    margin-top: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}
.cancel {
    margin-top: 10px;
    text-align: center;
    color: #7b7b7b;
    font-size: 36px;
    text-decoration: underline;
}

.footer {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 14px;
}
.btn.primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.bidding-history-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0;
    transition: all 0.3s ease;
}

@-webkit-keyframes spin { /* 兼容webkit内核浏览器 */
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
