/* DH Truck Parts - Professional Industrial UI */
:root {
    --primary-black: #111111;
    --primary-dark: #1a1a1a;
    --primary-red: #990000;
    --primary-red-bright: #cc0000;
    --metal-dark: #2d2d2d;
    --metal-medium: #4a4a4a;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --gradient-red: linear-gradient(135deg, #990000 0%, #cc0000 100%);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-red-glow: 0 0 30px rgba(153, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Roboto', sans-serif; font-size: 16px; line-height: 1.6; color: var(--primary-dark); background: #ffffff; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Oswald', 'Arial Black', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* Navigation - Top Bar completely removed */
.top-bar { display: none !important; height: 0 !important; visibility: hidden !important; }

.navbar { background: rgba(17,17,17,0.95) !important; backdrop-filter: blur(20px); padding: 0; border-bottom: 2px solid var(--primary-red); box-shadow: var(--shadow-lg); position: sticky; top: 0; z-index: 1000; }
.navbar-brand { font-family: 'Oswald', sans-serif; font-size: 2rem !important; font-weight: 700; color: var(--white) !important; letter-spacing: 0.05em; text-transform: uppercase; padding: 0; display: flex; align-items: center; }
.navbar-brand:hover { color: var(--primary-red-bright) !important; }
.navbar-brand span { color: var(--primary-red-bright); }

.navbar-nav .nav-link { font-family: 'Oswald', sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--white) !important; text-transform: uppercase; letter-spacing: 0.1em; padding: 25px 20px !important; position: relative; transition: 0.3s; }
.navbar-nav .nav-link::before { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--gradient-red); transition: 0.3s; transform: translateX(-50%); }
.navbar-nav .nav-link:hover::before { width: 100%; }
.navbar-nav .nav-link:hover { color: var(--primary-red-bright) !important; text-shadow: 0 0 20px rgba(153,0,0,0.6); }

/* Hero Carousel Section - 参考www.dhtruckparts.com风格 */
.hero-carousel-section { 
    position: relative; 
    overflow: hidden; 
    background: var(--primary-dark); 
}

#heroCarousel { 
    min-height: 100vh; 
    max-height: 900px;
}

.carousel-slide { 
    min-height: 100vh; 
    max-height: 900px;
    display: flex; 
    align-items: center; 
    position: relative; 
    padding: 0;
}

.min-vh-75 { 
    min-height: 75vh; 
}

.carousel-content { 
    padding: 100px 0; 
    z-index: 2;
}

.carousel-title { 
    font-family: 'Oswald', sans-serif; 
    font-size: 4rem; 
    font-weight: 700; 
    color: var(--white); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.carousel-title span { 
    color: var(--primary-red-bright); 
    position: relative; 
    display: inline-block;
}

.carousel-title span::after { 
    content: ''; 
    position: absolute; 
    bottom: 5px; 
    left: 0; 
    width: 100%; 
    height: 4px; 
    background: var(--primary-red); 
}

.carousel-subtitle { 
    font-family: 'Roboto', sans-serif; 
    font-size: 1.8rem; 
    font-weight: 500; 
    color: #cccccc; 
    margin-bottom: 1.5rem; 
    line-height: 1.4;
}

.carousel-text { 
    font-family: 'Roboto', sans-serif; 
    font-size: 1.2rem; 
    color: #999999; 
    margin-bottom: 2.5rem; 
    line-height: 1.8; 
    max-width: 600px;
}

.carousel-buttons { 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
}

.carousel-image-wrapper { 
    position: relative;
    text-align: center;
}

.carousel-image-wrapper img { 
    max-width: 100%; 
    max-height: 600px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)); 
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Carousel Controls - 大圆角按钮 */
.carousel-control-prev, .carousel-control-next { 
    width: 70px; 
    height: 70px; 
    background: var(--primary-red); 
    border-radius: 50%; 
    top: 50%; 
    transform: translateY(-50%); 
    opacity: 0.9; 
    transition: all 0.3s ease; 
    border: 3px solid rgba(255,255,255,0.2);
}

