/* 快乐运动会 - 运动表现曲线绘制工具 主样式表 */

/* 基础样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --border-radius: 8px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9fc;
    padding-top: 0;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 卡片样式 */
.performance-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.performance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.performance-card .card-header {
    background: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.performance-card .card-body {
    padding: 1.5rem;
}

.performance-card .card-title {
    font-weight: 600;
    margin-bottom: 0;
}

/* 参数面板样式 */
.parameters-panel {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    height: 100%;
}

.parameters-panel h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.2rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.3rem;
}

.form-select, .form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 图表容器样式 */
.chart-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 数据卡片样式 */
.data-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e7ed 100%);
    border-radius: var(--border-radius);
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all var(--transition-speed);
}

.data-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.data-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.data-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* 趋势分析样式 */
.trend-analysis {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.trend-analysis h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(to right, var(--primary-color), #2980b9);
    border: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background: linear-gradient(to right, #2980b9, #2573a7);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(to right, var(--secondary-color), #27ae60);
    border: none;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.btn-success:hover {
    background: linear-gradient(to right, #27ae60, #229954);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.35);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.btn-outline-secondary:hover, 
.btn-outline-secondary.active {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.03);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(52, 152, 219, 0.03);
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.07);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .parameters-panel {
        margin-bottom: 1.5rem;
    }
    
    .data-card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-tools {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 工具提示 */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1000;
    max-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 训练阶段标记 */
.phase-marker {
    position: absolute;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
    z-index: 5;
}

/* 比赛节点标记 */
.event-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2);
    z-index: 10;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.event-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(231, 76, 60, 0.3);
}

/* 自定义下拉菜单 */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
}

.custom-dropdown-content a {
    color: #333;
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color var(--transition-speed);
}

.custom-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.custom-dropdown:hover .custom-dropdown-content {
    display: block;
}

/* 警告提示 */
.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--border-radius);
}

/* 加载状态 */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    z-index: 100;
}

.loading::before {
    content: "加载中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 