/* 全局样式 */
:root {
    --primary-color: #c41230;  /* 中国红 */
    --secondary-color: #1e3799; /* 深蓝色 */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    padding: 1rem 1.5rem;
    position: relative;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 60px;
}

/* Banner轮播图样式 */
.carousel-item {
    height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 按钮样式 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #a01028;
    border-color: #a01028;
    transform: scale(1.05);
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 列表样式 */
.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.list-group-item a:hover {
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background-color: #343a40;
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff !important;
}

/* 关于我们页面特殊样式 */
.timeline .card {
    margin-bottom: 1.5rem;
}

.timeline .card::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline .col-md-6:nth-child(odd) .card::before {
    right: -10px;
}

.timeline .col-md-6:nth-child(even) .card::before {
    left: -10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .timeline .card::before {
        display: none;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* 图片悬停效果 */
.img-hover {
    transition: transform 0.3s;
}

.img-hover:hover {
    transform: scale(1.05);
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* 表单样式 */
.form-control {
    border-radius: 0;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a01028;
}

/* 产品展示区样式 */
.product-showcase {
    background-color: var(--light-bg);
}

.product-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-card .card-text {
    color: #666;
    margin-bottom: 1.5rem;
    height: 48px;
    overflow: hidden;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-img-wrapper {
        height: 200px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1.1rem;
    }
}

/* 添加关于我们页面的特殊样式 */

/* 页面标题样式 */
.page-title {
    background: linear-gradient(45deg, var(--light-bg), #fff);
}

.page-title h1 {
    color: var(--text-color);
    font-weight: 300;
}

/* 公司简介样式 */
.company-intro .lead {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.img-wrapper {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 发展历程样式 */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.timeline-item .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-item .card::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline .col-md-6:nth-child(odd) .timeline-item .card::before {
    right: -8px;
}

.timeline .col-md-6:nth-child(even) .timeline-item .card::before {
    left: -8px;
}

/* 企业文化样式 */
.culture-card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.culture-card:hover {
    transform: translateY(-5px);
}

.culture-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* 荣誉资质样式 */
.honor-card {
    transition: transform 0.3s;
}

.honor-card:hover {
    transform: translateY(-5px);
}

.honor-title h5 {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 2rem;
        padding-right: 0;
    }
    
    .timeline-item .card::before {
        left: -8px !important;
        right: auto !important;
    }
    
    .culture-icon {
        width: 60px;
        height: 60px;
    }
}

/* 产品展示页面样式 */
.product-category .nav-link {
    color: var(--text-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    transition: all 0.3s;
}

.product-category .nav-link:hover,
.product-category .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

.product-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-hover {
    opacity: 1;
}

.product-features {
    margin-top: 1rem;
}

.product-features .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: normal;
}

.modal-body img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.pagination .page-link {
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 50px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
} 