.base64-section {
    padding: 20px 0;
}

.workspace {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    height: 600px;
}

.input-panel,
.output-panel {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.panel-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons.bottom {
    margin-top: auto;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.action-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.action-btn:hover {
    background-color: #45a049;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn.primary {
    background-color: #007bff;
    flex: 1;
    justify-content: center;
}

.action-btn.primary:hover {
    background-color: #0069d9;
}

#text-input,
#text-base64-output {
    width: 100%;
    flex: 1;
    padding: 15px;
    font-size: 14px;
    border: none;
    resize: none;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

#text-input:focus,
#text-base64-output:focus {
    outline: none;
}

.feature-section {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.feature-section h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.feature-item i {
    color: #4CAF50;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .workspace {
        flex-direction: column;
        height: auto;
    }

    .input-panel,
    .output-panel {
        height: 400px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .action-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .input-panel,
    .output-panel {
        height: 350px;
    }
}

/* 滚动条样式 */
#text-input::-webkit-scrollbar,
#text-base64-output::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#text-input::-webkit-scrollbar-track,
#text-base64-output::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#text-input::-webkit-scrollbar-thumb,
#text-base64-output::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#text-input::-webkit-scrollbar-thumb:hover,
#text-base64-output::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #e74c3c;
}