/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* 背景渐变 + 轻微动画 */
body {
    background: linear-gradient(120deg, #f6d365, #fda085, #84fab0, #8fd3f4);
    background-size: 400% 400%;
    min-height: 100vh;
    animation: gradientBG 15s ease infinite;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    flex: 1;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.header h1 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #fda085, #8fd3f4);
    border-radius: 3px;
}

.header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.mood-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mood-card {
    background: white;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 5px solid transparent;
}

.mood-card.bright {
    border-left-color: #f6d365;
}

.mood-card.calm {
    border-left-color: #8fd3f4;
}

.mood-card.thoughtful {
    border-left-color: #84fab0;
}

.mood-card.solitude {
    border-left-color: #a8edea;
}

.mood-card.coffee {
    border-left-color: #70c23a;
}

.mood-card.snow {
    border-left-color: #409eff;
}

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

.mood-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mood-icon {
    font-size: 1.6rem;
}

.mood-card .mood-quote {
    color: #777;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
    min-height: 3.6em;
}

.mood-quote.is-loading {
    color: #aaa;
    font-style: italic;
}

.mood-quote.is-error {
    color: #c45c5c;
    font-size: 0.95rem;
}

.mood-date {
    font-size: 0.9rem;
    color: #999;
    margin-top: 1rem;
    display: block;
}

.footer {
    max-width: 1000px;
    margin: 2rem auto 0;
    text-align: center;
    padding: 1rem;
    color: #555;
    font-size: 0.9rem;
}

.footer a {
    color: #555;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .footer-copy {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    .header h1 {
        font-size: 2.2rem;
    }
    .mood-cards {
        grid-template-columns: 1fr;
    }
    .footer {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}
