/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
}

.main-nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-item {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    opacity: 0.9;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 18px;
}

/* 添加导航栏下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 10px;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #3498db;
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 通用容器 */
.container {
    width: 1100px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* 输入控件 */
.input-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fff;
}

.input-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 按钮样式 */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #2c3e50;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 36px;
    font-weight: 300;
    color: #3498db;
    margin: 15px 0;
}

.stat-label {
    color: #7f8c8d;
    font-size: 16px;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
} 