* {
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
}
/* 导航栏样式 */
.header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 20px;
    font-weight: bold;
    color: #d9534f;
}
.auth button {
    margin-left: 10px;
    padding: 5px 12px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 3px;
    cursor: pointer;
}
.nav {
    background: #f9f9f9;
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.nav button {
    padding: 6px 18px;
    border: none;
    background: #e9e9e9;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
.nav button.active {
    background: #337ab7;
    color: white;
}
.subnav {
    background: #fff;
    padding: 8px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.subnav button {
    padding: 5px 15px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
}
.subnav button.active {
    background: #d9534f;
    color: white;
    border-color: #d9534f;
}
.content {
    padding: 15px;
    min-height: 500px;
}
/* 表格通用 */
.table-wrapper {
    position: relative;
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 9px;
    border: 1px solid #ddd;
}
th, td {
    border: 1px solid #ccc;
    padding: 2px 4px;
    text-align: center;
}
/* 红球和蓝球圆圈样式（必须存在） */
.ball-red {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    background: #d9534f;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 10px;
}
.ball-blue {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    background: #337ab7;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 10px;
}
.miss-num {
    color: #aaa;
}
/* 分割线 */
.split-line {
    border-right: 3px solid #444 !important;
}
.split-line-33 {
    border-right: 3px solid #444 !important;
}
.split-line-35 {
    border-right: 3px solid #444 !important;
}
/* 黄色背景数据单元格 */
.data-cell-yellow {
    background-color: #fcf8e3 !important;
    color: black !important;
}
/* 控制按钮 */
.controls {
    margin-bottom: 10px;
}
.controls button {
    padding: 4px 15px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}
.controls button.active {
    background: #337ab7;
    color: white;
}
@media (max-width: 600px) {
    .nav button, .subnav button {
        font-size: 12px;
        padding: 4px 12px;
    }
    .logo {
        font-size: 18px;
    }
}