/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd !important;
}

.nav-link {
    color: #666 !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #0d6efd !important;
}

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 内容区域样式 */
.container {
    max-width: 1200px;
}

section {
    padding: 4rem 0;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 页脚样式 */
footer {
    background-color: #343a40;
    color: white;
    padding: 3rem 0 1rem;
}

footer h3 {
    margin-bottom: 1.5rem;
    color: #fff;
}

footer p, footer a {
    color: #adb5bd;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .social-icons a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
}

footer .copyright {
    border-top: 1px solid #495057;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

/* 产品列表样式 */
.product-list .card {
    margin-bottom: 2rem;
}

/* 新闻列表样式 */
.news-list .card {
    margin-bottom: 2rem;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* 招聘信息样式 */
.job-item {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.job-title {
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.job-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 联系信息样式 */
.contact-info {
    margin-bottom: 2rem;
}

.contact-info i {
    color: #0d6efd;
    margin-right: 1rem;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    border-color: #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* 图片懒加载样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .card-img-top {
        height: 150px;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}