:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --gray: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #2c3e50);
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--secondary);
}

.logo h1 {
    font-size: 2.2rem;
    background: linear-gradient(to right, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
}

.sidebar {
    background: rgba(44, 62, 80, 0.85);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: fit-content;
}

.nav-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item {
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.nav-item > * {
    pointer-events: none;
}

.nav-item:hover {
    background: rgba(52, 152, 219, 0.2);
}

.nav-item.active {
    background: var(--secondary);
    font-weight: bold;
}

.content-area {
    background: rgba(44, 62, 80, 0.85);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 70vh;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--secondary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: rgba(52, 73, 94, 0.7);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 500;
}

.card-content {
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

/* 全局下拉菜单样式 */
select.form-input {
    appearance: menulist;
    background-color: #1e3649;
    color: white;
    border: 1px solid #3498db;
}

/* 下拉菜单选项样式 */
select.form-input option {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
}

.btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #ffffff;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.table th {
    background: rgba(52, 152, 219, 0.3);
    font-weight: 600;
    color: #ffffff;
}

.table td {
    color: #ffffff;
    font-weight: 400;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 表格中的链接样式 */
.table a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.table a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.countdown-number {
    font-size: 15rem;
    font-weight: bold;
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.7);
    animation: pulse 1s infinite;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: inline-block !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1;
}

.countdown-number::before,
.countdown-number::after {
    display: none !important;
    content: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.countdown-timer {
    font-size: 8rem;
    font-weight: bold;
    color: var(--success);
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
    position: relative;
    z-index: 2;
}

/* 确保当计时器显示时，倒计时数字隐藏 */
.countdown-timer:not([style*="display: none"]) ~ .countdown-number,
.countdown-timer:not([style*="display:none"]) ~ .countdown-number {
    display: none !important;
}

.control-buttons {
    display: flex;
    gap: 20px;
    margin-top: 60px;
    position: relative;
    z-index: 3;
}

.control-btn {
    padding: 15px 30px;
    font-size: 1.2rem;
    min-width: 200px;
}

.score-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.score-section {
    background: rgba(44, 62, 80, 0.7);
    border-radius: 10px;
    padding: 20px;
}

.score-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.chart-container {
    background: rgba(44, 62, 80, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    min-height: 300px;
    margin-bottom: 20px;
}

.chart-container h4 {
    color: #3498db;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    border-radius: 8px;
    z-index: 100;
}

.charts-section {
    margin-top: 30px;
}

#refresh-charts {
    font-size: 12px;
    padding: 2px 10px;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.admin-panel {
    background: rgba(44, 62, 80, 0.85);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.admin-card {
    background: rgba(52, 73, 94, 0.7);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-5px);
    background: rgba(52, 152, 219, 0.3);
}

.admin-card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-content {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 50px auto;
}

.login-box {
    background: rgba(44, 62, 80, 0.85);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.login-title {
    font-size: 1.8rem;
}

.login-form .btn {
    width: 100%;
    margin-top: 10px;
}

.login-links {
    margin-top: 20px;
    text-align: center;
}

.login-links a {
    color: var(--secondary);
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* 注册页面样式 */
.register-container {
    max-width: 500px;
    margin: 50px auto;
}

/* 响应式布局 */
@media screen and (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .score-form {
        grid-template-columns: 1fr;
    }
}

/* 提示消息样式 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.2);
    border-left: 4px solid var(--warning);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-item {
    margin: 0 5px;
}

.pagination .page-link {
    display: block;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(52, 73, 94, 0.7);
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--secondary);
}

.pagination .active .page-link {
    background: var(--secondary);
    font-weight: bold;
}

/* 模态框样式优化 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: rgba(45, 52, 70, 0.95);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(52, 152, 219, 0.2);
    transform: translateY(-30px);
    transition: all 0.3s ease;
    width: 90%;
    max-width: 800px;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
}

.modal-body {
    padding: 15px 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--light);
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

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

/* 添加管理模式切换按钮样式 */
.admin-toggle {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.admin-toggle button {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-toggle button i {
    margin-right: 5px;
}

/* 调整用户信息区域样式 */
.user-info > div:not(.avatar):not(.admin-toggle) {
    margin: 0 15px;
}

/* 管理模式通知条样式 */
.admin-mode-notice {
    background-color: rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.admin-mode-notice i {
    color: #3498db;
    font-size: 1.2rem;
    margin-right: 10px;
}

/* 统计卡片布局和样式 */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    height: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.stat-card .card-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.stat-card .card-label {
    font-size: 1rem;
    text-align: center;
    width: 100%;
}

.stat-card .card-footer {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.05);
}

/* 训练记录页面样式 */
.winner-team {
    font-weight: bold;
}

.score-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.team-score-box {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}

.team-score-box h5 {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.red-team {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.blue-team {
    background-color: rgba(52, 152, 219, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.5);
}

.score-phase {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.score-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.phase-score, .total-score {
    font-weight: bold;
}

.buttons-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 渐变背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3498db, #1565c0);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
}

/* 时间信息行样式 */
.duration-info-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: rgba(45, 63, 81, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin: 0 0 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #3498db;
}

.duration-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 0 5px;
    position: relative;
}

.duration-item:not(:last-child):after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

.duration-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.duration-value {
    display: block;
    font-size: 1.25rem;
    font-weight: bold;
    color: #3498db;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 美化详情区域 */
.detail-table {
    width: 100%;
    margin-bottom: 15px;
    border-spacing: 0;
    border-collapse: separate;
}

.detail-table th {
    width: 40%;
    padding: 6px 10px 6px 0;
    vertical-align: top;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: right;
}

.detail-table td {
    padding: 6px 0;
    vertical-align: top;
    font-weight: 500;
    color: #ffffff;
}

@media (max-width: 768px) {
    .duration-info-box {
        flex-direction: column;
    }
    
    .duration-item {
        margin-bottom: 10px;
        text-align: left;
        padding: 5px 0;
    }
    
    .duration-item:not(:last-child):after {
        display: none;
    }
    
    .duration-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
    }
}

/* 详情模态框特定样式 */
#record-detail-modal .modal-body {
    max-height: none;
    overflow-y: visible;
    padding-bottom: 20px;
}

#record-detail-modal .detail-section-title {
    margin-top: 15px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    font-size: 1.1rem;
}

#record-detail-modal .detail-section-title:first-child {
    margin-top: 0;
}

/* 美化详情区域 */
.detail-section-title {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--secondary);
    font-size: 1.1rem;
}

#record-detail-modal .buttons-row {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#record-detail-modal .buttons-row button {
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#record-detail-modal .buttons-row .btn-secondary {
    background-color: rgba(108, 117, 125, 0.8);
    border: none;
}

#record-detail-modal .buttons-row .btn-secondary:hover {
    background-color: rgba(108, 117, 125, 1);
}

#view-detail-report {
    background: linear-gradient(to right, #3498db, #2980b9);
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#view-detail-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #2980b9, #3498db);
}

/* 两行两列基本信息表格样式 */
.info-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: rgba(45, 63, 81, 0.4);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.info-table th, 
.info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease;
}

.info-table tr:hover td {
    background-color: rgba(52, 152, 219, 0.2);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.info-table th {
    width: 15%;
    text-align: right;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    background-color: rgba(52, 73, 94, 0.5);
}

.info-table td {
    width: 35%;
    font-weight: 500;
    color: #ffffff;
}

.info-table th:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.info-table th:nth-child(3):before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* 红队蓝队名称高亮 */
#detail-red-team {
    color: #e74c3c;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

#detail-blue-team {
    color: #3498db;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 训练记录页面的队伍名称 */
.red-team-name {
    color: #e74c3c;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.blue-team-name {
    color: #3498db;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 响应式信息表格 */
@media (max-width: 768px) {
    .info-table {
        display: flex;
        flex-direction: column;
    }
    
    .info-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    
    .info-table th, 
    .info-table td {
        border: none;
        padding: 8px;
    }
    
    .info-table th {
        background-color: rgba(52, 73, 94, 0.5);
        text-align: left;
    }
    
    .info-table th:nth-child(3) {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .info-table td:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .info-table td:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 576px) {
    .info-table tr {
        display: flex;
        flex-wrap: wrap;
    }
    
    .info-table th,
    .info-table td {
        width: auto;
        padding: 6px;
    }
    
    .info-table th {
        flex: 0 0 30%;
        text-align: left;
    }
    
    .info-table td {
        flex: 0 0 70%;
    }
    
    .info-table tr:first-child th:nth-child(3),
    .info-table tr:first-child td:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 5px;
        padding-top: 10px;
    }
}

/* 查看详情按钮样式 */
.view-record-btn {
    background-color: rgba(52, 152, 219, 0.8);
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 5px 12px;
    min-width: 100px;
    text-align: center;
}

.view-record-btn:hover {
    background-color: rgba(52, 152, 219, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.view-record-btn .btn-text {
    white-space: nowrap;
    margin-left: 5px;
}

/* 修改为更具体的选择器，只影响训练记录页面 */
#records-list td:last-child {
    min-width: 110px;
    width: 110px;
}

/* 为队伍管理页面添加足够宽度的操作列 */
#teams-list td:last-child {
    min-width: 300px;
    width: auto;
}

/* 队伍管理页面的操作按钮容器 */
.action-btns {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
}

/* 队伍管理页面的按钮样式 */
.action-btns .btn {
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 5px 10px;
}

/* 添加个人设置页面相关的全局样式 */
.profile-container {
    background-color: rgba(44, 62, 80, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-card,
.profile-avatar,
.profile-menu {
    background-color: rgba(44, 62, 80, 0.8) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 12px;
    font-weight: 500;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(52, 152, 219, 0.5);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control[readonly] {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.form-text {
    color: rgba(255, 255, 255, 0.7);
}

.info-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.info-value {
    color: #ffffff;
    font-weight: 500;
}

.card-header h3 {
    color: #fff;
} 