/* 轮播图样式 */
.banner {
    margin-top: calc(var(--header-height) + var(--nav-height));
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots span.active {
    background-color: var(--secondary-color);
}

/* 特色版块样式 */
.features {
    padding: 40px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 最新动态样式 */
.news {
    padding: 40px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--secondary-color);
    font-weight: bold;
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        height: 200px;
    }
} 