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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
    background-color: #f8fafc;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部Logo */
.top-bar {
    background-color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-logo {
    height: 80px;
    display: block;
}

/* 头部导航 */
header {
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,102,204,0.3);
}

header .container {
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 25px;
    display: block;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
}

nav ul li:first-child a {
    border-left: 1px solid rgba(255,255,255,0.1);
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #3498db;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}

/* 轮播图 */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

/* 轮播指示器 */
.dots-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, transform 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* 淡入淡出动画 */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 产品中心 */
.products {
    padding: 50px 0;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.products h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 45px;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 12px;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
    border-radius: 2px;
}

/* 产品分类导航 */
.product-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    padding: 25px;
    background-color: #f0f4f8;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.07);
}

.category-link {
    text-decoration: none;
    color: #0066cc;
    background-color: #fff;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #0066cc;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,102,204,0.15);
    letter-spacing: 0.5px;
}

.category-link:hover {
    background-color: #0066cc;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.35);
    border-color: #0052a3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-category-nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .category-link {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }
}

/* 主分类样式 */
.product-main-category {
    margin-bottom: 60px;
    background-color: #f0f4f8;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,102,204,0.1);
}

.product-main-category h3 {
    font-size: 30px;
    margin-bottom: 35px;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 3px solid #0066cc;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 子分类样式 */
.product-sub-category {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-sub-category:last-child {
    margin-bottom: 0;
}

.product-sub-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.product-sub-category h4 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-left: 20px;
    border-left: 5px solid #0066cc;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
}

.product-sub-category h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
    border-radius: 2px;
}

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

.product-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 22px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8edf3;
    position: relative;
    overflow: hidden;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #0066cc;
}

.product-item:hover::before {
    transform: scaleX(1);
}

.product-item img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.product-gallery img {
    height: 100px;
}

.category-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-item h5 {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.product-description h6 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 12px;
    margin-bottom: 8px;
}

.product-description ul {
    list-style-position: inside;
    margin: 8px 0;
    padding-left: 12px;
}

.product-description li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.product-description p {
    margin: 8px 0;
    text-align: left;
}

/* 产品详情布局 */
.product-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-detail-image {
    flex: 0 0 300px;
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

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

.product-detail-content h4 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 冠元优势 */
.advantages {
    padding: 20px 0 40px;
    background-color: #f8f9fa;
}

.advantages h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.advantages h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
    border-radius: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

.advantage-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #0066cc;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: #0066cc;
}

.advantage-item:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    background-color: #fff;
    border: 3px solid #0066cc;
}

.advantage-icon i {
    font-size: 32px;
    color: #fff;
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon i {
    color: #0066cc;
    transform: scale(1.2);
}

.advantage-item h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 关于我们 */
.about {
    padding: 50px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 45px;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
    border-radius: 2px;
}

.about-content {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    background-color: #fff;
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 5px solid #0066cc;
    transition: all 0.3s ease;
}

.about-content p {
    margin-bottom: 15px;
    text-align: justify;
    position: relative;
}

.about-content p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
}

/* FAQ */
.faq {
    padding: 40px 0;
    background-color: #fff;
}

.faq h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 45px;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.faq h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #0088ff 100%);
    border-radius: 2px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(550px, 1fr));
    gap: 25px;
}

.faq-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e8edf3;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #0066cc;
}

.faq-item h4 {
    font-size: 17px;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* FAQ折叠功能 */
.hidden-faq {
    display: none;
}

.toggle-faq-btn {
    display: block;
    margin: 0 auto 30px;
    padding: 12px 24px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,102,204,0.2);
}

.toggle-faq-btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,102,204,0.3);
}

.toggle-faq-btn.active {
    background-color: #28a745;
    box-shadow: 0 4px 12px rgba(40,167,69,0.2);
}

.toggle-faq-btn.active:hover {
    background-color: #218838;
    box-shadow: 0 6px 16px rgba(40,167,69,0.3);
}

/* 联系我们 */
.contact {
    padding: 30px 0;
    background-color: #0d47a1;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #66b3ff 100%);
    border-radius: 2px;
}

.contact-info {
    text-align: center;
    color: #fff;
}

.contact-details {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.contact-details span {
    display: inline-block;
    white-space: nowrap;
}

.contact-details span:not(:first-child):not(:last-child):nth-child(2n) {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.contact-address {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

/* 底部 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    color: #fff;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: #3498db;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 13px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 13px;
}

.footer-links a:hover {
    color: #3498db;
}

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

.footer-contact li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.footer-contact i {
    margin-right: 12px;
    color: #3498db;
    width: 18px;
    text-align: center;
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #3498db;
    transform: translateY(-2px);
}

/* 友情链接 */
.footer-links-section {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.friend-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.friend-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.friend-links a:hover {
    color: #3498db;
}

/* 底部版权 */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 顶部Logo响应式 */
    .top-logo {
        height: 60px;
    }

    /* 头部导航响应式 */
    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding: 15px;
    }

    nav ul li:first-child a {
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    /* 底部响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .friend-links {
        justify-content: center;
    }

    .products h2,
    .advantages h2,
    .about h2,
    .faq h2,
    .contact h2 {
        font-size: 28px;
    }

    .about-content {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .about-content p {
        font-size: 15px;
        line-height: 1.8;
    }

    /* 联系我们响应式 */
    .contact-details {
        font-size: 14px;
        gap: 5px;
    }

    .contact-details span {
        display: block;
        margin-bottom: 8px;
    }

    .contact-details span:nth-child(2n) {
        display: none;
    }

    .contact-address {
        font-size: 14px;
    }

    .advantages-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .advantage-item {
        padding: 25px 20px;
    }

    .advantage-icon {
        width: 70px;
        height: 70px;
    }

    .advantage-icon i {
        font-size: 28px;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .mySlides img {
        max-height: 300px;
    }

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