/* Unicode编码转换器专用样式 */

/* 转换按钮区 */
.conversion-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.conversion-buttons .btn {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    height: 60px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.conversion-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-icon {
    font-size: 20px;
    margin-right: 8px;
}

.btn-text {
    font-size: 15px;
}

/* 输入输出区域 */
.converter-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.text-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.text-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.text-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.text-box-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.text-box-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-small {
    background: #f8f9fa;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-icon-small:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.text-area {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-area:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.text-area::placeholder {
    color: #adb5bd;
}

.char-count {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    text-align: right;
}

/* 选项面板 */
.options-panel {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 30px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-item span {
    font-size: 14px;
    color: #495057;
}

/* 消息提示 */
.message {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

.message.success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.message.warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.message.error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .converter-area {
        grid-template-columns: 1fr;
    }

    .conversion-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .conversion-buttons .btn {
        max-width: none;
        height: 50px;
    }

    .text-box {
        padding: 15px;
    }

    .text-area {
        min-height: 150px;
        font-size: 13px;
    }

    .options-panel {
        flex-direction: column;
        gap: 15px;
    }

    .message {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .conversion-buttons .btn {
        height: 45px;
        font-size: 14px;
    }

    .btn-icon {
        font-size: 18px;
    }

    .btn-text {
        font-size: 14px;
    }

    .text-box-header h3 {
        font-size: 14px;
    }

    .btn-icon-small {
        padding: 5px 8px;
        font-size: 14px;
    }
}
