/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 45px;
    height: 45px;
}
.product img {
    width: 45px;
    height: 45px;
}

.logo span {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-size: 16px;
    color: #333;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: #e74c3c;
}

/* Banner轮播 */
.banner {
    position: relative;
    width: 100%;
    padding-top: 31.25%; /* 600/1920 = 0.3125 */
    margin-top: 70px;
    overflow: hidden;
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.banner-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.banner-content .btn {
    display: inline-block;
    padding: 14px 40px;
    background: #fff;
    color: #333;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.banner-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.banner-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 通用标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background: #f8f9fa;
}

.product-row {
    margin-bottom: 50px;
}

.row-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #e74c3c;
}

.product-scroll {
    overflow: hidden;
    position: relative;
}

.product-scroll::before,
.product-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.product-scroll::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.product-scroll::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.product-track {
    display: flex;
    gap: 20px;
    animation: scrollLeft 30s linear infinite;
}

.product-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.product-card {
    flex-shrink: 0;
    width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 50%;
}

.product-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.product-card p {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.product-card .price {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

/* 公司简介 */
.about {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 18px;
}

.about-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.company-showcase {
    text-align: center;
}

.showcase-item {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.company-showcase:nth-child(2) .showcase-item {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.company-showcase:nth-child(3) .showcase-item {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.company-showcase:nth-child(4) .showcase-item {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.company-showcase:hover .showcase-item {
    transform: scale(1.05);
}

.showcase-caption {
    font-size: 14px;
    color: #666;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.info-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.contact-map {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.map-placeholder:hover {
    transform: scale(1.02);
}

.map-placeholder .map-note {
    font-size: 14px;
    margin-top: 15px;
    opacity: 0.8;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e74c3c;
}

.footer-qrcode {
    text-align: center;
}

.qrcode-placeholder {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.footer-qrcode p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        max-height: 300px;
    }

    .nav-list li {
        border-bottom: 1px solid #eee;
    }

    .nav-list a {
        display: block;
        padding: 15px 20px;
    }

    .banner {
        min-height: 500px;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .about-image {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-qrcode {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 14px;
    }

    .product-card {
        width: 180px;
        padding: 15px;
    }

    .product-img {
        width: 80px;
        height: 80px;
        font-size: 45px;
    }

    .about-image {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }
}
