* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei UI', Arial, sans-serif;
    background: #f5f5f5;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    background: #4a90e2;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧面板 */
.left-panel {
    width: 420px;
    background: white;
    border-right: 2px solid #d0d0d0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-title {
    padding: 10px 15px;
    background: #e8e8e8;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

.tabs-container {
    display: flex;
    background: #e8e8e8;
    border-bottom: 2px solid #4a90e2;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #e8e8e8;
    cursor: pointer;
    font-size: 14px;
    border-right: 1px solid #ccc;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #d0d0d0;
}

.tab-btn.active {
    background: #4a90e2;
    color: white;
}

.match-list-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.match-list-tab {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.match-list-tab.active {
    display: flex;
}

.match-list-header {
    padding: 8px 15px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.match-list {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.match-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.match-item:hover {
    background: #f0f0f0;
}

.match-item.monitored {
    color: blue;
    font-weight: bold;
}

.match-item input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

.match-info {
    flex: 1;
    font-size: 12px;
}

.match-num {
    font-weight: bold;
    color: #4a90e2;
}

/* 右侧面板 */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}

.control-bar {
    padding: 10px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-warning { background: #ffc107; color: #333; }
.btn-info { background: #17a2b8; color: white; }
.btn-primary { background: #007bff; color: white; }
.btn-secondary { background: #6c757d; color: white; }

.btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-label {
    margin-left: auto;
    color: #666;
    font-size: 13px;
}

.odds-tabs {
    display: flex;
    background: #e8e8e8;
    border-bottom: 2px solid #4a90e2;
}

.odds-tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #e8e8e8;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.odds-tab-btn.active {
    background: #4a90e2;
    color: white;
}

.odds-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.odds-table-container {
    display: none;
    height: 100%;
    overflow: auto;
    padding: 10px;
}

.odds-table-container.active {
    display: block;
}

.odds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.odds-table th {
    background: #d9edf7;
    padding: 8px;
    text-align: center;
    border: 1px solid #ccc;
    font-weight: bold;
}

.odds-table td {
    padding: 6px;
    text-align: center;
    border: 1px solid #ddd;
}

.odds-table tr:nth-child(even) {
    background: #f9f9f9;
}

.odds-table .match-info-cell {
    text-align: left;
    font-size: 11px;
    white-space: nowrap;
}

.odds-table .trend-up {
    color: red;
    font-weight: bold;
}

.odds-table .trend-down {
    color: blue;
    font-weight: bold;
}

.odds-table .clickable {
    cursor: pointer;
    text-decoration: underline;
}

.odds-table .clickable:hover {
    background: #e6f2ff;
}

.log-container {
    height: 150px;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.log-header {
    padding: 5px 15px;
    background: #f0f0f0;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px solid #ddd;
}

.log-text {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    background: #fafafa;
}

.log-text .log-info { color: black; }
.log-text .log-good { color: red; }
.log-text .log-bad { color: blue; }
.log-text .log-warn { color: #FF8C00; }
.log-text .log-err { color: red; font-weight: bold; }

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    padding: 15px 20px;
    background: #4a90e2;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-title {
    font-weight: bold;
    font-size: 16px;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: 'Microsoft YaHei UI', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.history-table th,
.history-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.history-table th {
    background: #4a90e2;
    color: white;
}

.history-table tr:nth-child(even) {
    background: #f9f9f9;
}

.history-table .red_row {
    color: red;
}

.history-table .blue_row {
    color: blue;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

