body {
    background-color: #f9f9f9;
}

#sidebar,
#SideBar {
    float: left;
    width: 20%;
    background-color: #f5f5f5;
    height: 100vh;
    text-align: center;
    overflow-y: hidden;
    position: relative;
    padding-bottom: 126px;
    box-sizing: border-box;
}

#icon {
    width: 128px;
    height: 74px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
}

#caption {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
}

#stockInput {
    width: 80%;
    transition: 0.3s;
}

#QueryStockBtn {
    cursor: pointer;
    width: 80%;
    background-color: #d4a57b;
    transition: 0.3s;
}

.navigation {
    width: 90%;
    text-decoration: none;
    list-style: none;
    margin: 0px;
    margin-top: 20px;
}

.navigation li {
    width: 35%;
    padding: 5px;
    cursor: pointer;
    text-align: center;
    margin: 0px auto;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.navigation li:hover {
    background-color: #f9f9f9;
    filter: brightness(0.95);
}

.navigation li.selected {
    background-color: #d4a57b;
    color: white;
}

#composer {
    float: left;
    width: calc(100% - 20%);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

.presentation {
    display: block;
    width: 100%;
    height: 100%;
    float: left;
}

.presentation.hide {
    display: none;
}

.module {
    display: block;
    float: left;
    width: 96%;
    height: auto;
    padding: 1%;
    margin: 1%;
    /* border: 1px solid #d4d4d4; */
    border-radius: 5px;
    text-align: center;
}

.presentation-table {
    width: 100%;
}

.EPS-table {
    width: 80%;
}

.child-container {
    float: left;
    width: 98%;
    padding: 1%;
    margin: 1%;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    background-color: #f9f9f9;
}

.presentation-table {
    border-collapse: collapse !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

.presentation-table th,
.presentation-table td {
    border: 1px solid #ddd !important;
}

.presentation-table thead th,
.presentation-table thead td {
    text-align: center;
    background-color: #f5f5f5;
}

button.commonButton {
    cursor: pointer;
    background-color: #d4a57b;
    margin: 0px;
}

.fr-action-button {
    margin-top: 4px !important;
    padding: 2px 8px !important;
    min-height: 0;
    border: 0;
    border-radius: 2px;
    color: #fff;
    font-size: 12px !important;
    line-height: 1.35;
}

#DCF_params-navigation {
    width: 50%;
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 0px auto;
}

#DCF_params-navigation li {
    width: auto;
    margin: 0px 2px;
}

#DCF_result-折现结果 td {
    text-align: center;
    vertical-align: middle;
}

.hlFont {
    color: #d4a57b;
    font-weight: bold;
}

.hlFont-red {
    color: red;
    font-weight: bold;
}

.navigation.fullCover {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    padding: 5px;
    background-color: #d4a57b;
    border-radius: 5px;
    margin: 0px auto;
    margin-top: 10px;
}

.navigation.fullCover li {
    color: white;
    border-radius: 5px;
    margin: 0px 2px;
    border-bottom: 0px solid transparent;
}

.navigation.fullCover li.selected {
    color: black;
    background-color: white;
    font-weight: normal;
}

.navigation.fullCover li:not(.selected):hover {
    color: white;
    background-color: #d4a57b;
    filter: brightness(0.95);
}

.module.hide {
    display: none;
}

.Plot_container {
    width: 100%;
    height: 400px;
}

.counterpart-container {
    float: left;
    width: 100%;
    height: auto;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 1%;
    text-align: center;
    background-color: transparent;
    border-radius: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    max-height: 110px;
    overflow-y: auto;
    /* display: flex !important; */
    align-items: center;
    justify-content: center;
}

#counterpart_stocks {
    float: left;
    height: auto;
    flex-grow: 1;
    max-height: 93px;
    overflow-y: auto;
}

#addStockPool {
    float: right;
    margin: 0px;
    margin-left: 5px;
    margin-right: 10px;
    line-height: 30px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
}

