/* 引入公共样式 */
@import url('./common.css');

/* Banner区域 */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.prev-btn i,
.next-btn i {
    font-size: 24px;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.banner-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 20px;
    z-index: 5;
}

.banner-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.banner-content p {
    font-size: 24px;
    opacity: 0.9;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.5s;
}

.banner-slide.active .banner-content h1,
.banner-slide.active .banner-content p {
    opacity: 1;
    transform: translateY(0);
}

/* 产品服务区域 */
.products {
    padding: 80px 50px;
}

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

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 20px auto 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 20px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

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

.product-card h3 {
    margin-bottom: 10px;
    color: #666;
}

.product-card h4 {
    color: #333;
}

/* 资讯区域 */
.news {
    padding: 80px 50px;
    background-color: #f8f8f8;
}

.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #999;
    font-size: 12px;
}

.news-more {
    text-align: center;
}

.more-link {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 var(--primary-color);
}

.more-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 资讯区域响应式 */
@media screen and (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .news {
        padding: 50px 30px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title p {
        font-size: 14px;
        padding: 0 20px;
    }
}

@media screen and (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card img {
        height: 180px;
    }

    .news-content {
        padding: 15px;
    }

    .news-content h3 {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title h2::after {
        width: 40px;
        height: 2px;
    }
}

/* 关于我们 */
.about {
    padding: 80px 50px;
    background: #fff;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.about-text .section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text .section-title h2::after {
    left: 0;
    transform: none;
    width: 30px;
    height: 3px;
}

.about-text .section-title h3 {
    font-size: 24px;
    color: #666;
    margin-top: 15px;
}

.about-info h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.about-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-values {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.value-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.value-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 5px;
    background: var(--primary-color);
}

.value-item p {
    color: #666;
    margin-bottom: 0;
}

.about-stats {
    display: flex;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    font-style: italic;
}

.stat-item p {
    color: #666;
    margin-bottom: 0;
}

.about-image {
    flex: 0 0 45%;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: -24px 24px 0 var(--primary-color);
}

/* 关于我们响应式 */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-image {
        flex: 0 0 100%;
    }

    .about-image img {
        height: 400px;
    }

    .about-stats {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .about {
        padding: 50px 30px;
    }

    .about-values {
        flex-direction: column;
        gap: 20px;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        flex: 0 0 calc(50% - 15px);
    }
}

@media screen and (max-width: 576px) {
    .about-text .section-title h2 {
        font-size: 28px;
    }

    .about-text .section-title h3 {
        font-size: 20px;
    }

    .about-info h4 {
        font-size: 18px;
    }

    .stat-number {
        font-size: 28px;
    }

    .about-image img {
        height: 300px;
    }
} 