* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.calendar {
    width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.month-picker {
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-btn {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a73e8;
    border: 1px solid #1a73e8;
    background: none;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.today-btn:hover {
    background-color: #1a73e8;
    color: white;
}

.month-select,
.year-select {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    border: none;
    background: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    outline: none;
}

.month-select:hover,
.year-select:hover {
    background-color: #f0f2f5;
}

.month-select:focus,
.year-select:focus {
    background-color: #f0f2f5;
}

.calendar-navigation {
    display: flex;
    gap: 10px;
}

.nav-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background-color: #f0f2f5;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #666;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #e4e6e9;
}

.calendar-week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin: 20px 0;
}

.calendar-week-days div {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 5px;
}

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

.calendar-day {
    width: 100%;
    aspect-ratio: 1;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 12px;
    transition: background-color 0.3s;
    padding: 8px 5px;
}

.calendar-day:hover {
    background-color: #f0f2f5;
}

.solar-date {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.lunar-date {
    font-size: 0.85rem;
    color: #e53935;
    font-weight: 400;
}

.prev-month,
.next-month {
    color: #ccc;
}

.prev-month .lunar-date,
.next-month .lunar-date {
    color: #ffcdd2;
}

.current-day {
    background-color: #1a73e8;
}

.current-day .solar-date,
.current-day .lunar-date {
    color: white;
}

.current-day:hover {
    background-color: #1557b0;
}

.date-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.date-popup.show {
    display: flex;
}

.popup-content {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.popup-header h3 {
    margin: 0;
    color: #1a73e8;
}

.close-popup {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
}

.close-popup:hover {
    color: #333;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.solar-info,
.lunar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.label {
    color: #666;
    font-weight: 500;
}

.value {
    color: #333;
    font-weight: 600;
}

.dropdown-container {
    margin: 20px 0;
}

select, button {
    margin: 5px;
    padding: 5px 10px;
}