#counterpart_stocks ul {
    width: auto;
    height: 100%;
    float: left;
    text-decoration: none;
    list-style: none;
    padding-left: 0px;
}

#counterpart_stocks ul li {
    width: auto;
    float: left;
    padding: 5px;
    text-align: center;
    margin: 5px;
    color: #666;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
}

#counterpart_stocks ul li:not(.select):hover {
    color: black;
    background-color: #f9f9f9;
    /* box-shadow: 0px 0px 10px #666; */
    filter: brightness(0.85);
}

#counterpart_stocks ul li.select {
    border: 1px solid #d4d4d4;
    color: white;
    background-color: #d4a57b;
    /* box-shadow: 0px 0px 10px #666; */
}

button[type="submit"].counterpart-RemoveBtn {
    color: #888888;
    cursor: pointer;
    background-color: white;
    transition: 0.3s;
    margin: 0px;
    padding: 7.5px;
    font-size: 12px;
    margin-right: 5px;
    line-height: 7.5px;
    border: 1px solid #d4d4d4;
    text-align: center;
}

button[type="submit"].counterpart-RemoveBtn:hover {
    box-shadow: none;
}

.child-container.one-third {
    width: 31%;
}

.no-border {
    border: 0px solid #666;
}

.Plot_container.Shorter {
    height: 250px;
}

.Plot_container.Longer {
    height: 810px;
}

/* .tooltip {
    position: relative;
    display: inline-block;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #666;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 325px;
    background-color: white;
    color: black;
    text-align: center;
    border-radius: 6px;
    padding: 15px;
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 0%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.5s;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
    border: 1px solid #ddd;
    cursor: auto;
    max-height: 175px;
    overflow-y: auto;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext {
    color: #666;
    font-size: 15px;
    font-family: 'FZShuSong-Z01S', sans-serif;
    line-height: 25px;
    float: left;
    text-align: left;
    font-weight: normal !important;
} */

.tooltip {
    position: relative;
    display: inline-block;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #666;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    cursor: pointer;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    height: auto;
}

.tooltip .tooltiptext {
    color: #666;
    font-size: 15px;
    font-family: 'FZShuSong-Z01S', sans-serif;
    line-height: 25px;
    float: left !important;
    text-align: left;
    font-weight: normal !important;
    opacity: 0;
    visibility: hidden;
    height: 0px;
    transition: 0.5s ;
}

footer {
    width: 20%;
    height: auto;
    text-align: center;
    line-height: 25px;
    position: fixed;
    left: 0;
    bottom: 0;
    font-size: 15px;
    color: #666;
}

#inuds_Container {
    margin: 0 auto;
    text-align: center;
    width: 100%;
    float: left;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    height: auto;
    max-height: 190px;
    overflow-y: auto;
}

.indus_Border {
    padding: 5px;
    width: auto;
    float: left;
    color: black;
    word-wrap: break-word;
    text-align: left;
}

#headPart-Pres {
    display: none;
}

.inline-left-text {
    float: left;
    text-align: left;
    line-height: 35px;
}

.inline-right-text {
    float: right;
    text-align: left;
    line-height: 35px;
}

#Weight_Checkbox {
    line-height: 35px !important;
    margin-right: 5px;
}

#Compare_Checkbox {
    line-height: 35px !important;
    margin-right: 5px;
}

.Weight_Border {
    border: #d4d4d4 solid 1px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 35px;
    padding: 0px 10px;
    transition: 0.3s;
}

.CustomIndicator_Border {
    border: #d4d4d4 solid 1px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 35px;
    padding: 0px 10px;
    transition: 0.3s;
    margin-right: 10px;
    cursor: pointer;
}


.Compare_Border {
    border: #d4d4d4 solid 1px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 35px;
    padding: 0px 10px;
    transition: 0.3s;
}