.carousel-control-prev:hover, .carousel-control-next:hover { 
    opacity: 1; 
    background: var(--primary-red-bright); 
    box-shadow: 0 0 40px rgba(153,0,0,0.8); 
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev { 
    left: 40px; 
}

.carousel-control-next { 
    right: 40px; 
}

.carousel-control-prev-icon, .carousel-control-next-icon { 
    width: 24px; 
    height: 24px; 
}

/* Carousel Indicators - 底部圆点 */
.carousel-indicators { 
    bottom: 40px; 
    z-index: 10;
}

.carousel-indicators button { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.4); 
    border: 2px solid rgba(255,255,255,0.6);
    margin: 0 10px; 
    transition: all 0.3s ease; 
    cursor: pointer;
}

.carousel-indicators button:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.carousel-indicators button.active { 
    background: var(--primary-red-bright); 
    width: 40px; 
    border-radius: 7px; 
    border-color: var(--primary-red-bright);
    box-shadow: 0 0 20px rgba(153,0,0,0.6);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-title {
        font-size: 3rem;
    }
    
    .carousel-subtitle {
        font-size: 1.5rem;
    }
    
    .carousel-text {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 20px;
    }
    
    .carousel-control-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    #heroCarousel,
    .carousel-slide {
        min-height: auto;
        height: auto;
    }
    
    /* 隐藏文字层，实现纯图片展示 */
    .carousel-content {
        display: none !important;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-subtitle {
        font-size: 1.3rem;
    }
    
    .carousel-buttons {
        flex-direction: column;
    }
}

/* Hero Section */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d2d2d 100%); overflow: hidden; padding: 120px 0 80px; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(45deg, transparent 48%, rgba(153,0,0,0.1) 50%, transparent 52%), linear-gradient(-45deg, transparent 48%, rgba(153,0,0,0.1) 50%, transparent 52%); background-size: 60px 60px; opacity: 0.3; }
.hero-section::after { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--gradient-red); box-shadow: var(--shadow-red-glow); }

.hero-title { font-family: 'Oswald', sans-serif; font-size: 4.5rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; line-height: 1.1; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hero-title span { color: var(--primary-red-bright); position: relative; }
.hero-title span::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 8px; background: var(--primary-red); opacity: 0.3; z-index: -1; }

.hero-subtitle { font-size: 1.5rem; color: #e5e5e5; margin-bottom: 40px; font-weight: 300; line-height: 1.6; }
.hero-text { font-size: 1.1rem; color: #999; margin-bottom: 40px; line-height: 1.8; }

/* Industrial Button */
.btn-industrial { display: inline-block; padding: 18px 45px; font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white); background: var(--gradient-red); border: none; position: relative; overflow: hidden; transition: 0.4s; cursor: pointer; text-decoration: none; }
.btn-industrial::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: 0.5s; }
.btn-industrial:hover::before { left: 100%; }
.btn-industrial:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(153,0,0,0.5); }

.btn-industrial-outline { display: inline-block; padding: 16px 40px; font-family: 'Oswald', sans-serif; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white); background: transparent; border: 2px solid var(--primary-red); position: relative; transition: 0.3s; cursor: pointer; text-decoration: none; }
.btn-industrial-outline:hover { background: var(--primary-red); color: var(--white); box-shadow: var(--shadow-red-glow); }

/* Section Title */
.section-title { font-family: 'Oswald', sans-serif; font-size: 3rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 15px; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 4px; background: var(--gradient-red); }
.section-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 50px; font-weight: 300; }

/* Categories Section */
.categories-section { padding: 100px 0; background: var(--off-white); position: relative; }
.categories-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-red), transparent); }

.category-card { background: var(--white); border: none; border-radius: 16px; overflow: hidden; position: relative; transition: 0.4s; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.category-card::before { display: none; }
.category-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }

.category-card img { width: 100%; height: 250px; object-fit: cover; transition: 0.5s; filter: grayscale(20%); border-radius: 16px 16px 0 0; }
.category-card:hover img { transform: scale(1.05); filter: grayscale(0%); }

