
/* 历史更新相关样式，包含了index.md中使用的近一个月更新details，与更新历史中完整的更新历史 */

.updates-title{
    font-size: 2em;
    color: rgba(0, 0, 0, 0.54);
    font-weight: 300;
    letter-spacing: -.01em;
    line-height: 1.3;
    margin-block-start: 0.83em;
}

.latest-updates-box {
    background: linear-gradient(145deg, #f8fff9 0%, #f1f8ff 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 1rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.latest-title {
    color: #2c7a7b;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5em
}

.new-badge {
    background: #a4ba80;      /* 草绿色，表示新增 */
    color: #f4f4f4;          /* 设置文字颜色为浅灰白色 */
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    font-size: 0.8em;

}

.enhanced-badge {
    background: #2196F3;      /* 蓝色，表示改进 */
    color: #f4f4f4;          /* 设置文字颜色为浅灰白色 */
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    font-size: 0.8em;

}

.fixed-badge {
    background: #FF9800;      /* 橙色，表示修复 */
    color: #f4f4f4;          /* 设置文字颜色为浅灰白色 */
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    font-size: 0.8em;

}

.major-badge {
    background: #FF416C;
    color: #f4f4f4;    
    padding: 0.05rem 0.2rem;
    border-radius: 2px;
    font-size: 0.8em;
    font-weight: bold;
}

.latest-item {
    padding: 1rem;
    margin: 0.5rem 0;
    background: white;
    border-left: 3px solid #4CAF50;
    transition: all 0.2s;
}

.latest-item:hover {
    transform: translateX(5px);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.more-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2c7a7b;
    text-decoration: none;
}

.more-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: margin 0.2s;
}

.more-link:hover::after {
    margin-left: 1rem;
}

/* 修改 details 样式 */
details.update-year {
    border-left: 3px solid #2196F3;    
    margin: 1rem 0;
    padding-left: 1rem;
    transition: all 0.5s ease-out;      /* 增加过渡时间，使用 ease-out */
}

/* summary 样式 */
.update-year summary {
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-left: -1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.5s ease-out;      /* 增加过渡时间，使用 ease-out */
}

.update-year-title {
    font-size: 1.5em;
    line-height: 1.4;
    padding: 0.8em 0.5em;
}

/* 展开状态下的 summary */
.update-year[open] > summary {
    margin-bottom: 10px;
    transition: margin 0.5s ease-out;    /* 增加过渡时间，使用 ease-out */
}

/* 箭头旋转动画 */
.update-year summary::-webkit-details-marker {
    color: #666;
    transition: transform 0.5s ease-out;  /* 增加过渡时间，使用 ease-out */
}

/* 展开状态的竖线颜色 */
details.update-year[open]::before {
    background-color: #4CAF50;
}

.update-year[open] {
    border-color: #4CAF50;
}

.update-year summary {
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-left: -1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.update-year summary::-webkit-details-marker {
    color: #666;
    transition: transform 0.2s;
}

.update-year[open] summary::-webkit-details-marker {
    transform: rotate(90deg);
}

.year-summary {
    font-size: 0.8em;
    color: #666;
    margin-left: 1rem;
}

.update-navigation {
    margin-top: 2rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
}