/* 鼓励性文字样式 */
.encouragement {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    z-index: 100;
    pointer-events: none;
}

.encouragement.left {
    left: 20px;
}

.encouragement.right {
    right: 20px;
}

.encouragement-text {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.encouragement.left .encouragement-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.encouragement.right .encouragement-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.encouragement-text p {
    margin: 10px 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.encouragement-text p:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .encouragement {
        width: 150px;
    }
    
    .encouragement-text {
        padding: 15px;
    }
    
    .encouragement-text p {
        font-size: 0.9rem;
        margin: 8px 0;
    }
}

@media (max-width: 768px) {
    .encouragement {
        display: none;
    }
}

/* 日历样式 */
.calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.calendar-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.calendar-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 0;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.calendar-nav h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #ff6b6b 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.calendar-day-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day {
    min-height: 150px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    background: rgba(255, 245, 245, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.25);
    border-color: #ff6b6b;
}

.calendar-day.other-month {
    background: rgba(233, 236, 239, 0.8);
    color: #6c757d;
}

.calendar-day.today {
    background: linear-gradient(135deg, #ffe8e8 0%, #ffd1d1 100%);
    border-color: #ff6b6b;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.2);
}

.day-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.lunar-info {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-weight: 500;
}

.calendar-day.today .lunar-info {
    color: #ff6b6b;
    font-weight: 600;
}

.event-list {
    margin-top: 10px;
    flex-grow: 1;
    overflow: hidden;
}

.event-item {
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

.event-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
    margin-bottom: 40px;
}

.event-form h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 90%;
    max-width: 600px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.modal-date {
    text-align: center;
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 25px;
    font-weight: 600;
    padding: 10px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
}

.close {
    color: #6c757d;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #ff6b6b;
    transform: rotate(90deg);
}

.event-detail {
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 30px;
}

.event-detail h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.countdown {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.countdown.negative {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.holiday-countdowns {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    margin-top: 30px;
    overflow: hidden;
    position: relative;
}

.holiday-countdowns::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    border-radius: 24px 24px 0 0;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.holiday-countdowns h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.holiday-countdowns h3::after {
    content: '🎯';
    margin-left: 10px;
    font-size: 1.5rem;
    vertical-align: middle;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.holiday-countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.97);
    color: #2c3e50;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.holiday-countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b6b, #4ecdc4);
    border-radius: 20px 0 0 20px;
    animation: gradient-vertical 6s ease infinite;
}

@keyframes gradient-vertical {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

.holiday-countdown-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,107,0.1) 0%, rgba(78,205,196,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    opacity: 0;
    transition: all 0.6s ease;
}

.holiday-countdown-item:hover::after {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(30deg); }
    100% { transform: rotate(390deg); }
}

.holiday-countdown-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

.holiday-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.holiday-name::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* 为不同节日添加不同的图标 */
.holiday-countdown-item:nth-child(2) .holiday-name::before {
    content: '🧧';
    font-size: 1.5rem;
    background: none;
    animation: none;
}

.holiday-countdown-item:nth-child(3) .holiday-name::before {
    content: '🏖️';
    font-size: 1.5rem;
    background: none;
    animation: none;
}

.holiday-countdown-item:nth-child(4) .holiday-name::before {
    content: '龙舟';
    font-size: 1.2rem;
    background: none;
    animation: none;
    color: #ff6b6b;
    font-weight: bold;
}

.holiday-countdown-item:nth-child(5) .holiday-name::before {
    content: '🇨🇳';
    font-size: 1.5rem;
    background: none;
    animation: none;
}

.holiday-days {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 12px 24px;
    border-radius: 30px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    }
    to {
        box-shadow: 0 6px 25px rgba(78, 205, 196, 0.4);
    }
}

.holiday-countdown-item:hover .holiday-days {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    animation: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .holiday-countdowns {
        padding: 30px;
    }
    
    .holiday-countdowns h3 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    .holiday-countdown-item {
        padding: 20px 25px;
        margin-bottom: 20px;
    }
    
    .holiday-name {
        font-size: 1.2rem;
        gap: 10px;
    }
    
    .holiday-name::before {
        width: 20px;
        height: 20px;
    }
    
    .holiday-countdown-item:nth-child(2) .holiday-name::before,
    .holiday-countdown-item:nth-child(3) .holiday-name::before,
    .holiday-countdown-item:nth-child(5) .holiday-name::before {
        font-size: 1.2rem;
    }
    
    .holiday-countdown-item:nth-child(4) .holiday-name::before {
        font-size: 1rem;
    }
    
    .holiday-days {
        font-size: 1.4rem;
        padding: 10px 20px;
        min-width: 100px;
    }
}

/* 使用说明样式 */
.usage-guide {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    padding: 35px;
    margin-top: 30px;
    color: white;
    overflow: hidden;
    position: relative;
}

.usage-guide h3 {
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #f5576c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.step-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* 使用说明响应式设计 */
@media (max-width: 768px) {
    .usage-guide {
        padding: 25px;
    }
    
    .usage-guide h3 {
        font-size: 1.5rem;
    }
    
    .guide-step {
        padding: 15px;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-content h4 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
}

.event-item-detail {
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-item-detail:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.event-item-detail h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.event-item-detail p {
    margin-bottom: 15px;
    color: #6c757d;
    line-height: 1.6;
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.no-events {
    text-align: center;
    padding: 60px;
    color: #6c757d;
    font-style: italic;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 12px;
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .calendar-container {
        padding: 20px;
    }
    
    .calendar-day {
        min-height: 130px;
        padding: 12px;
    }
    
    .day-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 8px;
        padding: 15px;
    }
    
    .calendar-day {
        min-height: 120px;
        padding: 10px;
    }
    
    .day-number {
        font-size: 1.2rem;
    }
    
    .event-item {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .calendar-header h1 {
        font-size: 2rem;
    }
    
    .calendar-nav h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        padding: 30px;
        margin: 20% auto;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 8px;
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .lunar-info {
        font-size: 10px;
    }
    
    .event-item {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .calendar-header h1 {
        font-size: 1.8rem;
    }
    
    .calendar-nav {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .nav-buttons {
        justify-content: center;
    }
}