.category-card .card-body { padding: 25px; position: relative; }
.category-card .card-title { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.category-card .card-text { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }

.category-card .btn-view { display: inline-block; padding: 10px 25px; font-family: 'Oswald', sans-serif; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--white); background: var(--primary-red); border: none; border-radius: 50px; transition: 0.3s; text-decoration: none; box-shadow: 0 4px 15px rgba(153, 0, 0, 0.3); }
.category-card .btn-view:hover { background: #cc0000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(153, 0, 0, 0.4); }

/* Why Choose Us */
.why-us-section { padding: 100px 0; background: var(--primary-dark); position: relative; }
.why-us-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%231a1a1a" width="100" height="100"/><circle fill="%232d2d2d" cx="50" cy="50" r="40"/></svg>') center/cover; opacity: 0.1; }

.why-us-section .section-title { color: var(--white); }
.why-us-section .section-subtitle { color: #999; }

.feature-box { text-align: center; padding: 40px 30px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); transition: 0.4s; position: relative; overflow: hidden; }
.feature-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-red); opacity: 0; transition: 0.4s; }
.feature-box:hover::before { opacity: 0.1; }
.feature-box:hover { transform: translateY(-10px); border-color: var(--primary-red); }

.feature-box i { font-size: 3.5rem; color: var(--primary-red-bright); margin-bottom: 20px; display: block; transition: 0.3s; }
.feature-box:hover i { transform: scale(1.2); text-shadow: var(--shadow-red-glow); }

