/* 更新日志组件样式 */

/* 更新日志模态框样式 */
.changelog-modal-content {
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.changelog-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
}

.changelog-version {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.changelog-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-version h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.changelog-version ul {
    margin: 0;
    padding-left: 20px;
}

.changelog-version li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--dark-color);
}

.changelog-version li:last-child {
    margin-bottom: 0;
}

/* 更新日志查看按钮样式 */
.changelog-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    z-index: 100;
}

.changelog-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.changelog-button:active {
    transform: translateY(0);
}

.changelog-button svg {
    width: 24px;
    height: 24px;
}

/* 版本标签样式 */
.version-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: 35px;
    text-align: center;
    line-height: 1.2;
}

.version-badge.new-version {
    background: var(--danger-color);
    animation: pulse 2s infinite;
}

.new-version-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 12px;
    height: 12px;
    background: #ff4757;
    border: 2px solid white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(247, 37, 133, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 响应式样式 */
@media (max-width: 768px) {
    .changelog-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .changelog-body {
        max-height: 70vh;
        padding: 15px;
    }

    .changelog-version h4 {
        font-size: 15px;
    }

    .changelog-version li {
        font-size: 14px;
    }

    .changelog-button {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .changelog-button svg {
        width: 20px;
        height: 20px;
    }
    
    .version-badge {
        font-size: 9px;
        padding: 2px 5px;
        min-width: 30px;
        top: -6px;
        right: -6px;
    }
    
    .new-version-indicator {
        width: 10px;
        height: 10px;
        top: -5px;
        right: -5px;
    }
}

@media (max-width: 480px) {
    .changelog-button {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .changelog-button svg {
        width: 18px;
        height: 18px;
    }
    
    .version-badge {
        font-size: 8px;
        padding: 1px 4px;
        min-width: 28px;
        top: -5px;
        right: -5px;
    }
    
    .new-version-indicator {
        width: 8px;
        height: 8px;
        top: -4px;
        right: -4px;
    }
}