/* football.html 特有样式 - 清理重复内容后的精简版本 */

/* 继承common.css的CSS变量系统 */

/* 日期导航样式 */
.date-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.date-btn {
    background: var(--bg-white);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.date-btn:hover {
    background: #f0f0f0;
}

.date-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 球队信息样式 */
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.team.home {
    justify-content: flex-start;
    text-align: left;
}

.team.away {
    justify-content: flex-end;
    text-align: right;
}

.team-name {
    font-weight: 600;
    font-size: 17px;
}

.team-rank {
    color: var(--text-muted);
    font-size: 13px;
}

.vs {
    margin: 0 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

/* 胜平负标签页的特殊布局 */
.odds-grid.had-layout {
    gap: 8px;
}

.odds-grid.had-layout .odds-group {
    flex: 1;
    min-width: 150px;
}

.odds-grid.had-layout .odds-items {
    grid-template-columns: repeat(3, 1fr);
}

.odds-grid.had-layout .odds-item:nth-child(3n) {
    border-right: none;
}

/* 计算器信息样式 */
.calculator-info {
    background: #f8f8f8;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 15px;
    color: #666;
}

.calculator-actions {
    display: flex;
    gap: 10px;
}

/* 固定在底部的投注单 */
.fixed-bet-slips {
    position: fixed;
    bottom: 80px; /* 调整到导航栏上方，避免遮挡 */
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -2px 10px var(--shadow-light);
    z-index: var(--z-bet-slip);
    max-height: 300px;
    overflow-y: auto;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* 响应式投注单定位优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    .fixed-bet-slips {
        bottom: 90px; /* iPad端增加底部间距 */
        max-height: 350px; /* iPad端增加最大高度 */
    }
}

@media (max-width: 767px) {
    .fixed-bet-slips {
        bottom: 100px; /* 手机端增加底部间距 */
        max-height: 280px; /* 手机端适当减少最大高度 */
    }
    
    /* 小屏幕手机优化 */
    @media (max-width: 375px) {
        .fixed-bet-slips {
            bottom: 110px; /* 小屏幕手机更大的底部间距 */
            max-height: 250px; /* 小屏幕手机更小的最大高度 */
        }
    }
}

.bet-slips-container {
    padding: 15px;
}

.bet-slip-item {
    background: #f8f8f8;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
}

.bet-slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bet-slip-match {
    font-weight: 600;
    font-size: 15px;
}

.bet-slip-remove {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
}

.bet-slip-details {
    font-size: 13px;
    color: var(--text-secondary);
}

.bet-slip-odds {
    color: var(--primary-color);
    font-weight: 600;
}

.bet-slip-amount {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-slip-amount input {
    flex: 1;
    max-width: 100px;
}

.bet-slip-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.bet-slip-total {
    font-weight: 600;
    color: var(--primary-color);
}

.bet-slip-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.bet-slip-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 投注单弹出框 - 科技感设计 */
.bet-slip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    background: rgba(15, 32, 39, 0.8);
}

.bet-slip-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* 针对投注确认模态框的特殊定位 */
#betSlipModal.bet-slip-modal {
    bottom: 100px;
    align-items: flex-end;
}

/* 响应式投注确认模态框优化 */
@media (min-width: 768px) and (max-width: 1024px) {
    #betSlipModal.bet-slip-modal {
        bottom: 110px; /* iPad端增加底部间距 */
    }
}

@media (max-width: 767px) {
    #betSlipModal.bet-slip-modal {
        bottom: 120px; /* 手机端增加底部间距 */
    }
    
    /* 小屏幕手机优化 */
    @media (max-width: 375px) {
        #betSlipModal.bet-slip-modal {
            bottom: 130px; /* 小屏幕手机更大的底部间距 */
        }
    }
}

.bet-slip-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: calc(100vh - 140px); /* 动态计算高度 */
    overflow-y: auto;
    box-shadow: 
        0 -10px 30px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    animation: slideUpFromBottom 0.4s ease;
}

