/* Version: 2.0.1 */


/* 加载提示样式 */
.version-loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    color: white;
    font-family: 'Arial', sans-serif;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #ffffff;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    font-weight: bold;
}

/* 版本面板基本样式 */
#versionPanel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    max-height: 80vh;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #333;
    z-index: 10000;
    overflow: auto;
    padding-bottom: 10px;
    transform: translate3d(0, 0, 0);
}

/* 拖动区域样式 */
.version-drag-handle {
    background-color: #4285f4;
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    cursor: move;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* 关闭按钮样式 */
.version-close-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    outline: none;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.version-close-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.version-close-button:active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(0.95);
}

/* 版本列表样式 */
.version-list {
    padding: 10px;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
}

/* 版本项目样式 */
.version-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.version-item:last-child {
    border-bottom: none;
}

.version-item:hover {
    background-color: #f0f0f0;
}

/* 文件名样式 */
.version-file-name {
    font-weight: bold;
    color: #333;
}

/* 版本号样式 */
.version-file-version {
    color: #4285f4;
    font-weight: bold;
}

/* 滚动条样式 */
.version-list::-webkit-scrollbar {
    width: 6px;
}

.version-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.version-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.version-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}