/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #ffeeff;
    color: #333;
    padding: 20px;
    min-height: 100vh;
    background-image: linear-gradient(135deg, #ffccee, #ffddf7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 150, 200, 0.4);
    overflow: hidden;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #ff9ec5, #ffc2d6);
    color: white;
    text-align: center;
    padding: 25px 20px;
    position: relative;
    z-index: 10;
}
/*图标*/
header > div{position: absolute; top: 22px; right: 22px;}

h1 {
    font-size: 2.3rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 5px;
}

.current-time {
    font-size: 1.2rem;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

/* 成员列表样式 */
.members-container {
    padding: 20px;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(255, 150, 200, 0.2);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 150, 200, 0.35);
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9ec5, #ff6b9d);
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.member-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff6b9d;
}

.birthday-info {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.gregorian-birthday {
    font-size: 1rem;
    color: #666;
    background-color: #fff5f9;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
}

.lunar-birthday {
    font-size: 0.95rem;
    color: #888;
    background-color: #ffecf1;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    align-self: flex-start;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 15px;
}

.days-remaining {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b9d;
    min-width: 60px;
}

.days-label {
    font-size: 1.1rem;
    color: #555;
}

/* 进度条样式 */
.progress-container {
    margin-top: 10px;
}

.progress-bar {
    height: 18px;
    background-color: #f0f0f0;
    border-radius: 9px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #ffafcc, #ff6b9d);
    border-radius: 9px;
    transition: width 1s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
}

/* 查询区域样式 */
.query-container {
    background: linear-gradient(135deg, #ffc2d6, #ffa6c9);
    padding: 25px;
    text-align: center;
}

.query-title {
    color: white;
    margin-bottom: 20px;
    font-size: 1.7rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.input-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

label {
    color: white;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1rem;
    text-align: left;
}

#birthday-input {
    padding: 13px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#calculate-btn {
    background-color: white;
    color: #ff6b9d;
    border: none;
    padding: 13px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

#calculate-btn:hover {
    background-color: #ffecf1;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.result-container {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#user-countdown {
    font-size: 1.5rem;
    color: #ff6b9d;
    font-weight: bold;
    line-height: 1.4;
}

/* 生日当天卡片样式 */
.birthday-today {
    background: linear-gradient(135deg, #fff0f5, #ffeef8);
    border: 2px solid #ff6b9d;
    animation: pulse 2s infinite;
}

.birthday-today .member-name {
    color: #ff3366;
    text-shadow: 0 0 5px rgba(255, 107, 157, 0.3);
}

.birthday-today::before {
    height: 6px;
    background: linear-gradient(90deg, #ff3366, #ff6b9d);
}

.birthday-today .days-remaining {
    color: #ff3366;
    animation: heartbeat 1.5s infinite;
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .current-time {
        font-size: 1rem;
    }
    
    .member-name {
        font-size: 1.3rem;
    }
    
    .days-remaining {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 15px;
    }
    
    header {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .members-container, .query-container {
        padding: 15px;
    }
    
    .member-card {
        padding: 15px;
    }
    
    .member-name {
        font-size: 1.2rem;
    }
    
    .days-remaining {
        font-size: 1.5rem;
    }
}