/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    padding-top: 56px;
}

/* Logo Styles */
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

/* Service Section Styles */
.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-icon i {
    color: #007bff;
    transition: all 0.3s ease;
}

.service-icon:hover {
    background-color: #007bff;
    transform: scale(1.1);
}

.service-icon:hover i {
    color: #fff;
}

#services .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

#services .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#services .card-title {
    color: #007bff;
    font-weight: bold;
    margin: 1rem 0;
}

#services .card-text {
    color: #6c757d;
    line-height: 1.6;
}

/* Parallax Sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://picsum.photos/1920/1080?random');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* About Section */
#about {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Products Section */
#products {
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Navigation */
.navbar {
    background-color: #343a40 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    color: #fff !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Section Titles */
section h2 {
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

/* Product Swiper */
.swiper {
    width: 100%;
    padding: 50px 0;
}

.swiper-slide {
    width: 300px;
    height: auto; /* 保持原有总高度不变 */
}

.swiper-slide .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swiper-slide .card-img-top {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 宽高比 */
    overflow: hidden;
    flex-shrink: 0; /* 防止图片区域被压缩 */
}

.swiper-slide .card-img-top img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide .card-body {
    flex: 1; /* 剩余空间分配给body */
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.swiper-slide .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.swiper-slide .card-text {
    display: none;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

.swiper-pagination-bullet-active {
    background: #007bff;
}

/* Contact Section Styles */
.contact-info {
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1.5rem;
    color: #007bff;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: #fff;
}

.contact-text h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-text p,
.contact-text a {
    color: #666;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #007bff;
}

/* Quick Links Styles */
.quick-links-wrapper {
    background-color: rgba(0, 123, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    height: 100%;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.quick-link-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #007bff;
}

.quick-link-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: #007bff;
    transition: all 0.3s ease;
}

.quick-link-item:hover i {
    background-color: #007bff;
    color: #fff;
}

.quick-link-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

#contact .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

#contact .card-body {
    background: #fff;
}

/* Swiper Progress Bar Styles */
.swiper-pagination-progressbar {
    background: rgba(0, 123, 255, 0.1);
    height: 4px !important;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #007bff;
    height: 4px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #007bff;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        height: 70vh;
    }

    .swiper-slide {
        width: 280px;
        height: 360px;
    }
    
    .swiper-slide .card-img-top {
        height: 280px;
    }
    
    .swiper-slide .card-body {
        height: 80px;
        padding: 10px;
    }
    
    .swiper-slide .card-title {
        font-size: 1rem;
    }

    .contact-info {
        font-size: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .quick-link-item {
        padding: 0.8rem;
    }
    
    .quick-link-item i {
        width: 35px;
        height: 35px;
    }
    
    .quick-link-item span {
        font-size: 1rem;
    }
} 