/* 极简黑白主题 */
body {
    font-family: 'Inter', 'Noto Sans', sans-serif;
    background-color: #f8f8f8;
    color: #222;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    color: #666;
}

main {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

#input-section {
    margin-bottom: 30px;
}

#input-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

/* 新的日期选择器样式 */
.date-input-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

#birthday {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background-color: white;
    cursor: pointer;
}

.date-input-container:focus-within #birthday {
    outline: none;
    border-color: #00ccff;
    box-shadow: 0 0 5px rgba(0, 204, 255, 0.5);
}

#input-section button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#input-section button:hover {
    background-color: #444;
}

#result-section {
    text-align: left;
}

#summary p {
    font-size: 16px;
    margin: 10px 0;
}

#progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: #ddd;
    border-radius: 15px;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
}

#progress-bar {
    height: 100%;
    background-color: #222;
    width: 0%;
    transition: width 1s ease-in-out;
    border-radius: 15px;
}

#quote {
    font-style: italic;
    text-align: center;
    margin: 30px 0;
    font-size: 16px;
    color: #555;
}

#result-section button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s;
}

#result-section button:hover {
    background-color: #444;
}

footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 宇宙模式主题 */
.cosmic-theme body {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: #fff;
}

.cosmic-theme #progress-bar-container {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cosmic-theme #progress-bar {
    background: linear-gradient(90deg, #00ffff, #00ccff);
    box-shadow: 0 0 15px #00ffff, 0 0 30px #00ccff;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px #00ffff, 0 0 30px #00ccff;
    }
    to {
        box-shadow: 0 0 20px #00ffff, 0 0 40px #00ccff;
    }
}

.cosmic-theme #input-section button,
.cosmic-theme #result-section button {
    background-color: #00ccff;
    color: #0f2027;
}

.cosmic-theme #input-section button:hover,
.cosmic-theme #result-section button:hover {
    background-color: #00ffff;
}

/* 宇宙模式下的日期输入框 */
.cosmic-theme .date-input-container #birthday {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cosmic-theme .date-input-container:focus-within #birthday {
    border-color: #00ccff;
    box-shadow: 0 0 5px rgba(0, 204, 255, 0.8);
}

/* 加载中动画 */
.loading {
    display: inline-block;
    font-size: 16px;
    color: #00ccff;
}

.loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}