@keyframes slideUpFromBottom {
    from { 
        opacity: 0; 
        transform: translateY(100%); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.bet-slip-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.bet-slip-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    right: 25%;
    height: 3px;
    background: linear-gradient(90deg, #24be58, #1ea84d);
    border-radius: 3px;
}

.bet-slip-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #24be58, #1ea84d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 5px;
}

.bet-slip-subtitle {
    font-size: 14px;
    color: #666;
    letter-spacing: 0.5px;
}

.bet-info-list {
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.bet-info-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.bet-info-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.bet-info-value {
    color: #24be58;
    font-weight: 600;
    font-size: 14px;
}

.bet-details-list {
    background: rgba(36, 190, 88, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(36, 190, 88, 0.1);
}

.bet-detail-item {
    padding: 6px 0;
    font-size: 13px;
    color: #2c3e50;
    line-height: 1.4;
}

.bet-amount-display {
    background: linear-gradient(135deg, #24be58, #1ea84d);
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(36, 190, 88, 0.3);
}

.bet-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.bet-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.bet-confirm {
    background: linear-gradient(135deg, #24be58, #1ea84d);
    color: white;
    box-shadow: 0 4px 15px rgba(36, 190, 88, 0.3);
}

.bet-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 190, 88, 0.4);
}

.bet-cancel {
    background: rgba(255,255,255,0.8);
    color: #666;
    border: 1px solid rgba(0,0,0,0.1);
}

.bet-cancel:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* 容器样式由 common.css 统一管理 */

.action-btn {
    flex: 1;
    background: #24be58;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background: #1ea84d;
}

.action-btn.clear {
    background: #ff6b6b;
}

.action-btn.clear:hover {
    background: #ff5252;
}

/* 投注倍数按钮样式 */
.multiplier-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 0;
}

.multiplier-btn:hover {
    border-color: #24be58;
    color: #24be58;
}

.multiplier-btn.active {
    background: #24be58;
    border-color: #24be58;
    color: white;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

/* 响应式设计 - 特有样式补充 */
@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-group {
        flex: 1 0 auto;
        min-width: 80px;
        height: 50px;
        max-width: 100px;
    }
    
    .tab-item {
        font-size: 13px;
        height: 25px;
        padding: 0 6px;
    }
    
    .tab-item.active {
        height: 50px;
    }
    
    .filter-item {
        justify-content: space-between;
    }
    
    .date-nav {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
    }
    
    .date-btn {
        white-space: nowrap;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .match-teams {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
    }
    
    .team {
        justify-content: flex-start;
        text-align: left;
    }
    
    .team.home {
        justify-content: flex-start;
        text-align: left;
    }
    
    .team.away {
        justify-content: flex-end;
        text-align: right;
        flex-direction: row-reverse;
    }
    
    .vs {
        margin: 0 20px;
    }
    
    .odds-grid {
        flex-direction: column;
        gap: 8px;
    }
    
    .odds-group {
        width: 100%;
    }
    
    .odds-items {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .odds-item:nth-child(5n) {
        border-right: none;
    }
    
    .odds-item {
        font-size: 12px;
        padding: 8px 3px;
    }
    
    .calculator-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 19px;
    }
    
    .tabs {
        gap: 4px;
    }
    
    .tab-group {
        min-width: 70px;
        height: 45px;
        max-width: 90px;
    }
    
    .tab-item {
        font-size: 12px;
        height: 22.5px;
        padding: 0 4px;
    }
    
    .tab-item.active {
        height: 45px;
    }
    
    .team-name {
        font-size: 15px;
    }
    
    .match-header {
        flex-direction: row;
        gap: 8px;
        text-align: left;
    }
    
    .odds-items {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .odds-item:nth-child(5n) {
        border-right: none;
    }
    
    .odds-item {
        font-size: 11px;
        padding: 6px 2px;
    }
    
    .odds-score {
        font-size: 12px;
    }
    
    .odds-value {
        font-size: 13px;
    }
}