/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.content-container {
    max-width: 800px;
    width: 100%;
    height: 500px;
    margin: auto;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 文字动画效果 */
.text.part1 {
    font-size: 4rem;
    margin: 20px 0;
    font-weight: bold;
    color: #007bff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.text.part1::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, #007bff, #00ffcc);
    margin: 20px auto;
    border-radius: 2px;
}

.letter {
    display: inline-block;
    position: relative;
    animation: bounce 1s infinite alternate;
    color: #007bff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 4rem;
    transition: all 0.3s ease;
}

.letter:nth-child(2n) {
    animation-delay: 0.1s;
    color: #28a745;
}

.letter:nth-child(3n) {
    animation-delay: 0.2s;
    color: #dc3545;
}

.letter:nth-child(4n) {
    animation-delay: 0.3s;
    color: #ffc107;
}

.letter:hover {
    transform: scale(1.1) rotate(5deg);
    z-index: 10;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-15px);
    }
}

.character {
    display: inline-block;
}

/* 激励语录区域 */
.quote-section {
    margin: 30px 0;
}

.quote-title {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 20px;
    font-weight: 600;
}

.bio {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #555;
    font-style: italic;
    line-height: 1.8;
    padding: 20px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #007bff;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-text {
    text-align: center;
    font-size: 1.3rem;
    color: #444;
    line-height: 1.6;
}

.loading {
    color: #007bff;
    font-size: 1.2rem;
    font-style: normal;
}

.error {
    color: #dc3545;
    font-size: 1.2rem;
    font-style: normal;
}

.refresh-btn {
    background: linear-gradient(135deg, #007bff, #00ffcc);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    margin-top: 20px;
}

.refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.refresh-btn:active {
    transform: translateY(-1px);
}

.footer {
    margin-top: auto;
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    align-self: flex-end;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.footer a {
    color: #cce5ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .text.part1 {
        font-size: 3rem;
    }
    
    .letter {
        font-size: 3rem;
    }
    
    .content-container {
        height: auto;
        min-height: 500px;
        padding: 30px;
        margin: 10px auto;
        border-radius: 15px;
    }
    
    body {
        padding: 10px;
    }
    
    .bio {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .quote-title {
        font-size: 1.3rem;
    }
    
    .footer {
        color: #f0f0f0;
        margin-top: auto;
        padding: 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .text.part1 {
        font-size: 2.5rem;
    }
    
    .letter {
        font-size: 2.5rem;
    }
    
    .content-container {
        min-height: 400px;
        padding: 20px;
    }
    
    .bio {
        font-size: 1.1rem;
        padding: 10px;
    }
    
    .quote-text {
        font-size: 1rem;
    }
    
    .quote-title {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 15px;
    }
    
    .refresh-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}