/* 自定义样式 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
}

/* 顶部栏 */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: white;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* 导航栏 */
.navbar-brand h2 {
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: var(--dark-color);
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--primary-color);
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 轮播图 */
.hero-section {
    margin-top: -1px;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    bottom: 30%;
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* 通用样式 */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--dark-color);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

/* 公司介绍 */
.company-intro {
    background: white;
}

.feature-box {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h4 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 2rem;
}

.feature-box p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* 产品卡片 */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.product-card .card-title {
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-card .card-text {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.product-card ul li {
    margin-bottom: 0.5rem;
}

/* 优势部分 */
.advantage-item {
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    color: var(--primary-color);
}

.advantage-item h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-item p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* 客户logo */
.client-logo {
    padding: 20px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* 页脚 */
.footer {
    margin-top: 50px;
}

.footer h5 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: white;
}

.footer a {
    color: #ddd;
    transition: color 0.3s;
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.footer .list-unstyled li {
    margin-bottom: 10px;
}

.footer .social-links a {
    display: inline-block;
    transition: transform 0.3s;
}

.footer .social-links a:hover {
    transform: translateY(-3px);
}

/* 产品页面 */
.product-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.sidebar-box h4 {
    color: var(--dark-color);
    font-weight: 600;
}

.sidebar-box .list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.sidebar-box .list-group-item:last-child {
    border-bottom: none;
}

.sidebar-box .list-group-item a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-box .list-group-item a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
}

.related-product {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.related-product:hover {
    border-color: var(--primary-color);
}

.related-product h6 {
    color: var(--dark-color);
    transition: color 0.3s;
}

.related-product:hover h6 {
    color: var(--primary-color);
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

/* 分页 */
.pagination-wrapper {
    text-align: center;
}

.pagination {
    justify-content: center;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 文章样式 */
.entry-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.entry-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.entry-meta {
    font-size: 0.9rem;
}

.post-thumbnail {
    overflow: hidden;
    border-radius: 10px;
}

.post-thumbnail img {
    transition: transform 0.5s;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 404页面 */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* 搜索表单 */
.search-form {
    position: relative;
}

.search-form .form-control {
    padding-right: 50px;
    border-radius: 30px;
}

.search-form .btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 侧边栏 */
.widget {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .carousel-caption {
        padding: 20px;
        bottom: 20%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-box h4 {
        font-size: 1.5rem;
    }
    
    .top-bar .contact-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .top-bar .social-links {
        text-align: left;
        margin-top: 10px;
    }
    
    .footer .text-end {
        text-align: left !important;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .advantage-item {
        padding: 20px 15px;
    }
}