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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.nav-links a {
    color: #333;
    text-decoration: none;
    margin-left: 2rem;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

/* 自定义轮播图样式 */
.custom-carousel {
    width: 100vw;
    aspect-ratio: 21/9;
    max-width: none;
    max-height: 800px;
    margin: 74px 0 0 0;
    position: relative;
    overflow: hidden;
    background: #000;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
    min-width: 100vw;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s;
    position: absolute;
    left: 0; top: 0;
    right: 0; bottom: 0;
    z-index: 1;
}
.carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 2;
}
.carousel-slide img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 0 18px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    user-select: none;
}
.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}
.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }
.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.carousel-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-dots .dot.active {
    background: #007bff;
}
@media (max-width: 900px) {
    .custom-carousel { max-height: 400px; }
    .carousel-slide, .carousel-slide img { min-width: 100vw; width: 100vw; }
}
@media (max-width: 600px) {
    .custom-carousel { max-height: 220px; }
    .carousel-btn { font-size: 1.5rem; padding: 0 10px; }
    .carousel-dots .dot { width: 10px; height: 10px; }
}
/* 轮播图原swiper样式移除，避免冲突 */
.swiper, .swiper-container, .swiper-wrapper, .swiper-slide, .swiper-pagination, .swiper-button-prev, .swiper-button-next { all: unset; }

/* 产品展示样式 */
.product-showcase {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.product-showcase h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.product-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 20px;
    color: #333;
}

.product-card p {
    padding: 0 15px 15px;
    margin: 0;
    color: #666;
}

/* 联系方式样式 */
.contact-info {
    padding: 60px 20px;
    background-color: white;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item .icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #007bff;
}

.contact-item h3 {
    margin: 15px 0;
    font-size: 20px;
    color: #333;
}

.contact-item p {
    margin: 5px 0;
    color: #666;
}

.contact-item .qr-code {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    display: block;
}

.contact-item .shop-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-item .shop-link:hover {
    background-color: #0056b3;
}

/* 公司字体样式 */
.company-font {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.company-font p {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 公司简介样式 */
.company-intro {
    padding: 4rem 5%;
    text-align: center;
    background-color: #f8f9fa;
}

.company-intro h2 {
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.company-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* 留言板样式 */
.message-board {
    padding: 4rem 5%;
    background-color: #fff;
}

.message-board h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

#messageList {
    margin-top: 3rem;
}

.message-item {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.message-item .name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.message-item .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* 问题反馈样式 */
.feedback-section {
    padding: 60px 20px;
    background-color: #f1f5f9;
}

.feedback-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
}

.feedback-content {
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-text {
    text-align: center;
    margin-bottom: 40px;
}

.feedback-text h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.feedback-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.feedback-contact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.tech-support,
.tech-wechat {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-support:hover,
.tech-wechat:hover {
    transform: translateY(-5px);
}

.tech-support .icon,
.tech-wechat .icon {
    font-size: 40px;
    color: #007bff;
    margin-bottom: 15px;
}

.tech-support h4,
.tech-wechat h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.tech-support p {
    margin: 5px 0;
    color: #666;
}

.tech-wechat .qr-code {
    width: 150px;
    height: 150px;
    margin: 15px auto;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .feedback-contact {
        grid-template-columns: 1fr;
    }
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links a {
        margin: 0 1rem;
        font-size: 1rem;
    }

    .swiper {
        height: 400px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .company-intro,
    .message-board {
        padding: 2rem 1rem;
    }
} 