/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 700;
}

.navbar-brand i {
    margin-right: 5px;
}

/* 页眉样式 */
header.bg-light {
    background-color: #f8f9fa !important;
    padding: 3rem 0;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

/* 页脚样式 */
footer {
    background-color: #212529 !important;
}

.social-icons a {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #0d6efd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid #0d6efd;
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .right {
        left: 0%;
    }
}

/* 标签云样式 */
.tag-cloud a {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    transform: scale(1.1);
}

/* 404页面样式 */
.error-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}

/* 联系表单样式 */
.form-control,
.form-select {
    padding: 10px 15px;
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 产品详情页样式 */
.product-gallery-thumb {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    opacity: 1;
}

/* 新闻详情页样式 */
.news-content img {
    max-width: 100%;
    height: auto;
}

.news-content h4 {
    padding-bottom: 0.3em;
    border-bottom: 1px solid #eaecef;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

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