.feature-box h5 { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 15px; }
.feature-box p { color: #999; font-size: 0.95rem; line-height: 1.6; }

/* Products Section */
.products-section { padding: 100px 0; background: var(--white); }

.product-card { background: var(--white); border: none; border-radius: 0; overflow: hidden; position: relative; transition: 0.4s; box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.product-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 3px solid transparent; transition: 0.4s; pointer-events: none; }
.product-card:hover::after { border-color: var(--primary-red); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }

.product-card .product-image { position: relative; overflow: hidden; height: 350px; background-color: #f8f9fa; display: flex; align-items: center; justify-content: center; }
.product-card .product-image img { width: 100%; height: 100%; object-fit: contain; transition: 0.5s; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-card .product-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(17,17,17,0.7); opacity: 0; transition: 0.4s; display: flex; align-items: center; justify-content: center; }
.product-card:hover .product-overlay { opacity: 1; }

.product-card .product-body { padding: 25px; }
.product-card .product-title { font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 10px; }
.product-card .product-price { font-size: 1.5rem; font-weight: 700; color: var(--primary-red); margin-bottom: 15px; }
.product-card .product-desc { color: #666; font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }

/* CTA Section */
.cta-section { padding: 120px 0; background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--gradient-red); opacity: 0.1; }
.cta-section::after { content: ''; position: absolute; top: 50%; right: 0; width: 400px; height: 400px; background: radial-gradient(circle, rgba(153,0,0,0.3) 0%, transparent 70%); transform: translateY(-50%); }

.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-title { font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.cta-text { font-size: 1.2rem; color: #e5e5e5; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer { background: var(--primary-black); padding: 80px 0 0; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-red); }

.footer-title { font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 25px; position: relative; padding-bottom: 15px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--primary-red); }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #999; text-decoration: none; transition: 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: var(--primary-red-bright); padding-left: 5px; }

.footer-contact { color: #999; font-size: 0.95rem; line-height: 2; }
.footer-contact i { color: var(--primary-red-bright); margin-right: 10px; width: 20px; }

.footer-bottom { background: rgba(0,0,0,0.3); padding: 25px 0; margin-top: 60px; }
.footer-copyright { color: #666; font-size: 0.9rem; }

/* Social Icons */
.social-icons a { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; background: rgba(255,255,255,0.1); color: #999; margin-right: 10px; transition: 0.3s; }
.social-icons a:hover { background: var(--primary-red); color: var(--white); transform: translateY(-3px); }

/* Mobile Optimization */
@media (max-width: 991px) {
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .navbar-nav .nav-link { padding: 15px 20px !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .top-bar { display: none; }
    .footer { padding: 60px 0 0; }
    .footer-bottom { padding: 20px 0; margin-top: 40px; }
}

/* Tablet 适配 */
@media (max-width: 992px) {
    .product-card .product-image { height: 250px; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 80px 0 50px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-text { font-size: 0.95rem; margin-bottom: 30px; }
    .section-title { font-size: 1.8rem; text-align: left; }
    .section-subtitle { text-align: left; }
    .cta-title { font-size: 2rem; }
    
    /* 分类区域移动端优化：单列流式布局 */
    .categories-section .row {
        display: block; /* 恢复单列 */
        padding: 0;
    }
    .categories-section .col-lg-4.col-md-6 {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    .category-card {
        margin-bottom: 20px;
        border-radius: 12px;
    }
    .category-card .card-text {
        display: none; /* 移动端隐藏描述，节省空间 */
    }
    .category-card img {
        width: 100%;
        height: 160px !important; /* 适中高度 */
        object-fit: cover;
        object-position: center center;
        border-radius: 12px 12px 0 0;
        padding: 0;
    }
    .category-card .card-body {
        padding: 15px;
        text-align: center; /* 内容居中 */
    }
    .category-card .card-title {
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    .category-card .btn-view {
        padding: 10px 0;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
    
    .product-card .product-image { height: 200px; object-fit: contain; background: #f8f9fa; }
    .btn-industrial { padding: 14px 30px; font-size: 0.85rem; }
    .btn-industrial-outline { padding: 12px 25px; font-size: 0.8rem; }
    .categories-section { padding: 40px 0; }
    .why-us-section { padding: 60px 0; }
    .products-section { padding: 60px 0; }
    .cta-section { padding: 80px 0; }
}

@media (max-width: 576px) {
    .hero-section { padding: 60px 0 40px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; }
    .cta-title { font-size: 1.6rem; }
    .btn-industrial { padding: 12px 25px; font-size: 0.8rem; width: 100%; text-align: center; }
    .btn-industrial-outline { padding: 10px 20px; font-size: 0.75rem; width: 100%; text-align: center; }
    .category-card img {
        width: 100%;
        height: 180px !important;
        object-fit: cover;
        background: #fff;
        padding: 0;
        border-radius: 16px 16px 0 0;
    }
    .product-card .product-image { height: 180px; object-fit: contain; background: #f8f9fa; }
    .category-card .card-body { padding: 20px; }
    .product-card .product-body { padding: 20px; }
    .footer-title { font-size: 1.1rem; }
    .footer { padding: 40px 0 0; }
    .footer-bottom { padding: 15px 0; margin-top: 30px; }
}

/* Mobile Bottom Nav Enhancement */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(17,17,17,0.98);
        backdrop-filter: blur(20px);
        padding: 10px 0;
        z-index: 999;
        border-top: 2px solid #990000;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-bottom-nav a {
        color: #fff;
        text-decoration: none;
        padding: 10px 15px;
        font-size: 0.8rem;
        transition: 0.3s;
    }
    
    .mobile-bottom-nav a:hover {
        color: #cc0000;
    }
    
    .mobile-bottom-nav i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    body { padding-bottom: 70px; }
}

/* Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover { transform: none; }
    .product-card:hover { transform: none; }
    .category-card::before { transform: scaleX(1); }
    .btn-industrial:hover { transform: none; }
    .btn-industrial-outline:hover { transform: none; }
}

/* 手机端横屏优化 */
@media (max-width: 767px) and (orientation: landscape) {
    .category-card img {
        width: 100%;
        height: 180px;
        object-fit: contain;
        background: #f8f8f8;
        padding: 10px;
    }

    .product-card .product-image {
        height: 160px;
        object-fit: contain;
        background: #f8f8f8;
    }
}

/* Mobile Form Optimization */
@media (max-width: 576px) {
    input, textarea, select {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    button[type="submit"] {
        padding: 14px !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile Typography */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    p { font-size: 0.9rem; line-height: 1.6; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.slide-in-left { animation: slideInLeft 0.6s ease forwards; }
.slide-in-right { animation: slideInRight 0.6s ease forwards; }
.scale-in { animation: scaleIn 0.4s ease forwards; }

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Animations */
.category-card, .product-card, .feature-box {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.btn-industrial, .btn-industrial-outline {
    transition: all 0.3s ease;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

/* Smooth Scroll */
html { scroll-behavior: smooth; }

/* Page Transition */
.page-transition {
    animation: fadeInUp 0.5s ease;
}

/* Button Ripple Effect */
.btn-industrial {
    position: relative;
    overflow: hidden;
}

.btn-industrial::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-industrial:active::after {
    width: 300px;
    height: 300px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-red-bright); }

/* Selection */
::selection { background: var(--primary-red); color: var(--white); }

/* ================= 合并导航栏 (Sticky Header) ================= */
.site-header {
    width: 100%;
    background-color: #1a1a1a; /* 与顶部黑色导航栏一致 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1030;
}

/* 顶部黑色导航栏样式调整 - Logo 显著放大版 */
.site-header .navbar {
    background-color: transparent !important;
    padding: 0 !important; /* 缩减间距以容纳更大的 LOGO */
    margin-bottom: 0 !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    min-height: unset !important;
    height: auto; /* 允许高度随内容变化 */
}

/* Brand Container Layout */
.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between logo and text */
}

.logo-img {
    height: 80px !important;
    width: auto !important;
    display: block;
    margin-top: 0;
    transform: scale(1.25);
    transform-origin: left center;
    margin-right: 10px;
}

.brand-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-line-1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-line-2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #cccccc !important; /* Slightly lighter for secondary text */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 文字配合放大 */
.brand-text {
    transform: translateY(-2px) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-text span:first-child {
    font-size: 42px !important;
    line-height: 1.1 !important;
    letter-spacing: 2px;
}
.brand-text span:last-child {
    font-size: 26px !important;
    margin-top: 2px !important;
    opacity: 0.95;
    letter-spacing: 2px;
}

/* 红色导航栏样式调整 */
.red-nav-wrapper {
    background-color: #990000; /* 红色背景 */
    width: 100%;
    margin-top: 0 !important;
}

/* 移动端适配 - 协调版 */
@media (max-width: 991.98px) {
    .site-header .navbar {
        padding: 6px 0 !important;
    }
    .navbar-brand {
        gap: 10px !important;
    }
    .logo-img {
        height: 60px !important;
    }
    .brand-text {
        transform: translateY(-1px) !important;
    }
    .brand-text span:first-child { font-size: 22px !important; }
    .brand-text span:last-child { font-size: 15px !important; margin-top: 1px !important; }
    
    .red-nav-wrapper {
        display: none !important;
    }
    .navbar-collapse {
        background-color: #2d2d2d;
        padding: 10px;
        border-radius: 4px;
        margin-top: 10px;
    }
}

/* ================= Hero 轮播图 (参考 dhtruckparts.com 风格) ================= */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 600px;
    min-height: 600px;
}
.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 2rem 0;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-title span {
    color: #ffcc00;
    display: block;
    font-size: 4rem;
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffcc00;
}
.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #e0e0e0;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: #990000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #990000;
}
.btn-hero-primary:hover {
    background-color: #cc0000;
    border-color: #cc0000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(153,0,0,0.4);
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}
.btn-hero-secondary:hover {
    background-color: #ffffff;
    color: #990000;
    transform: translateY(-2px);
}
/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(153,0,0,0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}
.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #cc0000;
}
/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
    z-index: 3;
}
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    margin: 0 6px;
    transition: all 0.3s ease;
}
.carousel-indicators button.active {
    background-color: #990000;
    border-color: #990000;
    width: 30px;
    border-radius: 6px;
}
/* 平板端适配 */
@media (max-width: 992px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        height: 500px;
        min-height: 500px;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-title span { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-text { font-size: 1rem; }
}
/* 手机端适配 */
@media (max-width: 768px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        height: auto !important;
        min-height: auto !important;
    }
    .hero-slide {
        min-height: auto !important;
        height: auto !important;
        aspect-ratio: 16 / 9; /* 强制容器保持宽屏横图比例 */
        background-position: center center;
        background-size: contain; /* 确保图片完整展示 */
        background-repeat: no-repeat;
    }
    .hero-overlay {
        display: none !important;
    }
    .hero-content {
        display: none !important;
    }
    .carousel-control-prev, .carousel-control-next { display: none !important; }
    .carousel-indicators { bottom: 10px; }
}

/* ================= 分页导航终极修复 (高优先级覆盖) ================= */
/* 强制重置 Bootstrap 分页样式 */
nav ul.pagination,
.pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

nav ul.pagination li.page-item,
.pagination li.page-item {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

nav ul.pagination li.page-item a.page-link,
nav ul.pagination li.page-item span.page-link,
.pagination li.page-item a.page-link,
.pagination li.page-item span.page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

/* 修复箭头符号尺寸和颜色 */
nav ul.pagination li.page-item a.page-link,
nav ul.pagination li.page-item span.page-link,
.pagination li.page-item a.page-link,
.pagination li.page-item span.page-link {
    font-family: 'Roboto', sans-serif !important; /* 防止图标字体覆盖 */
}

nav ul.pagination li.page-item.active a.page-link,
nav ul.pagination li.page-item.active span.page-link,
.pagination li.page-item.active a.page-link,
.pagination li.page-item.active span.page-link {
    background-color: #990000 !important;
    border-color: #990000 !important;
    color: #ffffff !important;
    z-index: 3 !important;
}

nav ul.pagination li.page-item:not(.disabled):not(.active) a.page-link:hover,
nav ul.pagination li.page-item:not(.disabled):not(.active) span.page-link:hover,
.pagination li.page-item:not(.disabled):not(.active) a.page-link:hover,
.pagination li.page-item:not(.disabled):not(.active) span.page-link:hover {
    background-color: #f8f9fa !important;
    border-color: #990000 !important;
    color: #990000 !important;
    z-index: 2 !important;
}

nav ul.pagination li.page-item.disabled a.page-link,
nav ul.pagination li.page-item.disabled span.page-link,
.pagination li.page-item.disabled a.page-link,
.pagination li.page-item.disabled span.page-link {
    background-color: #f8f9fa !important;
    border-color: #eeeeee !important;
    color: #cccccc !important;
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

/* 移动端适配 */
@media (max-width: 576px) {
    nav ul.pagination, .pagination { gap: 3px !important; }
    nav ul.pagination li.page-item a.page-link,
    nav ul.pagination li.page-item span.page-link,
    .pagination li.page-item a.page-link,
    .pagination li.page-item span.page-link { 
        min-width: 32px !important; 
        height: 32px !important; 
        font-size: 12px !important; 
        padding: 0 6px !important;
    }
}

/* ================= 产品卡片美化 (全局) ================= */
.product-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #990000;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
}

.product-sku {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #999;
}

/* 移动端产品卡片适配 */
@media (max-width: 768px) {
    .product-card {
        border-radius: 10px !important;
    }
    .product-image img {
        height: 180px;
    }
}

/* ================= 询盘页面卡片美化 ================= */
.contact-card {
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

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

/* Contact 页面表单容器 */
.bg-white.border-start {
    border-radius: 12px !important;
}

/* Inquiry 页面表单容器 */
.product-detail .bg-white,
.inquiry-form-container {
    border-radius: 12px !important;
}

/* Google 地图容器 */
.map-container {
    border-radius: 12px !important;
    overflow: hidden;
}

/* 移动端询盘卡片适配 */
@media (max-width: 768px) {
    .contact-card,
    .bg-white.border-start {
        border-radius: 10px !important;
    }
}

/* ================= 产品详情页图片美化 ================= */
.main-image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.main-image-container img {
    border-radius: 12px;
}

.thumbnail-img {
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumbnail-img:hover {
    border-color: #990000;
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: #990000;
    box-shadow: 0 0 0 2px rgba(153, 0, 0, 0.2);
}

/* 移动端产品详情图片适配 */
@media (max-width: 768px) {
    .main-image-container {
        border-radius: 10px;
    }
    .thumbnail-img {
        border-radius: 6px;
    }
}

/* ================= Inquiry 产品卡片美化 ================= */
.inquiry-product-card {
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.inquiry-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #990000;
}

.inquiry-product-image {
    height: 150px;
    overflow: hidden;
}

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

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

/* 移动端 Inquiry 产品卡片适配 */
@media (max-width: 768px) {
    .inquiry-product-card {
        border-radius: 10px;
    }
    .inquiry-product-image {
        height: 120px;
    }
}