.tool-container {
    max-width: 1100px;
    margin: 0 auto;
    /* padding: 15px; */
}
/* 计分主体红蓝卡片 移动端自适应 */
.score-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}
/* 手机端竖排 */
@media (max-width: 768px) {
    .score-box {
        flex-direction: column;
    }
}

.team-card {
    width: 42%;
    border-radius: 16px;
    padding: 30px 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0 6px 20px #0000001a;
}
/* 移动端卡片宽度100% */
@media (max-width: 768px) {
    .team-card {
        width: 100%;
    }
}

.blue-team {
    background: linear-gradient(135deg, #3478f6, #2563eb);
}
.red-team {
    background: linear-gradient(135deg, #f55858, #e03e3e);
}
.team-name {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ffffff63;
    text-align: center;
    font-size: 18px;
    color: #fff;
    width: 160px;
    padding: 6px 0;
    outline: none;
}
.team-name::placeholder {
    color: #ffffff80;
}
/* 移动端队伍名称输入框适配 */
@media (max-width: 768px) {
    .team-name {
        width: 80%;
        font-size: 16px;
    }
}

.score-num {
    font-size: 70px;
    font-weight: bold;
    margin: 20px 0;
}
/* 移动端分数字体缩小 */
@media (max-width: 768px) {
    .score-num {
        font-size: 50px;
    }
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.score-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    background: #ffffff33;
    color: #fff;
    transition: 0.2s;
    padding-bottom: 5.5px;
}
/* 移动端按钮加大，方便触屏点击 */
@media (max-width: 768px) {
    .score-btn {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }
}
.score-btn:hover {
    background: #ffffff66;
}

/* 中间轮次 */
.center-info {
    text-align: center;
}
.round-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}
.save-round-btn {
    padding: 8px 18px;
    border: none;
    background: #222;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}
@media (max-width: 768px) {
    .save-round-btn {
        padding: 10px 24px;
        font-size: 16px;
    }
}

/* 操作按钮 */
.operate-btn {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.normal-btn {
    padding: 9px 20px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
}
.danger-btn {
    padding: 9px 20px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    min-width: 120px;
}

/* 记录表格 移动端横向滚动 */
.record-title {
    font-size: 17px;
    font-weight: bold;
    margin: 20px 0 10px;
}
.record-table {
    width: 100%;
    overflow-x: auto;
}
table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}
th,td {
    border: 1px solid #eee;
    padding: 12px 8px;
    text-align: center;
    font-size: 14px;
}
th {
    background: #f8f9fa;
}
.empty-tips {
    color: #999;
}

/* 弹窗适配手机 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-box {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    text-align: center;
}
.modal-btn {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.cancel-btn {
    padding: 10px 16px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
}
.confirm-btn {
    padding: 10px 16px;
    background: #e53e3e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
}