/* 全局样式 */
:root {
    --primary-color: #0066cc;
    --secondary-color: #333333;
    --text-color: #666666;
    --border-color: #e5e5e5;
    --hover-color: #0052a3;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 导航栏 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color) !important;
    padding: 0.5rem 0;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* 轮播图 */
.hero-carousel {
    height: 500px;
}

.carousel-item {
    height: 500px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    z-index: 2;
    position: relative;
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.carousel-caption .btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

/* 分类卡片 */
.category-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-color);
    margin-bottom: 0;
}

/* 产品卡片 */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

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

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    min-height: 2.5rem;
}

.product-card .card-text {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.product-model {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* 产品列表页 */
.sidebar-category {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.sidebar-category .list-group-item {
    border: none;
    border-left: 3px solid transparent;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.sidebar-category .list-group-item:hover,
.sidebar-category .list-group-item.active {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.view-toggle-btn {
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    background: white;
    transition: all 0.3s;
}

.view-toggle-btn:hover,
.view-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 产品详情页 */
.product-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-meta {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.product-meta .meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.spec-table {
    margin-top: 2rem;
}

.spec-table table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th {
    background: #f8f9fa;
    font-weight: bold;
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.spec-table td {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
}

.spec-table tr:nth-child(even) {
    background: #f8f9fa;
}

.key-features {
    margin-top: 2rem;
}

.key-features ul {
    list-style: none;
    padding: 0;
}

.key-features li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

.key-features li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 页脚 */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    max-width: 200px;
    height: auto;
}

.footer h5 {
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #ccc;
    display: block;
    padding: 0.3rem 0;
}

.footer a:hover {
    color: white;
}

.footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* 面包屑 */
.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
}

/* 按钮 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 特色功能区域 */
.features-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h5 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-carousel,
    .carousel-item {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .product-card img {
        height: 200px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 分页 */
.pagination {
    margin-top: 2rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    color: var(--hover-color);
    background-color: #f8f9fa;
}

/* 联系表单 */
.contact-info .icon-box {
    width: 50px;
    text-align: center;
}

/* 时间线 */
.timeline-item {
    position: relative;
}

/* 关于页面数据统计 */
.counter-item {
    padding: 2rem;
}

.counter-item h2 {
    font-size: 3rem;
}

/* 顶部栏 */
.top-bar {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: white;
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* 语言切换 */
.language-switcher .dropdown-toggle {
    color: var(--secondary-color);
    font-weight: 500;
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
}

.language-switcher .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 搜索框 */
.search-box {
    max-width: 300px;
}

.search-box .form-control {
    border-radius: 20px;
}

/* 标签 */
.badge {
    font-weight: 500;
}

/* 解决方案卡片 */
.solution-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

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

.solution-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .card-img-top {
    transform: scale(1.05);
}

.solution-card .solution-icon {
    margin-top: 1rem;
}

.solution-card .solution-icon i {
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-icon i {
    transform: scale(1.1);
    color: var(--hover-color);
}

.solution-card .card-title {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.solution-card .card-text {
    min-height: 4rem;
    margin-bottom: 1.5rem;
}

.solution-card .btn {
    transition: all 0.3s ease;
}

/* 页面标题区域 */
.breadcrumb-nav {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    backdrop-filter: blur(5px);
}

.page-header-section {
    position: relative;
    padding: 5rem 0;
    background-image: url('../images/headers/page-header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 51, 102, 0.85) 100%);
    z-index: 1;
}

.page-header-section .container {
    z-index: 2;
}

.page-header-section h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.page-header-section p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin: 0 auto;
}

/* 案例卡片 */
.case-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

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

.case-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .card-img-top {
    transform: scale(1.05);
}

.case-card .card-title {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.case-card .card-text {
    min-height: 4.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.case-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
}

.case-card .case-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.case-card .case-meta small {
    line-height: 1.8;
}