.Weight_Border:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.CustomIndicator_Border:hover{
    background-color: #f5f5f5;
}

.Compare_Border:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.defaultWeights_Btn {
    border: #d4d4d4 solid 0px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 35px;
    padding: 0px 10px;
    transition: 0.3s;
    background-color: #91cc75;
    color: white;
}

.defaultWeights_Btn:hover {
    cursor: pointer;
    filter: brightness(0.85);
}

#IndStyle-navigation {
    width: auto !important;
    background-color: #d4a57b;
    border-radius: 5px;
    float: right;
    margin: 0px;
    padding: 0px;
}

#IndStyle-navigation li {
    padding: 5px;
    border: none;
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    font-size: 15px;
    line-height: 15px;
    width: 50px !important;
}

.block-float {
    float: left;
    margin: 5px 0px;
    width: 100%;
}

#indicator_Container {
    width: 100%;
    float: left;
    text-align: center;
    margin: 0px;
    padding: 0px;
    overflow-y: auto;
    max-height: 205px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
}

.indicator_Border {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 195px;
    padding: 5px;
    width: auto;
    float: left;
    color: black;
    word-wrap: break-word;
    text-align: left;
    align-items: center;
    justify-content: center;
}

.Indicator-Checked:not(.selected):hover {
    color: black;
}

.Indicator-Checked.selected,
.Indicator-Checked.selected:hover {
    color: white;
    background-color: #d4a57b;
}

#Weights_Container {
    width: 100%;
    float: left;
    text-align: center;
    margin: 0px;
    padding: 0px;
    overflow-y: auto;
    max-height: 205px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
}

#Weight_complexBox {
    opacity: 0;
    height: 0px;
    pointer-events: none;
}

.Complex_Border {
    width: 100%;
    float: left;
    text-align: center;
    margin: 0px;
    padding: 0px;
    transition: 0.3s;
}

.W_Border {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 195px;
    padding: 5px;
    width: auto;
    float: left;
    color: black;
    word-wrap: break-word;
    text-align: left;
    align-items: center;
    justify-content: center;
}


.W-Checked:hover {
    cursor: default !important;
    filter: brightness(1.0) !important;
}

.W-Checked:not(.selected):hover {
    color: black;
}

.W-Checked.selected,
.W-Checked.selected:hover {
    color: white;
    background-color: #91cc75;
}

.W-Range-Container {
    flex: 2;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.W-Range {
    transform: rotate(-90deg);
    width: 100%;
    transform-origin: center center;
    height: 5px;
    color: #91cc75 !important;
    background-color: #91cc75 !important;

}

.W-Range::-webkit-slider-thumb {
    border: 1px solid #91cc75 !important;
}

#Rank_Container {
    width: 100%;
    height: auto;
    float: left;
    text-align: center;
    margin: 0px;
    padding: 5px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    overflow-x: auto;
}

#IndPeriod-navigation {
    width: auto !important;
    background-color: #d4a57b;
    border-radius: 5px;
    float: right;
    margin: 0px;
    padding: 0px;
}

#IndPeriod-navigation li {
    padding: 5px;
    border: none;
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    font-size: 15px;
    line-height: 15px;
    width: 50px !important;
}

.Indicator-Range-Container {
    flex: 2;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.Indicator-Range {
    transform: rotate(-90deg);
    width: 100%;
    transform-origin: center center;
    height: 5px;
}

#StockSelection_Btn {
    margin-top: 10px;
    margin-bottom: 10px;
}

#Rank_Table {
    width: 100%;
    border-collapse: collapse;
    display: block;
}

#Rank_Table th,
#Rank_Table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-header-cell {
    cursor: pointer;
}

.table-header-cell:hover {
    background-color: #f5f5f5;
    filter: brightness(0.95);
    border-radius: 5px 5px 0px 0px;
}

.table-row {
    cursor: pointer;
}

.table-row:hover {
    background-color: #f5f5f5;
    filter: brightness(0.95);
}

