/*************************************************
文件panel_betting.css  投注区CSS
************/
/*****************快捷按钮***************/
.quick-button-name {
    font-size: 15px;
    margin-bottom: 4px;
    width: 85px;
    color: #555;
    background: #e5e5e5;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    /* 添加边框定义 */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.quick-button-name:hover {
    background-color: #e8f4ff;
    border-color: #1a6bc4;
}

/* 激活状态样式 */
.quick-button-name.active {
    background-color: #ffffff !important;
    border: 2px solid #0066cc !important;
    color: #0066cc;
    font-weight: 600;
}

/* 激活状态的右下角标记 */
.quick-button-name.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent #0066cc transparent;
    z-index: 2;
    pointer-events: none;
}

.quick-button-name.active::before {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 6px;
    height: 3px;
    border: solid white;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(-45deg);
    z-index: 3;
    pointer-events: none;
}

/***********************投注区表格*************************/
.table-style1 {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 0;
}

.table-style1 th,
.table-style1 td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.table-style1 th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.table-style1 tr:hover td {
    background-color: #f9f9f9;
}

/* 确保表格在投注区域内正确显示 */
.betting-area > table {
    margin-bottom: 15px !important;
}

.table_tr_num {
    text-align: center;
    width: 30px;
    font-weight: bold;
    font-size: 0.41rem;
}

.table_td_odds {
    color: #f00;
    font-size: 0.35rem;
}

.table_td_wfname {
    color: rgb(29, 29, 29);
    font-size: 0.35rem;
    font-weight: bold;
}

.table_td_title {
    text-align: center;
    font-size: 18px;
    font-weight: normal;
}

/*********************************************************************/
/* 投注表格默认隐藏，激活时显示 */
.betting-table {
    display: none;
}

.betting-table.active {
    display: table;
}

/* 快捷投注区样式 */
.betting-section {
    display: none;
}

.betting-section.active {
    display: block;
}

/* 投注表格td点击样式 */
.betting-table tbody td {
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.betting-table tbody td:hover {
    background-color: #f0f8ff;
}

/* 当td被点击时的激活状态 */
.betting-table tbody td.active {
    background-color: #ffffff !important;
    position: relative !important;
    box-shadow: inset 0 0 0 2px #0066cc !important;
}

/* 右下角直角三角形 */
.betting-table tbody td.active::after {
    content: '';
    position: absolute !important;
    bottom: 0px !important;
    right: 0px !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 0 0 18px 18px !important;
    border-color: transparent transparent #0066cc transparent !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

/* 使用伪元素创建白色√符号 */
.betting-table tbody td.active::before {
    content: '';
    position: absolute !important;
    bottom: 4px !important;
    right: 4px !important;
    width: 7px !important;
    height: 3px !important;
    border: solid white !important;
    border-width: 0 0 1.5px 1.5px !important;
    transform: rotate(-45deg) !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

/* 确保激活状态的行背景色不变 */
.table_tr_num td.active {
    background-color: #ffffff !important;
}

/* 确保图片在td中居中显示 */
.betting-table tbody td img {
    display: block;
    margin: 0 auto;
    max-width: 40px;
    height: auto;
}

.wanfa_text_blue {
    width: 1.2rem;
    height: 0.6rem;
    color: #FFF;
    background: #006cd8;;
    border-radius: 4px;
    margin-bottom: -1px;
}
.wanfa_text_blue2 {
    color: #006cd8;
    font-size: 16px;
    font-weight: bold;
}
.wanfa_text_red {
    width: 1.2rem;
    height: 0.6rem;
    color: #FFF;
    background: #d10000;
    border-radius: 4px;
    margin-bottom: -1px;
}
.wanfa_text_red2 {
    color: #d10000;
    font-size: 16px;
    font-weight: bold;

}


/*************  非投注选项样式 *************/
.betting-table tbody td.no-betting {
    cursor: default !important;
    background-color: #f9f9f9 !important;
}

.betting-table tbody td.no-betting:hover {
    background-color: #f9f9f9 !important;
}

/* 确保非投注选项不能被选中 */
.betting-table tbody td.no-betting.active {
    box-shadow: none !important;
}

.betting-table tbody td.no-betting.active::after,
.betting-table tbody td.no-betting.active::before {
    display: none !important;
}

/* 快捷投注区的球号和玩法选项样式 */
.ball-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ball-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.ball-item:hover {
    background-color: #f0f8ff;
    border-color: #0066cc;
}

.ball-item.active {
    background-color: #ffffff !important;
    border: 2px solid #0066cc !important;
    position: relative;
}

.ball-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent #0066cc transparent;
    z-index: 2;
}

.ball-item.active::before {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 6px;
    height: 3px;
    border: solid white;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(-45deg);
    z-index: 3;
}

.play-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 15px;
}

.play-option-item {
    flex: 1;
    min-width: 100px;
    margin: 2px;
    padding: 10px;
    text-align: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.play-option-item:hover {
    background-color: #f0f8ff;
    border-color: #0066cc;
}

.play-option-item.active {
    background-color: #ffffff !important;
    border: 2px solid #0066cc !important;
    position: relative;
}

.play-option-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 18px 18px;
    border-color: transparent transparent #0066cc transparent;
    z-index: 2;
}

.play-option-item.active::before {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 6px;
    height: 3px;
    border: solid white;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(-45deg);
    z-index: 3;
}

.play-option-odds {
    color: #f00;
    font-size: 12px;
    margin-left: 5px;
}

/* 投注信息样式 */
.bet-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
}

.bet-info.show {
    display: block;
}

.selected-item {
    display: inline-block;
    background: #e6f7ff;
    padding: 2px 5px;
    margin: 2px;
    border-radius: 3px;
    font-size: 12px;
}

/* 确保表格中的按钮样式不受其他影响 */
.betting-area button {
    padding: 5px 10px;
    margin: 2px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: Arial, sans-serif;
    font-size: 14px;
}