@keyframes colorfulBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(135deg, 
        rgb(245,245,245) 0%, 
        rgba(245,235,245,0.9) 20%, 
        rgba(235,245,238,0.9) 40%, 
        rgba(235,242,245,0.9) 60%, 
        rgba(245,243,235,0.9) 80%, 
        rgb(245,245,245) 100%);
    background-size: 300% 300%;
    animation: colorfulBackground 20s ease-in-out infinite;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "LXGWMarkerGothic";
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    min-height: 3.5rem;
    position: relative;
    display: inline-block;
}

.text-container {
    text-align: center;
    margin-bottom: 2rem;
}

.footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    padding: 10px;
    line-height: 1.6;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    vertical-align: middle;
}

.footer a:hover {
    color: #333;
}

.footer img {
    vertical-align: middle;
    margin-right: 3px;
}

/* 加载动画样式 */
.loading::after {
    content: "...";
    animation: loading-dots 1.5s infinite;
    display: inline-block;
    width: 20px;
    text-align: left;
}

@keyframes loading-dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
    100% { content: "."; }
}

#hitokoto_text {
    color: #555;
    font-size: 1.1rem;
    transition: color 0.3s;
}

#hitokoto_text:hover {
    color: #222;
    cursor: pointer;
}
