/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #333;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* 段落样式 */
p {
    margin-bottom: 1rem;
}

/* 链接样式 */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #fff;
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    color: #fff;
    background-color: #004499;
    border-color: #004499;
    text-decoration: none;
}

.btn-outline-primary {
    color: #0066cc;
    background-color: transparent;
    border-color: #0066cc;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #0066cc;
    border-color: #0066cc;
    text-decoration: none;
}

.btn-link {
    color: #0066cc;
    background-color: transparent;
    border-color: transparent;
    padding: 0;
}

.btn-link:hover {
    color: #004499;
    background-color: transparent;
    border-color: transparent;
    text-decoration: underline;
}

/* 导航栏样式 */
.navbar {
    padding: 1rem 0;
}

.logo-img {
    max-height: 50px;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #0066cc;
}

.dropdown-menu {
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #333;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #0066cc;
    background-color: #f8f9fa;
}

/* 轮播图样式 */
.banner-section {
    position: relative;
    overflow: hidden;
}

.carousel-inner img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    bottom: 30%;
    text-align: center;
}

.carousel-caption h5 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 通用区块样式 */
.py-12 {
    padding: 6rem 0;
}

.mb-8 {
    margin-bottom: 4rem;
}

/* 区块标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

/* 产品分类卡片样式 */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-info {
    padding: 1.5rem;
    background-color: #fff;
}

.category-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-info p {
    color: #666;
    margin-bottom: 1rem;
}

/* 公司简介样式 */
.about-section img {
    max-width: 100%;
    height: auto;
}

/* 新闻卡片样式 */
.news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-info {
    padding: 1.5rem;
    background-color: #fff;
}

.news-date {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.news-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #0066cc;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0;
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 页脚样式 */
.footer {
    background-color: #1a1a1a;
    color: #999;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-social {
    margin-top: 1.5rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #333;
    color: #999;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #004499;
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .carousel-inner img {
        height: 400px;
    }
    
    .carousel-caption h5 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .py-12 {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    .carousel-inner img {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 20%;
    }
    
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .category-card img,
    .news-card img {
        height: 150px;
    }
    
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .footer .col-md-4,
    .footer .col-md-2 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel-inner img {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 10%;
    }
    
    .carousel-caption h5 {
        font-size: 1.25rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .py-12 {
        padding: 3rem 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}