/* 纪念日页面样式 */
.anniversary-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    margin: 30px 0;
    color: #333;
    font-weight: bold;
    font-size: 28px;
}

/* 通用动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anniversary-card, .upcoming-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 背景图案 */
body {
    background-color: #f8f9fa;
    font-family: 'Noto Serif SC', serif;
}

/* Love Day 标题样式 */
.love-day-header {
    background: linear-gradient(90deg, #0072ff, #00d4ff);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.love-day-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    pointer-events: none;
}

.love-day-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    position: relative;
    display: inline-block;
}

.love-day-title::before {
    content: '❤️';
    margin-right: 10px;
    font-size: 0.9em;
    animation: pulse 2s infinite;
    display: inline-block;
}

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

/* 倒计时容器 */
.countdown-container {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    background-color: #ff6b6b;
    border-radius: 50%;
}

.countdown-container::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 30px;
    width: 10px;
    height: 10px;
    background-color: #ffb347;
    border-radius: 50%;
}

.countdown-container::before:nth-child(3) {
    left: 50px;
    background-color: #20bf55;
}

.countdown-text {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
}

.countdown-numbers {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-numbers > div {
    position: relative;
    text-align: center;
}

.countdown-unit {
    font-size: 36px;
    font-weight: bold;
    color: #444;
}

.countdown-label {
    font-size: 14px;
    color: #999;
    display: block;
    margin-top: 5px;
}

.countdown-timer {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    font-size: 14px;
    align-self: flex-start;
}

.next-anniversary {
    font-weight: bold;
}

/* 卡片容器 */
.anniversary-cards-container {
    max-width: 700px;
    margin: 0 auto;
}

/* 卡片样式 */
.anniversary-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    min-height: 90px;
    display: flex;
    flex-direction: column;
}

.card-b .anniversary-card {
    border-radius: 1rem;
    margin: 0;
    padding: 1rem;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.3s ease;
}

.card-b .anniversary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.anniversary-card.pink-card {
    background: linear-gradient(145deg, #ff6b6b, #ff758c);
    color: white;
}

.anniversary-card.purple-card {
    background: linear-gradient(145deg, #a18cd1, #9370DB);
    color: white;
}

.anniversary-card.green-card {
    background: linear-gradient(145deg, #00b09b, #20bf55);
    color: white;
}

.anniversary-card.blue-card {
    background: linear-gradient(145deg, #0072ff, #00c6ff);
    color: white;
}

.anniversary-card.orange-card {
    background: linear-gradient(145deg, #ff9966, #ff5e62);
    color: white;
}

.anniversary-card.gray-card {
    background: linear-gradient(145deg, #606c88, #3f4c6b);
    color: white;
}

/* 添加花纹装饰 */
.anniversary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -40%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0.8);
    pointer-events: none;
}

/* 添加另一个装饰元素 */
.anniversary-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: scale(0.8);
    pointer-events: none;
}

.card-icon {
    font-size: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.card-date {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.card-days {
    position: absolute;
    bottom: 18px;
    right: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #0072ff, #00d4ff);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
}

/* 即将到来的纪念日部分 */
.upcoming-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.upcoming-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0072ff, #00d4ff);
    border-radius: 3px;
}

.upcoming-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.upcoming-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.days-badge {
    background: var(--pink-gradient);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
    font-size: 16px;
}

.upcoming-info {
    flex-grow: 1;
}

.upcoming-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #444;
}

.upcoming-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .countdown-unit {
        font-size: 28px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .card-date, .card-days {
        position: static;
        display: block;
        margin-top: 10px;
        text-align: right;
    }
    
    .countdown-timer {
        margin-top: 8px;
        font-size: 12px;
    }
    
    .anniversary-container {
        max-width: 95%;
    }
    
    .anniversary-cards-container {
        max-width: 100%;
    }
    
    .anniversary-card {
        height: auto;
        min-height: 90px;
        padding: 15px;
    }
    
    .upcoming-section,
    .countdown-container,
    .love-day-header {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .anniversary-container {
        padding: 15px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 22px;
        margin: 20px 0;
    }
    
    .countdown-numbers {
        gap: 10px;
    }
    
    .upcoming-title {
        font-size: 18px;
    }
}

:root {
    --pink-gradient: linear-gradient(135deg, #ff6b6b, #ff758c);
    --purple-gradient: linear-gradient(135deg, #a18cd1, #9370DB);
    --green-gradient: linear-gradient(135deg, #00b09b, #20bf55);
    --blue-gradient: linear-gradient(135deg, #0072ff, #00c6ff);
    --orange-gradient: linear-gradient(135deg, #ff9966, #ff5e62);
    --gray-gradient: linear-gradient(135deg, #606c88, #3f4c6b);
} 