/* 民俗活动页面样式 */
.activity-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 年度节日总览样式 */
.festival-overview {
    margin-bottom: 40px;
}

.festival-overview h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 30px;
}

.timeline {
    position: relative;
    height: 100px;
    background: #f5f5f5;
    border-radius: 50px;
    margin: 0 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #CC0000;
    transform: translateY(-50%);
}

.month-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.month-marker span {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #8B0000;
}

.month-marker .dot {
    width: 16px;
    height: 16px;
    background: #FFD700;
    border: 3px solid #CC0000;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* 主容器布局 */
.main-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* 月历展示区样式 */
.calendar-section {
    flex: 1;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    color: #8B0000;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px 10px;
}

.calendar-header h3 {
    color: #8B0000;
    font-size: 1.2em;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #666;
    font-weight: bold;
    margin-bottom: 10px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.day.festival {
    color: #CC0000;
    font-weight: bold;
}

.day.festival::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    background: #CC0000;
    border-radius: 50%;
}

.day:hover {
    background: #f0f0f0;
}

/* 节日倒计时区样式 */
.countdown-section {
    width: 300px;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.countdown-section h3 {
    color: #8B0000;
    text-align: center;
    margin-bottom: 20px;
}

.countdown-item {
    text-align: center;
    margin-bottom: 30px;
}

.countdown-item h4 {
    color: #666;
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.time-block {
    background: #8B0000;
    color: #FFD700;
    padding: 10px;
    border-radius: 5px;
    min-width: 50px;
}

.time-block span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

.time-block label {
    font-size: 0.8em;
}

.upcoming-festivals {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.upcoming-festivals h4 {
    color: #8B0000;
    margin-bottom: 15px;
}

.upcoming-festivals ul {
    list-style: none;
    padding: 0;
}

.upcoming-festivals li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.festival-name {
    color: #333;
}

.festival-date {
    color: #666;
}

/* 活动详情卡片区样式 */
.festival-details {
    margin-top: 40px;
}

.festival-details h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 30px;
}

.festival-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.festival-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.festival-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.festival-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: #8B0000;
    margin-bottom: 10px;
}

.card-content .date {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.card-content .description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.customs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customs span {
    background: #f0f0f0;
    color: #8B0000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
} 