/* 首页样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Banner区域 */
.banner {
    position: relative;
    height: 400px;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.banner-container {
    height: 100%;
}

.banner-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-item.active {
    opacity: 1;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
    width: 80%;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.banner-text h2::before,
.banner-text h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFD700);
}

.banner-text h2::before {
    right: 100%;
    margin-right: 20px;
}

.banner-text h2::after {
    left: 100%;
    margin-left: 20px;
    background: linear-gradient(to left, transparent, #FFD700);
}

.banner-text p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner-dot.active {
    background-color: #FFD700;
    transform: scale(1.2);
    border-color: #fff;
}

/* 内容区域 */
.content-section {
    margin-bottom: 60px;
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-pattern.png');
    opacity: 0.05;
    pointer-events: none;
    border-radius: 8px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2 {
    color: #CC0000;
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 100px;
    height: 3px;
}

.section-title h2::before {
    left: -120px;
    background: linear-gradient(to right, transparent, #FFD700);
}

.section-title h2::after {
    right: -120px;
    background: linear-gradient(to left, transparent, #FFD700);
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* 文化瑰宝区域 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.culture-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.culture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.culture-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.culture-item:hover img {
    transform: scale(1.05);
}

.culture-text {
    padding: 20px;
    position: relative;
}

.culture-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, #FFD700, transparent);
}

.culture-text h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.culture-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #CC0000;
    border-radius: 2px;
}

.culture-text p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 节日活动区域 */
.festival-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.festival-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.festival-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.festival-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.festival-item:hover img {
    transform: scale(1.05);
}

.festival-text {
    padding: 20px;
    position: relative;
}

.festival-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, #FFD700, transparent);
}

.festival-text h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.festival-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #CC0000;
    border-radius: 2px;
}

.festival-text p {
    color: #666;
    line-height: 1.6;
}

.festival-date {
    color: #CC0000;
    font-size: 14px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.festival-date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../images/calendar-icon.png');
    background-size: contain;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .banner-text h2 {
        font-size: 28px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title h2::before,
    .section-title h2::after {
        width: 60px;
    }

    .section-title h2::before {
        left: -80px;
    }

    .section-title h2::after {
        right: -80px;
    }

    .culture-grid,
    .festival-list {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.8s ease-out;
}

/* 滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #CC0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(-45deg) translate(2px, 2px);
}

.scroll-top:hover {
    background-color: #A00000;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
} 