#updateLog {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    position: relative; /* 为关闭按钮提供定位参考 */
}

/* 更新日志关闭按钮 */
.update-log-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgb(255, 0, 0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.update-log-close:hover {
    background: rgba(255, 0, 0, 0.8);
    color: rgb(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.update-log-close:active {
    transform: scale(0.95);
}

#updateLog h3 {
    color: #414141;
    font-size: 18px;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.update-title {
    color: #ffffff;
    border-bottom: 2px solid #3498db;
    padding-bottom: 3px;
    margin-bottom: 10px;
    font-size: 16px;
}

.update-date {
    color: #ffffff;
    font-size: 14px;
    margin: 8px 0 5px 0;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.1));
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
    font-weight: 600;
}

.update-subtitle {
    color: #bb86fc;
    font-size: 13px;
    margin: 6px 0 3px 0;
    font-weight: 500;
}

.update-list {
    margin: 4px 0;
    padding-left: 16px;
}

.update-item {
    margin: 1px 0;
    padding: 1px 0;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.9);
    font-size: 13px;
    list-style-type: none;
    position: relative;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}
            
.update-item:before {
    content: "•";
    color: #00d4aa;
    font-weight: bold;
    position: absolute;
    left: -12px;
    font-size: 14px;
}

.update-item:last-child {
    border-bottom: none;
}

.update-section {
    margin-bottom: 8px;
}

#updateLogContent {
    max-height: 336px; 
    overflow-y: auto;
    padding: 2px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#updateLogContent::-webkit-scrollbar {
    width: 5px;
}

#updateLogContent::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

#updateLogContent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

#updateLogContent::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 代码块样式 */
.code-block-wrapper {
    position: relative;
    margin: 8px 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin: 0;
    overflow-x: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgb(169,170,172, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    color: rgba(61, 61, 61, 1);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.code-copy-btn:hover {
    background: rgba(169,170,172, 0.2);
    color: rgba(61, 61, 61, 0.8);
    transform: scale(1.05);
}

.code-copy-btn:active {
    transform: scale(0.95);
}

.code-copy-btn.copied {
    background: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.code-block code {
    background: none;
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.2; 
    white-space: pre;
    display: block;
}

.code-block::-webkit-scrollbar {
    height: 6px;
}

.code-block::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.code-block::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.code-block::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* JSON 语法高亮 */
.language-json {
    color: #f8f8f2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #updateLog {
        margin: 15px auto;
        padding: 15px;
        width: 70% !important;
        max-width: none;
    }
    
    .update-log-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .update-date {
        font-size: 13px;
        padding: 3px 6px;
        margin: 6px 0 4px 0;
    }
    
    .update-item {
        font-size: 12px;
        line-height: 1.1;
        margin: 0.5px 0;
        padding: 0.5px 0;
    }
    
    #updateLogContent {
        max-height: 200px;
        padding: 6px;
    }
    
    /* 移动端代码块样式 */
    .code-block {
        padding: 8px;
        font-size: 11px;
    }
    
    .code-block code {
        font-size: 10px;
        line-height: 1;
    }
    
    .code-copy-btn {
        top: 6px;
        right: 6px;
        padding: 4px 6px;
        font-size: 12px;
    }
}
