
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.date-nav button {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.date-nav button:hover {
    background: #357ae8;
}

.toggle-detail button {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2.5px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    color: #666;
}

.weekday {
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    height: 35px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.day:hover {
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day.empty {
    background: #f8f9fa;
    cursor: default;
}

.day.today {
    background-color: #e1f0ff;
    border: 2px solid #4a90e2;
}

.day.selected {
    font-weight: bold;
    color: #4a90e2;
}

.day-number {
    position: absolute;
    top: 50%; /* 从顶部50%位置开始 */
    left: 50%; /* 从左侧50%位置开始 */
    transform: translate(-50%, -50%); /* 自身宽高的一半偏移 */
    font-size: 14px;
}

/* 日历详情展开收起 */
.calendar-detail {
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.calendar-detail.expanded {
    max-height: 1000px;
}

.countdown-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.countdown-panel h3 {
    margin-bottom: 15px;
    color: #4a90e2;
}

#countdown-display {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    min-height: 36px;
}

.actions {
    margin-top: 20px;
    text-align: center;
}

.actions button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.actions button:hover {
    background: #357ae8;
}

.config-calendar {
    margin-bottom: 30px;
}

.config-calendar .calendar-days .day {
    height: 60px;
    cursor: pointer;
}

.config-calendar .day.selected {
    background-color: #e0f0ff;
    border-color: #4a90e2;
}

.color-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #eee;
}

.border-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.border-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.border-option.selected {
    background-color: #e0f0ff;
    border-color: #4a90e2;
}

.config-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.config-form input, .config-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.activities-panel {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.activities-panel h3 {
    margin-bottom: 15px;
    color: #4a90e2;
}

.activity-item {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.activity-item h4 {
    margin-bottom: 8px;
    color: #333;
}

.activity-item p {
    color: #666;
    margin-bottom: 0;
}

.no-activities {
    font-style: italic;
    color: #999;
}

/* 添加活动项样式 */
.activity-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-title {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.activity-desc {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.no-activities {
    color: #999;
    font-style: italic;
    margin: 0;
}