/* 字体导入 - 使用国内CDN */
@import url('https://fonts.font.im/css2?family=Roboto+Mono:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&display=swap');

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

:root {
    /* 主色调 - 更精致的色调 */
    --primary-color: #E48E7E;    /* 稍微深一点的珊瑚色 */
    --secondary-color: #9D8AA8;  /* 保持紫色 */
    --accent-color: #E48E8E;     /* 玫瑰色 */
    
    /* 背景渐变 - 更细腻的过渡 */
    --background-gradient: linear-gradient(135deg, 
        rgba(228, 181, 163, 0.95) 0%, 
        rgba(157, 138, 168, 0.95) 100%
    );
    
    /* 卡片和文字颜色 */
    --card-background: rgba(255, 255, 255, 0.92);
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    
    /* 状态颜色 */
    --past-color: #A0AEC0;
    --error-color: #E07A7A;
    --success-color: #DD8165;
    
    /* 阴影和圆角 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(45, 55, 72, 0.12);
    --border-radius: 20px;
}

body {
    font-family: 'Noto Serif SC', serif;
    background: var(--background-gradient);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    overflow-y: auto;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.countdown-item {
    background: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.countdown-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(228, 150, 126, 0.3);
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    position: relative;
}

.time-block span {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(228, 142, 126, 0.12);
    padding: 0.8rem;
    border-radius: 16px;
    min-width: 90px;
    text-align: center;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(228, 142, 126, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.time-block:hover span {
    transform: translateY(-2px);
    background: rgba(228, 142, 126, 0.18);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: rgba(228, 142, 126, 0.35);
}

.time-block label {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.all-holidays {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.holiday-date {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.holiday-duration {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    background: rgba(157, 138, 168, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.holiday-past {
    opacity: 0.8;
}

.holiday-past h2 {
    color: var(--past-color);
}

.holiday-status {
    text-align: center;
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    letter-spacing: 1px;
}

.holiday-status.past {
    color: var(--error-color);
    background: rgba(224, 122, 122, 0.08);
    font-weight: 500;
}

.holiday-status.ongoing {
    color: var(--success-color);
    background: rgba(221, 129, 101, 0.08);
    font-weight: 500;
    animation: pulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.holiday-ongoing {
    border: 2px solid rgba(228, 181, 163, 0.12);
}

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

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .countdown-item {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .countdown {
        gap: 0.8rem;
        padding: 1rem 0;
    }
    
    .time-block {
        min-width: 65px;
    }
    
    .time-block span {
        font-size: 2rem;
        min-width: 65px;
        height: 55px;
        padding: 0.5rem;
        border-radius: 12px;
    }
    
    .time-block label {
        margin-top: 0.6rem;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .holiday-date,
    .holiday-duration {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
    }
    
    .holiday-status {
        font-size: 0.95rem;
        padding: 0.5rem 0.8rem;
        margin-top: 0.8rem;
    }
    
    .countdown-item:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0.5rem;
        margin: 0.5rem auto;
    }
    
    .countdown-item {
        padding: 1rem;
        margin: 0 0.25rem;
    }
    
    .time-block {
        min-width: 60px;
    }
    
    .time-block span {
        font-size: 1.8rem;
        min-width: 60px;
        height: 50px;
    }
    
    h2 {
        font-size: 1.2rem;
    }
} 