/* ===================================
   Global Styles
   =================================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --accent-color: #ff6b35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
}

/* ===================================
   Header & Navigation
   =================================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s;
}

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

/* ===================================
   Hero Banner
   =================================== */
.hero-banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-banner .carousel-item {
    height: 500px;
    background-size: cover;
    background-position: center;
}

.hero-banner .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    max-width: 600px;
    left: 10%;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s;
}

.hero-banner p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1s 0.3s backwards;
}

.hero-banner .btn {
    animation: fadeInUp 1s 0.6s backwards;
}

@media (max-width: 768px) {
    .hero-banner,
    .hero-banner .carousel-item {
        height: 400px;
    }
    .hero-banner h1 {
        font-size: 2rem;
    }
    .hero-banner .carousel-caption {
        left: 5%;
        right: 5%;
    }
}

/* ===================================
   Selling Points
   =================================== */
.section-padding {
    padding: 40px 0 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.section-title p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.selling-point-item {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    margin-bottom: 30px;
}

.selling-point-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.selling-point-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.selling-point-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ===================================
   Product Cards
   =================================== */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
}

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

.product-card .product-img {
    overflow: hidden;
}

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

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

.product-card .card-body {
    padding: 20px;
}

.product-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.product-card .price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ===================================
   Product Detail
   =================================== */
.product-gallery .main-img img {
    width: 100%;
    border-radius: 10px;
}

.product-gallery .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.product-gallery .thumbnails img:hover,
.product-gallery .thumbnails img.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.spec-table tr td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
}

.spec-table tr td:first-child {
    font-weight: 600;
    background-color: #f8f9fa;
    width: 30%;
}

/* ===================================
   Certificate/Case Section
   =================================== */
.certificate-item {
    text-align: center;
    padding: 15px;
    margin-bottom: 30px;
}

.certificate-item img {
    max-height: 150px;
    max-width: 100%;
    margin-bottom: 10px;
}

/* ===================================
   Contact Section
   =================================== */
.contact-info {
    margin-bottom: 30px;
}

.contact-info i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info h4 {
    margin-bottom: 10px;
}

/* ===================================
   Blog
   =================================== */
.blog-card {
    border: none;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card .blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 20px;
}

.blog-card h4 {
    margin-bottom: 10px;
}

.blog-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #fff;
}

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

.footer ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    color: #aaa;
}

/* ===================================
   WhatsApp Float Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-float i {
    font-size: 1.5rem;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        padding: 15px;
        right: 15px;
        bottom: 15px;
    }
}

/* ===================================
   Pagination
   =================================== */
.pagination .page-link {
    color: var(--primary-color);
}

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

/* ===================================
   Breadcrumb
   =================================== */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* ===================================
   Inquiry Button Fixed Bottom
   =================================== */
.inquiry-fixed {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 999;
}

.inquiry-fixed .btn {
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

@media (max-width: 768px) {
    .inquiry-fixed {
        bottom: 80px;
        right: 15px;
    }
}

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

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ===================================
   Page Banner (页面头图)
   =================================== */
.page-banner {
    position: relative;
    display: block;
    width: 100%;
    height: 250px !important;
    min-height: 250px !important;
    overflow: hidden;
}

.page-banner .banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner .banner-content {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 15px;
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-banner .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .page-banner {
        height: 180px;
    }
    .page-banner h1 {
        font-size: 2rem;
    }
    .page-banner .subtitle {
        font-size: 1rem;
    }
}
