/* 轮播图样式 */
.banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-bottom: 40px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    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-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slide-text h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

.slide-text p {
    font-size: 1.2em;
    margin: 0;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s;
}

.dot.active {
    background: #fff;
}

/* 文化精品样式 */
.culture-highlights {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c41230;
    margin: 15px auto 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-10px);
}

.highlight-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.highlight-content {
    padding: 20px;
}

.highlight-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.highlight-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #c41230;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #a00f28;
}

/* 活动预告样式 */
.upcoming-events {
    padding: 60px 0;
    background: #fff;
}

.events-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-item {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 80px;
    bottom: -30px;
    width: 2px;
    background: #e0e0e0;
}

.event-item:last-child::before {
    display: none;
}

.event-date {
    width: 120px;
    height: 80px;
    background: #c41230;
    color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date .date {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 16px;
    margin-top: 5px;
}

.event-content {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.event-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.event-content p {
    color: #666;
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.signup-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #c41230;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.signup-btn:hover {
    background: #a00f28;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #c41230;
    border: 2px solid #c41230;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-btn:hover {
    background: #c41230;
    color: #fff;
}

/* 传承人物样式 */
.craftsmen {
    padding: 60px 0;
    background: #f8f9fa;
}

.craftsmen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.craftsman-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.craftsman-item:hover {
    transform: translateY(-10px);
}

.craftsman-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.craftsman-info {
    padding: 20px;
}

.craftsman-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
}

.craft-type {
    color: #c41230;
    font-size: 14px;
    margin-bottom: 10px;
}

.description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 新闻资讯样式 */
.news {
    padding: 60px 0;
    background: #fff;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category {
    padding: 8px 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category:hover {
    color: #c41230;
}

.category.active {
    border-color: #c41230;
    color: #c41230;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-10px);
}

.news-image {
    position: relative;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: rgba(196, 18, 48, 0.9);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 14px;
}

.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.prev-page,
.next-page {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-page:disabled,
.next-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prev-page:not(:disabled):hover,
.next-page:not(:disabled):hover {
    background: #e0e0e0;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .highlights-grid,
    .craftsmen-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .slide-text h2 {
        font-size: 1.8em;
    }

    .slide-text p {
        font-size: 1em;
    }

    .slider-prev,
    .slider-next {
        width: 30px;
        height: 30px;
    }

    .highlights-grid,
    .craftsmen-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        gap: 15px;
    }

    .event-item::before {
        display: none;
    }

    .event-date {
        width: 100%;
        height: 60px;
        flex-direction: row;
        gap: 10px;
    }

    .news-categories {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .banner {
        height: 200px;
    }

    .slide-text h2 {
        font-size: 1.5em;
    }

    .slide-text p {
        font-size: 0.9em;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
} 