.pagination-button {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #d4a57b;
    transition: background-color 0.3s;
    color: #fff;
    margin: 0px;
    padding: 5px;
}

.pagination-button:hover {
    filter: brightness(0.95);
}

.pagination-button:disabled {
    cursor: auto;
    background-color: grey;
}

.SP_Btn {
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    transform: translateY(30%);
    /* left: -20px; */
    width: 20px;
    height: 20px;
}

.SP_Btn:hover {
    filter: brightness(0.95);
}

.RowHightlight {
    color: #d4a57b;
    font-weight: bold;
}

#UserStockPool_Container {
    width: 100%;
    height: auto;
    float: left;
    text-align: center;
    margin: 0px;
    padding: 5px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    overflow-x: auto;
}


#UserStockPool_Table {
    width: 100%;
    border-collapse: collapse;
    display: block;
}

#UserStockPool_Table th,
#UserStockPool_Table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidePart-Pres {
    position: fixed;
    right: 0%;
    top: 45%;
    margin-right: 15px;
    float: left;
}

#PopStockPoolBtn {
    cursor: pointer;
    color: #f9f9f9;
    background-color: #d4a57b;
    transition: 0.3s;
    font-size: 15px;
    border-radius: 15px 0px 0px 15px;
    width: 50px;
    margin: 0px;
    padding: 5px;
    height: 100%;
}

#sidePart-Pres:hover {
    filter: brightness(0.95);
}

#PopStockPoolBtn:hover {
    filter: none;
}

.inputParams {
    transition: 0.3s;
    width: 150px;
    margin: 0px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
}

#BibleUserPanel {
    position: fixed;
    left: 10%;
    transform: translateX(-50%);
    bottom: 82px;
    width: auto;
    min-width: 0;
    max-width: 166px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 20;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f5f5f5;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

#BibleUserPanel:hover {
    background: #f5f5f5;
    border-color: #cfcfcf;
}

.bible-user-avatar-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #d8d8d8;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.bible-user-avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#BibleUserMeta {
    min-width: 0;
    flex: 0 1 auto;
    max-width: 96px;
    color: #666;
    font-size: 13px;
    line-height: 1.28;
    text-align: left;
}

#BibleUserName {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-weight: 700;
    color: #3f332b;
}

#BibleUserRole {
    margin-top: 3px;
    color: #777;
    font-size: 12px;
}

.bible-user-popover {
    position: absolute;
    bottom: 66px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dedede;
    border-radius: 8px;
    box-shadow: none;
}

.bible-user-popover button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #4f453f;
    text-align: left;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.bible-user-popover button:hover {
    background: #f8f1eb;
    color: #9d6f49;
}

.bible-user-popover-status {
    padding: 8px 10px 9px;
    margin-bottom: 4px;
    border-bottom: 1px solid #eee3da;
    color: #6a5a4e;
    font-size: 12px;
    line-height: 1.35;
    cursor: default;
    user-select: none;
}

.quant-backtest-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    column-gap: 18px;
    row-gap: 12px;
    margin: 12px 0;
    text-align: left;
    align-items: end;
}

.quant-backtest-inline-option {
    display: inline-grid;
    grid-template-columns: 39px max-content;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 14px;
    min-height: 62px;
    width: fit-content;
}

.quant-backtest-inline-option label {
    line-height: 20px;
    white-space: nowrap;
}

.quant-backtest-param-hidden {
    display: none !important;
}

.quant-backtest-strategy-panel {
    margin: 8px 0 12px;
    text-align: left;
}

.quant-backtest-hint {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 10px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fafafa;
}

#BT_Custom_Script {
    display: none;
    box-sizing: border-box;
    width: 100%;
    margin-top: 8px;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    color: #333;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

.quant-backtest-panel > label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #555;
    font-size: 14px;
    min-width: 0;
    white-space: nowrap;
}

