/* 全局样式 */
body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* 数据卡片样式 */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    opacity: 0.8;
}

.counter {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 图表容器样式 */
.card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 图表容器样式 */
.card canvas {
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 16/9;
}

/* 表格样式 */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.table thead th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 热门页面列表样式 */
.list-group-item {
    border: none;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
}

/* 转化漏斗样式 */
.card-body {
    padding: 1.5rem;
}

/* 标题样式优化 */
h3.mb-4 {
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

h3.mb-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    border-radius: 3px;
}

/* 数据卡片增强 */
.card {
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .list-group-item {
        padding: 0.75rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    h3.mb-4 {
        font-size: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card, .table {
    animation: fadeIn 0.6s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .counter {
        font-size: 1.5rem;
    }
    
    canvas {
        height: 200px;
    }
    
    .table {
        font-size: 0.9rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}