/**
 * 更新日志插件样式表
 * 包含按钮、模态框、遮罩层等样式定义
 */

/* 更新日志按钮容器 */
.update-changelog-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9998;
}

/* 更新日志按钮样式 */
#showChangelogBtn {
    background-color: #6b46c1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

/* 按钮悬停效果 */
#showChangelogBtn:hover {
    background-color: #553c9a;
}

/* 模态框容器 */
.changelog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* 遮罩层样式 */
.changelog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

/* 内容区域样式 */
.changelog-content {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #fff;
    height: 100%;
    padding: 20px;
    width: 400px;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* 内容超出时显示滚动条 */
}

/* 关闭按钮样式 */
.close-changelog {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 10000;
}

/* 关闭按钮的交叉线 - 第一条线 */
.close-changelog::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #666;
    top: 50%;
    left: 0;
    transform: rotate(45deg);
}

/* 关闭按钮的交叉线 - 第二条线 */
.close-changelog::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #666;
    top: 50%;
    left: 0;
    transform: rotate(-45deg);
}

/* 关闭按钮悬停效果 */
.close-changelog:hover::before,
.close-changelog:hover::after {
    background-color: #333;
}

/* 更新日志内容区域 */
#changelogContent {
    margin-top: 20px;
    padding-bottom: 40px; /* 底部留白，避免内容被遮挡 */
}

/* 单个版本更新记录样式 */
.changelog-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 版本号样式 */
.changelog-version {
    font-size: 18px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

/* 发布日期样式 */
.changelog-date {
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
}

/* 更新内容列表样式 */
.changelog-changes {
    list-style-type: disc;
    margin-left: 20px;
    color: #4a5568;
} 