/* styles.css */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: visible;
}

header {
    background-color: #f0f2f5;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #409eff;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: #3a8ee6;
    transform: scale(1.05);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

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

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.logout-item {
    color: #f44336;
}

.logout-item:hover {
    background-color: #ffebee;
}

.logout-btn {
    background-color: #f44336;
}

.logout-btn:hover {
    background-color: #d32f2f;
}

/* 表格基础样式 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid #ddd;
}

/* 表格行基础样式 */
.match-row {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
}

/* 表格行悬浮效果 - 统一背景色 */
.match-row:hover {
    background-color: #e3f2fd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    z-index: 1;
}

/* 表格单元格基础样式 */
.match-row td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

/* 表格单元格悬浮效果 */
.match-row:hover td {
    background-color: #e3f2fd !important;
}

/* 表头样式 */
th {
    background-color: #f0f2f5;
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    vertical-align: middle;
}

/* 详情容器样式 */
#detailContainer {
    border-top: 1px solid #ddd;
}

/* 刷新按钮样式 */
.refresh-btn {
    background-color: #409eff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.refresh-btn:hover {
    background-color: #3a8ee6;
}
/* 修改图片大小 */
.map-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    border-radius: 50%;
    object-fit: cover;
}

/* 保证详情页面表格样式与主列表一致 */
#detailContainer table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: 1px solid #ddd;
}

#detailContainer th {
    background-color: #f0f2f5;
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
    color: #666;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    vertical-align: middle;
}

#detailContainer .match-row td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.3s ease;
}

#detailContainer .match-row:hover td {
    background-color: #e3f2fd !important;
}

#detailContainer .match-row:hover {
    background-color: #e3f2fd !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    z-index: 1;
}

/* 水平导航栏 */
.sidebar {
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
}

.nav-item {
    padding: 14px 20px;
    cursor: pointer;
    border-right: 1px solid #eee;
    transition: background-color 0.3s ease;
    font-size: 14px;
    color: #333;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    background-color: #e3f2fd;
}

.nav-item.active {
    background-color: #4CAF50;
    color: white;
}

/* 调整主内容区样式 */
.main-content {
    margin-left: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

/* 赛果颜色样式 */
.result.win {
    color: #4caf50; /* 绿色 */
    font-weight: bold;
}

.result.loss {
    color: #f44336; /* 红色 */
    font-weight: bold;
}

.result.draw {
    color: #9e9e9e; /* 平局用灰色 */
    font-weight: bold;
}

/* 为方案切换栏添加样式 */
#planTabsContainer {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

#planTabs .nav-item {
    padding: 6px 12px;
    background-color: #f0f2f5;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    color: #333;
    border-radius: 4px 4px 0 0;
    margin-right: 4px;
}

#planTabs .nav-item:hover {
    background-color: #e3f2fd;
}

#planTabs .nav-item.active {
    background-color: #409eff;
    color: white;
}
/* 为详情页中的方案表格添加居中对齐 */
#detailContainer .plan-table th,
#detailContainer .plan-table td {
    text-align: center;
    padding: 8px;
}
.coefficient-controls {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.coeff-btn {
    padding: 4px 8px;
    background-color: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

/* 在 styles.css 中添加或修改以下样式 */
.plan-table .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.plan-table .calculate-rule {
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

.plan-table .coefficient-controls {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* 在 styles.css 中添加以下样式 */
.coeff-btn.active {
    background-color: #FFEC40FF;
    color: black;
    border-color: #FFEC40FF;
}