.quant-backtest-panel > label input,
.quant-backtest-panel > label select,
#回测参数_params-table input,
#回测参数_params-table select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    padding: 6px 8px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

.quant-backtest-panel > label input,
.quant-backtest-panel > label select {
    height: 38px;
    line-height: 20px;
}

.quant-backtest-inline-option .check-switch {
    width: 39px;
    min-width: 39px;
    height: 20px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.quant-backtest-table-wrap {
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

#回测参数_params-table {
    min-width: 640px;
    table-layout: fixed;
}

#回测参数_params-table th,
#回测参数_params-table td {
    box-sizing: border-box;
}

#回测参数_params-table input,
#回测参数_params-table select {
    max-width: 100%;
    height: 34px;
    margin: 0 !important;
}

#回测参数_params-table td:last-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

#回测参数_params-table td:last-child input {
    flex: 1 1 auto;
    width: 0;
}

#回测参数_params-table .removeRow-Btn {
    flex: 0 0 26px;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    border-radius: 4px !important;
}

.quant-backtest-status {
    color: #666;
}

.quant-backtest-error {
    color: #b3261e;
}

.quant-backtest-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    margin: 10px 0 8px;
}

.quant-backtest-primary {
    grid-column: 2;
    justify-self: center;
    min-width: 128px;
    padding: 9px 24px !important;
    font-weight: bold;
}

.quant-backtest-running {
    background-color: #b86b52 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.quant-backtest-side-actions {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quant-backtest-secondary {
    min-width: auto;
    padding: 5px 12px !important;
    font-size: 12px !important;
    background: #f7f7f7 !important;
    color: #777 !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 4px !important;
}

.quant-selection-list {
    max-height: 360px;
    overflow-y: auto;
    text-align: left;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fafafa;
    padding: 6px;
}

.quant-selection-row {
    display: grid;
    grid-template-columns: 22px 72px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-bottom: 1px solid #eeeeee;
    color: #555;
}

.quant-selection-row:last-child {
    border-bottom: none;
}

.addRow-Btn {
    cursor: pointer;
    background-color: #d4a57b;
    transition: 0.3s !important;
    margin: 0px !important;
    padding: 7.5px !important;
    font-size: 15px !important;
}

.removeRow-Btn {
    cursor: pointer;
    background-color: #d4a57b;
    transition: 0.3s !important;
    margin: 0px !important;
    padding: 0px !important;
    font-size: 12px !important;
    line-height: 20px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 2px !important;
}

.sub-navigation {
    width: 50%;
    display: flex;
    flex-direction: row;
    text-align: center;
    margin: 0px auto;
}

.sub-navigation li {
    width: auto;
    margin: 0px 2px;
}

#得分排名-Topsis_Plot {
    width: 100%;
}

#overview_Container {
    overflow-x: auto;
    overflow-y: hidden;
}

#Solution-Container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#Solution-Container input, #Solution-Container select { height: 34px; border: 1px solid #d8d8d8; border-radius: 6px; background: #fff; padding: 0 9px; }
#Solution-Choices { min-width: 180px; }
.solution-actions { display: inline-flex; gap: 3px; }
.solution-actions button { height: 32px; min-width: 32px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #444; cursor: pointer; }
.solution-actions button span { display: none; }
.solution-actions button:hover { border-color: #c78b52; color: #9a5b20; }
.solution-actions button.danger:hover { border-color: #cf5b5b; color: #b52b2b; }

div:where(.swal2-container) h2:where(.swal2-title) {
    font-weight: normal !important;
    font-family: 'FZShuSong-Z01S', sans-serif !important;
    font-size: 18px !important;
    margin: 10px 0px !important;
}

div:where(.swal2-container) .swal2-input {
    margin: 0px 15px !important;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background-color: #d4a57b !important;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel) {
    background-color: #f9f9f9 !important;
    color: #666 !important;
    border: 1px solid #d4d4d4 !important;
}

#Solution-Remove-Btn {
    display: inline-flex;
    border: #d4d4d4 solid 1px;
    border-radius: 17.5px;
    align-items: center;
    height: 35px;
    width: 35px;
    transition: 0.3s;
    background-color: #f9f9f9;
    color: #888;
    cursor: pointer;
}

#Solution-Remove-Btn:hover{
    filter: brightness(0.95);
}

#BacktestPeriod-navigation{
    float: inline-end;
    width: 180px !important;
    height: 35px !important;
    padding: 0px !important;
    margin: 0px !important;
}

