* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

a {
    text-decoration: none;
    color: purple;
}

body {
    background-color: #eee;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    #ax {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        gap: 10px;

        #author-name {
            font-size: 30px;
            font-weight: bold;
            margin-top: 20px;
        }

        p {
            text-align: center;
        }
    }
}

#avatar {
    width: 128px;
    height: 128px;
    margin-bottom: 10px;
    /* border-radius: 50%; */
    overflow: hidden;

    img {
        aspect-ratio: 1/1;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
}

#down-arrow {
    position: absolute;
    bottom: 20px;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

#down-arrow:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 页面整体布局 */
.container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* select 元素样式 */
select {
    padding: 7px;
    border: none;
    font-size: 16px;
    margin-right: 10px;
}

.year-section {
    margin-bottom: 20px;
}

.month-section {
    margin-left: 20px;
}

#home-page {
    margin-right: 10px;
}

#jump-to-month,
#home-page {
    border: none;
    height: 100%;
    padding: 0px 10px;
}

#jump-to-month:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 确保选择框和按钮对齐 */
select,
button {
    border-radius: 10px;
    display: inline-block;
    vertical-align: middle;
    /* 可选，用于确保它们的垂直对齐 */
}


/* 添加动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 年份标题动画 */
.year-block h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    animation: fadeIn 0.6s ease-out;
}

.year-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #65A731;
    animation: lineExpand 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes lineExpand {
    to { width: 100%; }
}

/* 月份标题动画 */
.month-block h3 {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    margin-bottom: 10px;
    padding-left: 15px;
    animation: slideIn 0.5s ease-out;
}

.month-block h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #65A731;
}

/* 文章项目动画 */
.article-item {
    display: flex;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 10px;
    flex-direction: row;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.article-item:nth-child(1) { animation-delay: 0.1s; }
.article-item:nth-child(2) { animation-delay: 0.2s; }
.article-item:nth-child(3) { animation-delay: 0.3s; }
.article-item:nth-child(4) { animation-delay: 0.4s; }
.article-item:nth-child(5) { animation-delay: 0.5s; }
.article-item:nth-child(n+6) { animation-delay: 0.6s; }

.article-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-title {
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.article-item:hover .article-title {
    color: #65A731;
}

.container {
    display: flex;
}

.article-item {
    flex: 1;
}

.cover-image {
    border-radius: 10px;
    width: 80px;
    height: 80px;
    margin-right: 20px;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.article-item:hover .cover-image {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px;
    font-size: 12px;
}