* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f3e6;
    color: #333;
    line-height: 1.6;
}

.calendar-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border: 2px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-image: linear-gradient(135deg, #fff8e7 0%, #fff3d4 100%);
}

.title {
    text-align: center;
    color: #d4af37;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.date-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 1px solid #d4af37;
}

.solar-date {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.lunar-date {
    font-size: 1.4em;
    color: #666;
    margin-bottom: 10px;
}

.festival {
    font-size: 1.2em;
    color: #d4af37;
    font-weight: bold;
}

.auspicious-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.auspicious, .inauspicious {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.auspicious {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    margin-right: 10px;
}

.inauspicious {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    margin-left: 10px;
}

.auspicious h3, .inauspicious h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auspicious h3 {
    color: #4caf50;
}

.inauspicious h3 {
    color: #f44336;
}

.content {
    font-size: 1.2em;
    line-height: 1.8;
}

.zodiac-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(156, 39, 176, 0.1);
    border: 1px solid #9c27b0;
    border-radius: 8px;
}

.zodiac {
    font-size: 1.5em;
    font-weight: bold;
    color: #9c27b0;
    margin-bottom: 10px;
}

.lunar-year {
    font-size: 1.2em;
    color: #666;
}

.weather-section {
    text-align: center;
    padding: 20px;
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid #2196f3;
    border-radius: 8px;
    margin-bottom: 25px;
}

.weather {
    font-size: 1.2em;
    color: #2196f3;
}

/* 导航按钮样式 */
.nav-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.nav-btn {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #d4af37;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #b8941f;
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: translateY(0);
}

/* 额外信息区域样式 */
.extra-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    padding: 15px;
    background-color: rgba(255, 235, 59, 0.1);
    border: 1px solid #ffeb3b;
    border-radius: 8px;
    text-align: center;
}

.info-item .label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.info-item .value {
    font-size: 1.2em;
    font-weight: bold;
    color: #d4af37;
}

/* 引用区域样式 */
.quote-section {
    padding: 20px;
    background-color: rgba(77, 182, 172, 0.1);
    border: 1px solid #4db6ac;
    border-radius: 8px;
    text-align: center;
    font-style: italic;
}

.quote {
    font-size: 1.1em;
    color: #00796b;
    line-height: 1.6;
}

/* 日历选择器样式 */
.calendar-picker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 2px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    z-index: 1000;
    background-image: linear-gradient(135deg, #fff8e7 0%, #fff3d4 100%);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #d4af37;
}

.current-month {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.month-nav-btn, .close-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #d4af37;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.month-nav-btn:hover, .close-btn:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.close-btn {
    font-size: 1.2em;
}

.calendar-body {
    padding: 15px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    color: #666;
    padding: 8px;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.day:hover {
    background-color: rgba(212, 175, 55, 0.2);
}

.day.other-month {
    color: #ccc;
}

.day.today {
    background-color: #d4af37;
    color: #fff;
    font-weight: bold;
}

.day.selected {
    background-color: #4caf50;
    color: #fff;
    font-weight: bold;
}

/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 隐藏类 */
.hidden {
    display: none;
}

@media (max-width: 600px) {
    /* 基础容器优化 */
    .calendar-container {
        margin: 5px;
        padding: 10px;
    }
    
    /* 标题优化 */
    .title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    /* 日期区域优化 */
    .date-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .solar-date {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    .lunar-date {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .festival {
        font-size: 1em;
    }
    
    /* 导航按钮优化 */
    .nav-section {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .nav-btn {
        padding: 6px 12px;
        font-size: 0.85em;
        flex: 1;
        min-width: 70px;
    }
    
    /* 宜忌区域优化 */
    .auspicious-section {
        flex-direction: row;
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .auspicious, .inauspicious {
        margin: 0;
        padding: 12px;
        flex: 1;
    }
    
    .auspicious h3, .inauspicious h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .content {
        font-size: 1em;
        line-height: 1.6;
    }
    
    /* 生肖区域优化 */
    .zodiac-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .zodiac {
        font-size: 1.3em;
        margin-bottom: 8px;
    }
    
    .lunar-year {
        font-size: 1em;
    }
    
    /* 天气区域优化 */
    .weather-section {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .weather {
        font-size: 1em;
    }
    
    /* 额外信息区域优化 */
    .extra-info-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .info-item .label {
        font-size: 0.8em;
        margin-bottom: 3px;
    }
    
    .info-item .value {
        font-size: 1em;
    }
    
    /* 引用区域优化 */
    .quote-section {
        padding: 12px;
    }
    
    .quote {
        font-size: 1em;
        line-height: 1.5;
    }
    
    /* 移动端日历选择器适配 */
    .calendar-picker {
        width: 95%;
        margin: 5px;
    }
    
    .calendar-header {
        padding: 10px;
    }
    
    .current-month {
        font-size: 1.1em;
    }
    
    .calendar-body {
        padding: 10px;
    }
    
    .weekday {
        padding: 6px;
        font-size: 0.85em;
    }
    
    .day {
        padding: 8px 5px;
        font-size: 0.9em;
    }
}