/* 带电小球的单摆运动实验样式 */

body {
    background-color: #f8f9fa;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 理论推导区域样式 */
.step-by-step {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.step-by-step p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.step-by-step strong {
    color: #007bff;
    font-weight: 600;
}

.step-by-step ul, .step-by-step ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.step-by-step li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* MathJax 公式样式优化 */
.MathJax {
    font-size: 1.1em !important;
}

/* 重要公式高亮框 */
.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.alert-info h6 {
    color: #1565c0;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 理论推导卡片特殊样式 */
#theory-collapse .card-body {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* 展开/收起按钮样式 */
.float-end {
    transition: all 0.3s ease;
}

.float-end:hover {
    transform: scale(1.05);
    background-color: #007bff !important;
    color: white !important;
}

/* 参数控制区域 */
.parameter-group {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin-bottom: 20px;
}

.parameter-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.slider-container {
    margin: 15px 0;
    height: 10px;
}

.parameter-value {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}

/* 滑动条样式定制 */
.noUi-connect {
    background: linear-gradient(90deg, #007bff, #28a745);
}

.noUi-handle {
    border: 2px solid #007bff !important;
    background: white !important;
    box-shadow: 0 2px 6px rgba(0,123,255,0.3) !important;
}

.noUi-handle:before,
.noUi-handle:after {
    background: #007bff !important;
}

/* 控制按钮 */
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.control-buttons button {
    min-width: 80px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.control-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 物理参数信息 */
.physics-info {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.physics-info h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-item {
    margin-bottom: 5px;
    color: #6c757d;
}

/* Canvas动画区域 */
#animation-canvas {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: block;
    margin: 0 auto;
}

/* 运动状态显示 */
.motion-info {
    background: #f8f9fa;
    padding: 15px;
    border-top: 1px solid #dee2e6;
}

.motion-info strong {
    color: #007bff;
    font-size: 18px;
}

/* 图表区域 */
#tension-chart {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

.chart-controls {
    text-align: center;
}

.chart-info {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

/* 卡片样式增强 */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: white;
    font-weight: 600;
    border-bottom: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    #animation-canvas {
        width: 100%;
        height: auto;
    }
    
    .control-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .control-buttons button {
        width: 100%;
        margin: 5px 0;
    }
}

/* 标题样式 */
h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

.text-primary {
    color: #007bff !important;
}

.text-muted {
    color: #6c757d !important;
}

/* 实验说明样式 */
.card-body h6 {
    color: #495057;
    font-weight: 600;
}

.card-body p {
    color: #6c757d;
    line-height: 1.6;
}

/* 动画和过渡效果 */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.btn {
    transition: all 0.3s ease;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
} 