/* 全局样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

/* 轮播图样式 */
.carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 数据统计样式 */
.stats-item {
    text-align: center;
    padding: 30px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.stats-item .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stats-item .text {
    color: var(--text-color);
    font-size: 1.1rem;
}

/* 新闻动态样式 */
.news-item {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: white;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(10px);
}

.news-item .date {
    color: var(--primary-color);
    font-weight: bold;
}

/* 返回顶部按钮样式 */
#backToTop {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

#backToTop:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .stats-item {
        margin-bottom: 20px;
    }
    
    .news-item {
        margin-bottom: 15px;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 联系表单样式 */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 20px;
}

.contact-form .btn-primary {
    padding: 12px 30px;
    font-weight: bold;
} 