/**
 * 成长轨迹 - 自定义样�? */

:root {
    --primary-color: #4A90E2;
    --secondary-color: #7ED321;
    --accent-color: #F5A623;
    --bg-light: #F8F9FA;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

* {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-bottom: 1rem;
}

/* 导航�?*/
.navbar {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #4A90E2 0%, #5B9FE8 100%) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
}

.nav-link.active {
    background: rgba(255,255,255,0.2) !important;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    font-weight: 600;
}

/* 统计卡片 */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateX(5px);
}

.stat-card.success { border-left-color: var(--secondary-color); }
.stat-card.warning { border-left-color: var(--accent-color); }
.stat-card.danger { border-left-color: #E74C3C; }
.stat-card.info { border-left-color: #3498DB; }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.success .stat-icon { background: rgba(126, 211, 33, 0.15); color: var(--secondary-color); }
.stat-card.warning .stat-icon { background: rgba(245, 166, 35, 0.15); color: var(--accent-color); }
.stat-card.danger .stat-icon { background: rgba(231, 76, 60, 0.15); color: #E74C3C; }
.stat-card.info .stat-icon { background: rgba(52, 152, 219, 0.15); color: #3498DB; }

/* 按钮样式 */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5B9FE8 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3A7BC8 0%, #4A90E2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #8FE033 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #6DB81E 0%, var(--secondary-color) 100%);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
}

/* 徽章 */
.badge {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge-subject {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.badge-grade {
    background: rgba(126, 211, 33, 0.1);
    color: #5A9E00;
}

.badge-difficulty {
    padding: 0.25em 0.5em;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 2px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: rgba(74, 144, 226, 0.2);
    text-decoration: none;
}

/* 时间�?*/
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 成就徽章 */
.achievement-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    transform: scale(1.1) rotate(5deg);
}

.achievement-badge.locked {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    filter: grayscale(100%);
}

/* 进度�?*/
.progress {
    border-radius: 10px;
    height: 10px;
    background: rgba(74, 144, 226, 0.1);
}

.progress-bar {
    border-radius: 10px;
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 300px;
}

/* 错题卡片 */
.mistake-card {
    border-left: 4px solid #E74C3C;
    transition: all 0.3s ease;
}

.mistake-card.mastered {
    border-left-color: var(--secondary-color);
    opacity: 0.85;
}

.mistake-card:hover {
    border-left-width: 6px;
}

/* 榜样人物卡片 */
.role-model-card {
    text-align: center;
    padding: 2rem;
}

.role-model-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

/* 心情选择 */
.mood-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mood-option {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.mood-option:hover {
    border-color: var(--primary-color);
}

.mood-option.selected {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

/* 模态框 */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* 富文本编辑器 */
.editor-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.editor-toolbar {
    background: #f8f9fa;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.editor-content {
    min-height: 300px;
    padding: 1rem;
}

/* 空状�?*/
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 0.5rem;
}

/* 响应式调�?*/
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease infinite;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(var(--primary-color), 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 打印样式 */
@media print {
    .navbar, .footer, .btn, nav {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* 滚动条美�?*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 工具提示 */
.tooltip-inner {
    border-radius: 6px;
}

/* 下拉菜单 */
.dropdown-menu {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
/* ҳ����ʽ */
footer.footer-dark,
.footer-dark {
    background: linear-gradient(180deg, #0f1923 0%, #1a2332 100%) !important;
    background-color: #0f1923 !important;
    color: #ffffff;
    border-top: 4px solid #4A90E2;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}
.footer-dark .footer-title {
    color: #ffffff;
}
.footer-dark .footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}
.footer-dark .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-dark .footer-link:hover {
    color: #7ED321;
}
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0 1rem;
}


/* ֪ʶ��������ʽ */
.kp-content {
    line-height: 1.8;
    color: var(--text-dark);
}
.kp-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary-color);
}
.kp-content h3:first-child {
    margin-top: 0;
}
.kp-content p {
    margin-bottom: 0.75rem;
}
.kp-content ul, .kp-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.kp-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.kp-content strong {
    color: var(--accent-color);
    font-weight: 600;
}
.kp-content table {
    margin: 1rem 0;
    font-size: 0.95rem;
}
.kp-content table th {
    background: rgba(74, 144, 226, 0.08);
    color: var(--primary-color);
    font-weight: 600;
}
.kp-content code {
    background: rgba(74, 144, 226, 0.08);
    color: var(--primary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}
.kp-content ol > li {
    padding-left: 0.25rem;
}