#BacktestPeriod-navigation li{
    padding: 0px !important;
    height: 30px !important;
    margin: 2.5px !important;
}

#回测结果-日志 {
    text-align: left;
    width: 100%;
}

.quant-backtest-log {
    box-sizing: border-box;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px 12px;
    line-height: 1.7;
    color: #444;
}

.quant-backtest-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
    width: 100%;
}

.quant-backtest-metric {
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    padding: 10px;
    text-align: left;
}

.quant-backtest-metric span {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 4px;
    width: fit-content;
}

.quant-backtest-metric .tooltip .tooltiptext {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 30;
    width: 260px;
    height: auto;
    padding: 10px 12px;
    border: 1px solid #e3d2c2;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: #555;
    font-size: 13px;
    line-height: 1.6;
}

.quant-backtest-metric .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 100%;
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.quant-backtest-metric strong {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.quant-bucket-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    font-size: 13px;
}

.quant-bucket-table th,
.quant-bucket-table td {
    padding: 7px 9px;
    border-bottom: 1px solid #eeeeee;
    color: #555;
    text-align: left;
}

.quant-bucket-table th {
    background: #fafafa;
    color: #777;
    font-weight: normal;
}
.data-table th, .data-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.child-container {
    transition: height 0.3s ease;
}

/* ── 行业涨跌幅热力图 ── */
#industry_return_heatmap {
    text-align: left;
    padding: 1.2% 1.5%;
}
.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 6px;
}
.heatmap-title {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}
.heatmap-title .fa {
    color: #d4a57b;
    margin-right: 4px;
}
.heatmap-date {
    font-size: 12px;
    color: #999;
}
.heatmap-date span {
    color: #d4a57b;
    font-weight: bold;
}
.heatmap-chart-wrap {
    width: 100%;
    height: 520px;
}
.heatmap-status {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}

/* ── 行业×市值分组涨跌幅热力图 ── */
#market_cap_return_heatmap {
    text-align: left;
    padding: 1.2% 1.5%;
}
.mcap-heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 6px;
}
.mcap-heatmap-title {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}
.mcap-heatmap-title .fa {
    color: #d4a57b;
    margin-right: 4px;
}
.mcap-heatmap-date {
    font-size: 12px;
    color: #999;
}
.mcap-heatmap-date span {
    color: #d4a57b;
    font-weight: bold;
}
.mcap-heatmap-chart-wrap {
    width: 100%;
    height: 520px;
}
.mcap-heatmap-status {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}

/* ── 概念板块涨跌幅热力图 ── */
#concept_return_heatmap {
    text-align: left;
    padding: 1.2% 1.5%;
}
.concept-heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 6px;
}
.concept-heatmap-title {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}
.concept-heatmap-title .fa {
    color: #d4a57b;
    margin-right: 4px;
}
.concept-heatmap-date {
    font-size: 12px;
    color: #999;
}
.concept-heatmap-date span {
    color: #d4a57b;
    font-weight: bold;
}
.concept-heatmap-chart-wrap {
    width: 100%;
    height: 520px;
}
.concept-heatmap-status {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}

