/* 首页主要内容区域 */
.main-content {
    margin-top: 80px;
    padding: 20px 0;
}

/* 搜索栏样式 */
.search-section {
    background: url('../../images/search-bg.png') no-repeat center;
    background-size: cover;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-container h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 16px;
}

.search-btn {
    padding: 15px 30px;
    background: #006400;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #004d00;
}

/* 特色推荐区域 */
.featured-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #006400;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.featured-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.featured-content p {
    color: #666;
    margin-bottom: 15px;
}

/* 幻灯片样式 */
.slider-section {
    margin: 50px 0;
    position: relative;
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
}

/* 新闻和博客区域 */
.news-section {
    padding: 50px 0;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
}

.news-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content p {
    color: #666;
    margin-bottom: 10px;
}

.news-meta {
    color: #999;
    font-size: 14px;
}

/* 用户评价区域 */
.testimonials-section {
    padding: 50px 0;
    background: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-info p {
    color: #666;
}

.testimonial-content {
    color: #333;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .featured-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-grid,
    .news-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        height: 200px;
    }

    .search-section {
        padding: 50px 0;
    }

    .search-container h1 {
        font-size: 28px;
    }
} 