/* 全局样式 */
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #17a2b8 !important;
}

/* 轮播图样式 */
.carousel-section {
    margin-bottom: 2rem;
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 5px;
}

/* 标题样式 */
.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background-color: #17a2b8;
}

/* 内容样式 */
.section-content {
    margin-bottom: 1rem;
    text-align: justify;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 联系信息样式 */
.contact-section {
    background-color: #343a40;
    color: white;
}

.social-icons a {
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #17a2b8 !important;
}

/* 页脚样式 */
.footer {
    background-color: #212529;
    color: white;
    font-size: 0.9rem;
}

.footer a {
    color: #17a2b8;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

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

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

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

.product-item {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.product-item img {
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

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

.news-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .company-name {
        display: none;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 0;
}

.btn-primary {
    background-color: #17a2b8;
    border-color: #17a2b8;
    border-radius: 0;
    transition: all 0.3s ease;
}

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

.btn-outline-primary {
    color: #17a2b8;
    border-color: #17a2b8;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

/* 表格样式 */
.table {
    margin-top: 2rem;
}

.table th {
    background-color: #f8f9fa;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
}

/* 图片画廊样式 */
.gallery {
    margin-top: 2rem;
}

.gallery-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 品质保证样式 */
.quality-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
}

.quality-item h4 {
    color: #17a2b8;
    margin-bottom: 1rem;
}