/* ── 行业涨跌幅联动关系图 ── */
#industry_dispersion_heatmap {
    text-align: left;
    padding: 1.2% 1.5%;
}
.consensus-heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 6px;
    flex-wrap: wrap;
    gap: 6px;
}
.consensus-heatmap-title {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}
.consensus-heatmap-title .fa {
    color: #d4a57b;
    margin-right: 4px;
}
.consensus-heatmap-info {
    display: flex;
    gap: 10px;
}
.consensus-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.consensus-high { color: #b71c1c; }
.consensus-mid { color: #f9a825; }
.consensus-low { color: #1565c0; }
.consensus-heatmap-date {
    font-size: 12px;
    color: #999;
}
.consensus-heatmap-date span {
    color: #d4a57b;
    font-weight: bold;
}
.consensus-heatmap-chart-wrap {
    width: 100%;
    height: 620px;
}
.consensus-heatmap-status {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px 0;
}
.consensus-heatmap-note {
    text-align: right;
    font-size: 11px;
    color: #aaa;
    padding: 4px 8px;
}

#question-container{
    flex-direction: row;
}

#operation-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100px;
    padding: 10px;
}

.hack-mobile-gap{
   flex-direction: row;
}

/* ── 情绪分析：增持/减持/回购/增发 ── */
#Sentiment_Analysis {
    padding: 1.2% 1.5%;
}
.sentiment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 6px;
}
.sentiment-title {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}
.sentiment-title .fa {
    color: #d4a57b;
    margin-right: 4px;
}
.sentiment-legend {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}
.sentiment-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}
.badge-zc {
    color: #c0392b;
    background: rgba(192,57,43,0.08);
}
.badge-jc {
    color: #27ae60;
    background: rgba(39,174,96,0.08);
}
.badge-hg {
    color: #d4a57b;
    background: rgba(212,165,123,0.12);
}
.badge-zf {
    color: #8e44ad;
    background: rgba(142,68,173,0.08);
}
.badge-idx {
    color: #7f8c8d;
    background: rgba(127,140,141,0.08);
}

/* ── 资金分析样式 ── */
.fund-analysis-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 6px;
}
.fund-analysis-title {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}
.fund-analysis-title .fa {
    color: #d4a57b;
    margin-right: 4px;
}
.fund-analysis-summary {
    font-size: 13px;
    color: #888;
    margin-left: auto;
}
.fund-analysis-chart-wrap {
    width: 100%;
    height: 460px;
    position: relative;
}
.fund-analysis-status {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 8px 0;
}
.fund-analysis-chart-wrap.fund-analysis-loading {
    visibility: hidden;
}
.fund-analysis-chart-wrap.fund-analysis-loading::before,
.heatmap-chart-wrap.fund-analysis-loading::before,
.mcap-heatmap-chart-wrap.fund-analysis-loading::before,
.concept-heatmap-chart-wrap.fund-analysis-loading::before,
.consensus-heatmap-chart-wrap.fund-analysis-loading::before,
.sentiment-chart-wrap.fund-analysis-loading::before {
    content: "";
    visibility: visible;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.2em;
    height: 2.2em;
    margin: -1.1em 0 0 -1.1em;
    border: .25em solid #d4d4d4;
    border-right-color: #d4a57b;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.heatmap-chart-wrap.fund-analysis-loading,
.mcap-heatmap-chart-wrap.fund-analysis-loading,
.concept-heatmap-chart-wrap.fund-analysis-loading,
.consensus-heatmap-chart-wrap.fund-analysis-loading,
.sentiment-chart-wrap.fund-analysis-loading,
[id$="_Plot"].fund-analysis-loading,
[id$="_plot"].fund-analysis-loading {
    visibility: hidden;
    position: relative;
}

[id$="_Plot"].fund-analysis-loading::before,
[id$="_plot"].fund-analysis-loading::before {
    content: "";
    visibility: visible;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2.2em;
    height: 2.2em;
    margin: -1.1em 0 0 -1.1em;
    border: .25em solid #d4d4d4;
    border-right-color: #d4a57b;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}
.sentiment-chart-wrap {
    width: 100%;
    height: 580px;
}
