/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 80px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    color: #007bff;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: #adb5bd;
}

.footer-column ul li a:hover {
    color: #fff;
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: translateY(-5px);
}

/* 首页样式 */
.banner {
    background-color: #f0f0f0;
    color: #333;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #007bff;
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.products-preview {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    padding-bottom: 20px;
}

.section-title .subtitle {
    font-size: 1.2rem;
    color: #007bff;
    margin-top: 10px;
}

.section-title .subtitle-desc {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #007bff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 产品展示区域新样式 */
.product-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
    justify-content: center;
}

.product-images {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.product-img-main {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-img-side {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 40%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 5px solid #fff;
}

.product-images:hover .product-img-main {
    transform: scale(1.02);
}

.product-images:hover .product-img-side {
    transform: scale(1.05) rotate(5deg);
}

.product-details {
    flex: 1;
    min-width: 300px;
}

.product-details h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.product-features ul {
    list-style: none;
}

.product-features ul li {
    margin-bottom: 10px;
    color: #666;
    display: flex;
    align-items: center;
}

.product-features ul li i {
    color: #007bff;
    margin-right: 10px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}



.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.about-preview {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}




/* 页脚联系信息样式 */
.contact-info-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #adb5bd;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-item-footer:hover {
    color: #fff;
}

.contact-item-footer i {
    font-size: 1.2rem;
    color: #007bff;
}

.divider-footer {
    color: #495057;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .contact-info-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .divider-footer {
        display: none;
    }
}

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

.fade-in-up {
    animation: fadeInUp 1s ease;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .left::before,
    .right::before {
        left: 60px;
        border: medium solid #fff;
        border-width: 10px 10px 10px 0;
        border-color: transparent #fff transparent transparent;
    }

    .left::after,
    .right::after {
        left: 18px;
    }

    .right {
        left: 0%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        background-color: #fff;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .product-detail-container {
        gap: 30px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .banner {
        padding: 120px 0 80px;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .about-header,
    .products-header,
    .contact-header {
        padding: 120px 0 40px;
    }

    .about-header h1,
    .products-header h1,
    .contact-header h1 {
        font-size: 2rem;
    }

    .product-detail-info h2 {
        font-size: 2rem;
    }

    .product-detail-info .price {
        font-size: 1.5rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

.wk-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.wk-modal.is-open {
    display: flex;
}

.wk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.wk-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.wk-modal__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.wk-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    font-size: 22px;
    line-height: 36px;
    cursor: pointer;
}

.wk-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
}
